", $datafunc."\n", $thisCSHeader); // $thisCSHeader = eregi_replace("", "-".$thisNamecctop1."-".$thisNamearttop."", $thisCSHeader); $thisCSHeader = eregi_replace(" 0) { //include_once("hits.php") ; // } // if(!$fd = fopen($filename, "r")) { // $error = 1; // } // else { // $template = fread ($fd, filesize ($filename)); // fclose ($fd); $template = $thisCSHtml; // echo "$main sssssss"; $template = stripslashes($template); $template = eregi_replace("{main}", "$main", $template); $template = eregi_replace("{v_categ}", "$v_categ", $template); include "../t".$tno."/admin".$tno."/glo2.php"; $template = eregi_replace("{lastne}", "$lastne", $template); $template = eregi_replace("{lastneA}", "$lastneA", $template); $template = eregi_replace("{allne}", "$allne", $template); $template = eregi_replace("{tagline}", "$tagline", $template); $template = eregi_replace("{catNAME}", "$thisNamecctop1", $template); $template = eregi_replace("{catID}", "$categoryU", $template); $template = eregi_replace("{LangA}", "$langU", $template); $template = eregi_replace("{vcatsub}", "$vcatsub", $template); // include "v_menu.php"; $template = eregi_replace("{custommenu1}","$custommenu1" , $template); $template = eregi_replace("{custommenu2}","$custommenu2" , $template); $template = eregi_replace("{custommenu3}","$custommenu3" , $template); $template = eregi_replace("{custommenuTOP}","$custommenuTOP" , $template); //poll // if ($pollmenu==1) { //echo $php_poll->poll_process(7); // $thepoll="ssssssssssssssssss"; // } $template = eregi_replace("{thepoll}", "$thepoll", $template) ; //end poll // $template = eregi_replace("{gallery}", "$galleryT", $template); global $custommenu; $template = eregi_replace("<% content %>", "$content", $template); $thisCSFooter = eregi_replace("{custommenuBOT}","$custommenuBOT" , $thisCSFooter); // $template = eregi_replace("{custommenu}","$custommenu" , $thisCSFooter); $template = $template.$thisCSFooter ; echo "$template"; } //} function home() { global $tno; global $mysite; global $main; global $carsea; global $v_categ; global $lastne; global $lastneA; global $allne; global $tagline; //global $t_out; global $customarticle ; global $page; global $lang; global $art; global $article; global $thepoll; //global $contactf; //global $gallery; //global $galleryT; // from top cases global $thisNamearttop; global $thisNamecctop1; //FPOM PATHINFO global $cat; global $pageU; global $categoryU; global $langU; global $artU; global $custommenu1; global $custommenu2; global $custommenu3; global $vcatsub; global $custommenuTOP; global $custommenuBOT; // global $priceREAL; // global $startLimit; include "../t".$tno."/admin".$tno."/glo1.php"; include ("inc.php"); template("$data"); } switch($action) { default: // default switch home(); break; } //echo "$thisCSFooter"; mysql_close($db); $m_time = explode(" ",microtime()); $m_time = $m_time[0] + $m_time[1]; $loadend = $m_time; $loadtotal = ($loadend - $loadstart); echo "Generated page in ". round($loadtotal,3) ." seconds"; ?>