remove api-specific _autoload
This commit is contained in:
parent
dc0374df2b
commit
f1d65e5089
1 changed files with 1 additions and 8 deletions
|
@ -8,19 +8,12 @@
|
||||||
dirname(dirname(__FILE__)) . PATH_SEPARATOR .
|
dirname(dirname(__FILE__)) . PATH_SEPARATOR .
|
||||||
dirname(dirname(__FILE__)) . "/include" );
|
dirname(dirname(__FILE__)) . "/include" );
|
||||||
|
|
||||||
function __autoload($class) {
|
chdir("..");
|
||||||
$file = "classes/".strtolower(basename($class)).".php";
|
|
||||||
if (file_exists($file)) {
|
|
||||||
require $file;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once "db.php";
|
require_once "db.php";
|
||||||
require_once "db-prefs.php";
|
require_once "db-prefs.php";
|
||||||
require_once "functions.php";
|
require_once "functions.php";
|
||||||
|
|
||||||
chdir("..");
|
|
||||||
|
|
||||||
if (defined('ENABLE_GZIP_OUTPUT') && ENABLE_GZIP_OUTPUT &&
|
if (defined('ENABLE_GZIP_OUTPUT') && ENABLE_GZIP_OUTPUT &&
|
||||||
function_exists("ob_gzhandler")) {
|
function_exists("ob_gzhandler")) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue