]>
Commit | Line | Data |
---|---|---|
404e2e36 | 1 | <?php |
48c1d0c7 AD |
2 | require_once "functions.php"; |
3 | ||
404e2e36 AD |
4 | function __autoload($class) { |
5 | $class_file = str_replace("_", "/", strtolower(basename($class))); | |
6 | ||
7 | $file = dirname(__FILE__)."/../classes/$class_file.php"; | |
8 | ||
9 | if (file_exists($file)) { | |
10 | require $file; | |
11 | } | |
12 | ||
ea79a0e0 | 13 | } |