blob: 612602d84156fc0ca45c860326bd47ee4431eaac (
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
|
<?php
/**
* Cinisis - Isis db reading tool.
*/
// 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");
?>
|