Ejemplo n.º 1
0
unset($REX);
$REX[HTDOCS_PATH] = "../";
$REX[GG] = false;
$REX[BC] = false;
$REX[REDAXO] = true;
include "include/master.inc.php";
session_start();
// ----------------- auth
if ($REX[SETUP]) {
    $page_name = $I18N->msg("setup");
    $page = "setup";
    $dl = false;
} else {
    $REX_LOGIN = new login();
    $REX_LOGIN->setSqlDb(1);
    $REX_LOGIN->setSysID("redaxo");
    // fuer redaxo
    $REX_LOGIN->setSessiontime(3000);
    // 3600 sekunden = 60 min
    $REX_LOGIN->setLogin($REX_ULOGIN, $REX_UPSW);
    if ($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;
    } else {
Ejemplo n.º 2
0
    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;
    } else {
Ejemplo n.º 3
0
    if ($lang != "en_gb" & $lang != "de_de") {
        $lang = "de_de";
    }
    $REX[LANG] = $lang;
    // ----------------- CREATE LANG OBJ
    $I18N = new i18n($REX[LANG], $REX[INCLUDE_PATH] . "/lang/");
    $REX[LOCALES] = i18n::getLocales($REX[INCLUDE_PATH] . "/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 {
    $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 ($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));
        header('Content-Type: text/html; charset=' . $I18N->msg("htmlcharset"));
        $LOGIN = FALSE;
        exit;