mirror of
https://github.com/mosbth/cimage.git
synced 2025-01-17 02:58:15 +01:00
25 lines
456 B
PHP
25 lines
456 B
PHP
<?php
|
|
/**
|
|
* Autoloader for CImage and related class files.
|
|
*
|
|
*/
|
|
require_once __DIR__ . "/defines.php";
|
|
require_once __DIR__ . "/functions.php";
|
|
|
|
|
|
|
|
/**
|
|
* Autoloader for classes.
|
|
*
|
|
* @param string $class the fully-qualified class name.
|
|
*
|
|
* @return void
|
|
*/
|
|
spl_autoload_register(function ($class) {
|
|
//$path = CIMAGE_SOURCE_PATH . "/{$class}.php";
|
|
$path = __DIR__ . "/{$class}.php";
|
|
if (is_file($path)) {
|
|
require($path);
|
|
}
|
|
});
|