|
";
switch ($ERROR) {
case constant('CODE_WRONG_PASS'):
$MSG .= getMessage('LOGIN_WRONG_PASS');
break;
case constant('CODE_WRONG_ID'):
$MSG .= getMessage('LOGIN_WRONG_ID');
break;
case constant('CODE_ID_LOCKED'):
$MSG .= getMessage('LOGIN_ID_LOCKED');
break;
case constant('CODE_ID_UNCONFIRMED'):
$MSG .= getMessage('LOGIN_ID_UNCONFIRMED');
break;
case constant('CODE_NO_COOKIES'):
$MSG .= getMessage('LOGIN_NO_COOKIES');
break;
case constant('CODE_EXTENSION_PROBLEM'):
if (IS_ADMIN()) {
$MSG .= sprintf(getMessage('EXTENSION_PROBLEM_NOT_INSTALLED'), "nickname");
} else {
$MSG .= getMessage('LOGIN_WRONG_ID');
}
break;
default:
DEBUG_LOG(__FILE__, __LINE__, sprintf("Unhandled error code %s detected.", $ERROR));
$MSG .= getMessage('LOGIN_WRONG_ID');
break;
}
$MSG .= "
|
|
\n";
define('LOGIN_FAILURE_MSG', $MSG);
} else {
// No problems, no output
define('LOGIN_FAILURE_MSG', "");
}
// Display login form with resend-password form
if (EXT_IS_ACTIVE("nickname")) {
LOAD_TEMPLATE("guest_nickname_login");
} else {
LOAD_TEMPLATE("guest_login");
}
// Was an URL constructed?
if (!empty($URL)) {
// URL was constructed
if (getTotalFatalErrors()) {
// Fatal errors!
LOAD_INC_ONCE("inc/fatal_errors.php");
} else {
// Load URL
LOAD_URL($URL);
}
} // END - if
//
?>