mirror of
https://github.com/vrana/adminer.git
synced 2026-01-09 09:02:56 +01:00
Plugins: Methods showVariables() and showStatus() (bug #1157)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
## Adminer dev
|
||||
- Plugins: Methods showVariables() and showStatus() (bug #1157)
|
||||
|
||||
## Adminer 5.4.1 (released 2025-09-26)
|
||||
- SQL command: Unlink NULL primary keys
|
||||
|
||||
@@ -1134,6 +1134,20 @@ class Adminer {
|
||||
echo "</ul>\n";
|
||||
}
|
||||
|
||||
/** Get server variables
|
||||
* @return list<string[]> [[$name, $value]]
|
||||
*/
|
||||
function showVariables(): array {
|
||||
return show_variables();
|
||||
}
|
||||
|
||||
/** Get status variables
|
||||
* @return list<string[]> [[$name, $value]]
|
||||
*/
|
||||
function showStatus(): array {
|
||||
return show_status();
|
||||
}
|
||||
|
||||
/** Get process list
|
||||
* @return list<string[]> [$row]
|
||||
*/
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Adminer;
|
||||
$status = isset($_GET["status"]);
|
||||
page_header($status ? lang('Status') : lang('Variables'));
|
||||
|
||||
$variables = ($status ? show_status() : show_variables());
|
||||
$variables = ($status ? adminer()->showStatus() : adminer()->showVariables());
|
||||
if (!$variables) {
|
||||
echo "<p class='message'>" . lang('No rows.') . "\n";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user