fixed bug

This commit is contained in:
printempw 2016-03-12 17:21:30 +08:00
parent 0827b2337b
commit 706a4cb8c1

View File

@ -2,8 +2,8 @@
/**
* @Author: prpr
* @Date: 2016-02-02 21:17:59
* @Last Modified by: prpr
* @Last Modified time: 2016-02-04 18:34:34
* @Last Modified by: printempw
* @Last Modified time: 2016-03-12 17:20:54
*/
function __autoload($classname) {
@ -11,4 +11,6 @@ function __autoload($classname) {
$filename = "$dir/includes/".$classname.".class.php";
include_once($filename);
}
if (!file_exists($dir.'/config.php'))
Utils::raise(-1, '未找到 `config.php`,请确认配置文件是否存在。');
require "$dir/config.php";