X-Git-Url: http://andersk.mit.edu/gitweb/sql-web.git/blobdiff_plain/88b7d384233943951e362f954948402eacd81736..b932757d6dd5f5b01a883447ad74f60cab5789c3:/test.php diff --git a/test.php b/test.php index a633147..7876ba8 100755 --- 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,12 @@ function getManagedDBs($owner=null) { /* $g = getManagedDBs(); print_r($g); -*/ $User = new User($Login->getUserId()); print_r($User->getDBList()); +*/ + +checkQuotas(); include 'tpl/foot.php'; ?>