- $URL = 'modules.php?module=index';
- if (checkModulePermissions('login') == 'mem_only') $URL .= '&code=' . getCode('MODULE_MEM_ONLY') . '&mod=' . getModule();
- redirectToUrl($URL);
-}
-
-if ($GLOBALS['status'] != 'CONFIRMED') {
- // If the status is different than confirmed move the user away from here
- $errorCode = generateErrorCodeFromUserStatus($GLOBALS['status']);
-
- // Load URL
- redirectToUrl('modules.php?module=index&what=login&login=' . $errorCode);
+ // Redirect to login form with displayed error code
+ redirectToUrl('modules.php?module=index&what=login&code=' . getCode('MODULE_MEMBER_ONLY') . '&mod=' . getModule());