-// Add message here
-if (!empty($_GET['msg'])) {
- switch ($_GET['msg'])
- {
- case CODE_LOGOUT_DONE : $msg = LOGOUT_DONE; break;
- case CODE_LOGOUT_FAILED : $msg = "<SPAN class=\"guest_failed\">".LOGOUT_FAILED."</SPAN>"; break;
- case CODE_DATA_INVALID : $msg = MAIL_DATA_INVALID; break;
- case CODE_POSSIBLE_INVALID : $msg = MAIL_POSSIBLE_INVALID; break;
- case CODE_ACCOUNT_LOCKED : $msg = MEMBER_ACCOUNT_LOCKED_UNC; break;
- case CODE_USER_404 : $msg = USER_NOT_FOUND; break;
- case CODE_STATS_404 : $msg = MAIL_STATS_404; break;
- case CODE_ALREADY_CONFIRMED: $msg = MAIL_ALREADY_CONFIRMED; break;
- case CODE_ERROR_MAILID : if (EXT_IS_ACTIVE("mailid", true)) { $msg = ERROR_CONFIRMING_MAIL; } else { $msg = sprintf(EXTENSION_PROBLEM_NOT_INSTALLED, "mailid"); } break;
- case CODE_EXTENSION_PROBLEM: $msg = sprintf(EXTENSION_PROBLEM_EXT_INACTIVE, "mailid"); break;
- case CODE_COOKIES_DISABLED : $msg = LOGIN_NO_COOKIES; break;
- case CODE_BEG_SAME_AS_OWN : $msg = BEG_SAME_UID_AS_OWN; break;
- case CODE_LOGIN_FAILED : $msg = LOGIN_FAILED_GENERAL; break;
- default : $msg = UNKNOWN_MAILID_CODE_1.$_GET['msg'].UNKNOWN_MAILID_CODE_2; break;
- }
- LOAD_TEMPLATE("message", false, $msg);
-}