//ini_set('display_errors', 0);
// include_once "../t10509/admin10509/vote1/textfile/poll_cookie.php"; // session_start(); // echo date('Y m d H:i:s', $_SESSION['time']);
$m_time = explode(" ",microtime());
$m_time = $m_time[0] + $m_time[1];
$loadstart = $m_time;
//$t=3;
include_once("../site/dbConnection.php");
include_once("../site/cmscon.php"); // cmscon.php
include "pathinfo.php"; // echo"$pollmenu";
include_once("topcases.php"); //$mytheme=2;
// global $pageU; // ECHO"ASSSSSSSS $pageU "; ECHO $HTTP_SERVER_VARS['PATH_INFO'];
// ECHO "page=$pageU-categ=$categoryU";
//include_once("../site/cmscon.php");
/* Include this before your html code */
//include_once "../t8/admin8/vote1/textfile/poll_cookie.php"; echo"sssssssss";
if ($pollmenu==1) { //include_once "/home/creteplus/domains/creteplus.gr/public_html/t10509/admin10509/vote1/textfile/poll_cookie.php";
}
IF ($lang){} else {$lang='';}
function template($content) {
include "temlsql.php";
global $tno;
global $mysite;
// $ii=1;
global $main;
global $customarticle ;
global $v_categ;
global $lastne;
global $lastneA;
global $allne;
global $tagline;
global $carsea;
//global $t_out;
// global $contactf;
global $gallery;
// global $galleryT;
// from top cases
global $thisNamearttop;
global $thisNamecctop1;
global $thisTagsarttop;
global $thisTagsarttop1;
//FPOM PATHINFO
global $cat;
global $pageU;
global $categoryU;
global $langU;
global $artU;
global $thepoll;
global $custommenu1;
global $custommenu2;
global $custommenu3;
global $vcatsub;
global $custommenuTOP;
global $custommenuBOT;
// include
include ("../t".$tno."/admin".$tno."/glo1.php");
// $the_file="../site/functions.php";
//$open=fopen ($the_file,"r");
//if ($open) {
//$datafunc=file($the_file);
//$datafunc=implode("",$datafunc);}
include "../site/functions.php";
$thisNamearttop = stripslashes($thisNamearttop) ;
$thisTagsarttop = stripslashes($thisTagsarttop) ;
// ECHO"$thisTagsarttop";
$thisCSHeader = eregi_replace("", $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";
?>