From 581afe74be6c1177167bce5a68f69095c36d2054 Mon Sep 17 00:00:00 2001 From: chriskl Date: Sat, 13 Dec 2003 08:04:12 +0000 Subject: [PATCH] fix bug that meant you could never drop a database. thanks to bryan encina. a few xhtml fixes as well --- all_db.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/all_db.php b/all_db.php index 8ee0e904..19b63cde 100644 --- a/all_db.php +++ b/all_db.php @@ -3,7 +3,7 @@ /** * Manage databases within a server * - * $Id: all_db.php,v 1.19 2003/12/10 16:03:29 chriskl Exp $ + * $Id: all_db.php,v 1.20 2003/12/13 08:04:12 chriskl Exp $ */ // Include application functions @@ -21,18 +21,18 @@ global $PHP_SELF, $lang, $_reload_drop_database; if ($confirm) { - echo "

{$lang['strdatabases']}: ", $misc->printVal($_REQUEST['database']), ": {$lang['strdrop']}

\n"; - echo "

", sprintf($lang['strconfdropdatabase'], $misc->printVal($_REQUEST['database'])), "

\n"; + echo "

{$lang['strdatabases']}: ", $misc->printVal($_REQUEST['db']), ": {$lang['strdrop']}

\n"; + echo "

", sprintf($lang['strconfdropdatabase'], $misc->printVal($_REQUEST['db'])), "

\n"; echo "
\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "
\n"; } else { - $status = $data->dropDatabase($_POST['database']); + $status = $data->dropDatabase($_POST['db']); if ($status == 0) { $_reload_drop_database = true; doDefault($lang['strdatabasedropped']); @@ -127,7 +127,7 @@ echo "", $misc->printVal($databases->f[$data->dbFields['owner']]), "\n"; echo "", $misc->printVal($databases->f[$data->dbFields['encoding']]), "\n"; echo "", htmlspecialchars($databases->f[$data->dbFields['dbcomment']]), "\n"; - echo "f[$data->dbFields['dbname']]), "\">{$lang['strdrop']}\n"; echo "\n"; $databases->moveNext(); -- 2.39.5