projects
/
mtweb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
informations de versions
[mtweb]
/
index.php
diff --git
a/index.php
b/index.php
index
26b6745
..
ac39687
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-1,6
+1,12
@@
<?php
<?php
- require "mw/m
ain
.php";
-
if($mw = __mw("config.php")) __mw_display($mw
);
+ require "mw/m
w_app
.php";
+
$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();