@@ 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 | { |
@@ 3-12 (lines=10) @@ | ||
1 | <?php |
|
2 | if (!file_exists('config/settings.php')) { |
|
3 | function rand_sha1($length) |
|
4 | { |
|
5 | $max = ceil($length / 40); |
|
6 | $random = ''; |
|
7 | for ($i = 0; $i < $max; ++$i) { |
|
8 | $random .= sha1(microtime(true).mt_rand(10000, 90000)); |
|
9 | } |
|
10 | ||
11 | return substr($random, 0, $length); |
|
12 | } |
|
13 | ||
14 | function encrypt($text, $salt) |
|
15 | { |