-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.php
47 lines (40 loc) · 1.88 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
37
38
39
40
41
42
43
44
45
46
47
<?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>
// +----------------------------------------------------------------------
header("Content-Type:text/html;charset=utf-8");
function reset_session_path()
{
$root = str_replace("\\", '/', dirname(__FILE__));
$savePath = $root . "/tmp/";
session_save_path($savePath);
}
//reset_session_path(); //如果您的服务器无法安装或者无法登陆,又或者后台验证码无限错误,请尝试取消本行起始两条左斜杠,让本行代码生效,以修改session存储的路径
if (version_compare(PHP_VERSION, '5.3.0', '<'))
die('当前PHP版本'.PHP_VERSION.',最低要求PHP版本5.3.0 <br/><br/>很遗憾,未能达到最低要求。本系统必须运行在PHP5.3 及以上版本。如果您是虚拟主机,请联系空间商升级PHP版本,如果您是VPS用户,请自行升级php版本或者联系VPS提供商寻求技术支持。
<br/><br/>商业客户请联系我公司技术支持。<a target="_blank" href="http://tox.ourstu.com">ThinkOX产品主页</a>');
define('BIND_MODULE','Install');
/**
* 系统调试设置
* 项目正式部署后请设置为false
*/
define ('APP_DEBUG', true);
/**
* 应用目录设置
* 安全期间,建议安装调试完成后移动到非WEB目录
*/
define ('APP_PATH', './Application/');
/**
* 缓存目录设置
* 此目录必须可写,建议移动到非WEB目录
*/
define ('RUNTIME_PATH', './Runtime/');
/**
* 引入核心入口
* ThinkPHP亦可移动到WEB以外的目录
*/
require './ThinkPHP/ThinkPHP.php';