0) $_METADESCRIPTION = $_PAGE['description']; else $_METADESCRIPTION = $_NASTAVITVE['description']; if(strlen($_PAGE['keywords']) > 0) $_METAKEYWORDS = $_PAGE['keywords']; else $_METAKEYWORDS = $_NASTAVITVE['keywords']; //FLUSH $_SESSION['products'] unset($tmpSESSION); if($_SESSION['products']!=NULL) { foreach($_SESSION['products'] as $key => $value) { if($value > 0) { $tmpSESSION[$key] = $value; } } } $_SESSION['products'] = $tmpSESSION; //OGLEDANI IZDELKI if($_PAGE['tipid']==5) { $_PARENTPAGE = getAtributiStrani($_PAGE['parent']); if(isset($HTTP_COOKIE_VARS['ogledaniizdelki']) && $_SESSION['ogledaniizdelki']==NULL) { $_SESSION['ogledaniizdelki'] = unserialize($HTTP_COOKIE_VARS['ogledaniizdelki']); } $_SESSION['ogledaniizdelki'][$_PAGE['stranid']] = $_SESSION['ogledaniizdelki'][$_PAGE['stranid']] + 1; setcookie('ogledaniizdelki', serialize($_SESSION['ogledaniizdelki']), $_EXPIRE); } //PRODAJNI PROGRAM - force redirect to index if($_PAGE['skrij'] == 1 || $_PAGE['skrijstran'] == 1 || $_PAGE['parent'] == 31) { header('location: '.friendlyUrlJezikN($_DOMOVID, $_SESSION['jezikid'])); } if($_PAGE['tipid'] == 5) { $_TITLE = "VEBO | ".$_PAGE['naslov']; } // Redirect stilno pohistvo/main page by _NASTAVITVE-parent $ids = explode("/", getParentsIds($_PAGE['stranid'])); if(!in_array($_NASTAVITVE['parent'], $ids)) { header("location: /"); } if(!empty($_PAGE['redirecturl'])) { header("location: $_PAGE[redirecturl]"); exit; } ?>