]> andersk Git - sql-web.git/blobdiff - main.php
new templates
[sql-web.git] / main.php
index b0bd1da0b949d91a8e680e164d871a30b8b37613..775fbda243922b8f63c481d6b170855d902bdeb9 100644 (file)
--- a/main.php
+++ b/main.php
@@ -5,6 +5,16 @@ require_once('mitsql.lib.php');
 
 if (!isLoggedIn()) redirect('index');
 
+$User = new User($Login->getUserID());
+
+if (isPost()) {
+       if (isset($i_newdb)) {
+               if ($User->addDB($User->getUsername().DELIMETER.$i_newdb)==false) {
+                       $err[] = mysql_error();
+               }
+       }
+}
+
 include 'tpl/main.php';
 
 ?>
This page took 0.025265 seconds and 4 git commands to generate.