Example #1
0
        $REX['LOGIN']->setPasswordFunction($REX['PSWFUNC']);
    }
    if (rex_get('rex_logout', 'boolean')) {
        $REX['LOGIN']->setLogout(true);
    }
    $REX['LOGIN']->setLogin($rex_user_login, $rex_user_psw);
    $loginCheck = $REX['LOGIN']->checkLogin();
    $rex_user_loginmessage = "";
    if ($loginCheck !== true) {
        // login failed
        $rex_user_loginmessage = $REX['LOGIN']->message;
        // Fehlermeldung von der Datenbank
        if (is_string($loginCheck)) {
            $rex_user_loginmessage = $loginCheck;
        }
        $REX['PAGES']['login'] = rex_be_navigation::getLoginPage();
        $REX['PAGE'] = 'login';
        $REX['USER'] = null;
        $REX['LOGIN'] = null;
    } else {
        // Userspezifische Sprache einstellen, falls gleicher Zeichensatz
        $lang = $REX['LOGIN']->getLanguage();
        $I18N_T = rex_create_lang($lang, '', FALSE);
        if ($I18N->msg('htmlcharset') == $I18N_T->msg('htmlcharset')) {
            $I18N = rex_create_lang($lang);
        }
        $REX['USER'] = $REX['LOGIN']->USER;
    }
}
// ----- Prepare Core Pages
if ($REX['USER']) {