1 Star 0 Fork 5

xuannan / baoyalive

forked from baoyalive / baoyalive 
Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
admin.php 1.89 KB
Copy Edit Web IDE Raw Blame History
xxx authored 2020-06-01 10:23 . 金钱豹live
<?php
// +----------------------------------------------------------------------
// | qq407193275 [ 简单 高效 卓越 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016 qq407193275 All rights reserved.
// +----------------------------------------------------------------------
// | Author: 2s
// +----------------------------------------------------------------------
/**
* Content-type设置
*/
header("Content-type: text/html; charset=utf-8");
/**
* PHP版本检查
*/
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
die('require PHP > 5.4.0 !');
}
/**
* PHP报错设置
*/
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
/**
* 开发模式环境变量前缀
*/
define('ENV_PRE', 'LY_');
/**
* 根目录绝对路径
*/
define('ROOT_PATH', dirname(dirname(dirname(dirname(__DIR__)))));
/**
* 定义后台标记
*/
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';
}
/**
* 系统调试设置, 项目正式部署后请设置为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');
}
/**
* Composer
*/
//require './vendor/autoload.php';
/**
* 引入核心入口
* ThinkPHP亦可移动到WEB以外的目录
*/
require './ThinkPHP/ThinkPHP.php';

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/xuannan/baoyalive.git
git@gitee.com:xuannan/baoyalive.git
xuannan
baoyalive
baoyalive
master

Search

102255 3a0e046c 1850385 102255 7aaa926c 1850385