From: Joe Presbrey Date: Mon, 29 Aug 2005 22:59:05 +0000 (+0000) Subject: git-svn-id: svn://presbrey.mit.edu/sql/mitsql@43 a142d4bd-2cfb-0310-9673-cb33a7e74f58 X-Git-Url: http://andersk.mit.edu/gitweb/sql-web.git/commitdiff_plain/2ea5a69f3075db3f0e2ca4d6c815bcffe6b65dcd git-svn-id: svn://presbrey.mit.edu/sql/mitsql@43 a142d4bd-2cfb-0310-9673-cb33a7e74f58 --- diff --git a/.htaccess b/.htaccess index c7f7094..3fe933d 100644 --- a/.htaccess +++ b/.htaccess @@ -6,7 +6,7 @@ php_value auto_append_file "global.done.php" #php_value xdebug.remote_port "9000" RewriteEngine On -RewriteBase /~presbrey/mitsql/ +RewriteBase /~toast/mitsql/ #RewriteOptions MaxRedirects=1 diff --git a/main.php b/main.php index 775fbda..0e919c3 100644 --- a/main.php +++ b/main.php @@ -9,12 +9,17 @@ $User = new User($Login->getUserID()); if (isPost()) { if (isset($i_newdb)) { - if ($User->addDB($User->getUsername().DELIMETER.$i_newdb)==false) { + $dbname = $User->getUsername().DELIMETER.$i_newdb; + if ($User->addDB($dbname)==false) { $err[] = mysql_error(); + } else { + $msg[] = 'Database `'.$dbname.'` created.'; } } } +$myDBs = $User->getDBList(); + include 'tpl/main.php'; ?> diff --git a/tpl/main.php b/tpl/main.php index cbf4250..7c6ca79 100644 --- a/tpl/main.php +++ b/tpl/main.php @@ -16,6 +16,16 @@ Thanks for signing up. This interface is nearly ready. We will e-mail you as s

+ +