//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 = getparam("HTTP_REFERER", PAR_SERVER, SAN_FLAT); $host = getparam("HTTP_HOST", PAR_SERVER, SAN_FLAT); $self = getparam("PHP_SELF", PAR_SERVER, SAN_FLAT); /* if(isset($_SERVER['HTTP_REFERER'])) $from = $_SERVER['HTTP_REFERER']; else $from = ""; if(isset($_SERVER["HTTP_HOST"])) $host = $_SERVER["HTTP_HOST"]; else $host = ""; if(isset($_SERVER["PHP_SELF"])) $self = $_SERVER["PHP_SELF"]; else $self = ""; */ $where= "http://".$host.$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"]; $req=getparam("REQUEST_URI", PAR_SERVER, SAN_FLAT); if(strstr($req,"myforum=")) die(_NONPUOI); $op=getparam("mod",PAR_GET,SAN_FLAT); $file=getparam("file",PAR_GET,SAN_FLAT); $file=stripslashes($file); $id=getparam("id",PAR_GET,SAN_FLAT); $myforum=getparam("myforum",PAR_COOKIE,SAN_FLAT); /* if(isset($_GET['mod'])) $op=str_replace(chr(00),"",$_GET['mod']); else $op=""; if(isset($_GET['file'])) $file=str_replace(chr(00),"",$_GET['file']); else $file=""; if(isset($_GET['id'])) $id=str_replace(chr(00),"",$_GET['id']); else $id=""; if(isset($_COOKIE['myforum'])) $myforum=$_COOKIE['myforum']; else $myforum=""; */ switch($op){ case "": create_news(); break; case "read": read_news($id); break; case "news": $req=getparam("REQUEST_URI",PAR_SERVER,SAN_FLAT); if(strstr($req,"myforum=")) die(_NONPUOI); if((getlevel($myforum,"home")==10) and versecid($myforum)) insert_news(); else { OpenTable(); print("
"._NOLEVELSECT."
"); CloseTable(); return; } break; case "modcont": $req=getparam("REQUEST_URI",PAR_SERVER,SAN_FLAT); if(strstr($req,"myforum=")) die(_NONPUOI); if((getlevel($myforum,"home")==10) and versecid($myforum)) edit_content($file); else { OpenTable(); print("
"._NOLEVELSECT."
"); CloseTable(); return; } break; case "comment": insert_comment($id); break; default: view_section($op); break; } } include "themes/$theme/theme.php"; include "themes/$theme/structure.php"; include "footer.php"; ?>