Codice PHP:
class page_forum
{
    var 
$variable ="";
    function 
page(){
        global 
$smarty$board_config$config$user$db$auth$cache$template$_POST;
        foreach(
$this->variable as $name => $value){
            
$smarty->assign($name$value);
        }
        
$forumpage = isset($_GET['forumpage']) ? $_GET['forumpage'] : 'index.php';
        
$param2 = isset($_GET) && key($_GET) != 'forumpage' && key($_GET) != 'sid' $_GET : array(0=>'');
        
$par2 "";
        foreach(
$param2 as $key => $value){
            
$par2 .= $key.'='.$value.'&';
        }
        
ob_start();
        include(
$board_config->forumurl.'/'.$forumpage.'?'.$par2);
        
$forum ob_get_contents(); 
        
ob_end_clean();
        
        
$head str_replace('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'''$forum);
        
$head preg_replace('/<html (.*?)>(.*?)<\/html>/is''$2'$head);
        
$head preg_replace('/<head>(.*?)<\/head>/is''$1'$head);
        
$head preg_replace('/href="(.*?)"/is''href="'.$board_config->forumurl.'/$1"'$head);
        
$head preg_replace('/<title>(.*?)<\/title>/is'''$head);
        
$head preg_replace('/<body>(.*?)<\/body>/is'''$head);
        
        
$board str_replace('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'''$forum);
        
$board preg_replace('/<html (.*?)>(.*?)<\/html>/is''$2'$board);
        
$board preg_replace('/<head>(.*?)<\/head>/is'''$board);
        
$board preg_replace('/<body>(.*?)<\/body>/is','$1'$board);
        
$url preg_replace('/href="\.\/(.*?)\?(.*?)(.*?)"/is''href="'.$board_config->siteurl.'/index.php/page=forum/forumpage=$1/$2/$3"'$board);
        
$board preg_replace('/(\?|\&amp;)/is''/'$url);
        
$board preg_replace('/[img](.*?)[/img]forumurl.'/$1"', $board);
        
$board = preg_replace('/<form action="\.\/(.*?)"/is', '<form action="'.$board_config->siteurl.'/index.php/page=forum/forumpage=$1"', $board);

        
$smarty->assign('header',$head);
        
$smarty->assign('forum',$board);
        
$ret = $smarty->fetch('page/forum.tpl');
        return 
$ret;
    }

questo codice mi permette di vedere correttamente il forum e i post, come se fosse esterno, ma non lo è.
il proble è che ora non so più che fare.
in questa pagina, l'output, non riconosce le sessioni, e neanche i parametri post.
che devo fare