]> andersk Git - sql-web.git/blobdiff - test.php
defaults update
[sql-web.git] / test.php
index 6109019462b50d69985cfea536546bf39490c671..2c6210a5eed3b872db8f22a14300c1aa73efcced 100755 (executable)
--- a/test.php
+++ b/test.php
@@ -1,4 +1,7 @@
 <?php
+/*
+       (c) 2005 Joe Presbrey
+*/
 
 require_once('mitsql.cfg.php');
 require_once('mitsql.lib.php');
@@ -20,28 +23,27 @@ function getManagedDBs($owner=null) {
        return $owners;
 }
 
-function checkQuotas() {
-       $databases = fetchRows(DBSelect('SELECT DatabaseId,Name FROM DB WHERE bEnabled=1'),'Name');
-       foreach($databases as $db) {
-               $DBId = $db['DatabaseId'];
-               $arr['dLastCheck'] = 'NOW()';
-               $arr['nBytes'] = calcDBSize($db['Name']);
-               $sql = sprintf("UPDATE DB %s WHERE DatabaseId = '%s'",
-                                               buildSQLSet($arr),
-                                               mysql_escape_string($DBId));
-               DBUpdate($sql);
-       }
-}
-
-/*
+/* //GET MANAGED DBs
 $g = getManagedDBs();
 print_r($g);
+*/
 
-$User = new User($Login->getUserId());
-print_r($User->getDBList());
+/* //TEST A LOGIN
+$l = new Login('6.001');
+echo !$l->isEnabled();
+echo $l->isValid();
+print_r($GLOBALS);
 */
 
-checkQuotas();
+//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'));
 
 include 'tpl/foot.php';
 ?>
This page took 1.342032 seconds and 4 git commands to generate.