]> andersk Git - sql-web.git/blob - main.php
775fbda243922b8f63c481d6b170855d902bdeb9
[sql-web.git] / main.php
1 <?php
2
3 require_once('mitsql.cfg.php');
4 require_once('mitsql.lib.php');
5
6 if (!isLoggedIn()) redirect('index');
7
8 $User = new User($Login->getUserID());
9
10 if (isPost()) {
11         if (isset($i_newdb)) {
12                 if ($User->addDB($User->getUsername().DELIMETER.$i_newdb)==false) {
13                         $err[] = mysql_error();
14                 }
15         }
16 }
17
18 include 'tpl/main.php';
19
20 ?>
This page took 0.084917 seconds and 3 git commands to generate.