Hi. Your poll.inc.php includes class_poll.php and booth.php, and then booth.php includes class_poll.php again, hence the error.
In search_function.php do:
PHP Code:
ob_start();
require("/home/destroyerx/public_html/search/includes/poll.inc.php");
$my_poll_file = ob_get_contents();
ob_end_clean();
and also in search_function.php do:
PHP Code:
$t_mstrings = compact('my_poll_file','js_for_clicks','rss_feed_link','powered_by_link','title_message','phpdig_version','result_message','nav_bar','ignore_message','ignore_commess','pages_bar','previous_link','next_link','templates_links');
But replace your poll.inc.php with:
PHP Code:
<?php
$include_path = "/home/destroyerx/public_html/poll";
if (!isset($PHP_SELF)) {
global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_SERVER_VARS;
$PHP_SELF = $HTTP_SERVER_VARS["PHP_SELF"];
if (isset($HTTP_GET_VARS)) {
while (list($name, $value)=each($HTTP_GET_VARS)) {
$$name=$value;
}
}
if (isset($HTTP_POST_VARS)) {
while (list($name, $value)=each($HTTP_POST_VARS)) {
$$name=$value;
}
}
if(isset($HTTP_COOKIE_VARS)){
while (list($name, $value)=each($HTTP_COOKIE_VARS)){
$$name=$value;
}
}
}
require $include_path."/include/config.inc.php";
require $include_path."/include/class_poll.php";
$php_poll = new poll();
echo $php_poll->set_include_path($include_path);
?>