'SHOW PROCESSLIST' interface

This commit is contained in:
Alexander M. Turek
2002-12-10 00:15:53 +00:00
parent b5a45f3041
commit f4fd138a7e
97 changed files with 868 additions and 128 deletions

View File

@@ -8,16 +8,6 @@
*/
require('./server_common.inc.php3');
/**
* Handles some variables that may have been sent by the calling script
*/
if (isset($db)) {
unset($db);
}
if (isset($table)) {
unset($table);
}
/**
* Displays the links
*/
@@ -43,12 +33,12 @@ if (!$is_superuser && !$cfg['ShowMysqlVars']) {
* Sends the queries and buffers the result
*/
if (PMA_MYSQL_INT_VERSION >= 40003) {
$res = @PMA_mysql_query('SHOW SESSION VARIABLES;', $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), 'SHOW VARIABLES;');
$res = @PMA_mysql_query('SHOW SESSION VARIABLES;', $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), 'SHOW SESSION VARIABLES;');
while ($row = PMA_mysql_fetch_row($res)) {
$serverVars[$row[0]] = $row[1];
}
@mysql_free_result($res);
$res = @PMA_mysql_query('SHOW GLOBAL VARIABLES;', $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), 'SHOW VARIABLES;');
$res = @PMA_mysql_query('SHOW GLOBAL VARIABLES;', $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), 'SHOW GLOBAL VARIABLES;');
while ($row = PMA_mysql_fetch_row($res)) {
$serverVarsGlobal[$row[0]] = $row[1];
}