fixed bug #482627 - show full processlist should have 'kill'

This commit is contained in:
Loïc Chapeaux
2001-11-17 10:05:11 +00:00
parent 0636118fec
commit 95976ec65e
2 changed files with 6 additions and 2 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-11-17 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* libraries/display_tbl.lib.php3, lines 85-86: fixed bug #482627 - show
full processlist should have 'kill'.
2001-11-16 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* tbl_indexes.php3: merged Michal fix.
* db_details.php3, line 47; main.php3, line 32;

View File

@@ -82,8 +82,8 @@ if (!defined('__LIB_DISPLAY_TBL__')){
// 2.2 Statement is a "SHOW..."
else if ($GLOBALS['is_show']) {
// 2.2.1 TODO : defines edit/delete links depending on show statement
$tmp = eregi('^SHOW[[:space:]]+(VARIABLES|PROCESSLIST|STATUS|TABLE|GRANTS|CREATE|LOGS)', $GLOBALS['sql_query'], $which);
if (strtoupper($which[1]) == 'PROCESSLIST') {
$tmp = eregi('^SHOW[[:space:]]+(VARIABLES|(FULL[[:space:]]+)?PROCESSLIST|STATUS|TABLE|GRANTS|CREATE|LOGS)', $GLOBALS['sql_query'], $which);
if (strpos(' ' . strtoupper($which[1]), 'PROCESSLIST') > 0) {
$do_display['edit_lnk'] = 'nn'; // no edit link
$do_display['del_lnk'] = 'kp'; // "kill process" type edit link
}