|
@@ 77-81 (lines=5) @@
|
| 74 |
|
$_SESSION['skip_coppa'] = !empty($_POST['accept_agreement']); |
| 75 |
|
|
| 76 |
|
// Are they saying they're under age, while under age registration is disabled? |
| 77 |
|
if (empty($modSettings['coppaType']) && empty($_SESSION['skip_coppa'])) |
| 78 |
|
{ |
| 79 |
|
loadLanguage('Login'); |
| 80 |
|
fatal_lang_error('under_age_registration_prohibited', false, array($modSettings['coppaAge'])); |
| 81 |
|
} |
| 82 |
|
} |
| 83 |
|
} |
| 84 |
|
// Make sure they don't squeeze through without agreeing. |
|
@@ 241-245 (lines=5) @@
|
| 238 |
|
if (empty($modSettings['requireAgreement']) && !empty($modSettings['coppaAge'])) |
| 239 |
|
$_SESSION['skip_coppa'] = !empty($_POST['accept_agreement']); |
| 240 |
|
// Are they under age, and under age users are banned? |
| 241 |
|
if (!empty($modSettings['coppaAge']) && empty($modSettings['coppaType']) && empty($_SESSION['skip_coppa'])) |
| 242 |
|
{ |
| 243 |
|
loadLanguage('Errors'); |
| 244 |
|
fatal_lang_error('under_age_registration_prohibited', false, array($modSettings['coppaAge'])); |
| 245 |
|
} |
| 246 |
|
|
| 247 |
|
// Check the time gate for miscreants. First make sure they came from somewhere that actually set it up. |
| 248 |
|
if (empty($_SESSION['register']['timenow']) || empty($_SESSION['register']['limit'])) |