diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2017-08-09 20:42:07 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2017-08-09 20:42:07 +0200 |
commit | 6d45fbde6b0907f7467e894d5a554d0deadd6393 (patch) | |
tree | 4712a9b7d8e9f5763e8cdefcd1269dc61e51bcf1 | |
parent | 68ba971f6946a8f99504488b4fac18dcd3ecf8fb (diff) | |
download | savane-gray-6d45fbde6b0907f7467e894d5a554d0deadd6393.tar.gz savane-gray-6d45fbde6b0907f7467e894d5a554d0deadd6393.tar.bz2 |
Remove the rudimentary register spam test
-rw-r--r-- | frontend/php/account/register.php | 27 | ||||
-rw-r--r-- | frontend/php/include/init.php | 2 |
2 files changed, 1 insertions, 28 deletions
diff --git a/frontend/php/account/register.php b/frontend/php/account/register.php index 3c81ca0..33e5c3c 100644 --- a/frontend/php/account/register.php +++ b/frontend/php/account/register.php @@ -63,18 +63,6 @@ if (!empty($update) and form_check($form_id)) { // feedback included by the check function - // Temporary spam block - if ($GLOBALS['sys_registration_text_spam_test']) - { - if ($form_year != 1983) - { - fb(_("Please answer the antispam test!"),1); - } - else - { - $antispam_is_valid = true; - } - } if ($GLOBALS['sys_registration_captcha']) { include_once $GLOBALS['sys_securimagedir'] . '/securimage.php'; @@ -90,12 +78,6 @@ if (!empty($update) and form_check($form_id)) } } - if (!$GLOBALS['sys_registration_captcha'] && - !$GLOBALS['sys_registration_text_spam_test']) - { - $antispam_is_valid = true; - } - // Login if ($form_loginname == '') { @@ -320,15 +302,6 @@ else print '<input size="30" type="text" name="form_email" value="'.$form_email.'" />'; print '<br /><span class="text">'._("This email address will be verified before account activation.").'</span></p>'; - if ($GLOBALS['sys_registration_text_spam_test']) - { - print '<p><span class="preinput">'._("Antispam test:").'</span><br /> '; - print '<input size="30" type="text" name="form_year" value="'.$form_year.'" />'; - print '<br /><span class="text">' - ._("In what year was the GNU project announced?" - . " [<a href='http://www.gnu.org/gnu/gnu-history.html'>click for a hint</a>]") - . '</span></p>'; - } if ($GLOBALS['sys_registration_captcha']) { print '<img id="captcha" src="' . $GLOBALS['sys_home'] . 'gencaptcha.php" alt="CAPTCHA" /><br />'; diff --git a/frontend/php/include/init.php b/frontend/php/include/init.php index a79315a..d5397cc 100644 --- a/frontend/php/include/init.php +++ b/frontend/php/include/init.php @@ -60,7 +60,7 @@ $sys_trackers_attachments_dir = $sys_appdatadir . '/trackers_attachments'; $sys_themedefault = 'Emeraud'; $sys_enable_forum_comments = 1; $sys_registration_captcha = 0; -$sys_registration_text_spam_test = 1; + $sys_securimagedir = '/usr/src/securimage'; $sys_default_domain = $_SERVER['SERVER_NAME']; |