]> andersk Git - sql-web.git/blob - main.php
new templates
[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.031116 seconds and 5 git commands to generate.