* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
$errorCode = '0';
$userid = false;
$hash = '';
-$URL = '';
+$url = '';
$add = '';
// Already logged in?
if (isMember()) {
// Login immidiately...
- $URL = 'modules.php?module=login';
+ $url = 'modules.php?module=login';
} elseif ((isFormSent()) && ('' . $userid . '' != '' . postRequestParameter('id') . '')) {
// Invalid input (no nickname extension installed but nickname entered)
$errorCode = getCode('EXTENSION_PROBLEM');
} elseif (isFormSent()) {
// Try the login (see inc/libs/user_functions.php)
- $URL = doUserLogin(postRequestParameter('id'), postRequestParameter('password'));
+ $url = doUserLogin(postRequestParameter('id'), postRequestParameter('password'));
} elseif ((isPostRequestParameterSet('new_pass')) && (isset($userid))) {
// Try the userid/email lookup (see inc/libs/user_functions.php)
$errorCode = doNewUserPassword(postRequestParameter('email'), $userid);
if (!empty($errorCode)) {
// @TODO Move this HTML code into a template
$message = "<tr>
- <td width=\"10\" class=\"seperator\"> </td>
- <td colspan=\"7\" align=\"center\">
+ <td colspan=\"4\" align=\"center\">
<span class=\"guest_failed\">";
// Do we have a userid set?
// Continue with HTML
$message .= "</span>
</td>
- <td width=\"10\" class=\"seperator\"> </td>
</tr>\n";
$content['message'] = $message;
} // END - if
}
// Was an URL constructed?
-if (!empty($URL)) {
+if (!empty($url)) {
// URL was constructed
- if (getTotalFatalErrors() > 0) {
+ if (ifFatalErrorsDetected()) {
// Handle fatal errors
runFilterChain('handle_fatal_errors');
} else {
// Load URL
- redirectToUrl($URL);
+ redirectToUrl($url);
}
} // END - if