]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-login.php
Updated copyright notice as there are changes in this year
[mailer.git] / inc / modules / guest / what-login.php
index 708239941d06f04deed6cd2a484f4d378b6f4c9c..2ca840a43caf23491a927d3a90594885abd1d46a 100644 (file)
@@ -17,7 +17,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -49,9 +49,9 @@ if ((!isExtensionActive('user')) && (!isAdmin())) {
        return;
 } // END - if
 
-// Initialize variables
+// Initialize variables as not logged in
 $errorCode = '0';
-$userid = false;
+$userid = NULL;
 $hash = '';
 $url = '';
 $add = '';
@@ -85,10 +85,6 @@ if ((isMemberIdSet()) && (isSessionVariableSet('u_hash'))) {
                        $userid  = bigintval(postRequestElement('id'));
                }
        } // END - if
-} else {
-       // Not logged in
-       $userid = NULL;
-       $hash = '';
 }
 
 if (isMember()) {
@@ -131,15 +127,15 @@ if (!empty($errorCode)) {
                fetchUserData(getSession('userid'));
        } // END - if
 
-       // @TODO Move this HTML code into a template
-       $content['message'] = loadTemplate('guest_login_error_message', true, $errorCode);
+       // Add message code
+       $content['message'] = loadTemplate('guest_login_error_message', TRUE, $errorCode);
 } // END - if
 
 // Display login form with resend-password form
 if (isExtensionActive('nickname')) {
-       loadTemplate('guest_nickname_login', false, $content);
+       loadTemplate('guest_nickname_login', FALSE, $content);
 } else {
-       loadTemplate('guest_login', false, $content);
+       loadTemplate('guest_login', FALSE, $content);
 }
 
 // Was an URL constructed?