mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-03-07 15:16:40 +08:00
20 lines
656 B
PHP
20 lines
656 B
PHP
<?php
|
|
/**
|
|
* @Author: prpr
|
|
* @Date: 2016-02-02 21:17:59
|
|
* @Last Modified by: printempw
|
|
* @Last Modified time: 2016-03-18 17:34:35
|
|
*/
|
|
|
|
function __autoload($classname) {
|
|
global $dir;
|
|
// echo $classname.'<br />';
|
|
$include_dir = $dir.DIRECTORY_SEPARATOR."includes".DIRECTORY_SEPARATOR."classes".DIRECTORY_SEPARATOR;
|
|
$filename = $include_dir.str_replace('\\', DIRECTORY_SEPARATOR, $classname) . '.class.php';
|
|
require_once($filename);
|
|
}
|
|
if (!file_exists($dir.'/config.php'))
|
|
Utils::showErrorPage(-1, '未找到 `config.php`,请确认配置文件是否存在。');
|
|
require "$dir/config.php";
|
|
if (!DEBUG_MODE) error_reporting(0);
|