aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_confirm.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-11-03 23:09:16 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-11-03 23:09:16 +0000
commit8b0ec6e02d5a53ea3d1b87abd122d39cc3e8366f (patch)
tree22bae5ecbab9dbf8390ab3763f53c15c822c9198 /phpBB/includes/ucp/ucp_confirm.php
parent7ab232a45504ef357a19d9ab58dd27c454e12784 (diff)
downloadforums-8b0ec6e02d5a53ea3d1b87abd122d39cc3e8366f.tar
forums-8b0ec6e02d5a53ea3d1b87abd122d39cc3e8366f.tar.gz
forums-8b0ec6e02d5a53ea3d1b87abd122d39cc3e8366f.tar.bz2
forums-8b0ec6e02d5a53ea3d1b87abd122d39cc3e8366f.tar.xz
forums-8b0ec6e02d5a53ea3d1b87abd122d39cc3e8366f.zip
- compress is nicer (fixed a bug :P)
- UTF-8 code is nicer (fixed a bug :P) - new CAPTCHA. Replaced the old one for size and usability issues. The old CAPTCHA will most likely be released as a separate package git-svn-id: file:///svn/phpbb/trunk@6549 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_confirm.php')
-rw-r--r--phpBB/includes/ucp/ucp_confirm.php41
1 files changed, 2 insertions, 39 deletions
diff --git a/phpBB/includes/ucp/ucp_confirm.php b/phpBB/includes/ucp/ucp_confirm.php
index e40e89cbf5..087a186fa7 100644
--- a/phpBB/includes/ucp/ucp_confirm.php
+++ b/phpBB/includes/ucp/ucp_confirm.php
@@ -54,46 +54,9 @@ class ucp_confirm
exit;
}
- // Some people might want the olde style CAPTCHA even if they have GD enabled, this also saves us from people who have GD but no TTF
- $policy_modules = array('policy_entropy', 'policy_3dbitmap');
-
- if (function_exists('imagettfbbox') && function_exists('imagettftext'))
- {
- $policy_modules = array_merge($policy_modules, array('policy_overlap', 'policy_shape', 'policy_cells', 'policy_stencil', 'policy_composite'));
- }
-
- foreach ($policy_modules as $key => $name)
- {
- if ($config[$name] === '0')
- {
- unset($policy_modules[$key]);
- }
- }
-
- $policy = '';
- if (@extension_loaded('gd') && sizeof($policy_modules))
+ if ($config['captcha_gd'])
{
- $change_lang = request_var('change_lang', '');
-
- if ($change_lang)
- {
- $change_lang = basename($change_lang);
-
- if (file_exists($phpbb_root_path . 'language/' . $change_lang . '/'))
- {
- $user->lang_name = $lang = $change_lang;
- $user->lang_path = $phpbb_root_path . 'language/' . $lang . '/';
- $user->lang = array();
- $user->add_lang(array('common', 'ucp'));
- }
- else
- {
- $change_lang = '';
- }
- }
-
include($phpbb_root_path . 'includes/captcha/captcha_gd.' . $phpEx);
- $policy = $policy_modules[array_rand($policy_modules)];
}
else
{
@@ -101,7 +64,7 @@ class ucp_confirm
}
$captcha = new captcha();
- $captcha->execute($row['code'], $policy);
+ $captcha->execute($row['code']);
exit;
}
}