]> andersk Git - sql-web.git/blobdiff - test.php
git-svn-id: svn://presbrey.mit.edu/sql/mitsql@73 a142d4bd-2cfb-0310-9673-cb33a7e74f58
[sql-web.git] / test.php
index 41b9f313df53f60ac64528882682ead5b1239d0f..7b7ff64650c053100a5336bc2644462ed11c6eea 100755 (executable)
--- a/test.php
+++ b/test.php
@@ -3,8 +3,10 @@
 require_once('mitsql.cfg.php');
 require_once('mitsql.lib.php');
 
+include 'tpl/head.php';
+
 function getManagedDBs($owner=null) {
-       $databases = array_keys(fetchRows(DBSelect('SHOW DATABASES'),'Database'));
+       $databases = array_keys(fetchRows(DBSelect('SELECT Name FROM DB WHERE bEnabled=1'),'Name'));
        $owners = array();
        foreach($databases as $database) {
                if (stristr($database, DELIMETER)) {
@@ -18,7 +20,17 @@ function getManagedDBs($owner=null) {
        return $owners;
 }
 
+/*
 $g = getManagedDBs();
 print_r($g);
 
-?>
\ No newline at end of file
+$User = new User($Login->getUserId());
+print_r($User->getDBList());
+*/
+
+phpinfo();
+
+//checkQuotas();
+
+include 'tpl/foot.php';
+?>
This page took 0.027595 seconds and 4 git commands to generate.