From 2661fdcbd27ff76e52c62ed48304489bca08c2e4 Mon Sep 17 00:00:00 2001 From: Steve Alberty Date: Mon, 23 Jul 2001 14:33:49 +0000 Subject: [PATCH] complement list of 'show' options to --- ChangeLog | 5 +++++ sql.php3 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d4025fc40..b1b50fa2e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,11 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-07-23 Steve Alberty + * 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 * releasing 2.2.0rc3 diff --git a/sql.php3 b/sql.php3 index 859dc68c7..cdf7deea7 100755 --- a/sql.php3 +++ b/sql.php3 @@ -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])) {