X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=index.php;h=ac3968754c08b0eb7ad83002ae158ed4ff9cc450;hb=0ae18f679eb3e0293b07986585a10bd3e65dcc9f;hp=327694779e9c23c6c935e139386ad91a4145ec74;hpb=0ada6496e6c552c473a5816734b38896ccdd345b;p=mtweb diff --git a/index.php b/index.php index 3276947..ac39687 100644 --- a/index.php +++ b/index.php @@ -1,8 +1,12 @@ 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();