add autoload.inc.php

This commit is contained in:
printempw 2016-02-02 21:23:20 +08:00
parent 7c0592dbf8
commit 0bb571e6fd

13
includes/autoload.inc.php Normal file
View File

@ -0,0 +1,13 @@
<?php
/**
* @Author: prpr
* @Date: 2016-02-02 21:17:59
* @Last Modified by: prpr
* @Last Modified time: 2016-02-02 21:19:31
*/
function __autoload($classname) {
global $dir;
$filename = "$dir/includes/".$classname.".class.php";
include_once($filename);
}