Commit f1d65e50 authored by Andrew Dolgov's avatar Andrew Dolgov

remove api-specific _autoload

parent dc0374df
......@@ -8,19 +8,12 @@
dirname(dirname(__FILE__)) . PATH_SEPARATOR .
dirname(dirname(__FILE__)) . "/include" );
function __autoload($class) {
$file = "classes/".strtolower(basename($class)).".php";
if (file_exists($file)) {
require $file;
}
}
chdir("..");
require_once "db.php";
require_once "db-prefs.php";
require_once "functions.php";
chdir("..");
if (defined('ENABLE_GZIP_OUTPUT') && ENABLE_GZIP_OUTPUT &&
function_exists("ob_gzhandler")) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment