blob: aff50a5fd4fac0eedb313dbdbd57e98d290ea5e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php
/**
* Cinisis - Isis db reading tool.
*/
// Import Malete Library.
require_once 'contrib/malete/php/Isis.php';
// Import Spyc.
require_once 'contrib/spyc/spyc.php';
// Autoloader.
function cinisis_autoload($class) {
if (strstr($class, 'Db')) {
require_once 'classes/backends/'. $class .'.php';
}
elseif (strstr($class, 'Iterator')) {
require_once 'classes/iterators/'. $class .'.php';
}
elseif (strstr($class, 'Helper')) {
require_once 'classes/helpers/'. $class .'.php';
}
else {
require_once 'classes/'. $class .'.php';
}
}
// Register autoloader.
spl_autoload_register("cinisis_autoload");
?>
|