<?php
require_once('inc.php');
$a=$_GET['q'];

	$TheUrl="http://www.114best.com/ip/114?w=".$a."";
	$TheThie=get_content($TheUrl);
	$TheBody=GetContent($TheThie,'<div id="rl">','<span style="COLOR:red');
	$TheBody=str_replace('img pop=','img title=',$TheBody);
	$TheBody=str_replace('view.gif','images/view.gif',$TheBody);
	$dizhi=GetContent($TheThie,"服务器所在地: <b>","</b><br>");
	$num=GetContent($TheThie,"同IP服务器站点数：<b>","</b><br>");

?>
<HTML>
<HEAD>
<title><?echo $a;?>同IP站点查询_365网址导航_天天导航网</title>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Keywords" content="同IP站点查询,IP反查工具,域名反查工具,IP反查域名工具,365日历,365官方,365音乐">
<meta name="Description" content="365官方导航(tt365.org)_天天导航网,提供同IP站点查询|黄历|周公解梦|万年历|手机归属地|区号|身份证|天气预报查询|各种实用查询">
<style>
P { MARGIN-TOP: 10px }
.border{
	border:1px solid #BAD8DE;
	width:960px;
	text-align:left;
	bottom: 0px;
	clip: rect(auto,auto,0px,auto);
	margin-right: 20px;
	margin-left: 20px;
	padding-right: 20px;
	padding-left: 20px;
	margin-bottom: 5px;
	padding-top: 20px;
	padding-bottom: 5px;
}
H1 { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 14px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px }
H2 { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: normal; FONT-SIZE: 15px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px }
BODY {
	FONT-SIZE: 13px;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
TABLE { FONT-SIZE: 13px }
A { COLOR: #0033cc; FONT-FAMILY: Verdana }
FORM { MARGIN: 0px }
SPAN { COLOR: #5B79BD; FONT-FAMILY: Verdana }
.r P { MARGIN: 5px }
.r A { }
.ln { CLEAR: both; FLOAT: none; WIDTH: 100% }
.l { FONT-SIZE: 15px; FLOAT: left; WIDTH: 77%; WORD-BREAK: break-all; WORD-WRAP: break-word }
.r { FLOAT: right; WIDTH: 20%; WORD-BREAK: break-all; LINE-HEIGHT: 16pt; WORD-WRAP: break-word }
.m { BORDER-RIGHT: #99ccff 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: #99ccff 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 5px; BORDER-LEFT: #99ccff 1px solid; WIDTH: 100%; WORD-BREAK: break-all; LINE-HEIGHT: 22px; PADDING-TOP: 5px; BORDER-BOTTOM: #99ccff 1px solid }
.m A { CURSOR: hand; COLOR: #0033cc; FONT-FAMILY: Verdana; TEXT-DECORATION: underline }
.m IMG { BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; CURSOR: hand; BORDER-BOTTOM: 0px }
.t { BORDER-RIGHT: #dfe8ff 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: #dfe8ff 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 5px; BORDER-LEFT: #dfe8ff 1px solid; WIDTH: 100%; PADDING-TOP: 5px; BORDER-BOTTOM: #dfe8ff 1px solid; BACKGROUND-COLOR: #dfe8ff; WORD-WRAP: break-word }
#W { FONT-SIZE: 16px; PADDING-TOP: 2px; FONT-FAMILY: Verdana; HEIGHT: 1.7em }
</style>
<script>
<!--
function Send_Open() {
	if (document.form1.q.value == "") {
		alert("请先输入网址！");
		document.form1.q.select();
		return false;
	}
	return true;
}

function show(url){
    window.open(url,"_blank");
}
//-->
</script>
</HEAD>
<body>
<iframe frameborder="0" marginheight="0" marginwidth="0" border="0"  scrolling="no" height="282" width="100%" src="header.html" ></iframe>
<form name="form1" method="get" action="index.php">
<table width="800" height="108" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC" class="border">

<tr>
  <td height="38" align="center" bgcolor="#FFFFFF"><strong>请输入你的域名或IP：    </strong></td>
</tr>
<tr><td height="31" align="center" bgcolor="#FFFFFF"><input name="q" type="text" value="<?echo $a;?>" size="34">
    <input type="submit" id="action" value="提交地址"></td>
</tr>
<tr>
  <td height="27" align="center" bgcolor="#FFFFFF"><span class="STYLE1">请在上面输入你的IP或域名地址，可以查询同一IP或域名下有多少个站点！</span></td>
</tr>
</table>

</form>

</p>
<?php
if($a){ ?>
<center>
<div style="color:red;"><span style="color:#333">您的查询：</span><b><?echo $a;?></b>
&nbsp;&nbsp;<span style="color:#333">服务器所在地:</span> <b><?echo $dizhi;?></b>&nbsp;&nbsp;
<span style="color:#333">同IP服务器站点数：</span><b><?echo $num;?></b>
</div>
<br><br>
<div class="border">
<?echo $TheBody;?>
</div>
<?php } ?>
</center>
<script language="javascript" type="text/javascript" src="../js1/ad.js"></script>
<iframe frameborder="0" marginheight="0" marginwidth="0" border="0"  scrolling="no" height="250" width="100%" src="footer.html" ></iframe>
