| @@ 4-12 (lines=9) @@ | ||
| 1 | <?php |
|
| 2 | if (!file_exists('config/settings.php')) { |
|
| 3 | ||
| 4 | function rand_sha1($length) |
|
| 5 | { |
|
| 6 | $max = ceil($length / 40); |
|
| 7 | $random = ''; |
|
| 8 | for ($i = 0; $i < $max; $i++) { |
|
| 9 | $random .= sha1(microtime(true) . mt_rand(10000, 90000)); |
|
| 10 | } |
|
| 11 | return substr($random, 0, $length); |
|
| 12 | } |
|
| 13 | ||
| 14 | function encrypt($text, $salt) |
|
| 15 | { |
|
| @@ 245-253 (lines=9) @@ | ||
| 242 | } |
|
| 243 | } |
|
| 244 | ||
| 245 | function random($length) |
|
| 246 | { |
|
| 247 | $max = ceil($length / 40); |
|
| 248 | $random = ''; |
|
| 249 | for ($i = 0; $i < $max; $i++) { |
|
| 250 | $random .= sha1(microtime(true) . mt_rand(10000, 90000)); |
|
| 251 | } |
|
| 252 | return substr($random, 0, $length); |
|
| 253 | } |
|
| 254 | ||
| 255 | function steamBanned($PID) |
|
| 256 | { |
|