<?php
define('IN_SEO','IN_SEO');
$url = trim($_POST["domain"]?$_POST["domain"]:$_GET["domain"]);
$url = $url?$url:'trip58.com';
$string = file_get_contents("http://data.alexa.com/data/+wQ411en8000lA?cli=10&dat=s&ver=7.0&url=$url");
header("content-Type: text/html; charset=GB2312");
$pat4 = "/POPULARITY URL=\"(.+)\" TEXT=\"(.+)\"\/>/Ui";
preg_match_all($pat4, $string, $array);	
$wordpm2 = $array[2][0]?$array[2][0]:'none';

$string = iconv("UTF-8","GB2312",$string);
$pat1   = "/ HOST=\"(.+)\"/i";
preg_match_all($pat1, $string, $array);
$selurl = $array[1][0]?$array[1][0]:'没有记录';

$pat5 = "/LINKSIN NUM=\"(.+)\"/i";
preg_match($pat5, $string, $array);
$weblink = $array[1]?$array[1]:'0';

$pat6 = "/DATE=\"(.+)\" DAY=\"(.+)\" MONTH=\"(.+)\" YEAR=\"(.+)\"/i";
preg_match_all($pat6, $string, $array);
$sldate = $array[1][0]?$array[1][0]:'没有记录';

$pat7 = "/CAT ID=\"(.+)\" TITLE=\"(.+)\" CID=\"(.+)\"/i";
preg_match_all($pat7, $string, $array);
if($array[1][0]){
   $a  = array_reverse(explode('/',$array[1][0]));
   $aa = $a[1].'/'.$a[0];
}
$ml = $aa?$aa:'该站未被亚马逊分类目录收录';

$pat8 = "/SPEED TEXT=\"(.+)\" PCT=\"(.+)\"/i";
preg_match_all($pat8, $string, $array);
$speedtext = $array[1][0]?$array[1][0]:'没有记录';
$speedpct  = $array[2][0]?$array[2][0]:'没有记录';

$pat9 = "/LANG LEX=\"(.+)\"/i";
preg_match_all($pat9, $string, $array);
$country = $array[1][0]?$array[1][0]:'不详';

$pat10 = "/OWNER NAME=\"(.+)\"/i";
preg_match_all($pat10, $string, $array);
$owner = $array[1][0]?$array[1][0]:'不详';

$pat11= "/EMAIL ADDR=\"(.+)\"/i";
preg_match_all($pat11, $string, $array);
$email = $array[1][0]?$array[1][0]:'不详';

$pat12 = "/NUMBER=\"(.+)\"/i";
preg_match_all($pat12, $string, $array);
$phone = $array[1][0]?$array[1][0]:'不详';

$pat13 = "/ADDR STREET=\"(.+)\" CITY/i";	
preg_match_all($pat13, $string, $array);
$addr = $array[1][0]?$array[1][0]:'不详';

$pat14 = "/DESC=\"(.+)\"/i";
preg_match_all($pat14, $string, $array);
$site = $array[1][0]?$array[1][0]:"该站点还没有向ALEXA提交任何介绍信息。<a href=http://www.alexa.com/data/details/contact_info?url=".$selurl." target=_blank><font color=#ff0000>&nbsp;>>>现在提交信息<<<&nbsp;</font></a>";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="Robots" content="All"  />
<meta name="Keywords" content="alexa,排名,查询" />
<meta name="Description" content="专业提供中文ALEXA世界排名查询服务。" />
<base onmouseover="window.status='中文ALEXA世界排名查询服务由站长中国免费提供';return true">
<title><?php echo $selurl?>的Alexa网站排名、流量、访问量、页面浏览量查询|中文ALEXA排名查询服务-365导航</title>
<link rel="stylesheet" href="images/Style.css" type="text/css" media="all" />
<link href="../css/jiuyaocha.css" rel="stylesheet" type="text/css" />
<script src="ajax.js" type="text/javascript"></script>
<SCRIPT LANGUAGE="JavaScript">
function killErrors() {
return true;
}
window.onerror = killErrors;
var Sys_LoadStart=new Date();
window.onload=function ajaxs(){
	 var domain = document.getElementById('domain').value;
	 talktoServer('ajaxs.php?action=rangs&domain='+domain,'changestext',"html");   
     talktoServer('ajaxs.php?action=sonvisits&domain='+domain,'changestext2',"html");
     talktoServer('ajaxs.php?action=visits&domain='+domain,'changestext3',"html");   
}
</SCRIPT>
</head>

<body>
<body>
<script language="javascript" src="../adjs/header1.js"></script>
<div class="flo_l nav"><ul><li class="nav2"><a href="../" >生活查询</a></li>
<li class="nav2"><a href="../yule" >娱乐工具</a></li>
<li class="nav2"><a href="../caijing" >财经商务</a></li>
<li class="nav2"><a href="../jisuan" >计算/学习</a></li>
<li class="nav2"><a href="../wangluo" >电脑网络</a></li>
<li class="nav1"><a href="../zhanzhang" >站长工具</a></li>
<li class="nav2"><a href="../jiaotong" >交通查询</a></li>
</ul></div>
</div></div></div>
<div class="w950">
<div class="knr"><div class="xdh">
<ul id="ful">
<SCRIPT language=javascript src="../js1/zhanzhang.js" type=text/javascript></SCRIPT>
</ul></div></div>
<div class="head3"></div></div>

<script language="javascript" type="text/javascript" src="../js1/ad.js"></script>
<div style='height:5px;'></div>
<div class="w950"><div class="head4"><div class="Ico_aBox">
      <div class="Ico_aBox_icon INico844"></div>
	  <div class="Ico_aBox_tit">alexa网站排名</div>
	  <div class="Ico_aBox_intro">ALEXA世界排名查询服务</div>
    </div>
  </div>
  <div class="knr">
    <div class="mobile_main">
<!--头部代码开始-->
<div class="colspan">
<div class="title"><a href="">中文 Alexa 网站排名、流量、访问量、页面浏览量查询系统 PoweredBy tt365.org</a> | 推荐：<a href="../">365导航工具</a> <a href="../zhanzhang">站长工具</a> <a title="把查询地址加到收藏夹，以方便以后查询！" onClick="window.external.addFavorite('','网站ALEXA排名查询')"></a></div>
<div class="data">
<form name="form1" action="" method="POST"> 
<table width="780" cellspacing="0">
	<tr>
		<td>
请输入要查询的网址: HTTP://WWW. <input type="text" style="border:1px solid #999900;padding:3px;font-weight:bold;font-size:15px" id="domain" name="domain" size="28" id="url" value="<?php echo $selurl?>" onKeyDown="if(event.keyCode==13)document.form1.submit();" class="input_form"><script>document.alexasearch.domain.focus()</script>&nbsp;<input type="submit" value="查 询" name="submit" class="submit_button" id="sub" style="margin-top:9px;padding-top:2px;width:100px;height:27px">&nbsp;&nbsp;
</td>
	</tr>	
</table>
</form>
</div>
</div>
<!--False-->
<!--头部代码结束-->
<div class="colspan"> 
	<div class="title">网站 <b><font color="#FFFF00">www.<?php echo $selurl?></font></b> 在 Alexa 上全球综合排名第 <b><font color="#FFFF00"><?php echo $wordpm2?></font></b> 位</div> 
	<div class="data">
		<table width="780" cellspacing="0" class="DoubleColorTable">
	<tr>
		<td colspan="7">只提供ALEXA排名查询服务，请勿咨询如何提高ALEXA排名和ALEXA排名作弊，不赞同和鼓励任何作弊行为。</td>
	</tr>
	<tr>
		<td width="210" height="155" rowspan="7"><div id="view_pic"><a href="http://www.<?php echo $selurl?>" target="_blank"><Img Src="http://open.thumbshots.org/image.pxf?url=http://www.<?php echo $selurl?>" border="0" width="202" height="147"></a></div></td>
		<td width="66">站点名称:</td>
		<td width="100" align="left" title="<?php echo $selurl?>"><?php echo $selurl?></td>
		<td width="66">网站站长:</td>
		<td width="100" align="left" title="<?php echo $owner?>"><?php echo $owner?></td>
		<td width="66">电子信箱:</td>
		<td width="174" align="left" title="<?php echo $email?>"><?php echo $email?></td>
	</tr>
	<tr>
		<td width="66">综合排名:</td>
		<td width="100" align="left"><span id="Rank"><?php echo $wordpm2?></span></td>
		<td width="66">下期排名:</td>
		<td width="100" align="left"><span id="NextRank"><?php echo $wordpm2?></span></td>
		<td width="66">收录日期:</td>
		<td width="174" align="left"><?php echo $sldate?></td>
	</tr>
	<tr>
		<td width="66">所属国家:</td>
		<td width="100" align="left"><?php echo $country?></td>
		<td width="66">编码方式:</td>
		<td width="100" align="left">不详</td>
		<td width="66">访问速度:</td>
		<td width="174" align="left" title="页面平均载入时间<?php echo $speedtext?>Ms,比62%的网站访问速度快。结论：速度正常。"><?php echo $speedtext?> Ms      /      <?php echo $speedpct?>分</td>
	</tr>
	<tr>
		<td width="66">成人内容:</td>
		<td width="100" align="left">NO</td>
		<td width="66">反向链接:</td>
		<td width="100" align="left" title="点击数字查看详细反向链接站点"><a href="http://www.alexa.com/data/ds/linksin?q=link:<?php echo $selurl?>" target="_blank"><?php echo $weblink?></a> 个</td>
		<td width="66">联系电话:</td>
		<td width="174" align="left" title="<?php echo $phone?>"><?php echo $phone?></td>
	</tr>
	<tr>
		<td width="66">详细地址:</td>
		<td width="500" colspan="5" align="left" title="<?php echo $addr?>"><?php echo $addr?></td>
	</tr>
	<tr>
		<td width="66">网站简介:</td>
		<td width="500" colspan="5" align="left" title="<?php echo $site?>。"><?php echo $site?></td>
	</tr>
	<tr>
		<td width="66" style="color:#ff0000;">站长推荐:</td>
		<td width="260" colspan="3" align="left"><a href="../" target="_blank"><font style="color:#ff0000;font-weight:bold;">365导航工具</font></a>  <a href="../zhanzhang/" target="_blank"><font style="color:#ff0000;font-weight:bold;">站长工具</font></a></td>
		<td width="66">所属目录:</td>
		<td width="174" align="left" title="<?php echo $ml?>"><?php echo $ml?></td>
	</tr>
	<tr>
		<td><a href="http://alexa.chinaz.com/Update_Pic.asp?Domain=<?php echo $selurl?>" target="_blank">更新缩略图</a> | <a href="http://www.alexa.com/edit/index/<?php echo $selurl?>" target="_blank">修改信息</a> | <a href="http://www.alexa.com/data/details/editor?type=rl&url=<?php echo $selurl?>" target="_blank">提交链接</a></td> 
		<td colspan="6"><div><a href="../pr" target="_blank">GOOGLE PR</a> | 搜索引擎收录 | 反向链接查询 | 域名删除时间 | <a href="../whois" style="cursor:hand"><font color="#ff0000">Whois信息查询</font></a> | <a href="../ip" target="_blank">服务器IP查询</a></div></td>
	</tr>
</table>
	</div> 
</div> 
<div id="text_ad2"></div> 
<div class="colspan">  
	<div class="title">站点 <strong><?php echo $selurl?></strong> 的 Alexa 排名查询结果  | <a href="http://www.alexa.com/data/details/traffic_details/<?php echo $selurl?>" target="_blank">Alexa官方数据</a></div> 
  <div class="data"  id="changestext">
  		<table width="780" cellspacing="0">
			<tr>
				<td width="12%" class="project_left">当日排名</td>
				<td width="12%" class="project">排名变化趋势</td>
				<td width="12%" class="project">一周平均排名</td>
				<td width="12%" class="project">排名变化趋势</td>
				<td width="12%" class="project">一月平均排名</td>
				<td width="12%" class="project">排名变化趋势</td>
				<td width="12%" class="project">三月平均排名</td>
				<td width="12%" class="project">排名变化趋势</td>
			</tr>
<?php if($url=='<?php echo $selurl?>'){
?>
			<tr height="40">
				<td class="rank_left" id="ranks1">--</td>
				<td class="rank" id="ranks2">--</td>
				<td class="rank" id="ranks3">52,701</td>
				<td class="rank" id="ranks4"><img src=images/Up_arrow.gif border=0><font color=#FF0000>29,873 </font></td>
				<td class="rank" id="ranks5">72,450</td>
				<td class="rank" id="ranks6"><img src=images/Down_arrow.gif border=0><font color=#FF0000>4,699 </font></td>
				<td class="rank" id="ranks7"><?php echo $wordpm2?></td>
				<td class="rank" id="ranks8"><img src=images/Down_arrow.gif border=0><font color=#FF0000>23,130 </font></td>
			</tr>
<?php }else{
?>
  			<tr height="40">
				<td class="rank_left" id="ranks1"><img src="images/Load.gif" /></td>
				<td class="rank" id="ranks2"><img src="images/Load.gif" /></td>
				<td class="rank" id="ranks3"><img src="images/Load.gif" /></td>
				<td class="rank" id="ranks4"><img src="images/Load.gif" /></td>
				<td class="rank" id="ranks5"><img src="images/Load.gif" /></td>
				<td class="rank" id="ranks6"><img src="images/Load.gif" /></td>
				<td class="rank" id="ranks7"><?php echo $wordpm2?></td>
				<td class="rank" id="ranks8"><img src="images/Load.gif" /></td>
			</tr>
<?php }
?>
		</table>
  </div>
</div>
 <div id="pic_ad2"></div>
<div class="colspan"> 
	<div class="title">中文Alexa查询系统使用说明及相关帮助</div> 
	<div class="data">
		<table width="780" cellspacing="0">
			<tr>
				<td class="rank_left">
中文Alexa网站排名数据来自ALEXA.COM官方，为方便国内站长查询自己网站排名数据，本站已经把所得数据精心整理显示，数据跟Alexa保持同步！欢迎大家使用！<br/> 
			  </td>
			</tr>
		</table>
	</div> 
</div>
    </div>
  </div>
  <div class="head3"></div>
  </li>
  </ul>
</div>
<script language="javascript" src="../adjs/footer.js"></script>
<div style="display:none">
<script language="javascript" src="../adjs/tongji.js"></script></div>
</body>
</html>