17 Star 38 Fork 18

水月居科技有限公司 / wucaikecheng

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
singliang 提交于 2016-10-09 18:57 . 创建项目同步V2015
<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------
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('require PHP > 5.3.0 !');
/*移除magic_quotes_gpc参数影响*/
if (get_magic_quotes_gpc()) {
function stripslashes_deep($value)
{
$value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
return $value;
}
$_POST = array_map('stripslashes_deep', $_POST);
$_GET = array_map('stripslashes_deep', $_GET);
$_COOKIE = array_map('stripslashes_deep', $_COOKIE);
$_REQUEST = array_map('stripslashes_deep', $_REQUEST);
}
/*移除magic_quotes_gpc参数影响end*/
/**
* 系统调试设置
* 项目正式部署后请设置为false
*/
define ('APP_DEBUG', true);
/**
* 应用目录设置
* 安全期间,建议安装调试完成后移动到非WEB目录
*/
define ('APP_PATH', './Application/');
if (!is_file(APP_PATH . 'User/Conf/config.php')) {
header('Location: ./install.php');
exit;
}
/**
* 缓存目录设置
* 此目录必须可写,建议移动到非WEB目录
*/
define ('RUNTIME_PATH', './Runtime/');
/**
* 引入核心入口
* ThinkPHP亦可移动到WEB以外的目录
*/
require './ThinkPHP/ThinkPHP.php';
PHP
1
https://gitee.com/shuiyueju/wckc.git
git@gitee.com:shuiyueju/wckc.git
shuiyueju
wckc
wucaikecheng
master

搜索帮助