-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
51 lines (44 loc) · 984 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
ini_set('display_errors', 1);
error_reporting(-1);
$f3=require('lib/base.php');
if (extension_loaded('mongodb') && is_file($file='lib/MongoDB/functions.php'))
require($file);
$f3->set('DEBUG',2);
$f3->set('UI','ui/');
$f3->set('menu',
[
'/'=>'Env',
'/globals'=>'Globals',
'/internals'=>'Internals',
'/hive'=>'Hive',
'/lexicon'=>'Lexicon',
'/autoload'=>'Autoloader',
'/redir'=>'Router',
'/cli'=>'CLI',
'/cache'=>'Cache Engine',
'/config'=>'Config',
'/view'=>'View',
'/template'=>'Template',
'/markdown'=>'Markdown',
'/unicode'=>'Unicode',
'/audit'=>'Audit',
'/basket'=>'Basket',
'/sql'=>'SQL',
'/mongo'=>'MongoDB',
'/jig'=>'Jig',
'/auth'=>'Auth',
'/log'=>'Log Engine',
'/matrix'=>'Matrix',
'/image'=>'Image',
'/web'=>'Web',
'/ws'=>'WebSocket',
'/geo'=>'Geo',
'/google'=>'Google',
'/openid'=>'OpenID',
'/pingback'=>'Pingback'
]
);
$f3->map('/','App\Env');
$f3->map('/@controller','App\@controller');
$f3->run();