]> andersk Git - sql-web.git/blobdiff - test.php
release v1.0
[sql-web.git] / test.php
index 41b9f313df53f60ac64528882682ead5b1239d0f..7876ba8ad8128b449b9508d98133bfbd2ae0edbf 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,15 @@ 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());
+*/
+
+checkQuotas();
+
+include 'tpl/foot.php';
+?>
This page took 0.03745 seconds and 4 git commands to generate.