Пройдите инсталляцию');} require_once(_ROOT.'/lib/Config.php'); require_once(_ROOT.'/lib/DBConnect.php'); $config = new Config(); $config->ReadConfig(); $connect = new DBConnect($config); //if(file_exists(_ROOT."/classes/cache/make.php")){ // require_once(_ROOT."/classes/cache/make.php"); // $mCache = new mCache($connect); // $mCache->Start(); // ob_start(); //} require_once(_ROOT."/lib/kapcha.php"); require_once(_ROOT.'/lib/Template.php'); require_once(_ROOT.'/lib/Login.php'); require_once(_ROOT.'/lib/StaticPages.php'); require_once(_ROOT.'/lib/functions.php'); require_once(_ROOT.'/lib/Modules.php'); require_once(_ROOT.'/lib/Menu.php'); $connect->StartQueryCounter(); $login = new Login($connect); $module = new Module($connect); $static = new StaticPages($connect); $template = new CTemplate($connect); $menu = new Menu($connect); if($menu->GetRedirect()!='') { header('Location: '.$menu->GetRedirect()); exit;} $tpl_main = $menu->GetMainTemplate(); $err = $template->LoadTemplate($tpl_main); if($err=="OK") $template->ParseTemplate(); else echo $err; //echo $connect->GetQueryCounter(); /*if(file_exists(_ROOT."/classes/cache/make.php")){ $strCache = ob_get_contents(); ob_end_clean(); $mCache->End($strCache); }*/ //echo'
'. $connect->GetLog(); /**/ echo ''; ?>