]> andersk Git - sql-web.git/blobdiff - test.php
move question stats to database
[sql-web.git] / test.php
index 41b9f313df53f60ac64528882682ead5b1239d0f..2c6210a5eed3b872db8f22a14300c1aa73efcced 100755 (executable)
--- a/test.php
+++ b/test.php
@@ -1,10 +1,15 @@
 <?php
+/*
+       (c) 2005 Joe Presbrey
+*/
 
 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 +23,27 @@ function getManagedDBs($owner=null) {
        return $owners;
 }
 
+/* //GET MANAGED DBs
 $g = getManagedDBs();
 print_r($g);
+*/
+
+/* //TEST A LOGIN
+$l = new Login('6.001');
+echo !$l->isEnabled();
+echo $l->isValid();
+print_r($GLOBALS);
+*/
+
+//phpinfo();
+
+//checkQuotas();
+
+printMsgs(array('this is a test msg: test 0'));
+printMsgs(array('this is a test msg: test 1', 'this is a test msg: test 2'));
+
+printErrors(array('this is a test error: test 0'));
+printErrors(array('this is a test error: test 1', 'this is a test error: test 2'));
 
-?>
\ No newline at end of file
+include 'tpl/foot.php';
+?>
This page took 0.028714 seconds and 4 git commands to generate.