2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Displays a list of server status variables
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(
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,