1 Star 0 Fork 0

斛觞 / corethink

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
jry 提交于 2017-02-27 14:52 . 更新官方域名
<?php
// +----------------------------------------------------------------------
// | OpenCMF [ Simple Efficient Excellent ]
// +----------------------------------------------------------------------
// | Copyright (c) 2014 http://www.lingyun.net All rights reserved.
// +----------------------------------------------------------------------
// | Author: jry <598821125@qq.com>
// +----------------------------------------------------------------------
/**
* Content-type设置
*/
header("Content-type: text/html; charset=utf-8");
/**
* PHP版本检查
*/
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
die('require PHP > 5.3.0 !');
}
/**
* PHP报错设置
*/
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
/**
* 开发模式环境变量前缀
*/
define('ENV_PRE', 'OC_');
/**
* 定义前台标记
*/
define('MODULE_MARK', 'Home');
/**
* 应用目录设置
* 安全期间,建议安装调试完成后移动到非WEB目录
*/
define('APP_PATH', './Application/');
/**
* 缓存目录设置
* 此目录必须可写,建议移动到非WEB目录
*/
define('RUNTIME_PATH', './Runtime/');
/**
* 静态缓存目录设置
* 此目录必须可写,建议移动到非WEB目录
*/
define('HTML_PATH', RUNTIME_PATH . 'Html/');
/**
* 包含开发模式数据库连接配置
*/
if (@$_SERVER[ENV_PRE . 'DEV_MODE'] !== 'true') {
@include './Data/dev.php';
}
/**
* 系统调试设置, 项目正式部署后请设置为false
*/
define('APP_DEBUG', @$_SERVER[ENV_PRE . 'APP_DEBUG'] ?: true);
/**
* 系统安装及开发模式检测
*/
if (is_file('./Data/install.lock') === false && @$_SERVER[ENV_PRE . 'DEV_MODE'] !== 'true') {
define('BIND_MODULE', 'Install');
}
/**
* 引入核心入口
* ThinkPHP亦可移动到WEB以外的目录
*/
require './ThinkPHP/ThinkPHP.php';
PHP
1
https://gitee.com/sammoore/corethink.git
git@gitee.com:sammoore/corethink.git
sammoore
corethink
corethink
master

搜索帮助