|
@@ 79-82 (lines=4) @@
|
| 76 |
|
$base = strlen($chars); |
| 77 |
|
$len = strlen($id) - 1; |
| 78 |
|
|
| 79 |
|
for ($t = $len; $t >= 0; $t--) { |
| 80 |
|
$bcp = bcpow($base, $len - $t); |
| 81 |
|
$decryptId += strpos($chars, substr($id, $t, 1)) * (int)$bcp; |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
return ((int)$decryptId - 1142) / 9518436; |
| 85 |
|
} |
|
@@ 109-112 (lines=4) @@
|
| 106 |
|
|
| 107 |
|
$len = strlen($id) - 1; |
| 108 |
|
|
| 109 |
|
for ($t = $len; $t >= 0; $t--) { |
| 110 |
|
$bcp = bcpow($base, $len - $t); |
| 111 |
|
$decryptId = $decryptId + strpos($chars, substr($id, $t, 1)) * (int)$bcp; |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
return ((int)$decryptId - 1142) / 9518436; |
| 115 |
|
} |