Lines Matching +full:u +full:- +full:magic

25           * settings - host and user agent
28 …public $googleua = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 F…
31 $this->Lexer->addSpecialPattern('\{\{pagerank>[^}]*\}\}',$mode,'plugin_googlepagerank');
39 $match = substr($match,11,-2);
52 $pr=$this->getpr($data[0]);
58 $prneg=$data[1]-$prpos;
61 //The pre-styled method
64 … block; position: relative; background: #5EAA5E; text-align: center; color: #333; height: 4px; lin…
66 $renderer->doc .= '<a href="'.$data[0].'" title="'.$pagerank.'">'.$html.'</a>';
72 * convert a string to a 32-bit integer
74 function StrToNum($Str, $Check, $Magic) { argument
79 $Check *= $Magic;
80 //If the float is beyond the boundaries of integer (usually +/- 2.15e+9 = 2^31),
84 $Check = ($Check - $Int32Unit * (int) ($Check / $Int32Unit));
85 //if the check less than -2^31
86 $Check = ($Check < -2147483648) ? ($Check + $Int32Unit) : $Check;
96 $Check1 = $this->StrToNum($String, 0x1505, 0x21);
97 $Check2 = $this->StrToNum($String, 0, 0x1003F);
116 $HashStr = sprintf('%u', $Hashnum) ;
119 for ($i = $length - 1; $i >= 0; $i --) {
130 $CheckByte = 10 - $CheckByte;
144 function getch($url) { return $this->CheckHash($this->HashURL($url)); }
149 //global $this->googlehost,$this->googleua;
150 $ch = $this->getch($url);
151 $fp = fsockopen($this->googlehost, 80, $errno, $errstr, 30);
153 $out = "GET /tbr?client=navclient-auto&ch=$ch&features=Rank&q=info:$url HTTP/1.1\r\n";
155 $out .= "User-Agent: $this->googleua\r\n";
156 $out .= "Host: $this->googlehost\r\n";