2)) { $_SESSION['direct']=1; } if (!isset($_SESSION['direct']) and !isset($_SESSION['user'])) { $_SESSION['user']=1; } */ $data_url=''; if (strpos($p[1],'.')===false) { for ($i=1;$i<(sizeof($p)-1);$i++) { $data_url=$data_url.$p[$i].'/'; if (file_exists($data_url.$p[$i].$data_ext)) { include ($data_url.$p[$i].$data_ext); } else include ($errorFileName); } } if (!$p[sizeof($p)-1]=="") { $p[sizeof($p)-1]=substr($p[sizeof($p)-1],0,-5); if (file_exists($data_url.$p[sizeof($p)-1].$data_ext)) { include ($data_url.$p[sizeof($p)-1].$data_ext); if(!strstr($content,'
')=== false) { $description=get_art_header($content).$title.' '.$description; $title=get_art_header($content).' - '.$title; $is_art=1; $art_page=1; if (strpos($res[1],'page')!==FALSE) $art_page=str_replace('page=','',$res[1]); } } else include ($errorFileName); } /*if (isset ($linkFileName) and !$linkFileName=='') include $linkFileName;*/ include($tmpl); ?>