1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 01:24:17 +02:00
Files
php-adminer/adminer/variables.inc.php
2025-03-06 17:51:20 +01:00

19 lines
493 B
PHP

<?php
namespace Adminer;
$status = isset($_GET["status"]);
page_header($status ? lang('Status') : lang('Variables'));
$variables = ($status ? show_status() : show_variables());
if (!$variables) {
echo "<p class='message'>" . lang('No rows.') . "\n";
} else {
echo "<table>\n";
foreach ($variables as $key => $val) {
echo "<tr>";
echo "<th><code class='jush-" . JUSH . ($status ? "status" : "set") . "'>" . h($key) . "</code>";
echo "<td>" . nl_br(h($val));
}
echo "</table>\n";
}