first commit
This commit is contained in:
17
includes/config.php
Normal file
17
includes/config.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
// 禁止直接访问
|
||||
defined('APP_ROOT') or define('APP_ROOT', dirname(__DIR__));
|
||||
|
||||
// 调试模式设置
|
||||
define('DEBUG_MODE', true);
|
||||
|
||||
// 错误报告设置
|
||||
if (DEBUG_MODE) {
|
||||
ini_set('display_errors', '1');
|
||||
ini_set('display_startup_errors', '1');
|
||||
error_reporting(E_ALL);
|
||||
} else {
|
||||
ini_set('display_errors', '0');
|
||||
ini_set('log_errors', '1');
|
||||
ini_set('error_log', APP_ROOT.'/logs/error.log');
|
||||
}
|
||||
Reference in New Issue
Block a user