$val) $$ti = $val; //调用
if($ztai<1){aw("出错信息:","该查询暂停访问!"); exit();}
//以下一行测试/演示专用 指定网址
if(stristr($_SERVER['HTTP_HOST'],"chalide.cn")) $ztai = (isset($_GET["z"]))?addslashes($_GET["z"]):$ztai;
if($ztai=="5"){ $ztai="25";} //模式5重定义为25
$fu = "
";
session_start();
if(!isset($_SESSION['aiyaha'])) $_SESSION['aiyaha']=date("YmdH").uniqid();
$uid = $_SESSION['aiyaha'];
function sn(){
$usrent = $_SERVER['HTTP_USER_AGENT']; $zt="";
if($usrent==""){
$zt = "请使用常规浏览器[空UA]";
}elseif(preg_match_all('/(\\\x[a-zA-Z0-9_]{1,4}){2,4}/', $usrent)){
$zt = "请使用常规浏览器[疑似攻击代码]";
}elseif(preg_match_all('/(spider|bot|crawler|robot)/i', $usrent)){
$zt = "请使用常规浏览器[疑似蜘蛛爬虫]";
}elseif(preg_match_all('/(curl|requests|robot|python|urllib3|pantest)/i', $usrent)){
//ALittle Dalvik wp_is_mobile Go-http-client等疑
$zt = "请使用常规浏览器[疑似蜘蛛爬虫]";
}elseif(preg_match_all('/(Chrome|Firefox)/i', $usrent, $isc)){
$iscv = explode('.', explode($isc[0][0], $usrent)[1])[0];
if(Trim($iscv,"/") < 50) $zt = "浏览器版本过低,请升级".$isc[1][0]."到较新版本";
}elseif(preg_match_all('/(Gecko|Presto)/i', $usrent)){
//$zt = "该浏览器已淘汰,推荐chrome浏览器或360等国产浏览器的急速模式";
$zt = "";
}elseif(preg_match_all('/(MSIE|Trident)/i', $usrent)){
$zt = "IE浏览器2015年就已淘汰,推荐chrome浏览器或360等国产浏览器的急速模式";
}elseif(preg_match("/\@([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61})?\.)+[a-zA-Z]{2,8}/i", $usrent)){
$zt = "请使用常规浏览器[邮件UA爬虫]";
}elseif(preg_match_all('/(http|https|ftp)/i', $usrent) && preg_match("/([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61})?\.)+[a-zA-Z]{2,8}/i", $usrent)){
$zt = "请使用常规浏览器[疑似爬虫(UA带网址)]";
}else{
$zt = "";
}
return $zt;
}
function aw($Key,$vals){
$html ="
$Key - $vals
*{margin:0;padding:0;text-align:center;}
h1{margin-top:8%;font-size:3.3vw;}
hr{margin:1% 0;}
i{text-align:left;color:gray;font-size:2.2vw;}
$Key
$vals";
echo $html;
}
function wo($Key){
$html ="
\r\n";
$html.="$Key |
";
$html.="
";
echo $html;
}
function ht($ztai){
return <<
.search-box { position: relative; flex: 6;display: flex;}
.rh { flex: 9; border: 1px solid #ccc;}
.close{text-decoration:none;float:right;font-size:24px;background-color:red;color:white;}
.close:hover,.close:focus{cursor:pointer;}
.ee {
position: absolute;
top: 30px;
left: 0;
width: 88vw;
max-height: 300px;
ove