-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
38 lines (31 loc) · 892 Bytes
/
index.php
File metadata and controls
38 lines (31 loc) · 892 Bytes
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
<?php
namespace org\opencomb\platform ;
use org\jecat\framework\db\DB;
use org\jecat\framework\mvc\controller\Request;
use org\jecat\framework\system\AccessRouter;
use org\opencomb\platform\system\upgrader\PlatformDataUpgrader ;
$fTimeStart = microtime(true) ;
// 初始化 jcat 框架
$aService = require 'oc.init.php' ;
$fInitFinish = microtime(true) ;
// 根据路由设置创建控制器 并 执行
$aController = AccessRouter::singleton()->createRequestController(Request::singleton()) ;
if($aController)
{
$aController->mainRun() ;
}
else
{
header("HTTP/1.0 404 Not Found");
echo "<h1>Page Not Found</h1>" ;
}
if( empty($_REQUEST['rspn']) and $aService->isDebugging() )
{
echo $fInitFinish - $fTimeStart, '<br />', microtime(true) - $fTimeStart ;
}
/*
$aExecuteTimeWatcher->finish('/system/total') ;
if( empty($_REQUEST['rspn']) )
{
$aExecuteTimeWatcher->printLogs() ;
}*/