diff --git a/db_details.php3 b/db_details.php3
index 49e024d35..892aeeb27 100755
--- a/db_details.php3
+++ b/db_details.php3
@@ -309,7 +309,12 @@ $url_query = 'lang=' . $lang
. '&db=' . urlencode($db)
. '&goto=db_details.php3';
if (isset($show_query) && $show_query == 'y') {
- if (get_magic_quotes_gpc()) {
+ // 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()) {
$query_to_display = stripslashes($sql_query);
}
else {
@@ -534,7 +539,7 @@ echo ' ' . ' ' . "\n";
-
+
diff --git a/header.inc.php3 b/header.inc.php3
index 6489c8ea6..3d2a1e42f 100755
--- a/header.inc.php3
+++ b/header.inc.php3
@@ -60,7 +60,8 @@ A:hover.nav {font-family: ; color: #FF0000}
' . $strDatabase . ' ' . htmlspecialchars($db);
- if (isset($table) && !isset($btnDrop)) {
+ if (!empty($table)
+ && (!isset($btnDrop) || $btnDrop == $strNo)) {
echo ' - ' . $strTable . ' ' . htmlspecialchars($table);
}
echo '' . "\n";
diff --git a/sql.php3 b/sql.php3
index 9cc786c38..181cd1f90 100755
--- a/sql.php3
+++ b/sql.php3
@@ -35,9 +35,18 @@ if (isset($btnDrop) || isset($navig)) {
* Go back to further page if table should not be dropped
*/
if (isset($goto) && $goto == 'sql.php3') {
- $goto = "sql.php3?server=$server&lang=$lang&db=$db&table=$table&pos=$pos&sql_query=" . urlencode($sql_query);
+ $goto = 'sql.php3'
+ . '?lang=' . $lang
+ . '&server=' . urlencode($server)
+ . '&db=' . urlencode($db)
+ . '&table=' . urlencode($table)
+ . '&pos=' . $pos
+ . '&sql_query=' . urlencode($sql_query);
}
if (isset($btnDrop) && $btnDrop == $strNo) {
+ if (!empty($back)) {
+ $goto = $back;
+ }
if (file_exists('./' . $goto)) {
include('./' . ereg_replace('\.\.*', '.', $goto));
} else {
@@ -78,6 +87,7 @@ if ($do_confirm) {
+
diff --git a/tbl_properties.php3 b/tbl_properties.php3
index d18634d56..8f5ce940b 100755
--- a/tbl_properties.php3
+++ b/tbl_properties.php3
@@ -973,7 +973,7 @@ else { // MySQL < 3.23
-
+