2009-06-16 15:10:37 +00:00
|
|
|
<?php
|
2010-01-08 10:07:08 +00:00
|
|
|
$status = isset($_GET["status"]);
|
|
|
|
page_header($status ? lang('Status') : lang('Variables'));
|
2009-06-16 15:10:37 +00:00
|
|
|
|
2010-01-08 10:07:08 +00:00
|
|
|
$result = $connection->query($status ? "SHOW STATUS" : "SHOW VARIABLES");
|
2009-06-16 15:10:37 +00:00
|
|
|
echo "<table cellspacing='0'>\n";
|
|
|
|
while ($row = $result->fetch_assoc()) {
|
|
|
|
echo "<tr>";
|
2010-01-08 10:07:08 +00:00
|
|
|
echo "<th><code class='jush-" . ($status ? "sqlstatus" : "sqlset") . "'>" . h($row["Variable_name"]) . "</code>";
|
2009-08-25 10:26:47 +00:00
|
|
|
echo "<td>" . nbsp($row["Value"]);
|
2009-06-16 15:10:37 +00:00
|
|
|
}
|
|
|
|
echo "</table>\n";
|