aboutsummaryrefslogtreecommitdiff
path: root/index.php
blob: 7aebd454684ef0b5b5ad3ae98e350a70263b3503 (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 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, '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");

?>