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

SQLite variables

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1467 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2010-04-21 15:09:52 +00:00
parent 3f5b683456
commit 984d0907c8
4 changed files with 38 additions and 16 deletions

View File

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