X-Git-Url: http://git.dj3c1t.com/index.cgi?p=mtweb;a=blobdiff_plain;f=index.php;h=ac3968754c08b0eb7ad83002ae158ed4ff9cc450;hp=d75db99b4928701c38d848bff1af02dbc9b914e4;hb=HEAD;hpb=422d883e3ed8ee55ee41e3b7826f32b79cea646d diff --git a/index.php b/index.php index d75db99..ac39687 100644 --- a/index.php +++ b/index.php @@ -1,10 +1,12 @@ 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();