SEO Forums















                                          
User   Password   remember     (register)  ?

Free Pagerank script


Back to seo scripts.


guest-loopy    (2009-04-14)
 
Free Pagerank script

Hi,

I found this free pagerank script on the web, it is just great to know the pagerank for every web page but could anyone tell me how this script works ?  The guy who implemented it must be a genius, I just can't understand anything in this code.


<?

class functions {
function to_int_32 (&$x) {
$z = hexdec(80000000);
$y = (int) $x;
if($y ==- $z && $x <- $z){
$y = (int) ((-1) * $x);
$y = (-1) * $y;
}
$x = $y;

function zero_fill ($a, $b) {
$z = hexdec(80000000);
if ($z & $a) {
$a = ($a >> 1);
$a &= (~$z);
$a |= 0x40000000;
$a = ($a >> ($b - 1));
} else {
$a = ($a >> $b);
}
return $a;
}
function mix($a, $b, $c) {
$a -= $b; $a -= $c; $this->to_int_32($a); $a = (int)($a ^ ($this->zero_fill($c,13)));
$b -= $c; $b -= $a; $this->to_int_32($b); $b = (int)($b ^ ($a<<8));
$c -= $a; $c -= $b; $this->to_int_32($c); $c = (int)($c ^ ($this->zero_fill($b,13)));
$a -= $b; $a -= $c; $this->to_int_32($a); $a = (int)($a ^ ($this->zero_fill($c,12)));
$b -= $c; $b -= $a; $this->to_int_32($b); $b = (int)($b ^ ($a<<16));
$c -= $a; $c -= $b; $this->to_int_32($c); $c = (int)($c ^ ($this->zero_fill($b,5)));
$a -= $b; $a -= $c; $this->to_int_32($a); $a = (int)($a ^ ($this->zero_fill($c,3)));
$b -= $c; $b -= $a; $this->to_int_32($b); $b = (int)($b ^ ($a<<10));
$c -= $a; $c -= $b; $this->to_int_32($c); $c = (int)($c ^ ($this->zero_fill($b,15)));
return array($a,$b,$c);
}
function checksum ($url, $length = null, $init = 0xE6359A60) {
if (is_null($length)) {
$length = sizeof($url);
}
$a = $b = 0x9E3779B9;
$c = $init;
$k = 0;
$len = $length;
while($len >= 12) {
$a += ($url[$k+0] + ($url[$k+1] << 8) + ($url[$k+2] << 16) + ($url[$k+3] << 24));
$b += ($url[$k+4] + ($url[$k+5] << 8) + ($url[$k+6] << 16) + ($url[$k+7] << 24));
$c += ($url[$k+8] + ($url[$k+9] << 8) + ($url[$k+10] << 16) + ($url[$k+11] << 24));
$mix = $this->mix($a,$b,$c);
$a = $mix[0]; $b = $mix[1]; $c = $mix[2];
$k += 12;
$len -= 12;
}
$c += $length;
switch($len) {
case 11: $c += ($url[$k + 10] << 24);
case 10: $c += ($url[$k + 9] << 16);
case 9: $c += ($url[$k + 8] << 8);
case 8: $b += ($url[$k + 7] << 24);
case 7: $b += ($url[$k + 6] << 16);
case 6: $b += ($url[$k + 5] << 8);
case 5: $b += ($url[$k + 4]);
case 4: $a += ($url[$k + 3] << 24);
case 3: $a += ($url[$k + 2] << 16);
case 2: $a += ($url[$k + 1] << 8);
case 1: $a += ($url[$k + 0]);
}
$mix = $this->mix($a, $b, $c);
return $mix[2];
}
function strord($string) {
for($i = 0; $i < strlen($string); $i++) {
$result[$i] = ord($string{$i});
}
return $result;
}
//
//
//
function format_number ($number='', $divchar = ',', $divat = 3) {
$decimals = '';
$formatted = '';
if (strstr($number, '.')) {
$pieces = explode('.', $number);
$number = $pieces[0];
$decimals = '.' . $pieces[1];
} else {
$number = (string) $number;
}
if (strlen($number) <= $divat)
return $number;
$j = 0;
for ($i = strlen($number) - 1; $i >= 0; $i--) {
if ($j == $divat) {
$formatted = $divchar . $formatted;
$j = 0;
}
$formatted = $number[$i] . $formatted;
$j++;
}
return $formatted . $decimals;
}

}

class GooglePR
{
/*
* convert a string to a 32-bit integer
*/
function StrToNum($Str, $Check, $Magic)
{
$Int32Unit = 4294967296; // 2^32

$length = strlen($Str);
for ($i = 0; $i < $length; $i++)
{
$Check *= $Magic;
//If the float is beyond the boundaries of integer (usually +/- 2.15e+9 = 2^31),
// the result of converting to integer is undefined
// refer to http://www.php.net/manual/en/language.types.integer.php
if ($Check >= $Int32Unit)
{
$Check = ($Check - $Int32Unit * (int) ($Check / $Int32Unit));
//if the check less than -2^31
$Check = ($Check < -2147483648) ? ($Check + $Int32Unit) : $Check;
}
$Check += ord($Str{$i});
}
return $Check;
}

/*
* Genearate a hash for a url
*/
function HashURL($String)
{
$Check1 = $this->StrToNum($String, 0x1505, 0x21);
$Check2 = $this->StrToNum($String, 0, 0x1003F);

$Check1 >>= 2;
$Check1 = (($Check1 >> 4) & 0x3FFFFC0 ) | ($Check1 & 0x3F);
$Check1 = (($Check1 >> 4) & 0x3FFC00 ) | ($Check1 & 0x3FF);
$Check1 = (($Check1 >> 4) & 0x3C000 ) | ($Check1 & 0x3FFF);

$T1 = (((($Check1 & 0x3C0) << 4) | ($Check1 & 0x3C)) <<2 ) | ($Check2 & 0xF0F );
$T2 = (((($Check1 & 0xFFFFC000) << 4) | ($Check1 & 0x3C00)) << 0xA) | ($Check2 & 0xF0F0000 );

return ($T1 | $T2);
}

/*
* genearate a checksum for the hash string
*/
function CheckHash($Hashnum)
{
$CheckByte = 0;
$Flag = 0;

$HashStr = sprintf('%u', $Hashnum) ;
$length = strlen($HashStr);

for ($i = $length - 1; $i >= 0; $i --)
{
$Re = $HashStr{$i};
if (1 === ($Flag % 2))
{
$Re += $Re;
$Re = (int)($Re / 10) + ($Re % 10);
}
$CheckByte += $Re;
$Flag ++;
}

$CheckByte %= 10;
if (0 !== $CheckByte)
{
$CheckByte = 10 - $CheckByte;
if (1 === ($Flag % 2) )
{
if (1 === ($CheckByte % 2))
{
$CheckByte += 9;
}
$CheckByte >>= 1;
}
}

return '7'.$CheckByte.$HashStr;
}

function PageRank($url, $dcgg = 'www.google.com')
{
$file = file('ht*p://'.$dcgg.'/search?client=navclient-auto&ch='.$this->CheckHash($this->HashURL($url)).'&ie=UTF-8&oe=UTF-8&features=Rank&q=info:'.urlencode($url));

$file = implode("", $file);
return substr($file,strrpos($file, ":")+1);
}
}

?>



guest-leapter    (2009-07-14 04:36:09)
Great stuff

wonder webpage and information. thanks for the scripts. http://www.leapbrowser.com LeapBrowser search engine.


guest-validrank    (2010-02-25 05:41:34)
Free Pagerank script

Check Google Page Rank. Fake Page Rank Detection http://www.validranking.com


ficgs
Suggestions

 TopSite TopList - Free PageRank Script - Search Engine - Banner Creator
www.topsiteguide.com/

 Page Rank Code: free PHP script for Google PageRank
www.pagerankcode.com/

 PageRank Script, Google Page Rank Script, Download Buy Google PageRank Script, Free PageRank Script
www.singerdesign.com/google-page-rank-script.php

 SEO Service. PageRank Button and Free Hit Counter. Google, MSN Search, Yahoo Optimization.
seomon.com/

 Free pagerank Download - pagerank Script Software
script.wareseeker.com/free-pagerank/

 Free Google Pagerank Script - By Antonie Potgieter
my.opera.com/Contrid/blog/2007/02/09/free-google-pagerank-script

 Free Google Pagerank Checker. Checks Alexa, Backlinks and more
www.ipagerank.org/



ficgs
More suggestions

This is a collaborative page, you may change the order of these suggestions by registering, then clicking the icons before the titles.


 Pagerank script free 4 all | PHP Link Checking | Hot Scripts
www.hotscripts.com/listing/pagerank-script-free-4-all/

 Free pagerank script for you :) - AZ Forums
www.azforums.net/index.php?showtopic=25685

 » Free Page rank script
www.findmysoft.com/scripts/page_rank_script/

 File Download Free PageRank Display Script - Torrent Reactor NET
www.torrentreactor.net/torrents/1913104/Free-PageRank-Display-Script

 SEO Tools - Google PageRank Checker - Remote Script
www.twospots.com/free-pagerank-checker/

 PageRank Tool - free script download | Arbune's WebLog
blog.arbune.com/2009/02/pagerank-tool-free-script-download/

  We have just enhanced the ROR Sitemap Generator so that it can generate ROR Sitemaps MyPagerank.Net Google PageRank Checker - Check Google page rank
www.mypagerank.net/

 Affichage PageRank Script gratuit - Jumptags.com search results
www.jumptags.com/tag/Affichage%20PageRank%20Script%20gratuit

 PageRank Checker Script Free Download
www.howtodownloadfiles.com/pagerank-checker-script-free-download.html

 webdew - Remotely hosted - pagerank, counter, bookmark, favicon and logo scripts
www.webdew.ro/utils.php

 Google PageRank Checker - Check Google page rank of any web pages; FREE Page Rank Checker, Internet Marketing, Search Engine Marketing
www.majon.com/free-webmasters-tools/free-website-pagerank-pr-script.html

 Free PageRank Checker - Check Google PageRank of any website
www.prsitecheck.com/

 Page Rank Script
www.e-seotools.com/pagerank.script.php

 Free page rank checker script Download - page rank checker script Software
wareseeker.com/free-page-rank-checker-script/

 Zones Web Solution - Check Page Rank, PageRank Script, Google Page Rank
pagerank.zones.in/

  Free Web 2.0 Pagerank Script + Alexa And Backlink « Full and Free - Everything you need
www.fullandfree.info/scripts/free-web-20-pagerank-script-alexa-and-backlink

 Adsense, Wordpress, Free Script & Free Software
malangweb.com/

 Show your Google PageRank - A free PageRank button for you website
www.free-pagerank-checker.com/pagerank_button_code.php

 Google Page Rank Check | PageRank Display Script
www.page-rank-check.com/

 Whosurf.com | Free PageRank Check Script
www.whosurf.com/

 Installed A PR Checker Script - But Not Working Correctly - Free Web Hosting
www.astahost.com/Installed-PR-Checker-Script-Working-Correctly-t13957.html

 Download Free Page Rank Service Php Source Codes, Free Page Rank Service Php Scripts - Google/Alexa Page Rank Checking Script by MyDLstore, Google pag...
www.sourcecodeonline.com/list?q=free_page_rank_service_php

 Free Page Rank Checker tool for Webmasters
srv.jbi.in/

 SEO • Information
www.top25web.com/bbs/viewtopic.php?f=28&t=6023

 Check PageRank Script details - Free Webmaster Resources - Add a Link
www.webmaster-resources.com.ru/link_details_463.php

 Add this Free Tool Script to Check the Google Page Rank to your Webpage
csshtmltutorial.com/csshtmltutorial-freegooglepageranktool.php



Response  
  Smilies

Guest name   (optional)       Register for more options.



Trackbacks : If you talked about this article in your blog or website, you may instantly get a backlink 
  There's no trackback at the moment.









 

FICGS message




SEO forums and chat - Search engines optimization



 
Please download Flash player.
March 18, 2010

 

Buttons: Facebook, Twitter, MySpace, Google, Technorati, Yahoo buzz... Ficgs Facebook Myspace Twitter Google Technorati Stumble upon Delicious Digg Yahoo buzz Wikio Furl Reddit Linkedin Squidoo Newsvine Yahoo My Web Blogmarks Comments Blinklist Email

U comment I follow : The "nofollow" tag will be removed in links included in valuable content.


Write upside down !
(works with Twitter, Facebook, MySpace, Youtube, MSN, Yahoo, Bebo, Hi5...)







FICGS is also a Free Internet Correspondence Games Server.

Here you can play Chess, Go & Poker Texas Holdem online for free in rated class tournaments and a unique world championship.

Free Internet Chess & Go Server


Feel free to link to FICGS :