示例#1
0
 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;
 }
示例#2
0
 public static function home()
 {
     Request::set(WebPage::SAVE_URL, Cfg::siteUrl());
     self::doRedirect();
 }