Esempio n. 1
0
 public static function launch()
 {
     if (REQUEST::GET("view") != null) {
         $view = "Nise\\Project\\" . REQUEST::GET("view");
         if (class_exists($view)) {
             $project = new $view();
         }
     }
 }
Esempio n. 2
0
 private static function is_allowed_in_subview(array $config)
 {
     foreach ($config as $key => $value) {
         if (self::startswith(strtolower($key), "subview:")) {
             if (CONFIG::has_attribute($value, "name", true) && $value["@attributes"]["name"] == REQUEST::GET("subview")) {
                 self::has_redirect($value, true);
                 self::$has_subview = true;
             }
         }
     }
 }