security->unlock(); /** * load the controller */ $NP->utils->setCaptcha(); $NP->setting->setSeo($NP->params->get('id'),_LANG); $NP->router->loader(); if($NP->params->get('id')){ if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip = $_SERVER['REMOTE_ADDR']; } if(!isset($_SESSION['statistics'])){ $_SESSION['statistics']=$NP->security->tokenGenerator(); } $NP->load('statistics_mod','statistics'); $NP->statistics->set($NP->params->get('id'),_LANG,$ip,$_SERVER['HTTP_USER_AGENT'],$_SESSION['statistics']); } /** * parse messages programme */ if ($NP->params->get( '_type' ) == 'main'){ if(!$NP->isLocal){ $NP->view->assign('GOOGLETAG',$NP->setting->googleTag()); $NP->view->assign('ANALYTICS',$NP->setting->analytics()); // if( !$NP->setting->dedicatedSitemap()){ // $NP->view->parse('main.canonical'); // } } $NP->view->parse('main.canonical'); $NP->view->parseAllMessage ( true ); } $NP->view_hpr->close($NP->params->get('_type'),_EXPIRE_CACHE); echo GTP(); ?>