<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";
<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>