X-Git-Url: http://git.dj3c1t.com/index.cgi?p=mtweb;a=blobdiff_plain;f=index.php;h=ac3968754c08b0eb7ad83002ae158ed4ff9cc450;hp=327694779e9c23c6c935e139386ad91a4145ec74;hb=HEAD;hpb=0ada6496e6c552c473a5816734b38896ccdd345b 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();