Just ignore bots who submit country while registering

This commit is contained in:
Aleksei Miheev
2012-12-18 01:28:27 +04:00
parent 52fc76145e
commit c1c28b0290

View File

@@ -69,6 +69,8 @@ function Register2()
global $scripturl, $txt, $modSettings, $db_prefix, $context, $sourcedir, $user_info, $options, $settings;
# print_r($_SESSION);
# Engine supports posting extra fields upon registration, but it will never happen in real life
if(! empty($_POST['location'])) die;
if (!isset($_SESSION['bogusHit'])) $possibleBot = 1;
// die($possibleBot);
else $possibleBot = 0;//($_SESSION['bogusHit'] == 1 ? 0 : 1);