Fixed a bug if a "DROP" query were submitted from a sql file

This commit is contained in:
Loïc Chapeaux
2001-09-23 16:59:20 +00:00
parent 574d31a75e
commit 61f83590b7
5 changed files with 14 additions and 7 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2001-09-23 Benjamin Gandon <gandon@users.sourceforge.net>
* read_dump.php3: widely improved (some remaining bugs has been fixed and
the script is now about too time faster than before).
2001-09-23 Lo<4C>c Chapeaux <lolo@phpheaven.net> 2001-09-23 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* config.inc.php3; Documentation.html; db_details.php3; tbl_dump.php3; * config.inc.php3; Documentation.html; db_details.php3; tbl_dump.php3;
tbl_properties.php3; libraries/functions.php3; libraries/zip.lib.php3: tbl_properties.php3; libraries/functions.php3; libraries/zip.lib.php3:
@@ -14,6 +18,9 @@ $Source$
translations. translations.
* most of the scripts were updated to fix bug #444352 (Data * most of the scripts were updated to fix bug #444352 (Data
Missing/POST Error). Missing/POST Error).
* db_details.php3; db_stats.php3; mult_submits.inc.php3;
tbl_properties.php3: fixed a bug if a "DROP" query were submitted from a
sql file.
2001-09-23 Armel Fauveau <armel.fauveau@globalis-ms.com> 2001-09-23 Armel Fauveau <armel.fauveau@globalis-ms.com>
* add zip dump feature * add zip dump feature

View File

@@ -59,7 +59,7 @@ window.parent.frames['nav'].location.replace('./left.php3?lang=<?php echo $lang;
* Drop/delete mutliple tables if required * Drop/delete mutliple tables if required
*/ */
if ((!empty($submit_mult) && isset($selected_tbl)) if ((!empty($submit_mult) && isset($selected_tbl))
|| isset($btnDrop)) { || isset($mult_btnDrop)) {
$action = 'db_details.php3'; $action = 'db_details.php3';
include('./mult_submits.inc.php3'); include('./mult_submits.inc.php3');
} }

View File

@@ -12,7 +12,7 @@ require('./header.inc.php3');
* Drop databases if required * Drop databases if required
*/ */
if ((!empty($submit_mult) && isset($selected_db)) if ((!empty($submit_mult) && isset($selected_db))
|| isset($btnDrop)) { || isset($mult_btnDrop)) {
$err_url = 'db_stats.php3' $err_url = 'db_stats.php3'
. '?lang=' . $lang . '?lang=' . $lang
. '&server=' . $server; . '&server=' . $server;

View File

@@ -89,8 +89,8 @@ if (!empty($submit_mult)
} }
?> ?>
<input type="hidden" name="query_type" value="<?php echo $what; ?>" /> <input type="hidden" name="query_type" value="<?php echo $what; ?>" />
<input type="submit" name="btnDrop" value="<?php echo $strYes; ?>" /> <input type="submit" name="mult_btnDrop" value="<?php echo $strYes; ?>" />
<input type="submit" name="btnDrop" value="<?php echo $strNo; ?>" /> <input type="submit" name="mult_btnDrop" value="<?php echo $strNo; ?>" />
</form> </form>
<?php <?php
echo"\n"; echo"\n";
@@ -102,8 +102,8 @@ if (!empty($submit_mult)
/** /**
* Executes the query * Executes the query
*/ */
else if ((get_magic_quotes_gpc() && stripslashes($btnDrop) == $strYes) else if ((get_magic_quotes_gpc() && stripslashes($mult_btnDrop) == $strYes)
|| $btnDrop == $strYes) { || $mult_btnDrop == $strYes) {
$sql_query = ''; $sql_query = '';
$selected_cnt = count($selected); $selected_cnt = count($selected);

View File

@@ -59,7 +59,7 @@ if (!isset($message)) {
* Drop/delete mutliple tables if required * Drop/delete mutliple tables if required
*/ */
if ((!empty($submit_mult) && isset($selected_fld)) if ((!empty($submit_mult) && isset($selected_fld))
|| isset($btnDrop)) { || isset($mult_btnDrop)) {
$action = 'tbl_properties.php3'; $action = 'tbl_properties.php3';
include('./mult_submits.inc.php3'); include('./mult_submits.inc.php3');
} }