diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2009-04-11 09:11:08 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-04-11 09:11:08 +0000 |
| commit | cda9e5e9ec0dfe9c3e0a04809ffc5d0099020046 (patch) | |
| tree | 930f31bbe5c1fe8f0707a1b2059cefbac0c1d484 /phpBB/includes/functions.php | |
| parent | a4c1de46b79c196dc7da2e5b9242deb6c55bdb6f (diff) | |
| download | forums-cda9e5e9ec0dfe9c3e0a04809ffc5d0099020046.tar forums-cda9e5e9ec0dfe9c3e0a04809ffc5d0099020046.tar.gz forums-cda9e5e9ec0dfe9c3e0a04809ffc5d0099020046.tar.bz2 forums-cda9e5e9ec0dfe9c3e0a04809ffc5d0099020046.tar.xz forums-cda9e5e9ec0dfe9c3e0a04809ffc5d0099020046.zip | |
a language alteration for captchas.
Added min/max captcha chars constants and changed the length from 5-8 to 4-7
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9437 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index a5d3be7461..832738395f 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2632,7 +2632,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa $db->sql_query($sql); // Generate code - $code = gen_rand_string(mt_rand(5, 8)); + $code = gen_rand_string(mt_rand(CAPTCHA_MIN_CHARS, CAPTCHA_MAX_CHARS)); $confirm_id = md5(unique_id($user->ip)); $seed = hexdec(substr(unique_id(), 4, 10)); |
