1 Star 1 Fork 3

lcf12307/momo

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
admin.php 1.90 KB
Copy Edit Raw Blame History
Darker authored 2017-09-10 00:48 . No commit message
<?php
// +----------------------------------------------------------------------
// | QQ群274904994 [ 简单 高效 卓越 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016 51zhibo.top All rights reserved.
// +----------------------------------------------------------------------
// | Author: 51zhibo.top
// +----------------------------------------------------------------------
/**
* 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';
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/chavey/momo.git
git@gitee.com:chavey/momo.git
chavey
momo
momo
master

Search

D67c1975 1850385 1daf7b77 1850385