1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +02:00

Show status

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1285 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2010-01-08 10:07:08 +00:00
parent 9d650377ab
commit 51e1ff79ca
3 changed files with 10 additions and 4 deletions

View File

@@ -1,11 +1,12 @@
<?php
page_header(lang('Variables'));
$status = isset($_GET["status"]);
page_header($status ? lang('Status') : lang('Variables'));
$result = $connection->query($status ? "SHOW STATUS" : "SHOW VARIABLES");
echo "<table cellspacing='0'>\n";
$result = $connection->query("SHOW VARIABLES");
while ($row = $result->fetch_assoc()) {
echo "<tr>";
echo "<th><code class='jush-sqlset'>" . h($row["Variable_name"]) . "</code>";
echo "<th><code class='jush-" . ($status ? "sqlstatus" : "sqlset") . "'>" . h($row["Variable_name"]) . "</code>";
echo "<td>" . nbsp($row["Value"]);
}
echo "</table>\n";