diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -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>'; |