diff options
| author | Henry Sudhof <kellanved@phpbb.com> | 2007-05-05 21:33:25 +0000 |
|---|---|---|
| committer | Henry Sudhof <kellanved@phpbb.com> | 2007-05-05 21:33:25 +0000 |
| commit | c8fa1399a94ef612a6fafde95aeb0c218be8711a (patch) | |
| tree | ca5d8e82d8f9563add7953d49ce60c5d1f18bfee /phpBB/install | |
| parent | 1bbc043bccc6c90e5ca20a3c5739444e3024cef6 (diff) | |
| download | forums-c8fa1399a94ef612a6fafde95aeb0c218be8711a.tar forums-c8fa1399a94ef612a6fafde95aeb0c218be8711a.tar.gz forums-c8fa1399a94ef612a6fafde95aeb0c218be8711a.tar.bz2 forums-c8fa1399a94ef612a6fafde95aeb0c218be8711a.tar.xz forums-c8fa1399a94ef612a6fafde95aeb0c218be8711a.zip | |
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
Diffstat (limited to 'phpBB/install')
| -rw-r--r-- | phpBB/install/database_update.php | 3 | ||||
| -rwxr-xr-x | phpBB/install/install_install.php | 5 | ||||
| -rw-r--r-- | phpBB/install/schemas/schema_data.sql | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index c9b7134674..395fcc4918 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -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 diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index 2b54a2b1aa..3d6646df94 100755 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -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'"; diff --git a/phpBB/install/schemas/schema_data.sql b/phpBB/install/schemas/schema_data.sql index 6fa07c6f68..cb030fb1d6 100644 --- a/phpBB/install/schemas/schema_data.sql +++ b/phpBB/install/schemas/schema_data.sql @@ -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', ''); |
