-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAcPHP.base.php
executable file
·90 lines (62 loc) · 3.72 KB
/
AcPHP.base.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
// +--------------------------------------------------------------------------------------
// + AcPHP
// +--------------------------------------------------------------------------------------
// + 版权所有 2015年11月4日 贵州天岛在线科技有限公司,并保留所有权利。
// + 网站地址: http://www.acphp.com
// +--------------------------------------------------------------------------------------
// + 这不是一个自由软件!您只能在遵守授权协议前提下对程序代码进行修改和使用;不允许对程序代码以任何形式任何目的的再发布。
// + 授权协议:http://www.acphp.com/license.html
// +--------------------------------------------------------------------------------------
// + Author: AcPHP http://www.jiangzg.com/ <[email protected]/jiangzg>
// + Release Date: 2015年11月4日 下午11:09:07
// +--------------------------------------------------------------------------------------
// +--------------------------------------------------------------------------------------
// + 入口凭证
// +--------------------------------------------------------------------------------------
defined('C_CA') or define('C_CA', TRUE);
// +--------------------------------------------------------------------------------------
// + 引出初始化常量库
// +--------------------------------------------------------------------------------------
include dirname(__FILE__).'/Const/Init.const.php';
// +--------------------------------------------------------------------------------------
// + 系统载入文件个数记录
// +--------------------------------------------------------------------------------------
$GLOBALS[C]['_SYA_LOAD_FILE_'][] = array('filename'=>__FILE__,'desc'=>'应用引导文件');
$GLOBALS[C]['_SYA_LOAD_FILE_'][] = array('filename'=>C_SYC_XEMS_PATH.'App'.C_EXT,'desc'=>'应用载入文件');
// +--------------------------------------------------------------------------------------
// + 加载核心文件
// +--------------------------------------------------------------------------------------
include C_SYC_XEMS_PATH.'App'.C_EXT;
// +------------------------------------------------------------------------------
// + 注册类自动加载方法
// +------------------------------------------------------------------------------
spl_autoload_register ( 'App::_autoload' );
// +------------------------------------------------------------------------------
// + 注册程序终止函数
// +------------------------------------------------------------------------------
register_shutdown_function ( 'App::fatalError' );
// +------------------------------------------------------------------------------
// + 自定义错误处理
// +------------------------------------------------------------------------------
set_error_handler ( 'App::appError' );
// +------------------------------------------------------------------------------
// + 自定义异常处理
// +------------------------------------------------------------------------------
set_exception_handler ( 'App::appException' );
// header ( 'Content-type: text/html; charset=utf-8');
// ini_set ( "display_errors", 1 );
// error_reporting ( E_ALL );
// App::createRunTime();
// +--------------------------------------------------------------------------------------
// + runTIme环境检测与创建
// +--------------------------------------------------------------------------------------
if(C_RUN_TIME && App::hasRunTime()){
App::getRunTime();
} else {
App::createRunTime();
}
// +--------------------------------------------------------------------------------------
// + 项目运行入口
// +--------------------------------------------------------------------------------------
App::createApp();