function execute()
 {
     $rex_com_auth_jump = rex_request('rex_com_auth_jump', 'string');
     if ($rex_com_auth_jump != "") {
         ob_end_clean();
         header('Location: http://' . $REX["SERVER"] . '/' . rex_com_auth_urldecode($rex_com_auth_jump));
         exit;
     }
 }
Esempio n. 2
0
    if ($REX['ADDON']['community']['plugin_auth']['stay_active'] == "1") {
        $url_params['rex_com_auth_stay_active'] = rex_request("rex_com_auth_stay_active", "int");
    }
    // ---------------------------------------------- NOTHING
} else {
    // echo "nichts";
    $rex_com_auth_info = 0;
    // 0 - nichts / 1 - logout / 2 - failed login / 3 - logged in
    unset($REX['COM_USER']);
}
$rex_com_auth_jump = rex_request('rex_com_auth_jump', 'string');
if (isset($jump_aid) && ($article = OOArticle::getArticleById($jump_aid)) || $rex_com_auth_use_jump_url && $rex_com_auth_jump != "") {
    ob_end_clean();
    $url_params['rex_com_auth_info'] = $rex_com_auth_info;
    if ($rex_com_auth_use_jump_url && $rex_com_auth_jump != "") {
        header('Location: http://' . $REX["SERVER"] . '/' . rex_com_auth_urldecode($rex_com_auth_jump));
    } else {
        if ($rex_com_auth_jump != "") {
            $url_params[$REX['ADDON']['community']['plugin_auth']['request']['jump']] = $rex_com_auth_jump;
        }
        header('Location:' . rex_getUrl($jump_aid, '', $url_params, '&'));
    }
    exit;
}
// ---------- page_permissions
if ($article = OOArticle::getArticleById($REX["ARTICLE_ID"])) {
    if (!rex_com_checkperm($article)) {
        ob_end_clean();
        header('Location:' . rex_getUrl($REX['ADDON']['community']['plugin_auth']['article_withoutperm'], '', $url_params, '&'));
        exit;
    }