' . "\n" . ' ' . $strInnodbStat . "\n" . '' . "\n"; $res = PMA_DBI_query('SHOW INNODB STATUS;'); $row = PMA_DBI_fetch_row($res); echo '
' . "\n"
       . htmlspecialchars($row[0]) . "\n"
       . '
' . "\n"; PMA_DBI_free_result($res); require_once('./footer.inc.php'); } /** * Displays the sub-page heading */ echo '

' . "\n" . ' ' . $strServerStatus . "\n" . '

' . "\n"; /** * Checks if the user is allowed to do what he tries to... */ if (!$is_superuser && !$cfg['ShowMysqlInfo']) { echo $strNoPrivileges; require_once('./footer.inc.php'); } /** * Sends the query and buffers the result */ $res = PMA_DBI_query('SHOW STATUS;'); while ($row = PMA_DBI_fetch_row($res)) { $serverStatus[$row[0]] = $row[1]; } PMA_DBI_free_result($res); unset($res, $row); /** * Displays the page */ //Uptime calculation $res = PMA_DBI_query('SELECT UNIX_TIMESTAMP() - ' . $serverStatus['Uptime'] . ';'); $row = PMA_DBI_fetch_row($res); echo sprintf($strServerStatusUptime, PMA_timespanFormat($serverStatus['Uptime']), PMA_localisedDate($row[0])) . "\n"; PMA_DBI_free_result($res); unset($res, $row); //Get query statistics $queryStats = array(); $tmp_array = $serverStatus; foreach ($tmp_array AS $name => $value) { if (substr($name, 0, 4) == 'Com_') { $queryStats[str_replace('_', ' ', substr($name, 4))] = $value; unset($serverStatus[$name]); } } unset($tmp_array); ?>