/*********************************************************************/ extract($_POST); extract($_GET); extract($_SERVER); extract($_COOKIE); /*********************************************************************/ /***********************************/ ini_set('zlib.zlib.output_handler','on'); ini_set('zlib.output_compressed','on'); ini_set('zlib.output_compression_level',7); ob_start('ob_gzhandler'); /***********************************/ /* Includi tutti i file di sistema */ //include $DOCUMENT_ROOT."/sw/lib_config/config.php"; include "/sw/lib_config/config.php"; include PATH_LIBRARY.$path_sw."index_sw.php"; /***********************************/ /***********Codifica URL ***********/ eval(url_deco($url_var_all)); /*********** Inizializzo ***********/ /*********************************************************************/ $nn_d_post = unserialize(stripslashes($_COOKIE['posts_cookie'])); if($id_p==10 and $opt=="ins" and $id_for=="sezioni" and $id_parent_for==1 and $image=="" and $filename==""){ if($nn_d_post>3) Header("Location: http://www.drawingblog.net/netiquette.htm"); if($nn_d_post>2 and strstr(gethostbyaddr($_SERVER["REMOTE_ADDR"]), '79-r.retail.telecomitalia.it') and strstr($_SERVER['HTTP_USER_AGENT'], '.0.50727') and strstr($_SERVER['HTTP_USER_AGENT'], '3.0.04506')) Header("Location: http://www.drawingblog.net/netiquette.htm"); // echo "!!".$nn_d_post."!!".gethostbyaddr($_SERVER["REMOTE_ADDR"])."!!".$_SERVER['HTTP_USER_AGENT']."!!".strstr(gethostbyaddr($_SERVER["REMOTE_ADDR"]), '79-r.retail.telecomitalia.it'); if(!$nn_d_post) $nn_d_post=1; setcookie("posts_cookie", serialize(++$nn_d_post), time()+3600*24, "/"); // echo $_COOKIE['posts_cookie']; } /*********************************************************************/ if($id_p=="" or $id_p=="1.html") $id_p=1; if($cerca_int!="") $id_p=trova_val("cerca",$all_val_infra_link); // if($m=="") // $m="zit"; if($email_news!="@" and $email_news!=""){ $id_p=trova_val("utenti",$all_val_infra_link); $id_for="sezioni";$id_parent_for=1;$opt="add_mailing";} /**********************************/ if($op_con=="log_off") Log_off(); /**********************************************************/ /**** Trova Id_SES , e Dati Utente ***********************/ eval($utente_pro=check_utente('',check_ses($id_ses))); /*********************************************************/ /****** Trova VAriabili SEZIONE *********************/ eval($elemento_pro=elemento_pro("sezioni",$id_p)); /*******************************************************/ /*******************************************************/ eval(Gestisci_sezioni($utente_pro,"read_e",$id_p,$id_s)); /*******************************************************/ /***************************/ if($id_p==trova_val("cerca",$all_val_infra_link)) $id_s=""; /******************************/ /********* trovo il carattere dell'elemento se presente*******/ if($id_s!="") eval(elemento_pro(trova_val_inv($id_p,$all_val_infra_link),$id_s)); /**** Per USCITA ESTERNO LINK (NO Grafica) ****/ if($link_ext!=""){ echo ""; echo "
"; Gestisci_SW($utente_pro,$elemento_pro,$opt,$id_p,$id_s,$id_for,$id_parent_for,$id_use); } else{ /********************************************/ /* costruisci pagina HTML */ html_start(); html_title(StripSlashes($titolo_e)); html_style(); html_java_script(); html_meta_stand(); html_meta_keywords(StripSlashes($meta_key)); html_meta_description(StripSlashes($meta_des)); html_body(); /********* trovo il carattere dell'elemento *******/ if($com!="for_print"){ testa_open($utente_pro,$elemento_pro,$id_p); bar_nav_open();} /****************************** Read_percorso($id_p,$id_s,$opt,$nome_e,$id_for_e,$id_parent_for_e,$id_for,$id_parent_for); /*******************************/ if($com!="for_print"){ bar_nav_close($id_utente_c); /*** Interfaccia grafica ***/ Grafica_interface_sw_open($utente_pro,$id_p,$opt); /**********************/ }else echo "