forked from ansiz/sae_weiphp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.php
36 lines (30 loc) · 1.09 KB
/
install.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
<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <[email protected]> <http://www.zjzit.cn>
// +----------------------------------------------------------------------
if(version_compare(PHP_VERSION,'5.3.0','<')) die('Your PHP Version is '.PHP_VERSION.', but WeiPHP require PHP > 5.3.0 !');
$_GET['m'] = 'Install';
/**
* 系统调试设置
* 项目正式部署后请设置为false
*/
define ( 'APP_DEBUG', true );
/**
* 应用目录设置
* 安全期间,建议安装调试完成后移动到非WEB目录
*/
define ( 'APP_PATH', './Application/' );
/**
* 缓存目录设置
* 此目录必须可写,建议移动到非WEB目录
*/
define ( 'RUNTIME_PATH', './Runtime/' );
/**
* 引入核心入口
* ThinkPHP亦可移动到WEB以外的目录
*/
require './ThinkPHP/ThinkPHP.php';