* db_details.php3, db_stats.php3, main.php3, sql.php3

tbl_change.php3, tbl_query_box.php3, user_details.php3
libraries/common.lib.php3:
- changed show_query to use 1/0 instead of 'y'/'n'
* sql.php3, libraries/common.lib.php3:
- Improved logic of edit, show_as_php, explain and validator
in the SQL query box
This commit is contained in:
Robin Johnson
2002-08-03 21:34:20 +00:00
parent 04ff50b206
commit c28a9175ec
9 changed files with 126 additions and 116 deletions

View File

@@ -11,7 +11,7 @@ $url_query .= '&goto=db_details.php3';
/**
* Database work
*/
if (isset($show_query) && $show_query == 'y') {
if (isset($show_query) && $show_query == '1') {
// This script has been called by read_dump.php3
if (isset($sql_query_cpy)) {
$query_to_display = $sql_query_cpy;
@@ -65,7 +65,7 @@ $is_upload = (PMA_PHP_INT_VERSION >= 40000 && function_exists('ini_get'))
onfocus="if (typeof(document.layers) == 'undefined' || typeof(textarea_selected) == 'undefined') {textarea_selected = 1; this.form.elements['sql_query'].select();}">
<?php echo ((!empty($query_to_display)) ? htmlspecialchars($query_to_display) : ''); ?>
</textarea><br />
<input type="checkbox" name="show_query" value="y" id="checkbox_show_query" checked="checked" />&nbsp;
<input type="checkbox" name="show_query" value="1" id="checkbox_show_query" checked="checked" />&nbsp;
<label for="checkbox_show_query"><?php echo $strShowThisQuery; ?></label><br />
</div>
<?php