Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Google Forums > All About Google

GoogleCommunity Sponsor
Cirtex Hosting
Use coupon "forum" for 50% Off!

Reply
 
LinkBack Thread Tools Display Modes
Old 12-27-2006, 11:05 AM   #1 (permalink)
Noogle
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
roberterens is on a distinguished road
got problems with my script, any help for me

Hello,

My name is Robert and im from Portugal. I run the pagerankpage coolrank.de but one week ago the sript (intersonic) dont create the pagerank of other sites.
Some body now what happen.

When i load the page http://www.coolrank.de/pr.php?ref=coolrank.de&style=1
it give me error.

in the pr.php on line 145 tells me
while($zeile = fgets($abfrage,1024))

and in line 148 tells me
fclose($abfrage);

and in line 200 it tells me
print header("Content-Type: image/gif");

the complet code is so :
$configuration_query = db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . configuration);
while ($configuration = db_fetch_array($configuration_query)) {
define($configuration['cfgKey'], $configuration['cfgValue']);
}


$ref = $_GET['ref'];
$style = $_GET['style'];

function zeroFill($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; $a ^= (zeroFill($c,13));
$b -= $c; $b -= $a; $b ^= ($a<<;
$c -= $a; $c -= $b; $c ^= (zeroFill($b,13));
$a -= $b; $a -= $c; $a ^= (zeroFill($c,12));
$b -= $c; $b -= $a; $b ^= ($a<<16);
$c -= $a; $c -= $b; $c ^= (zeroFill($b,5));
$a -= $b; $a -= $c; $a ^= (zeroFill($c,3));
$b -= $c; $b -= $a; $b ^= ($a<<10);
$c -= $a; $c -= $b; $c ^= (zeroFill($b,15));

return array($a,$b,$c);
}

function GoogleCH($url, $length=null, $init=GOOGLE_MAGIC) {
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]<< +($url[$k+2]<<16) +($url[$k+3]<<24));
$b += ($url[$k+4] +($url[$k+5]<<+($url[$k+6]<<16) +($url[$k+7]<<24));
$c += ($url[$k+8] +($url[$k+9]<< +($url[$k+10]<<16)+($url[$k+11]<<24));
$mix = 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]<<;
case 8 : $b+=($url[$k+7]<<24);
case 7 : $b+=($url[$k+6]<<16);
case 6 : $b+=($url[$k+5]<<;
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]<<;
case 1 : $a+=($url[$k+0]);
}
$mix = mix($a,$b,$c);
return $mix[2];
}

function strord($string) {
for($i=0;$i<strlen($string);$i++) {
$result[$i] = ord($string{$i});
}
return $result;
}


$server="http://www.melbot.info";

$time=time();




$ziel = $ref;
$ziel = str_replace ("http://www.", "", $ziel);
$ziel = str_replace ("www.", "", $ziel);
$ziel = str_replace ("http://", "", $ziel);

$url = "info:"."http://www.$ziel";
$ch = GoogleCH(strord($url));
$summe = sprintf("6%u\n",$ch);
$summe = str_replace("-","",$summe);
$summe = trim($summe);
$google = "http://$server/search?client=navclient-auto&ch=$summe&features=Rank&q=$url";
$abfrage = fopen("$melbot",r);
while($zeile = fgets($abfrage,1024)) {
if (ereg("Rank",$zeile)) { $daten = $zeile; }
}
fclose($abfrage);
$pagerank = substr($daten,9,9);
$pagerank = trim($pagerank);


$prdomain_query = db_query("select * FROM " . domains . " where domain_url = '".$ziel."'");
$prdomain_data = db_fetch_array($prdomain_query);
$prdomain_url = $prdomain_data['domain_url'];
$prdomain_status = $prdomain_data['domain_status'];






if(($ziel=="$prdomain_url") and ($prdomain_status=="1") and ($pagerank!=="")){
db_query("UPDATE " . domains . " SET domain_count=domain_count+1,domain_pr='".$pagerank ."',domain_update='".$time."' WHERE domain_url = '".$prdomain_url."'");
}

if($style==""){
$style="1";
}


if(MAINTENANCE=="0"){

if($ref==""){
print header("Content-Type: image/gif");
print readfile("images/styles/e1.gif");
}

if(($ziel=="$prdomain_url") and ($prdomain_status=="0") and ($pagerank!=="")){
print header("Content-Type: image/gif");
print readfile("images/styles/e6.gif");
}

if(($ziel=="$prdomain_url") and ($prdomain_status=="1") and ($pagerank!=="")){
print header("Content-Type: image/gif");
print readfile("images/styles/$style/$pagerank.gif");
}

if(($ziel=="$prdomain_url") and ($prdomain_status=="2") and ($pagerank!=="")){
print header("Content-Type: image/gif");
print readfile("images/styles/e4.gif");
}

if($ziel!=="$prdomain_url"){
print header("Content-Type: image/gif");
print readfile("images/styles/e7.gif");
}

if(($pagerank=="") and ($ref!=="")){
print header("Content-Type: image/gif");
print readfile("images/styles/e5.gif");
}


} else {
print header("Content-Type: image/gif");
print readfile("images/styles/e2.gif");
}


?>

ok, somebody now some think aboute

thanks
Robert
roberterens is offline   Reply With Quote
 
Sponsored Links
Old 01-30-2007, 01:00 AM   #2 (permalink)
Noogle
 
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
petrg is on a distinguished road
Hi!
Your problem is here:

$google = "http://$server/search?client=navclient-auto&ch=$summe&features=Rank&q=$url";

The $summe has wrong value - that's why it's forbidden to open that stream.
I have been looking for the right script whole day but I have not found any, which is working :-/ Only some working forms without source codes - so there HAS TO BE the working script somewhere
petrg is offline   Reply With Quote
Old 08-02-2007, 09:45 AM   #3 (permalink)
Noogle
 
Join Date: Jul 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
nivanka is on a distinguished road
Question see weather is this the error

Hello
I think that the script doesnot work because the checksum that is generated by the script is not correct. The script contains a lot of shift lefts and bitwise operations, some time php4 and php5 makes different results. thats why the script is giving errors. So if you are using php4 try with a new version of php.
AND THE SCRIPT IS VERY MUCH INTENDED TO MAKE ERRORS IN THE mix FUNCTION
nivanka is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script hotdawg Web Design, Coding & Programming Forum 0 12-20-2006 10:23 AM
Google pagerank script solution for bitwise problems MagicBeanDip Web Design, Coding & Programming Forum 0 05-08-2006 02:10 PM
How to generate a RSS Script pshaube All About Google 2 02-23-2006 10:17 AM
Is there a script that can Myth Web Design, Coding & Programming Forum 5 02-11-2005 10:36 AM
PHP Script? Pixel Web Design, Coding & Programming Forum 5 10-10-2004 07:31 PM


All times are GMT -8. The time now is 05:15 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community