]> andersk Git - sql-web.git/blame_incremental - test.php
trying svn:ignore on .htaccess
[sql-web.git] / test.php
... / ...
CommitLineData
1<?php
2
3require_once('mitsql.cfg.php');
4require_once('mitsql.lib.php');
5
6include 'tpl/head.php';
7
8function getManagedDBs($owner=null) {
9 $databases = array_keys(fetchRows(DBSelect('SELECT Name FROM DB WHERE bEnabled=1'),'Name'));
10 $owners = array();
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;
18 }
19 }
20 return $owners;
21}
22
23/*
24$g = getManagedDBs();
25print_r($g);
26*/
27
28$l = new Login('6.001');
29echo !$l->isEnabled();
30echo $l->isValid();
31print_r($GLOBALS);
32
33//phpinfo();
34
35//checkQuotas();
36
37include 'tpl/foot.php';
38?>
This page took 0.026892 seconds and 5 git commands to generate.