You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
224 B
PHTML
13 lines
224 B
PHTML
12 years ago
|
<?php
|
||
|
function __autoload($class) {
|
||
|
$class_file = str_replace("_", "/", strtolower(basename($class)));
|
||
|
|
||
|
$file = dirname(__FILE__)."/../classes/$class_file.php";
|
||
|
|
||
|
if (file_exists($file)) {
|
||
|
require $file;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
?>
|