function autoload_class($class) { $class = str_replace('\\', '/', $class); $name = CLASS_DIRECTORY . '/' . $class . CLASS_EXT; if (file_exists($name)) { include_once $name; } $userName = path_from_root(USER_CLASS_DIRECTORY . $class . CLASS_EXT); if (file_exists($userName)) { include_once $userName; } return false; }
function path_r($filename) { return path_from_root($filename); }