<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[网站PR值查询的代码]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[代码编程]]></category>
<pubDate>Mon, 02 Oct 2006 00:26:29 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	1. 将以下代码存档为pr.php<br/><br/><div class="code"><br/>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br/>&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br/>&lt;head&gt;<br/>&lt;title&gt;网站PR值查询 - &lt;? echo $_GET&#91;&quot;url&quot;&#93;; ?&gt;&lt;/title&gt;<br/>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt;<br/>&lt;style type=&quot;text/css&quot;&gt;<br/> &nbsp;table, tr, td &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#123; font-family: Verdana,Arial,宋体; font-size: 12px; color: #333333 &#125;<br/> &nbsp;body &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#123; font: 12px Verdana,宋体; background-color: #fcfcfc; padding: 0; margin: 0 &#125;<br/> &nbsp;a:link, a:visited, a:active &nbsp; &nbsp; &#123; color: #000099; text-decoration: none&#125;<br/> &nbsp;a:hover &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#123; color: #0000ff; text-decoration: none&#125;<br/> &nbsp;FORM &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#123; padding: 0; margin: 0 &#125; <br/><br/> &nbsp;.textbox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#123; border: 1px solid #000000; padding: 1px; width: 100% &#125;<br/> &nbsp;.headertable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#123; background-color: #FFFFFF; border: 1px solid black; padding: 2px &#125;<br/> &nbsp;.title &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#123; border: 1px solid #000000; font-size: 12px; font-weight: bold; line-height: 150%; color: #FFFFFF; height: 25px; background-color: #5A7594&#125;<br/> &nbsp;.table1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#123; background-color: #FFFFFF; width: 100%; align: center; border: 1px solid black&#125;<br/> &nbsp;.tablewrap &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#123; border: 1px dashed #777777; background-color: #EFEFEF; vertical-align: middle&#125;<br/> &nbsp;.tdrow1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#123; background-color: #E4E4E4; padding: 3px; vertical-align: middle&#125;<br/> &nbsp;.tdrow2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#123; background-color: #EFEFEF; padding: 3px; vertical-align: middle&#125;<br/> &nbsp;.tdtop &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#123; font-weight: bold; height: 24px; line-height: 150%; color: #FFFFFF&#125;<br/> &nbsp;.note &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#123; margin: 10px; padding: 5px; border: 1px dashed #555555; background-color: #FFFFFF &#125;<br/>&lt;/style&gt;<br/>&lt;/head&gt;<br/>&lt;body&gt;<br/> &nbsp; &nbsp; &nbsp;&lt;table align=&quot;center&quot; class=&quot;tablewrap&quot; cellpadding=&quot;0&quot; cellspacing=&quot;3&quot; width=&quot;350&quot;&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td align=&quot;center&quot; class=&quot;title&quot;&gt;网站PR值查询&lt;/td&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;table class=&quot;table1&quot; align=&quot;center&quot; width=&quot;100%&quot;&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;<br/>&lt;form method=&quot;GET&quot;&gt;<br/>&lt;input name=&quot;url&quot;&gt;<br/>&lt;input type=&quot;submit&quot; value=&quot;Get PageRank&quot;&gt;<br/>&lt;/form&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/td&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/table&gt;<br/>&lt;p align=&quot;center&quot;&gt;<br/>&lt;?<br/>if(!empty($_GET&#91;&quot;url&quot;&#93;))<br/>&#123;<br/>include &quot;google_pagerank.php&quot;;<br/>print &quot;您查询的网站 &lt;a href=&#039;http://&quot;.$_GET&#91;&quot;url&quot;&#93;.&quot;&#039;&gt;&quot;.$_GET&#91;&quot;url&quot;&#93;.&quot;&lt;/a&gt; 的PR值是 &quot;.(int)getrank($_GET&#91;&quot;url&quot;&#93;).&quot; &quot;;<br/>&#125;<br/>?&gt;<br/>&lt;/p&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/td&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;<br/> &nbsp; &nbsp; &nbsp;&lt;/table&gt;<br/>&lt;/body&gt;<br/>&lt;/html&gt;<br/><br/></div><br/><br/>2. 将以下代码存档为google_pagerank.php<br/><br/><div class="code"><br/>&lt;?<br/>/*<br/>Google PR v2.0<br/>author zhil (zhil@ukr.net)<br/>GoogleToolbar 2.0.111-big<br/>*/<br/>function fadd($v1,$v2)<br/>&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp;$v3 = $v1 + $v2;<br/> &nbsp; &nbsp; &nbsp; &nbsp;if($v3 &gt; 4294967295)$v3 = $v3 - 4294967296;<br/>// &nbsp; &nbsp; &nbsp;print $v3.&quot;&lt;BR&gt;&quot;;<br/> &nbsp; &nbsp; &nbsp; &nbsp;return $v3;<br/>&#125;<br/>function fsub($v1,$v2)<br/>&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp;$v3 = $v1 - $v2;<br/> &nbsp; &nbsp; &nbsp; &nbsp;if($v3 &lt; 0 )$v3 = $v3 + 4294967296;<br/> &nbsp; &nbsp; &nbsp; &nbsp;if($v3 &gt; 4294967295)$v3 = $v3 - 4294967296;<br/>// &nbsp; &nbsp; &nbsp;print $v3.&quot;&lt;BR&gt;&quot;;<br/> &nbsp; &nbsp; &nbsp; &nbsp;return $v3;<br/>&#125;<br/>function fdl($v1,$v2)<br/>&#123;<br/>// &nbsp; &nbsp; &nbsp;if($v1 &gt; 2147483647)&#123;$v1 = 2147483647;$v2++;&#125;<br/> &nbsp; &nbsp; &nbsp; &nbsp;$v3 = $v1 &lt;&lt; $v2;<br/> &nbsp; &nbsp; &nbsp; &nbsp;while($v3 &gt; 4294967295)$v3 = $v3 - 4294967296;<br/> &nbsp; &nbsp; &nbsp; &nbsp;return $v3;<br/>&#125;<br/>function fdr($v1,$v2)<br/>&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp;if($v1 &gt; 2147483647)&#123;$v1 = floor($v1/2);$v2--;&#125;<br/> &nbsp; &nbsp; &nbsp; &nbsp;$v3 = $v1 &gt;&gt; $v2;<br/>// &nbsp; &nbsp; &nbsp; &nbsp;while($v3 &gt; 4294967295)$v3 = $v3 - 4294967296;<br/> &nbsp; &nbsp; &nbsp; &nbsp;return $v3;<br/>&#125;<br/>function fxr($v1,$v2)<br/>&#123; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp;$v3 = $v1 ^ $v2;<br/> &nbsp; &nbsp; &nbsp; &nbsp;while($v3 &gt; 4294967295)$v3 = $v3 - 4294967296;<br/> &nbsp; &nbsp; &nbsp; &nbsp;while($v3 &lt; 0)$v3 = $v3 + 4294967296;<br/> &nbsp; &nbsp; &nbsp; &nbsp;return $v3;<br/>&#125;<br/>function z($var)<br/>&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp;GLOBAL $$var;<br/> &nbsp; &nbsp; &nbsp; &nbsp;print $var.&quot; = &quot;.$$var.&quot;&lt;HR&gt;&quot;;<br/>&#125;<br/>function get_ch($url)<br/>&#123;<br/>$c1 = 0xE6359A60;<br/>$c2 = 0x9E3779B9;<br/>$url = &quot;info:&quot;.$url;<br/>//z(&#039;url&#039;); <br/><br/>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;uint $_eax, $_edi, $_ecx, $_edx, _esi, $_edi;<br/>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;uint _var8, _var4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br/><br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_var4 = strlen($url);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;GLOBAL $_eax,$_ebx,$_ecx,$_edx,$_edi,$_esi;<br/><br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_esi = $c1;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_edi = $_ebx = $c2;<br/><br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ($_var4 &gt; 11) <br/>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;goto loc_1002FCD6;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_var8 = floor($_var4 / 12);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_ecx = 0;<br/><br/>//loc_1002FBFB:<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;while($_var8 &gt; 0)<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0x7)&#93;);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_edx = ord($url&#91;(int)($_ecx+0x6)&#93;);<br/>$_eax = fdl($_eax,8);<br/>$_eax = fadd($_eax,$_edx);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_edx = ord($url&#91;(int)($_ecx+0x5)&#93;);<br/>$_eax = fdl($_eax,8);<br/>$_eax = fadd($_eax,$_edx);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_edx = ord($url&#91;(int)($_ecx+0x4)&#93;);<br/>$_edx = fadd($_edx,$_edi);<br/>$_eax = fdl($_eax,8);<br/>$_edi = fadd($_edx,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0xB)&#93;);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_edx = ord($url&#91;(int)($_ecx+0xA)&#93;);<br/>$_eax = fdl($_eax,8);<br/>$_eax = fadd($_eax,$_edx);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_edx = ord($url&#91;(int)($_ecx+0x9)&#93;);<br/>$_eax = fdl($_eax,8);<br/>$_eax = fadd($_eax,$_edx);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_edx = ord($url&#91;(int)($_ecx+0x8)&#93;);<br/>$_edx = fadd($_edx,$_esi);<br/>$_eax = fdl($_eax,8);<br/>$_esi = fadd($_edx,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_edx = ord($url&#91;(int)($_ecx+0x3)&#93;);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0x2)&#93;);<br/>$_edx = fdl($_edx,8);<br/>$_edx = fadd($_edx,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0x1)&#93;); <br/>$_edx = fdl($_edx,8);<br/>$_edx = fadd($_edx,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0x0)&#93;);<br/>$_edx = fdl($_edx,8);<br/>$_edx = fadd($_edx,$_eax);<br/>$_edx = fsub($_edx,$_edi);<br/>$_edx = fsub($_edx,$_esi);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_esi;<br/>$_eax = fdr($_eax,13);<br/>$_edx = fadd($_edx,$_ebx);<br/>$_edx = fxr($_edx,$_eax);<br/>$_edi = fsub($_edi,$_edx);<br/>$_edi = fsub($_edi,$_esi);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_edx;<br/>$_eax = fdl($_eax,8);<br/>$_edi = fxr($_edi,$_eax);<br/>$_esi = fsub($_esi,$_edi);<br/>$_esi = fsub($_esi,$_edx);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_edi;<br/>$_eax = fdr($_eax,13);<br/>$_esi = fxr($_esi,$_eax);<br/>$_edx = fsub($_edx,$_edi);<br/>$_edx = fsub($_edx,$_esi);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_esi;<br/>$_eax = fdr($_eax,12);<br/>$_edx = fxr($_edx,$_eax);<br/>$_edi = fsub($_edi,$_edx);<br/>$_edi = fsub($_edi,$_esi);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_edx;<br/>$_eax = fdl($_eax,16);<br/>$_edi = fxr($_edi,$_eax);<br/>$_esi = fsub($_esi,$_edi);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_var4 -= 12; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br/>$_esi = fsub($_esi,$_edx);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_edi;<br/>$_eax = fdr($_eax,5);<br/>$_esi = fxr($_esi,$_eax);<br/>$_edx = fsub($_edx,$_edi);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_esi;<br/>$_eax = fdr($_eax,3);<br/>$_edx = fsub($_edx,$_esi);<br/>$_edx = fxr($_edx,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_ebx = $_edx; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br/>$_edi = fsub($_edi,$_ebx);<br/>$_edi = fsub($_edi,$_esi);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_ebx;<br/>$_eax = fdl($_eax,10);<br/>$_edi = fxr($_edi,$_eax);<br/>$_esi = fsub($_esi,$_edi);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_edi;<br/>$_esi = fsub($_esi,$_ebx);<br/>$_eax = fdr($_eax,15);<br/>$_esi = fxr($_esi,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_ecx += 12;<br/>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;z(&#039;_eax&#039;);z(&#039;_ebx&#039;);z(&#039;_ecx&#039;);z(&#039;_edx&#039;);z(&#039;_edi&#039;);z(&#039;_esi&#039;);die();<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_var8 --;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#125;<br/>&#125;else<br/>&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_ecx = 0;<br/>&#125;<br/><br/>//loc_1002FCD9: &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_esi += strlen($url);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_var4;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax --;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ($_eax &lt; 11)// goto loc_1002FD81;<br/>&#123;<br/>/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch ($_eax) &#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case 0x0: <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case 0x1: <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case 0x2: <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case 0x3: <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case 0x4: <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case 0x5: <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case 0x6: <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case 0x7: <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case 0x8: <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case 0x9: <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case 0xA: <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#125;*/<br/>//loc_1002FCF0: // case 0xa<br/>if($_eax == 0xa)<br/>&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0xA)&#93;);<br/>$_eax = fdl($_eax,24);<br/>$_esi = fadd($_esi,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$s1 = true;<br/>&#125;<br/>//loc_1002FCF9: // case 0x9<br/>if(($_eax == 0x9)&#124;&#124;$s1)<br/>&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0x9)&#93;);<br/>$_eax = fdl($_eax,16);<br/>$_esi = fadd($_esi,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$s2 = true;<br/>&#125;<br/>//loc_1002FD02: // case 0x8<br/>if(($_eax == 0x8)&#124;&#124;$s2)<br/>&#123;<br/><br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0x8)&#93;);<br/>$_eax = fdl($_eax,8);<br/>$_esi = fadd($_esi,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$s3 = true;<br/>&#125;<br/>//loc_1002FD0B: // case 0x7<br/>if(($_eax == 0x7)&#124;&#124;$s3)<br/>&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0x7)&#93;);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_edx = ord($url&#91;(int)($_ecx+0x6)&#93;);<br/>$_eax = fdl($_eax,8);<br/>$_eax = fadd($_eax,$_edx);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_edx = ord($url&#91;(int)($_ecx+0x5)&#93;);<br/>$_eax = fdl($_eax,8);<br/>$_eax = fadd($_eax,$_edx);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_edx = ord($url&#91;(int)($_ecx+0x4)&#93;);<br/>$_eax = fdl($_eax,8);<br/>$_edx = fadd($_edx,$_edi);<br/>$_edi = fadd($_edx,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$g1 = true;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//goto loc_1002FD47;<br/>&#125;<br/>//loc_1002FD2F: // case 0x6<br/>if(($_eax == 0x6))<br/>&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0x6)&#93;);<br/>$_eax = fdl($_eax,16);<br/>$_edi = fadd($_edi,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$s5 = true;<br/>&#125;<br/>//loc_1002FD38: // case 0x5<br/>if(($_eax == 0x5)&#124;&#124;$s5)<br/>&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0x5)&#93;);<br/>$_eax = fdl($_eax,8);<br/>$_edi = fadd($_edi,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$s6 = true;<br/>&#125;<br/>//loc_1002FD41: // case 0x4<br/>if(($_eax == 0x4)&#124;&#124;$s6)<br/>&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0x4)&#93;);<br/>$_edi = fadd($_edi,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$s7 = true;<br/>&#125;<br/>//loc_1002FD47: // case 0x3<br/>if(($_eax == 0x3)&#124;&#124;$g1&#124;&#124;$s7)<br/>&#123; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0x3)&#93;);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_edx = ord($url&#91;(int)($_ecx+0x2)&#93;);<br/>$_eax = fdl($_eax,8);<br/>$_eax = fadd($_eax,$_edx);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_edx = ord($url&#91;(int)($_ecx+0x1)&#93;);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_ecx = ord($url&#91;(int)($_ecx+0x0)&#93;);<br/>$_eax = fdl($_eax,8);<br/>$_eax = fadd($_eax,$_edx);<br/>$_eax = fdl($_eax,8);<br/>$_ecx = fadd($_ecx,$_ebx);<br/>$_ebx = fadd($_ecx,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$g2 = true;<br/>&#125;<br/>//loc_1002FD6A: // case 0x2<br/>if($_eax == 0x2)<br/>&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0x2)&#93;);<br/>$_eax = fdl($_eax,16);<br/>$_ebx = fadd($_ebx,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$s8 = true;<br/>&#125;<br/>//loc_1002FD73: // case 0x1<br/>if(($_eax == 0x1)&#124;&#124;$s8)<br/>&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0x1)&#93;);<br/>$_eax = fdl($_eax,8);<br/>$_ebx = fadd($_ebx,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$s9 = true;<br/>&#125;<br/>if(($_eax == 0x0)&#124;&#124;$s9)<br/>&#123;<br/>//loc_1002FD7C: // case 0x0<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = ord($url&#91;(int)($_ecx+0x0)&#93;);<br/>$_ebx = fadd($_ebx,$_eax);<br/>&#125;<br/>&#125;<br/>//loc_1002FD81: // default<br/>$_ebx = fsub($_ebx,$_edi);<br/>$_ebx = fsub($_ebx,$_esi);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_esi;<br/>$_eax = fdr($_eax,13);<br/>$_ebx = fxr($_ebx,$_eax);<br/>$_edi = fsub($_edi,$_ebx);<br/>$_edi = fsub($_edi,$_esi);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_ebx;<br/>$_eax = fdl($_eax,8);<br/>$_edi = fxr($_edi,$_eax);<br/>$_esi = fsub($_esi,$_edi);<br/>$_esi = fsub($_esi,$_ebx);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_edi;<br/>$_eax = fdr($_eax,13);<br/>$_esi = fxr($_esi,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_ebx-= $_edi;<br/>$_ebx = fsub($_ebx,$_esi);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_esi;<br/>$_eax = fdr($_eax,12);<br/>$_ebx = fxr($_ebx,$_eax);<br/>$_edi = fsub($_edi,$_ebx);<br/>$_edi = fsub($_edi,$_esi);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_ebx;<br/>$_eax = fdl($_eax,16);<br/>$_edi = fxr($_edi,$_eax);<br/>$_esi = fsub($_esi,$_edi);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_edi;<br/>$_esi = fsub($_esi,$_ebx);<br/>$_eax = fdr($_eax,5);<br/>$_esi = fxr($_esi,$_eax);<br/>$_ebx = fsub($_ebx,$_edi);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_eax = $_esi;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_ecx = $_eax;<br/>$_ebx = fsub($_ebx,$_eax);<br/>$_ecx = fdr($_ecx,3);<br/>$_ebx = fxr($_ebx,$_ecx);<br/>$_edi = fsub($_edi,$_ebx);<br/>$_edi = fsub($_edi,$_eax);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_ecx = $_ebx;<br/>$_ecx = fdl($_ecx,0xA);<br/>$_edi = fxr($_edi,$_ecx);<br/>$_eax = fsub($_eax,$_edi);<br/>$_eax = fsub($_eax,$_ebx);<br/>$_edi = fdr($_edi,0xF);<br/>$_eax = fxr($_eax,$_edi);<br/> &nbsp; &nbsp; &nbsp; &nbsp;return &quot;6&quot;.$_eax;<br/>&#125;<br/>function getrank($url)<br/>&#123;<br/><br/> &nbsp; &nbsp; &nbsp; &nbsp;ob_start();<br/><br/> &nbsp; &nbsp; &nbsp; &nbsp;$ch = curl_init();<br/><br/> &nbsp; &nbsp; &nbsp;curl_setopt($ch, CURLOPT_URL, &quot;http://66.102.11.104/search?client=navclient-auto&amp;ch=&quot;.get_ch($url).&quot;&amp;ie=UTF-8&amp;oe=UTF-8&amp;features=Rank&amp;q=info:&quot;.$url);<br/>// &nbsp; &nbsp; &nbsp;print get_ch($url);die();<br/>// &nbsp; &nbsp; &nbsp; &nbsp;curl_setopt($ch, CURLOPT_URL, &quot;http://66.102.11.104/search?client=navclient-auto&amp;ch=6517667070&amp;ie=UTF-8&amp;oe=UTF-8&amp;features=Rank&amp;q=info:http://www.skinz.org&quot;);<br/>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; http:///search?client=navclient-auto&amp;ch=6517667070&amp;ie=UTF-8&amp;oe=UTF-8&amp;features=Rank&amp;q=info:http%3A%2F%2Fwww%2Eskinz%2Eorg<br/> &nbsp; &nbsp; &nbsp; &nbsp;curl_setopt($ch, CURLOPT_HEADER, 0);<br/> &nbsp; &nbsp; &nbsp; &nbsp;curl_setopt($ch, CURLOPT_USERAGENT, &quot;Mozilla/4.0 (compatible; GoogleToolbar 2.0.102-big; Windows XP 5.1)&quot;);<br/> &nbsp; &nbsp; &nbsp; &nbsp;curl_exec($ch);<br/><br/> &nbsp; &nbsp; &nbsp; &nbsp;curl_close($ch);<br/><br/> &nbsp; &nbsp; &nbsp; &nbsp;$content = ob_get_contents();<br/> &nbsp; &nbsp; &nbsp; &nbsp;ob_end_clean();<br/>// &nbsp; &nbsp; &nbsp; &nbsp;print $content;<br/> &nbsp; &nbsp; &nbsp; &nbsp;return substr($content,(strrpos($content,&quot;:&quot;)+1));<br/><br/><br/>&#125;<br/>?&gt;<br/></div><br/>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] 网站PR值查询的代码]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>