complement list of 'show' options to

This commit is contained in:
Steve Alberty
2001-07-23 14:33:49 +00:00
parent b12dfeae53
commit 2661fdcbd2
2 changed files with 6 additions and 1 deletions

View File

@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-07-23 Steve Alberty <alberty@neptunlabs.de>
* tbl_properties.php3: correct small display bugs
* sql.php3: complement list of 'show' options to
suppress 'insert new row'
2001-07-22 Olivier M<>ller <om@omnis.ch>
* releasing 2.2.0rc3

View File

@@ -139,7 +139,7 @@ else {
include("./header.inc.php3");
// Define the display mode if it wasn't passed by url
if (!isset($display)) {
$display = eregi('^((SHOW (VARIABLES|PROCESSLIST|STATUS))|((CHECK|ANALYZE|REPAIR|OPTIMIZE) TABLE ))', $sql_query, $which);
$display = eregi('^((SHOW (VARIABLES|PROCESSLIST|STATUS|TABLE|GRANTS|CREATE|LOGS))|((CHECK|ANALYZE|REPAIR|OPTIMIZE) TABLE ))', $sql_query, $which);
if (!empty($which[2]) && !empty($which[3])) {
$display = 'simple';
} else if (!empty($which[4]) && !empty($which[5])) {