]> andersk Git - sql-web.git/blobdiff - test.php
admin page updates, secure sessions
[sql-web.git] / test.php
index 7eb69e25242cc7dd7eea1e6d83b4fc866cb35494..7b7ff64650c053100a5336bc2644462ed11c6eea 100755 (executable)
--- a/test.php
+++ b/test.php
@@ -1,3 +1,36 @@
 <?php
 
-echo base64_encode('b6808ded2');
+require_once('mitsql.cfg.php');
+require_once('mitsql.lib.php');
+
+include 'tpl/head.php';
+
+function getManagedDBs($owner=null) {
+       $databases = array_keys(fetchRows(DBSelect('SELECT Name FROM DB WHERE bEnabled=1'),'Name'));
+       $owners = array();
+       foreach($databases as $database) {
+               if (stristr($database, DELIMETER)) {
+                       $exp = explode(DELIMETER, $database);
+                       $thisowner = array_shift($exp);
+                       if (!is_null($owner) && $thisowner!=$owner) { continue; }
+                       isset($owners[$thisowner]) || $owners[$thisowner] = array();
+                       $owners[$thisowner][] = $database;
+               }
+       }
+       return $owners;
+}
+
+/*
+$g = getManagedDBs();
+print_r($g);
+
+$User = new User($Login->getUserId());
+print_r($User->getDBList());
+*/
+
+phpinfo();
+
+//checkQuotas();
+
+include 'tpl/foot.php';
+?>
This page took 0.098775 seconds and 4 git commands to generate.