Adjust Alter Database for multiple servers
authorsoranzo <soranzo>
Mon, 2 May 2005 22:05:34 +0000 (22:05 +0000)
committersoranzo <soranzo>
Mon, 2 May 2005 22:05:34 +0000 (22:05 +0000)
all_db.php

index 28eb728db122b4d5103246a47cb331858066d1f6..3e477377a7a9a944f862a6d4bc4d022e037092ba 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Manage databases within a server
         *
-        * $Id: all_db.php,v 1.38 2005/05/02 15:47:23 chriskl Exp $
+        * $Id: all_db.php,v 1.39 2005/05/02 22:05:34 soranzo Exp $
         */
 
        // Include application functions
@@ -50,6 +50,7 @@
                        }
                        echo "</table>\n";
                        echo "<input type=\"hidden\" name=\"action\" value=\"alter\" />\n";
+                       echo $misc->form;
                        echo "<input type=\"hidden\" name=\"oldname\" value=\"", 
                                htmlspecialchars($_REQUEST['alterdatabase']), "\" />\n";
                        echo "<input type=\"submit\" name=\"alter\" value=\"{$lang['stralter']}\" />\n";
@@ -82,7 +83,7 @@
                        echo "<p>", sprintf($lang['strconfdropdatabase'], $misc->printVal($_REQUEST['dropdatabase'])), "</p>\n";        
                        echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
                        echo "<input type=\"hidden\" name=\"action\" value=\"drop\" />\n";
-                       echo "<input type=\"hidden\" name=\"server\" value=\"", htmlspecialchars($_REQUEST['server']), "\" />\n";
+                       echo $misc->form;
                        echo "<input type=\"hidden\" name=\"dropdatabase\" value=\"", htmlspecialchars($_REQUEST['dropdatabase']), "\" />\n";
                        echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
                        echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
                if ($data->hasAlterDatabase() ) {
                        $actions['alter'] = array(
                                'title' => $lang['stralter'],
-                               'url'   => "{$PHP_SELF}?action=confirm_alter&amp;subject=database&amp;",
+                               'url'   => "{$PHP_SELF}?action=confirm_alter&amp;subject=database&amp;{$misc->href}&amp;",
                                'vars'  => array('alterdatabase' => 'datname')
                        );
                }