Rewrote 'we' word a little, rewrote mail order to use SQL_INSERTID() instead of anoth...
[mailer.git] / inc / modules / login.php
index 2d9f337dac961605178f980b3e1d8c08d8815c51..e859f451db5064023abfce759b93b929b70c45a8 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -37,7 +37,7 @@
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       die();
+       exit();
 } elseif (!isMember()) {
        // Redirect to login form with displayed error code
        redirectToUrl('modules.php?module=index&what=login&code=' . getCode('MODULE_MEMBER_ONLY') . '&mod=' . getModule());
@@ -57,7 +57,9 @@ loadTemplate('member_menu_start');
 
 // Adding the main content module here
 if (!isActionSet()) {
-       if (!isWhatSet()) setWhat('welcome');
+       if (!isWhatSet()) {
+               setWhat('welcome');
+       } // END - if
 } else {
        $action = getAction();
 }
@@ -71,8 +73,8 @@ if ((getConfig('member_menu') == 'Y') || (!isExtensionActive('sql_patches', true
 enableBlockMode(false);
 
 // Menu -> content
-outputHtml("   </td>
-  <td valign=\"top\" align=\"center\" rowspan=\"3\" class=\"member_content\">");
+outputHtml('   </td>
+  <td valign="top" align="center" rowspan="3" class="member_content">');
 
 $inc = sprintf("inc/modules/member/action-%s.php", $action);
 if ((isIncludeReadable($inc)) && (isMenuActionValid('member', getAction(), getWhat()))) {
@@ -89,10 +91,10 @@ if ((getConfig('member_menu') == 'Y') || (!isExtensionActive('sql_patches', true
 
        // Some advertising stuff?
        loadTemplate('member_advert');
-}
+} // END - if
 
-outputHtml("  </td>
-</tr>");
+outputHtml('  </td>
+</tr>');
 
 // Load same template for 'Goto TOP'
 loadTemplate('member_goto_top');
@@ -100,5 +102,5 @@ loadTemplate('member_goto_top');
 // Footer template (Thanx to Mr. Glaus!)
 loadTemplate('member_footer');
 
-//
+// [EOF]
 ?>