private static function checkPriviliages($action) { if (!Cfg::get('check_priviliages', false)) { return $action; } if (($loginAction = Privileges::access($action)) === false) { return false; } if (is_string($loginAction) && isset($_SERVER["REQUEST_URI"])) { Request::set(self::SAVE_URL, $_SERVER["REQUEST_URI"]); $action = $loginAction; } return $action; }
public static function home() { Request::set(WebPage::SAVE_URL, Cfg::siteUrl()); self::doRedirect(); }