Status codes rewritten to GLOBALS
[mailer.git] / inc / modules / guest / what-login.php
index 0c942a81ee5558fcea3461e88ba57e6caa934fb2..e8b3dfc6a9206d1c33318f01348ad774892f45ef 100644 (file)
@@ -90,7 +90,7 @@ if (IS_MEMBER()) {
        $URL = "modules.php?module=login";
 } elseif ((IS_FORM_SENT()) && ("".$uid."" != "".REQUEST_POST('id')."")) {
        // Invalid input (no nickname extension installed but nickname entered)
-       $ERROR = constant('CODE_EXTENSION_PROBLEM');
+       $ERROR = getCode('EXTENSION_PROBLEM');
 } elseif (IS_FORM_SENT()) {
        // Try the login (see inc/libs/user_functions.php)
        $URL = USER_DO_LOGIN(REQUEST_POST('id'), REQUEST_POST('password'));
@@ -114,27 +114,27 @@ if (!empty($ERROR)) {
     <span class=\"guest_failed\">";
 
        switch ($ERROR) {
-               case constant('CODE_WRONG_PASS'):
+               case getCode('WRONG_PASS'):
                        $MSG .= getMessage('LOGIN_WRONG_PASS');
                        break;
 
-               case constant('CODE_WRONG_ID'):
+               case getCode('WRONG_ID'):
                        $MSG .= getMessage('LOGIN_WRONG_ID');
                        break;
 
-               case constant('CODE_ID_LOCKED'):
+               case getCode('ID_LOCKED'):
                        $MSG .= getMessage('LOGIN_ID_LOCKED');
                        break;
 
-               case constant('CODE_ID_UNCONFIRMED'):
+               case getCode('ID_UNCONFIRMED'):
                        $MSG .= getMessage('LOGIN_ID_UNCONFIRMED');
                        break;
 
-               case constant('CODE_NO_COOKIES'):
+               case getCode('NO_COOKIES'):
                        $MSG .= getMessage('LOGIN_NO_COOKIES');
                        break;
 
-               case constant('CODE_EXTENSION_PROBLEM'):
+               case getCode('EXTENSION_PROBLEM'):
                        if (IS_ADMIN()) {
                                $MSG .= sprintf(getMessage('EXTENSION_PROBLEM_NOT_INSTALLED'), "nickname");
                        } else {