diff --git a/db_stats.php3 b/db_stats.php3
index bb5ebd751..305e97775 100644
--- a/db_stats.php3
+++ b/db_stats.php3
@@ -2,13 +2,80 @@
/* $Id$ */
/**
- * Gets the variables sent to this script, retains the db name that may have
- * been defined as startup option and include a core library
+ * Gets the variables sent to this script and send headers
*/
require('./grab_globals.inc.php3');
+$js_to_run = 'functions.js';
require('./header.inc.php3');
+/* ---------------- The user requires some db to be dropped ---------------- */
+
+if (!empty($submit) || isset($btnDrop)) {
+
+ /**
+ * Confirmation form
+ */
+ if (!empty($submit) && !empty($selected_db)) {
+
+ // 1.1 Builds the query
+ $full_query = '';
+ $drop_cnt = count($selected_db);
+ for ($i = 0; $i < $drop_cnt; $i++) {
+ $full_query .= 'DROP DATABASE ' . backquote(htmlspecialchars(urldecode($selected_db[$i]))) . ';
';
+ }
+
+ // 1.2 Displays the form
+ echo $strDoYouReally . ' :
' . "\n";
+ echo '' . $full_query . ' ?
' . "\n";
+ ?>
+
- | - - - - | -- - - - | -- - - - | -- - - - | -- - - - | -
---|