mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 02:06:32 +02:00
Introducing a new CAPTCHA. Thanks to Robert "Xore" Hetzler for idea & code and Ashley "Neothermic" Pinner for her expertise and contributions to said code.
This introduces new language variables, so take note translators :). git-svn-id: file:///svn/phpbb/trunk@7478 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1110,6 +1110,9 @@ if (version_compare($current_version, '3.0.b5', '<='))
|
||||
unset($sql_in);
|
||||
|
||||
set_config('avatar_salt', md5(mt_rand()));
|
||||
set_config('captcha_gd_x_grid', 25);
|
||||
set_config('captcha_gd_y_grid', 25);
|
||||
set_config('captcha_gd_foreground_noise', 1);
|
||||
|
||||
$sql = 'UPDATE ' . ACL_OPTIONS_TABLE . "
|
||||
SET is_local = 0
|
||||
|
@@ -1307,11 +1307,6 @@ class install_install extends module
|
||||
if (!@extension_loaded('gd'))
|
||||
{
|
||||
can_load_dll('gd');
|
||||
}
|
||||
|
||||
// This is for people who have TTF and GD
|
||||
if (@extension_loaded('gd') && function_exists('imagettfbbox') && function_exists('imagettftext'))
|
||||
{
|
||||
$sql_ary[] = 'UPDATE ' . $table_prefix . "config
|
||||
SET config_value = '1'
|
||||
WHERE config_name = 'captcha_gd'";
|
||||
|
@@ -59,7 +59,9 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('bump_interval', '1
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('bump_type', 'd');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cache_gc', '7200');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd_noise', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd_foreground_noise', '1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd_x_grid', '25');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('captcha_gd_y_grid', '25');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('check_dnsbl', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('chg_passforce', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cookie_domain', '');
|
||||
|
Reference in New Issue
Block a user