]> andersk Git - sql-web.git/commitdiff
git-svn-id: svn://presbrey.mit.edu/sql/mitsql@43 a142d4bd-2cfb-0310-9673-cb33a7e74f58
authorJoe Presbrey <presbrey@mit.edu>
Mon, 29 Aug 2005 22:59:05 +0000 (22:59 +0000)
committerJoe Presbrey <presbrey@mit.edu>
Mon, 29 Aug 2005 22:59:05 +0000 (22:59 +0000)
.htaccess
main.php
tpl/main.php

index c7f7094775ce2229aa36fec66319f915a7222b73..3fe933dfaa6aa51f10203baccb8890fa36e4b8be 100644 (file)
--- 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
 
index 775fbda243922b8f63c481d6b170855d902bdeb9..0e919c39bd299d9f99f41968af3032885d1c50d1 100644 (file)
--- 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';
 
 ?>
index cbf42503130655898fd4b167d494c09daf473dc7..7c6ca795766093591a5075de182a3810c84d6316 100644 (file)
@@ -16,6 +16,16 @@ Thanks for signing up.  This interface is nearly ready.  We will e-mail you as s
 </p>
 <? } else { ?>
 
+<ul>
+<?php
+       foreach($myDBs as $db) {
+               
+               echo '<li>',$db,'</li>';
+
+       }
+?>
+</ul>
+
 <form method="post">
 <p><span style="width: 150px;"><label for="p1">new database:</label></span> <input type="text" name="newdb">
 <input type=submit value="Add"></p>
This page took 0.03304 seconds and 5 git commands to generate.