]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/login.php
Typo 'referral'->'referal' fixed, more 'empty version' fixed
[mailer.git] / inc / modules / login.php
index bc46bfb49ed382b61664941351060b63f1b73c08..9545e43535d8ed762ec7a8f4ba0fdb195c14906f 100644 (file)
@@ -43,14 +43,6 @@ if (!defined('__SECURITY')) {
        $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);
 } // END - if
 
 // Disable block mode by default
@@ -59,9 +51,11 @@ enableBlockMode(false);
 // Generate a tableset for the menu title and content
 loadTemplate('member_header');
 
+// Add code-message here
+handleCodeMessage();
+
 // Begin menu block here
-outputHtml("<tr>
-  <td class=\"member_menu\">");
+loadTemplate('member_menu_start');
 
 // Adding the main content module here
 if (!isActionSet()) {