} 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; } } else { // Wenn Article nicht vorhanden - nichts machen -> wird dann von der index.php geregelt sodass eine fehlerseite auftaucht // $jump_aid = $REX['ADDON']['community']['plugin_auth']['article_withoutperm']; }
function _checkPerm($nav, $level) { return rex_com_checkperm($nav); }