pub_http_host_get())) $kernel->priv_redirect_301("http://www.".$kernel->pub_http_host_get().$_SERVER['REQUEST_URI']); if (isset($_GET['_openstat']) && strpos($_GET['_openstat'],";")===false) { $ostat=@base64_decode($_GET['_openstat']); if ($ostat) { $odata=explode(";",$ostat,4); if (count($odata)==4 && $odata[0]=='direct.yandex.ru') { $ruri = $_SERVER["REQUEST_URI"]; $ruri=preg_replace('~_openstat=([a-z0-9]+)~i','',$ruri); $ruri=rtrim($ruri,"&"); $ruri=rtrim($ruri,"?"); if (strpos($ruri,"?")===false) $ruri.="?"; else $ruri.="&"; $ruri.="utm_content=".$odata[3]; $ruri.='&utm_medium=cpc&utm_source=yandex&utm_campaign='.$odata[1]; header("Location: ".$ruri); die(); } } } $expiry = 60*24*7; ini_set('session.gc_maxlifetime', $expiry); session_start(); setcookie(session_name(), session_id(), time()+$expiry*60, "/"); $front = new frontoffice_manager(); $front->start();