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