blessing-skin-server/includes/autoload.inc.php
2016-03-12 18:47:42 +08:00

18 lines
479 B
PHP

<?php
/**
* @Author: prpr
* @Date: 2016-02-02 21:17:59
* @Last Modified by: printempw
* @Last Modified time: 2016-03-12 18:44:26
*/
function __autoload($classname) {
global $dir;
$filename = "$dir/includes/".$classname.".class.php";
include_once($filename);
}
if (!file_exists($dir.'/config.php'))
Utils::showErrorPage(-1, '未找到 `config.php`,请确认配置文件是否存在。');
require "$dir/config.php";
if (!DEBUG_MODE) error_reporting(0);