@@ 242-250 (lines=9) @@ | ||
239 | } |
|
240 | } |
|
241 | ||
242 | function random($length) |
|
243 | { |
|
244 | $max = ceil($length / 40); |
|
245 | $random = ''; |
|
246 | for ($i = 0; $i < $max; $i++) { |
|
247 | $random .= sha1(microtime(true) . mt_rand(10000, 90000)); |
|
248 | } |
|
249 | return substr($random, 0, $length); |
|
250 | } |
|
251 | ||
252 | function steamBanned($PID) |
|
253 | { |
@@ 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 | { |