aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/index.php b/index.php
index 423485e..62a58dd 100644
--- a/index.php
+++ b/index.php
@@ -1,20 +1,26 @@
<?php
/**
- * Database procedures.
+ * Isis db migration tool.
*/
-// Import Malete Library
+// Import Malete Library.
require 'contrib/malete/php/Isis.php';
-// Import Spyc
+// Import Spyc.
include('contrib/spyc/spyc.php');
-// Import database classes
-require 'isis.php';
+// Import Isis interface.
+require 'interface.php';
+
+// Autoloader.
+function __autoload($class) {
+ require_once 'classes/' .$class. '.php';
+}
// Test database connection.
$schema = Spyc::YAMLLoad('schemas/anu10.yaml');
-$db = new MaleteDb($schema);
+//$db = new MaleteDb($schema);
+$db = new PhpIsisDb($schema);
if ($db) {
$result = $db->read(4);
echo '<pre>';