blessing-skin-server/includes/autoload.inc.php

17 lines
442 B
PHP
Raw Normal View History

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