aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2009-06-19 12:31:28 +0000
committerHenry Sudhof <kellanved@phpbb.com>2009-06-19 12:31:28 +0000
commit5d9cf2aa41c61dd35114223006c5e16c104c5a2b (patch)
treeb583094c75a582c88696ed54969406ee933446ea /phpBB/includes/ucp
parentd7d96223e7bae7cd60b13c6e7896d95838c3633c (diff)
downloadforums-5d9cf2aa41c61dd35114223006c5e16c104c5a2b.tar
forums-5d9cf2aa41c61dd35114223006c5e16c104c5a2b.tar.gz
forums-5d9cf2aa41c61dd35114223006c5e16c104c5a2b.tar.bz2
forums-5d9cf2aa41c61dd35114223006c5e16c104c5a2b.tar.xz
forums-5d9cf2aa41c61dd35114223006c5e16c104c5a2b.zip
Make captchas stricter by oly having one entry per session; fix a bug in ucp_register that caused three captcha instances to be generated. Non-MySQL databases and garbage collecting needs extensive testing.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9626 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp')
-rw-r--r--phpBB/includes/ucp/ucp_register.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php
index 4815329643..e1a924ae58 100644
--- a/phpBB/includes/ucp/ucp_register.php
+++ b/phpBB/includes/ucp/ucp_register.php
@@ -52,13 +52,6 @@ class ucp_register
add_form_key('ucp_register_terms');
}
- $captcha_solved = false;
- if ($config['enable_confirm'])
- {
- include($phpbb_root_path . 'includes/captcha/captcha_factory.' . $phpEx);
- $captcha =& phpbb_captcha_factory::get_instance($config['captcha_plugin']);
- $captcha->init(CONFIRM_REG);
- }
if ($change_lang || $user_lang != $config['default_lang'])
{
@@ -150,6 +143,13 @@ class ucp_register
return;
}
+ $captcha_solved = false;
+ if ($config['enable_confirm'])
+ {
+ include($phpbb_root_path . 'includes/captcha/captcha_factory.' . $phpEx);
+ $captcha =& phpbb_captcha_factory::get_instance($config['captcha_plugin']);
+ $captcha->init(CONFIRM_REG);
+ }
// Try to manually determine the timezone and adjust the dst if the server date/time complies with the default setting +/- 1
$timezone = date('Z') / 3600;