reorganisation des dossiers
[mtweb] / mw / app / mods / index / index.php
diff --git a/mw/app/mods/index/index.php b/mw/app/mods/index/index.php
new file mode 100644 (file)
index 0000000..52ead31
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+
+  class mw_index_index extends mw_mod{
+
+    function index(&$env){
+      $start_action = $env->config("start_action");
+      if($start_action){
+        $start_action_params = $env->config("start_action_params");
+        if($start_action_params && is_array($start_action_params)){
+          foreach($start_action_params as $key => $value) $_GET[$key] = $value;
+        }
+        $env->run($start_action);
+      }
+    }
+
+  }
+
+?>
\ No newline at end of file