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