From e56bd453113151a91ff8317ce6d3374c6477ee32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sun, 5 Aug 2001 11:36:12 +0000 Subject: [PATCH] 'get_cfg_var' is only a second best solution --- lib.inc.php3 | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lib.inc.php3 b/lib.inc.php3 index f56027b86..80c88c815 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -840,6 +840,7 @@ var errorMsg2 = ' @@ -850,7 +851,7 @@ var errorMsg2 = '' . "\n"; echo ' ' . "\n"; } - if(eregi("^[ \n\r]*show[ \n\r]*processlist[ \n\r]*$",$sql_query)) { + if ($is_show_processlist) { echo ' ' . "\n"; } while ($field = mysql_fetch_field($dt_result)) { @@ -919,7 +920,8 @@ var errorMsg2 = '"> name) . ' '; if (!isset($row[$i])) { @@ -929,8 +931,7 @@ var errorMsg2 = 'numeric == 1) { - if(eregi("^[ \n\r]*show[ \n\r]*processlist[ \n\r]*$",$sql_query)) { - + if ($is_show_processlist) { $Id = $row[$i]; } } @@ -987,7 +988,7 @@ var errorMsg2 = '' . "\n"; } } // end for + // Possibility to have the modify/delete button on the left added + // Benjamin Gandon -- 2000-08-29 if ($GLOBALS['cfgModifyDeleteAtRight'] && !$is_simple) { ?>
@@ -997,9 +998,8 @@ var errorMsg2 = ' ' . htmlspecialchars($row[$i]) . '