aboutsummaryrefslogtreecommitdiff
path: root/index.php
blob: 392fa289cd4897353f4e9de9c355693adf940c73 (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
<?php
/**
 * Cinisis - Isis db reading tool.
 */

// 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");

?>