帝国cms分类信息网联系电话查询
本文摘要:if($Type==0){$GetContent = substr($FileStr,0-(strlen($FileStr)-(strpos($FileStr,$StartStr)+strlen($StartStr))));$GetContent = substr($GetContent,0,strpos($GetContent,$EndStr));return $GetContent;}else{$GetContent = substr($FileStr,0-(strlen
if($Type==0){
$GetContent = substr($FileStr,0-(strlen($FileStr)-(strpos($FileStr,$StartStr)+strlen($StartStr))));
$GetContent = substr($GetContent,0,strpos($GetContent,$EndStr));
return $GetContent;
}else{
$GetContent = substr($FileStr,0-(strlen($FileStr)-(strpos($FileStr,$StartStr))));
$GetContent = substr($GetContent,0,strpos($GetContent,$EndStr)+strlen($EndStr));
return $GetContent;
}
}else{
return "";
}
}
/*
函数构建结束
*/
$id=$_GET['id']; //ID
$file = 'phone.txt'; //设定电话文件地址
//如果ID为空退出
if(empty($id))
{
exit();
}
else
{
//查询文件内是否有地址
$myaddress=readfiletext($file,$id);

if ($myaddress) { $showadd=$myaddress; }
else {
//获得号码地址页面
$show=file_get_contents("ip/?q=$id"); //手机号码码段
//写入文件
@$dh=Cut($show,'您的查询: nbsp;',"n /li li ",0);
if(!$dh) {
@$dh=Cut($show,'您的查询: nbsp;',' nbsp; /li li ',0); }
$dh = trim(ereg_replace("rn","",$dh));
$dh =nl2br(preg_replace('/[ ]+/',' ',$dh));
$showadd=$dh;
$dh=$id.'||'.$dh.'||'."rn";
writefiletext ($file,$dh); }
}

?
span a href="#clos" / X关闭 /a /span nbsp; nbsp; font color=red 查询结果 /font
div id=cresult
ul
?php
if ($showadd) {
print_r(str_replace("查询太频繁,暂时禁用", "无", "$showadd")); //$showadd);
}
else {
echo " li 网络服务器忙,请稍后再试 "; }
?
/li
/ul
/div