This commit is contained in:
Steve Alberty
2001-08-04 13:09:40 +00:00
parent 22596a4ec0
commit 0e038ac3d6
2 changed files with 7 additions and 3 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-08-04 Steve Alberty <alberty@neptunlabs.de>
* lib.inc.php3: fixed #444017 (thanks anonymous)
2001-08-04 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* config.inc.php3, db_details.php3, Documentation.html,
tbl_properties.php3: added two directives to disable the use of

View File

@@ -850,7 +850,7 @@ var errorMsg2 = '<?php echo(str_replace('\'', '\\\'', $GLOBALS['strNotValidNumbe
echo ' <td></td>' . "\n";
echo ' <td></td>' . "\n";
}
if ($sql_query == 'SHOW PROCESSLIST') {
if(eregi("^[ \n\r]*show[ \n\r]*processlist[ \n\r]*$",$sql_query)) {
echo ' <td></td>' . "\n";
}
while ($field = mysql_fetch_field($dt_result)) {
@@ -929,7 +929,8 @@ var errorMsg2 = '<?php echo(str_replace('\'', '\\\'', $GLOBALS['strNotValidNumbe
$condition .= '= \'' . str_replace('\'', '\\\'', $row[$i]) . '\' AND';
}
if ($primary->numeric == 1) {
if ($sql_query == 'SHOW PROCESSLIST') {
if(eregi("^[ \n\r]*show[ \n\r]*processlist[ \n\r]*$",$sql_query)) {
$Id = $row[$i];
}
}
@@ -986,7 +987,7 @@ var errorMsg2 = '<?php echo(str_replace('\'', '\\\'', $GLOBALS['strNotValidNumbe
echo "\n";
} // end if
if ($sql_query == 'SHOW PROCESSLIST') {
if(eregi("^[ \n\r]*show[ \n\r]*processlist[ \n\r]*$",$sql_query)) {
?>
<td align="right">
<a href="sql.php3?db=mysql&sql_query=<?php echo urlencode('KILL ' . $Id); ?>&goto=main.php3">