application/libraries/DX_Auth.php 1 location
|
@@ 110-112 (lines=3) @@
|
107 |
|
$pool = '123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; |
108 |
|
|
109 |
|
$str = ''; |
110 |
|
for ($i = 0; $i < $len; $i++) { |
111 |
|
$str .= substr($pool, mt_rand(0, strlen($pool) - 1), 1); |
112 |
|
} |
113 |
|
|
114 |
|
return $str; |
115 |
|
} |
application/helpers/dx_captcha_helper.php 1 location
|
@@ 277-279 (lines=3) @@
|
274 |
|
$pool = '123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; |
275 |
|
|
276 |
|
$str = ''; |
277 |
|
for ($i = 0; $i < 6; $i++) { |
278 |
|
$str .= substr($pool, mt_rand(0, strlen($pool) - 1), 1); |
279 |
|
} |
280 |
|
|
281 |
|
$word = strtoupper($str); |
282 |
|
} |