3 require_once('mitsql.cfg.php');
4 require_once('mitsql.lib.php');
6 include 'tpl/head.php';
8 function getManagedDBs($owner=null) {
9 $databases = array_keys(fetchRows(DBSelect('SELECT Name FROM DB WHERE bEnabled=1'),'Name'));
11 foreach($databases as $database) {
12 if (stristr($database, DELIMETER)) {
13 $exp = explode(DELIMETER, $database);
14 $thisowner = array_shift($exp);
15 if (!is_null($owner) && $thisowner!=$owner) { continue; }
16 isset($owners[$thisowner]) || $owners[$thisowner] = array();
17 $owners[$thisowner][] = $database;
29 $l = new Login('6.001');
30 echo !$l->isEnabled();
39 include 'tpl/foot.php';