diff options
Diffstat (limited to 'apps/read.php')
-rw-r--r-- | apps/read.php | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/apps/read.php b/apps/read.php deleted file mode 100644 index 835ae60..0000000 --- a/apps/read.php +++ /dev/null @@ -1,51 +0,0 @@ -<?php -/** - * Cinisis - Isis db reading tool. - */ - -// Import requisites. -require_once '../index.php'; - -// Draw the document. -$display = new CinisisDisplayHelper('Isis Reader'); -?> - -<table><tr> - -<?php - -$configs = array( - 0 => array( - 'implementation' => 'PhpIsis', - 'database' => 'dbname', - ), - 1 => array( - 'implementation' => 'BiblioIsis', - 'database' => 'dbname', - ), -); - -foreach ($configs as $config) { - // Get a db instance. - $isis = new CinisisDb($config); - - // Test connection. - if ($isis->db) { - $result = $isis->db->read(1); - $entries = $isis->db->entries(); - - // Format output. - echo '<td>'; - echo '<pre>'; - echo 'Implementation: '. $config['implementation'] ."\n"; - echo "Rows: $entries\n"; - print_r($result); - echo '</pre>'; - echo '</td>'; - } -} - -?> - -</tr></table> -</body> |