<?php
/*
if( $_SERVER['HTTP_HOST'] == 'cha.wa86.com' )
{
	header("Location: http://cha.wa86.com/");
	exit();
}
*/
/*
*功能:对URL进行编码
*参数说明:$web_url 网站URL，不包含"http://",例如cha.wa86.com
*完成时间:2011年9月7日
*/
function HashURL($url)
{$SEED = "Mining PageRank is AGAINST GOOGLE'S TERMS OF SERVICE. Yes, I'm talking to you, scammer.";
    $Result = 0x01020345;
    for ($i=0; $i<strlen($url); $i++) 
    {
        $Result ^= ord($SEED{$i%87}) ^ ord($url{$i});
        $Result = (($Result >> 23) & 0x1FF) | $Result << 9;
    }
    return sprintf("8%x", $Result);
}


/*
*功能:获取pagerank
*参数说明:$domain 网站域名，不包含"http://",例如cha.wa86.com
*完成时间:2011年9月7日
*/
function pagerank($domain)
{	
	$StartURL = "http://www.google.com/search?client=navclient-auto&features=Rank:&q=info:";

	$GoogleURL = $StartURL.$domain. '&ch='.HashURL($domain);

	$fcontents = file_get_contents("$GoogleURL");

	$pagerank = substr($fcontents,9);
	if (!$pagerank) return "0";else return $pagerank;
}

$chaxun_bool = 0;

if ( isset($_GET['website']) )
{
	$chaxun_bool = 1;

	$website = $_GET['website'];
	$website = str_replace("http://","",$website);

	@ $pr = pagerank("$website");
	@ date_default_timezone_set(PRC);

	$now_date = date("Y年n月j日 G时i分s秒");
}
?>
<!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>
<title>SEO伪原创制作_站长工具_365网址导航_天天导航网</title>
<meta name="keywords" content="SEO伪原创制作,365日历,365官方,365音乐,网址导航,周公解梦,实用查询,IP地址,工具大全" />
<meta name="description" content="365官方导航(tt365.org)_天天导航网,提供IP|黄历|周公解梦|万年历|手机归属地|区号|身份证|天气预报查询|各种实用查询">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../css/jiuyaocha.css" rel="stylesheet" type="text/css" />
<link href="../favicon.ico" rel="shortcut icon" />
<style type="text/css">
body{
	text-align:center;
	margin:0;
	padding:0;
	font-family:"微软雅黑";
}

/*头部logo*/
h1{
	margin-top:0px;
}
h1 a{
	display:block;
	width:238px;
	height:80px;
	margin:0 auto;
	background:url(/img/pr/logo.gif) no-repeat;
	text-indent:-9999px;
	position:relative;
	
}
/*提交表单*/
#website{
	border:1px solid #CCC;
	border-top-color:#666;
	width:400px;
	height:22px;
	font-weight:bold;

	font-family:Helvetica Neue,Helvetica,Arial,sans-serif;

	font-size:20px;
	line-height:30px;
	color:#333;
}
#chapr{
	font-family:"微软雅黑";
	margin:10px 0;
	font-size:15px;
}


/*other内*/
#other{
	font-size:11px;
	color:#666;
}
#other a{
	color:#245FA5;
}
#other a:hover{
	color:#6DA7E7;
}
#pr_info{
	margin:0 0 0px;
	font-size:20px;
}
#pr_info b{
	color:#2F9BCD;
}
#pr_info span{
	font-size:13px;
}
</style>
</head>
<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 INico835"></div>
	  <div class="Ico_aBox_tit">SEO伪原创制作</div>
	  <div class="Ico_aBox_intro">伪原创在线制作-SEO</div>
    </div>
  </div>
  <div class="knr">
    <div class="mobilo_main">
	<div class="self_ip" ></div>
      <iframe frameborder="0" marginheight="0" marginwidth="0" border="0"  scrolling="no" height="535" width="100%" src="seo.php" ></iframe></br>
    </div>
  </div>
  <div class="head3"></div>
</div>
<script language="javascript" type="text/javascript" src="../ip/ip.php"></script>
<script language="javascript" src="../adjs/footer.js"></script>
<div style="display:none">
<script language="javascript" src="../adjs/tongji.js"></script></div>
</body>
</html>