* db_readdump.php3: if file contains mutiple queries, only show this line:

"Your SQL-query has been executed successfully: The content of your
           file has been inserted. (131 Instructions)" instead of showing twice
           (result + textarea) the whole file, which could be problematic with
           large dumps.
        * db_details: removed $sql_query_cpy stuff (was used by db_readdump.php3)
This commit is contained in:
Olivier Müller
2001-08-19 12:46:17 +00:00
parent 862ebba12b
commit 4ab699c90f
3 changed files with 16 additions and 11 deletions

View File

@@ -309,12 +309,7 @@ $url_query = 'lang=' . $lang
. '&db=' . urlencode($db)
. '&goto=db_details.php3';
if (isset($show_query) && $show_query == 'y') {
// This script has been called by db_readdump.php3
if (isset($sql_query_cpy)) {
$query_to_display = $sql_query_cpy;
}
// Other cases
else if (get_magic_quotes_gpc()) {
if (get_magic_quotes_gpc()) {
$query_to_display = stripslashes($sql_query);
}
else {