-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($ext, true)) { $msg = ERROR_CONFIRMING_MAIL; } else { $msg = sprintf(EXTENSION_PROBLEM_NOT_INSTALLED, "mailid"); }
- break;
-
- case CODE_EXTENSION_PROBLEM:
- // Default extension is "unknown"
- $ext = "unknown";
-
- // Is extension given?
- if (!empty($_GET['ext'])) $ext = SQL_ESCAPE($_GET['ext']);
- $msg = sprintf(EXTENSION_PROBLEM_EXT_INACTIVE, $ext);
- 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;
- }
+if (REQUEST_ISSET_GET(('msg'))) {
+ // Default extension is "unknown"
+ $ext = "unknown";
+
+ // Is extension given?
+ if (REQUEST_ISSET_GET(('ext'))) $ext = REQUEST_GET(('ext'));
+
+ // Which message shall we output?
+ $msg = convertCodeToMessage(REQUEST_GET('msg'));