Show number of connections (thanks to fos4)
This commit is contained in:
parent
8a6669f4fa
commit
3fad0c6ef7
|
@ -15,6 +15,7 @@ page_header(lang('Process list'), $error);
|
|||
<form action="" method="post">
|
||||
<table cellspacing="0" onclick="tableClick(event);" class="nowrap">
|
||||
<?php
|
||||
$i = -1;
|
||||
foreach (get_rows("SHOW FULL PROCESSLIST") as $i => $row) {
|
||||
if (!$i) {
|
||||
echo "<thead><tr lang='en'><th> <th>" . implode("<th>", array_keys($row)) . "</thead>\n";
|
||||
|
@ -30,4 +31,5 @@ foreach (get_rows("SHOW FULL PROCESSLIST") as $i => $row) {
|
|||
<p>
|
||||
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
||||
<input type="submit" value="<?php echo lang('Kill'); ?>">
|
||||
<?php echo ($i + 1) . "/" . $connection->result("SELECT @@max_connections"); ?>
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue