]> andersk Git - sql-web.git/blobdiff - test.php
batch/signup: provide feedback for signup failures
[sql-web.git] / test.php
index a633147b657ffc6752d40e9ebc57ea90814e99e5..9423e166370c492455f11945392ac2eef6243c14 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)) {
@@ -26,8 +25,14 @@ $g = getManagedDBs();
 print_r($g);
 */
 
-$User = new User($Login->getUserId());
-print_r($User->getDBList());
+$l = new Login('6.001');
+echo !$l->isEnabled();
+echo $l->isValid();
+print_r($GLOBALS);
+
+//phpinfo();
+
+//checkQuotas();
 
 include 'tpl/foot.php';
 ?>
This page took 0.025832 seconds and 4 git commands to generate.