1 Star 0 Fork 0

桃子 / opencmf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
admin.php 1.84 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
// +----------------------------------------------------------------------
// | OpenCMF [ Simple Efficient Excellent ]
// +----------------------------------------------------------------------
// | Copyright (c) 2014 http://www.opencmf.cn 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', 'Admin');
/**
* 应用目录设置
* 安全期间,建议安装调试完成后移动到非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';
}
/**
* 系统安装及开发模式检测
*/
if (is_file('./Data/install.lock') === false && @$_SERVER[ENV_PRE.'DEV_MODE'] !== 'true') {
define('BIND_MODULE','Install');
} else {
// 系统调试设置, 项目正式部署后请设置为false
define('APP_DEBUG', @$_SERVER[ENV_PRE.'APP_DEBUG'] ? : true);
}
/**
* 引入核心入口
* ThinkPHP亦可移动到WEB以外的目录
*/
require './ThinkPHP/ThinkPHP.php';
1
https://gitee.com/taoyy/opencmf.git
git@gitee.com:taoyy/opencmf.git
taoyy
opencmf
opencmf
master

搜索帮助