* $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 *
return;
} // END - if
-// Initialize variables
+// Initialize variables as not logged in
$errorCode = '0';
-$userid = false;
+$userid = NULL;
$hash = '';
$url = '';
$add = '';
$userid = bigintval(postRequestElement('id'));
}
} // END - if
-} else {
- // Not logged in
- $userid = NULL;
- $hash = '';
}
if (isMember()) {
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?