]> andersk Git - sql-web.git/blobdiff - test.php
git-svn-id: svn://presbrey.mit.edu/sql/mitsql@74 a142d4bd-2cfb-0310-9673-cb33a7e74f58
[sql-web.git] / test.php
index a633147b657ffc6752d40e9ebc57ea90814e99e5..7b7ff64650c053100a5336bc2644462ed11c6eea 100755 (executable)
--- a/test.php
+++ b/test.php
@@ -6,8 +6,7 @@ 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'),'Name'));
+       $databases = array_keys(fetchRows(DBSelect('SELECT Name FROM DB WHERE bEnabled=1'),'Name'));
        $owners = array();
        foreach($databases as $database) {
                if (stristr($database, DELIMETER)) {
@@ -24,10 +23,14 @@ function getManagedDBs($owner=null) {
 /*
 $g = getManagedDBs();
 print_r($g);
-*/
 
 $User = new User($Login->getUserId());
 print_r($User->getDBList());
+*/
+
+phpinfo();
+
+//checkQuotas();
 
 include 'tpl/foot.php';
 ?>
This page took 0.024564 seconds and 4 git commands to generate.