From 706a4cb8c1268ca227e84809287b7465876fc157 Mon Sep 17 00:00:00 2001 From: printempw Date: Sat, 12 Mar 2016 17:21:30 +0800 Subject: [PATCH] fixed bug --- includes/autoload.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/autoload.inc.php b/includes/autoload.inc.php index d125de95..e029a706 100644 --- a/includes/autoload.inc.php +++ b/includes/autoload.inc.php @@ -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";