Пример #1
0
 public function is_allowed_on($uri)
 {
     if (null === ($matched_path = $this->find_best_matched_path(Rules::all_paths(), $uri))) {
         return true;
     }
     return in_array($matched_path, $this->allowed_paths());
 }
 public static function is_gaurded($uri)
 {
     foreach (Rules::all_paths() as $p) {
         if (starts_with($uri, $p)) {
             return true;
         }
     }
     return false;
 }