1 Star 0 Fork 23

juning5418/Scoreshop

forked from 火木科技/Scoreshop 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
admin.php 873 Bytes
一键复制 编辑 原始数据 按行查看 历史
<?php
/**
* 系统调试设置
* 项目正式部署后请设置为false
*/
define ('APP_DEBUG', true );
/**
*定义应用目录
**/
define('BIND_MODULE','Admin');
define ('APP_PATH', './Application/' );
/**
*定义模板目录
**/
define ('MUUCMF_THEME_PATH', './Theme/');
/**
*定义缓存目录
**/
define ('RUNTIME_PATH', './Runtime/' );
/**
* 引入核心入口
* ThinkPHP亦可移动到WEB以外的目录
*/
try{
require './ThinkPHP/ThinkPHP.php';
}catch (\Exception $exception){
if($exception->getCode()==815){
send_http_status(404);
$string=file_get_contents('./404.html');
$string=str_replace('$ERROR_MESSAGE',$exception->getMessage(),$string);
$string=str_replace('HTTP_HOST','http://'.$_SERVER['HTTP_HOST'],$string);
echo $string;
}else{
E($exception->getMessage(),$exception->getCode());
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/juning/Scoreshop.git
git@gitee.com:juning/Scoreshop.git
juning
Scoreshop
Scoreshop
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385