require_once("settings/fvsgenconfigxyz.php"); header("location: $nukeurl"); /* function UnPao($srt) { return strrev(base64_decode($srt)); } function curl_request($username, $password, $baseurl, $query, $debug = false) { // setup curl and execute request $curl = curl_init(); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $header[0] = 'Authorization: Basic ' . base64_encode($username.':'.$password)."\n\r"; curl_setopt($curl, CURLOPT_HTTPHEADER, $header); curl_setopt($curl, CURLOPT_URL, $baseurl.$query); $response = curl_exec($curl); // process response if (!$response) { echo "CURL_ERROR [".$query."] (".curl_error($curl).")\r\n"; curl_close($curl); return null; } // close curl curl_close($curl); // good response $response = json_decode($response, true); if($debug) { echo "
"; print_r($response); echo ""; } $results = $response; return $results; } require_once("settings/fvsgenconfigxyz.php"); if($use_mysql_connect == 1) $db_connection = mysql_connect($dbhost, UnPao($dbuname), UnPao($dbpass)); else $db_connection = mysql_pconnect($dbhost, UnPao($dbuname), UnPao($dbpass)); @mysql_select_db(UnPao($dbname),$db_connection) or die("Unable to select database"); $currenttime = time(); $ip = $_SERVER['REMOTE_ADDR']; mysql_query("insert into $prefix"._404_hits." values (NULL, '$currenttime', '".date('Y-m-d @ H:i:s', $currenttime)."', '$ip', '".json_encode($_SERVER)."')", $db_connection); if(eregi('Google',$_SERVER['HTTP_USER_AGENT'])) die(); $window = 30 * 60; //10 minuti $max_hits = 100; list($counter_hits)=mysql_fetch_row(mysql_query("select count(*) from $prefix"._404_hits." where ip='$ip' and data_ins>='".($currenttime - $window)."'", $db_connection)); if($counter_hits >= $max_hits) { in_array($_SERVER['REMOTE_ADDR'],$stat_exclude_array) ? $blocco = 'NO' : $blocco = 'YES'; $testo_email = print_r($_SERVER, true); $testo_email .= "\n\nCounter Hits: $counter_hits"; $testo_email .= "\n\nBlocco IP: $blocco"; $test_sub = " ($blocco)"; $Mail_From = "From: PicoPortal ERROR LOG
Error 404: File Not Found Sorry, the requested URL was not found on this server. |