Esempio n. 1
0
    $I18N = rex_create_lang($REX['LANG']);
    setlocale(LC_ALL, trim($I18N->msg("setlocale")));
    header('Content-Type: text/html; charset=' . $I18N->msg("htmlcharset"));
    $page_name = $I18N->msg("setup");
    $page = "setup";
    $dl = false;
} else {
    // ----------------- CREATE LANG OBJ
    if (!isset($REX_ULOGIN)) {
        $REX_ULOGIN = '';
    }
    if (!isset($REX_UPSW)) {
        $REX_UPSW = '';
    }
    $REX_LOGIN = new login();
    $REX_LOGIN->setSqlDb(1);
    $REX_LOGIN->setSysID($REX['INSTNAME']);
    // fuer redaxo
    $REX_LOGIN->setSessiontime(3000);
    // 3600 sekunden = 60 min
    $REX_LOGIN->setLogin($REX_ULOGIN, $REX_UPSW);
    if (isset($FORM['logout']) and $FORM['logout'] == 1) {
        $REX_LOGIN->setLogout(true);
    }
    $REX_LOGIN->setUserID("rex_user.user_id");
    $REX_LOGIN->setUserquery("SELECT * FROM rex_user WHERE user_id = 'USR_UID'");
    $REX_LOGIN->setLoginquery("SELECT * FROM rex_user WHERE login = '******' and psw = 'USR_PSW'");
    if (!$REX_LOGIN->checkLogin()) {
        header("Location: login.php?FORM[loginmessage]=" . urlencode($REX_LOGIN->message));
        $LOGIN = FALSE;
        exit;