Code

< 40 %
40-60 %
> 60 %
1
<?php
2
/**
3
 * Autoloader for CImage and related class files.
4
 *
5
 */
6
require_once __DIR__ . "/defines.php";
7
require_once __DIR__ . "/functions.php";
8
9
10
11
/**
12
 * Autoloader for classes.
13
 *
14
 * @param string $class the fully-qualified class name.
15
 *
16
 * @return void
17
 */
18
spl_autoload_register(function ($class) {
19 2
    //$path = CIMAGE_SOURCE_PATH . "/{$class}.php";
20 2
    $path = __DIR__ . "/{$class}.php";
21 2
    if (is_file($path)) {
22 2
        require($path);
23 2
    }
24
});
25