Ask Google if PR is required

Source: Internet
Author: User
Index. php code [code] title query echo $ _ GET [url];? Prtitleforpolichodgetinputnameurlinputtypesubmitvaluegetpagerankformif (! Empty ($ _ GET [url]) {includegoogle_pagerank.php; print does not contain BRahref. $ _ GET [url]... $ _ GET [url]. a's Google

Index. php code


[Code]
Query echo $ _ GET ["url"];?> Pr


If (! Empty ($ _ GET ["url"])
{
Include "google_pagerank.php ";
Print "does not contain http ://
". $ _ GET [" url "]." pr is ". (int) getrank ($ _ GET [" url "])." ";
}
?>
[/Code]

Code for google_pagerank.php
[Code]
/*
Google PR v2.0
Author zhil (zhil@ukr.net)
GoogleToolbar 2.0.111-big
*/
Function fadd ($ v1, $ v2)
{
$ V3 = $ v1 + $ v2;
If ($ v3> 4294967295) $ v3 = $ v3-4294967296;
// Print $ v3 ."
";
Return $ v3;
}
Function fsub ($ v1, $ v2)
{
$ V3 = $ v1-$ v2;
If ($ v3 <0) $ v3 = $ v3 + 4294967296;
If ($ v3> 4294967295) $ v3 = $ v3-4294967296;
// Print $ v3 ."
";
Return $ v3;
}
Function fdl ($ v1, $ v2)
{
// If ($ v1> 2147483647) {$ v1 = 2147483647; $ v2 ++ ;}
$ V3 = $ v1 <$ v2;
While ($ v3> 4294967295) $ v3 = $ v3-4294967296;
Return $ v3;
}
Function fdr ($ v1, $ v2)
{
If ($ v1> 2147483647) {$ v1 = floor ($ v1/2); $ v2 --;}
$ V3 = $ v1 >>$ v2;
// While ($ v3> 4294967295) $ v3 = $ v3-4294967296;
Return $ v3;
}
Function fxr ($ v1, $ v2)
{
$ V3 = $ v1 ^ $ v2;
While ($ v3> 4294967295) $ v3 = $ v3-4294967296;
While ($ v3 <0) $ v3 = $ v3 + 4294967296;
Return $ v3;
}
Function z ($ var)
{
GLOBAL $ var;
Print $ var. "=". $ var ."";
}
Function get_ch ($ url)
{
$ C1 = 0xE6359A60;
$ C2 = 0x9E3779B9;
$ Url = "info:". $ url;
// Z ('URL ');

// Uint $ _ eax, $ _ edi, $ _ ecx, $ _ edx, _ esi, $ _ edi;
// Uint _ var8, _ var4;

$ _ Var4 = strlen ($ url );
GLOBAL $ _ eax, $ _ ebx, $ _ ecx, $ _ edx, $ _ edi, $ _ esi;

$ _ Esi = $ c1;
$ _ Edi =$ _ ebx = $ c2;

If ($ _ var4> 11)
// Goto loc_1002FCD6;
{
$ _ Var8 = floor ($ _ var4/12 );
$ _ Ecx = 0;

// Loc_1002FBFB:
While ($ _ var8> 0)
{
$ _ Eax = ord ($ url [(int) ($ _ ecx + 0x7)]);
$ _ Edx = ord ($ url [(int) ($ _ ecx + 0x6)]);
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Eax = fadd ($ _ eax, $ _ edx );
$ _ Edx = ord ($ url [(int) ($ _ ecx + 0x5)]);
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Eax = fadd ($ _ eax, $ _ edx );
$ _ Edx = ord ($ url [(int) ($ _ ecx + 0x4)]);
$ _ Edx = fadd ($ _ edx, $ _ edi );
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Edi = fadd ($ _ edx, $ _ eax );
$ _ Eax = ord ($ url [(int) ($ _ ecx + 0xB)]);
$ _ Edx = ord ($ url [(int) ($ _ ecx + 0xA)]);
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Eax = fadd ($ _ eax, $ _ edx );
$ _ Edx = ord ($ url [(int) ($ _ ecx + 0x9)]);
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Eax = fadd ($ _ eax, $ _ edx );
$ _ Edx = ord ($ url [(int) ($ _ ecx + 0x8)]);
$ _ Edx = fadd ($ _ edx, $ _ esi );
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Esi = fadd ($ _ edx, $ _ eax );
$ _ Edx = ord ($ url [(int) ($ _ ecx + 0x3)]);
$ _ Eax = ord ($ url [(int) ($ _ ecx + 0x2)]);
$ _ Edx = fdl ($ _ edx, 8 );
$ _ Edx = fadd ($ _ edx, $ _ eax );
$ _ Eax = ord ($ url [(int) ($ _ ecx + 0x1)]);
$ _ Edx = fdl ($ _ edx, 8 );
$ _ Edx = fadd ($ _ edx, $ _ eax );
$ _ Eax = ord ($ url [(int) ($ _ ecx + 0x0)]);
$ _ Edx = fdl ($ _ edx, 8 );
$ _ Edx = fadd ($ _ edx, $ _ eax );
$ _ Edx = fsub ($ _ edx, $ _ edi );
$ _ Edx = fsub ($ _ edx, $ _ esi );
$ _ Eax = $ _ esi;
$ _ Eax = fdr ($ _ eax, 13 );
$ _ Edx = fadd ($ _ edx, $ _ ebx );
$ _ Edx = fxr ($ _ edx, $ _ eax );
$ _ Edi = fsub ($ _ edi, $ _ edx );
$ _ Edi = fsub ($ _ edi, $ _ esi );
$ _ Eax = $ _ edx;
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Edi = fxr ($ _ edi, $ _ eax );
$ _ Esi = fsub ($ _ esi, $ _ edi );
$ _ Esi = fsub ($ _ esi, $ _ edx );
$ _ Eax = $ _ edi;
$ _ Eax = fdr ($ _ eax, 13 );
$ _ Esi = fxr ($ _ esi, $ _ eax );
$ _ Edx = fsub ($ _ edx, $ _ edi );
$ _ Edx = fsub ($ _ edx, $ _ esi );
$ _ Eax = $ _ esi;
$ _ Eax = fdr ($ _ eax, 12 );
$ _ Edx = fxr ($ _ edx, $ _ eax );
$ _ Edi = fsub ($ _ edi, $ _ edx );
$ _ Edi = fsub ($ _ edi, $ _ esi );
$ _ Eax = $ _ edx;
$ _ Eax = fdl ($ _ eax, 16 );
$ _ Edi = fxr ($ _ edi, $ _ eax );
$ _ Esi = fsub ($ _ esi, $ _ edi );
$ _ Var4-= 12;
$ _ Esi = fsub ($ _ esi, $ _ edx );
$ _ Eax = $ _ edi;
$ _ Eax = fdr ($ _ eax, 5 );
$ _ Esi = fxr ($ _ esi, $ _ eax );
$ _ Edx = fsub ($ _ edx, $ _ edi );
$ _ Eax = $ _ esi;
$ _ Eax = fdr ($ _ eax, 3 );
$ _ Edx = fsub ($ _ edx, $ _ esi );
$ _ Edx = fxr ($ _ edx, $ _ eax );
$ _ Ebx = $ _ edx;
$ _ Edi = fsub ($ _ edi, $ _ ebx );
$ _ Edi = fsub ($ _ edi, $ _ esi );
$ _ Eax = $ _ ebx;
$ _ Eax = fdl ($ _ eax, 10 );
$ _ Edi = fxr ($ _ edi, $ _ eax );
$ _ Esi = fsub ($ _ esi, $ _ edi );
$ _ Eax = $ _ edi;
$ _ Esi = fsub ($ _ esi, $ _ ebx );
$ _ Eax = fdr ($ _ eax, 15 );
$ _ Esi = fxr ($ _ esi, $ _ eax );
$ _ Ecx + = 12;
// Z ('_ eax'); z ('_ ebx'); z ('_ ecx'); z ('_ edx '); z ('_ edi'); z ('_ esi'); die ();
$ _ Var8 --;
}
} Else
{
$ _ Ecx = 0;
}

// Loc_1002FCD9:
$ _ Esi + = strlen ($ url );
$ _ Eax = $ _ var4;
$ _ Eax --;
If ($ _ eax <11) // goto loc_1002FD81;
{
/* Switch ($ _ eax ){
Case 0x0:
Break;
Case 0x1:
Break;
Case 0x2:
Break;
Case 0x3:
Break;
Case 0x4:
Break;
Case 0x5:
Break;
Case 0x6:
Break;
Case 0x7:
Break;
Case 0x8:
Break;
Case 0x9:
Break;
Case 0xA:
Break;
}*/
// Loc_1002FCF0: // case 0xa
If ($ _ eax = 0xa)
{
$ _ Eax = ord ($ url [(int) ($ _ ecx + 0xA)]);
$ _ Eax = fdl ($ _ eax, 24 );
$ _ Esi = fadd ($ _ esi, $ _ eax );
$ S1 = true;
}
// Loc_1002FCF9: // case 0x9
If ($ _ eax = 0x9) | $ s1)
{
$ _ Eax = ord ($ url [(int) ($ _ ecx + 0x9)]);
$ _ Eax = fdl ($ _ eax, 16 );
$ _ Esi = fadd ($ _ esi, $ _ eax );
$ S2 = true;
}
// Loc_1002FD02: // case 0x8
If ($ _ eax = 0x8) | $ s2)
{

$ _ Eax = ord ($ url [(int) ($ _ ecx + 0x8)]);
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Esi = fadd ($ _ esi, $ _ eax );
$ S3 = true;
}
// Loc_1002FD0B: // case 0x7
If ($ _ eax = 0x7) | $ s3)
{
$ _ Eax = ord ($ url [(int) ($ _ ecx + 0x7)]);
$ _ Edx = ord ($ url [(int) ($ _ ecx + 0x6)]);
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Eax = fadd ($ _ eax, $ _ edx );
$ _ Edx = ord ($ url [(int) ($ _ ecx + 0x5)]);
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Eax = fadd ($ _ eax, $ _ edx );
$ _ Edx = ord ($ url [(int) ($ _ ecx + 0x4)]);
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Edx = fadd ($ _ edx, $ _ edi );
$ _ Edi = fadd ($ _ edx, $ _ eax );
$ G1 = true;
// Goto loc_1002FD47;
}
// Loc_1002FD2F: // case 0x6
If ($ _ eax = 0x6 ))
{
$ _ Eax = ord ($ url [(int) ($ _ ecx + 0x6)]);
$ _ Eax = fdl ($ _ eax, 16 );
$ _ Edi = fadd ($ _ edi, $ _ eax );
$ S5 = true;
}
// Loc_1002FD38: // case 0x5
If ($ _ eax = 0x5) | $ s5)
{
$ _ Eax = ord ($ url [(int) ($ _ ecx + 0x5)]);
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Edi = fadd ($ _ edi, $ _ eax );
$ S6 = true;
}
// Loc_1002FD41: // case 0x4
If ($ _ eax = 0x4) | $ s6)
{
$ _ Eax = ord ($ url [(int) ($ _ ecx + 0x4)]);
$ _ Edi = fadd ($ _ edi, $ _ eax );
$ S7 = true;
}
// Loc_1002FD47: // case 0x3
If ($ _ eax = 0x3) | $ g1 | $ s7)
{
$ _ Eax = ord ($ url [(int) ($ _ ecx + 0x3)]);
$ _ Edx = ord ($ url [(int) ($ _ ecx + 0x2)]);
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Eax = fadd ($ _ eax, $ _ edx );
$ _ Edx = ord ($ url [(int) ($ _ ecx + 0x1)]);
$ _ Ecx = ord ($ url [(int) ($ _ ecx + 0x0)]);
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Eax = fadd ($ _ eax, $ _ edx );
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Ecx = fadd ($ _ ecx, $ _ ebx );
$ _ Ebx = fadd ($ _ ecx, $ _ eax );
$ G2 = true;
}
// Loc_1002FD6A: // case 0x2
If ($ _ eax = 0x2)
{
$ _ Eax = ord ($ url [(int) ($ _ ecx + 0x2)]);
$ _ Eax = fdl ($ _ eax, 16 );
$ _ Ebx = fadd ($ _ ebx, $ _ eax );
$ S8 = true;
}
// Loc_1002FD73: // case 0x1
If ($ _ eax = 0x1) | $ s8)
{
$ _ Eax = ord ($ url [(int) ($ _ ecx + 0x1)]);
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Ebx = fadd ($ _ ebx, $ _ eax );
$ S9 = true;
}
If ($ _ eax = 0x0) | $ s9)
{
// Loc_1002FD7C: // case 0x0
$ _ Eax = ord ($ url [(int) ($ _ ecx + 0x0)]);
$ _ Ebx = fadd ($ _ ebx, $ _ eax );
}
}
// Loc_1002FD81: // default
$ _ Ebx = fsub ($ _ ebx, $ _ edi );
$ _ Ebx = fsub ($ _ ebx, $ _ esi );
$ _ Eax = $ _ esi;
$ _ Eax = fdr ($ _ eax, 13 );
$ _ Ebx = fxr ($ _ ebx, $ _ eax );
$ _ Edi = fsub ($ _ edi, $ _ ebx );
$ _ Edi = fsub ($ _ edi, $ _ esi );
$ _ Eax = $ _ ebx;
$ _ Eax = fdl ($ _ eax, 8 );
$ _ Edi = fxr ($ _ edi, $ _ eax );
$ _ Esi = fsub ($ _ esi, $ _ edi );
$ _ Esi = fsub ($ _ esi, $ _ ebx );
$ _ Eax = $ _ edi;
$ _ Eax = fdr ($ _ eax, 13 );
$ _ Esi = fxr ($ _ esi, $ _ eax );
$ _ Ebx-= $ _ edi;
$ _ Ebx = fsub ($ _ ebx, $ _ esi );
$ _ Eax = $ _ esi;
$ _ Eax = fdr ($ _ eax, 12 );
$ _ Ebx = fxr ($ _ ebx, $ _ eax );
$ _ Edi = fsub ($ _ edi, $ _ ebx );
$ _ Edi = fsub ($ _ edi, $ _ esi );
$ _ Eax = $ _ ebx;
$ _ Eax = fdl ($ _ eax, 16 );
$ _ Edi = fxr ($ _ edi, $ _ eax );
$ _ Esi = fsub ($ _ esi, $ _ edi );
$ _ Eax = $ _ edi;
$ _ Esi = fsub ($ _ esi, $ _ ebx );
$ _ Eax = fdr ($ _ eax, 5 );
$ _ Esi = fxr ($ _ esi, $ _ eax );
$ _ Ebx = fsub ($ _ ebx, $ _ edi );
$ _ Eax = $ _ esi;
$ _ Ecx = $ _ eax;
$ _ Ebx = fsub ($ _ ebx, $ _ eax );
$ _ Ecx = fdr ($ _ ecx, 3 );
$ _ Ebx = fxr ($ _ ebx, $ _ ecx );
$ _ Edi = fsub ($ _ edi, $ _ ebx );
$ _ Edi = fsub ($ _ edi, $ _ eax );
$ _ Ecx = $ _ ebx;
$ _ Ecx = fdl ($ _ ecx, 0xA );
$ _ Edi = fxr ($ _ edi, $ _ ecx );
$ _ Eax = fsub ($ _ eax, $ _ edi );
$ _ Eax = fsub ($ _ eax, $ _ ebx );
$ _ Edi = fdr ($ _ edi, 0xF );
$ _ Eax = fxr ($ _ eax, $ _ edi );
Return "6". $ _ eax;
}
Function getrank ($ url)
{

Ob_start ();

$ Ch = curl_init ();

Curl_setopt ($ ch, CURLOPT_URL, "http: // 66.102.11.104/search? Client = navclient-auto & ch = ". get_ch ($ url)." & ie = UTF-8 & oe = UTF-8 & features = Rank & q = info: ". $ url );
// Print get_ch ($ url); die ();
// Curl_setopt ($ ch, CURLOPT_URL, "http: // 66.102.11.104/search? Client = navclient-auto & ch = 6517667070 & ie = UTF-8 & oe = UTF-8 & features = Rank & q = info: http://www.skinz.org ");
// Http: // search? Client = navclient-auto & ch = 6517667070 & ie = UTF-8 & oe = UTF-8 & features = Rank & q = info: http % 3A % 2F % 2 Fwww % 2 Eskinz % 2 Eorg
Curl_setopt ($ ch, CURLOPT_HEADER, 0 );
Curl_setopt ($ ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; GoogleToolbar 2.0.102-big; Windows XP 5.1 )");
Curl_exec ($ ch );

Curl_close ($ ch );

$ Content = ob_get_contents ();
Ob_end_clean ();
// Print $ content;
Return substr ($ content, (strrpos ($ content, ":") + 1 ));

}
?>
[/Code]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.