//farà parte dell'installer...per ora sta qui if(!file_exists("misc/motd.php")){ $fp=fopen("misc/motd.php","w"); fwrite($fp,_MOTDMESS); fclose($fp); } //<-- AUTOBUID // statistiche--> /*$from=$_SERVER["HTTP_REFERER"]; $where= "http://".$_SERVER["HTTP_HOST"].$_SERVER['PHP_SELF']; $where = str_replace(basename($where),"",$where); $url=str_replace("http://","",$where); $url=str_replace("www.","",$url); $from=str_replace("http://","",$from); $from=str_replace("www.","",$from); if (!stristr($from,$url)) stats();*/ //<-- statistiche function getflopt(){ // opzione di sicurezza! $req=$_SERVER["REQUEST_URI"]; if(strstr($req,"myforum=")) die(_NONPUOI); $op=$_GET['mod']; switch($op){ case "": create_news(); break; case "read": read_news($_GET['id']); break; case "news": $myforum=$_COOKIE['myforum']; $req=$_SERVER["REQUEST_URI"]; if(strstr($req,"myforum=")) die(_NONPUOI); if((getlevel($_COOKIE['myforum'],"home")==10) and versecid($_COOKIE['myforum'])) insert_news(); break; case "modcont": $myforum=$_COOKIE['myforum']; $req=$_SERVER["REQUEST_URI"]; if(strstr($req,"myforum=")) die(_NONPUOI); if((getlevel($_COOKIE['myforum'],"home")==10) and versecid($_COOKIE['myforum'])) edit_content($_GET['file']); break; case "comment": insert_comment($_GET['id']); break; default: view_section($op); break; } } include "themes/$theme/theme.php"; include "themes/$theme/structure.php"; include "footer.php"; ?>