<?php
require "mw/mw_app.php";
- $app = new mw_app("pathes.php");
+ $app = new mw_app("pathes.php", true);
- if(!$app->init()){
- $app->show_error();
+ if(($res = $app->init()) !== true){
+ echo $res;
return;
}
- if($app->run()) $app->display();
+ $app->run(isset($_GET[$app->param("e")]) ? $_GET[$app->param("e")] : "");
+ $app->display();