$reload has now true boolean values
This commit is contained in:
@@ -107,7 +107,7 @@ if ($sql_query != '') {
|
||||
$sql_query = addslashes($sql_query);
|
||||
}
|
||||
if (eregi('^(DROP|CREATE)[[:space:]]+(IF EXISTS[[:space:]]+)?(TABLE|DATABASE)[[:space:]]+(.+)', $sql_query)) {
|
||||
$reload = 'true';
|
||||
$reload = 1;
|
||||
}
|
||||
include('./sql.php3');
|
||||
exit();
|
||||
@@ -125,7 +125,7 @@ if ($sql_query != '') {
|
||||
}
|
||||
}
|
||||
if (!isset($reload) && eregi('^(DROP|CREATE)[[:space:]]+(IF EXISTS[[:space:]]+)?(TABLE|DATABASE)[[:space:]]+(.+)', $a_sql_query)) {
|
||||
$reload = 'true';
|
||||
$reload = 1;
|
||||
}
|
||||
} // end for
|
||||
} // end else if
|
||||
|
@@ -103,13 +103,13 @@ else if ((get_magic_quotes_gpc() && stripslashes($btnDrop) == $strYes)
|
||||
case 'drop_db':
|
||||
$a_query = 'DROP DATABASE '
|
||||
. backquote(urldecode($selected[$i]));
|
||||
$reload = 'true';
|
||||
$reload = 1;
|
||||
break;
|
||||
|
||||
case 'drop_tbl':
|
||||
$a_query = 'DROP TABLE '
|
||||
. backquote(urldecode($selected[$i]));
|
||||
$reload = 'true';
|
||||
$reload = 1;
|
||||
break;
|
||||
|
||||
case 'empty_tbl':
|
||||
|
@@ -85,7 +85,7 @@ if (isset($new_name) && trim($new_name) != '') {
|
||||
}
|
||||
|
||||
$message = sprintf($strCopyTableOK, $source, $target);
|
||||
$reload = 'true';
|
||||
$reload = 1;
|
||||
} // end is target table name
|
||||
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
<?php
|
||||
if ($action == 'tbl_create.php3') {
|
||||
?>
|
||||
<input type="hidden" name="reload" value="true" />
|
||||
<input type="hidden" name="reload" value="1" />
|
||||
<?php
|
||||
}
|
||||
else if ($action == 'tbl_addfield.php3') {
|
||||
|
Reference in New Issue
Block a user