maj version dans config.xml
[mtweb] / index.php
index d75db99..ac39687 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,10 +1,12 @@
 <?php
 
   require "mw/mw_app.php";
-  $app = new mw_app();
-  if($app->init("config.php")){
-    $app->run();
-    $app->display();
+  $app = new mw_app("pathes.php", true);
+
+  if(($res = $app->init()) !== true){
+    echo $res;
+    return;
   }
 
-?>
\ No newline at end of file
+  $app->run(isset($_GET[$app->param("e")]) ? $_GET[$app->param("e")] : "");
+  $app->display();