
By: Arie | Date: Aug 25 2006 12:44 | Format: PHP | Expires: never | Size: 1.29 KB | Hits: 1695
- private function IPbase64ToDecimal($base64)
- {
- $ip = $this->base64Todecimal($base64);
- return $part0 . "." . $part1 . "." . $part2 . "." . $part3;
- }
- private function base64Todecimal($Base64)
- {
- 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b',
- 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p',
- 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3',
- '4', '5', '6', '7', '8', '9', '[', ']');
- {
- $cur = $Base64{$i};
- for ($j = 0; $j < 64; $j++)
- if ($b64chars[$j] == $cur) $num = $j;
- $result += $num * $pow;
- }
- return $result;
- }
Latest pastes
6 hours ago
7 hours ago
9 hours ago
22 hours ago
1 days ago