Start('root'); $profiler->Start('systeminclude'); require_once('langs/langs.php'); require_once('cms/product_helpers.php'); $profiler->Stop('systeminclude'); /*$profiler->Start('mobiledetect'); $detectmob = ClassFactory('detectmobile'); $mobile = 0;//$detectmob->isMobile(); if($mobile){ header("HTTP/1.1 302 Moved Temporarily"); header('Location: '.$config['protocol'].$config['site']['mobileurl']); exit(); } $profiler->Stop('mobiledetect'); */ /* $time = time(); $mins = 1; if (isset($_SERVER['HTTP_IF_NONE_MATCH']) and str_replace('"', '', $_SERVER['HTTP_IF_NONE_MATCH'])+($mins*60) > $time) { header('HTTP/1.1 304 Not Modified'); exit(); } else { header('ETag: "'.$time.'"'); } */ $profiler->Start('createcontext'); $profiler->Start('sessionstart'); $sess = ClassFactory("sessionvars"); $profiler->Stop('sessionstart'); $profiler->Start('makeglobals'); $user = ClassFactory('currentuser'); $post = ClassFactory("postparams"); $request = ClassFactory('request'); $profiler->Stop('makeglobals'); //set lang $clang = $request->Get('language'); //echo $clang; $urlfactory = ClassFactory('urlcreator'); //$profiler->Start('initcart'); //$cart = ClassFactory('cart'); //$profiler->Stop('initcart'); //print_r($cart ); //die(); //load currency $xrate = 1.0 ;//$cart->Get('xrate'); $cursymbol = '&euro';//$cart->Get('cursymbol'); $app = APP_HOME; if(!$request->isEmpty('app')) $app = $request->Get('app'); $list = ''; $get = $request->Get('get'); $id = $request->Get('id'); //$canonlist = ClassFactory('listoptions'); //$canonlist->Set('propagate',array('page')); //if($app == APP_SHOP && $id == 1) // $canonlist->Set('propagate',array('list','value')); //$home = $urlfactory->GetURL(APP_HOME,1); $canonical = ''; if(!$request->isSearch()) $canonical = $urlfactory->GetURL($app,$id).MakeURL('',array(),TRUE,array('page')); $request->set('canonical', $canonical); $profiler->Stop('createcontext'); $profiler->Start('router'); $router = ClassFactory('router'); $router->Execute(); $profiler->Stop('router'); //$profiler->Start('includelangs'); //include($config['site']['root'].'/langs/'.$request->Get('language').'.php'); //$profiler->Stop('includelangs'); $profiler->Start('execute'); $app_obj = ClassFactory($app,$request); $app_obj->Execute(); $profiler->Stop('execute'); $profiler->Stop('root'); $ip = get_ip(); if($ip['client'] == '84.24.47.206') $profiler->Analyze(); ?>