(int)$b[$sort_by] ? 1 : -1); } } // end of the 'PMA_dbCmp()' function /** * Gets the databases list - if it has not been built yet */ if ($server > 0 && empty($dblist)) { PMA_availableDatabases(); } /** * Drops multiple databases */ if (!empty($drop_selected_dbs)) { if (empty($selected_db)) { $message = $strNoDatabasesSelected; } else { $sql_query = array(); while (list(, $current_db) = each($selected_db)) { $current_query = 'DROP DATABASE ' . PMA_backquote($current_db) . ';'; $sql_query[] = $current_query; PMA_mysql_query($current_query, $userlink) // rabus: in case of an error, we display the full query in // order to let the user know which databases have already been // dropped. or PMA_mysqlDie(PMA_mysql_error($userlink), join("\n", $sql_query)); } // PMA_showMessage() needs a string... $sql_query = join("\n", $sql_query); $message = sprintf($strDatabasesDropped, count($selected_db)); // we need to reload the database list now. PMA_availableDatabases(); } } /** * Displays the links */ require('./server_links.inc.php3'); /** * Displays the sub-page heading */ echo '