Merge branch 'origin/master' into Weblate.
[phpmyadmin.git] / server_status_variables.php
blob1cce87d1f5fda9512a4b669f0b3f46ace61a126f
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Displays a list of server status variables
6 * @package PhpMyAdmin
7 */
8 declare(strict_types=1);
10 use PhpMyAdmin\Controllers\Server\Status\VariablesController;
11 use PhpMyAdmin\Response;
12 use PhpMyAdmin\Server\Status\Data;
14 if (! defined('ROOT_PATH')) {
15 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
18 require_once ROOT_PATH . 'libraries/common.inc.php';
19 require_once ROOT_PATH . 'libraries/server_common.inc.php';
20 require_once ROOT_PATH . 'libraries/replication.inc.php';
22 $response = Response::getInstance();
24 $controller = new VariablesController(
25 $response,
26 $GLOBALS['dbi'],
27 new Data()
30 $header = $response->getHeader();
31 $scripts = $header->getScripts();
32 $scripts->addFile('server_status_variables.js');
33 $scripts->addFile('vendor/jquery/jquery.tablesorter.js');
34 $scripts->addFile('server_status_sorter.js');
36 $response->addHTML($controller->index([
37 'flush' => $_POST['flush'] ?? null,
38 'filterAlert' => $_POST['filterAlert'] ?? null,
39 'filterText' => $_POST['filterText'] ?? null,
40 'filterCategory' => $_POST['filterCategory'] ?? null,
41 'dontFormat' => $_POST['dontFormat'] ?? null,
42 ]));