Adding composer lock for 5.0.0-rc1
[phpmyadmin.git] / server_status_queries.php
bloba3b056f25278674d4a2b15051e586d02e77db1ee
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Displays query statistics for the server
6 * @package PhpMyAdmin
7 */
8 declare(strict_types=1);
10 use PhpMyAdmin\Controllers\Server\Status\QueriesController;
11 use PhpMyAdmin\DatabaseInterface;
12 use PhpMyAdmin\Response;
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 /** @var Response $response */
23 $response = $containerBuilder->get(Response::class);
25 /** @var DatabaseInterface $dbi */
26 $dbi = $containerBuilder->get(DatabaseInterface::class);
28 /** @var QueriesController $controller */
29 $controller = $containerBuilder->get(QueriesController::class);
31 $header = $response->getHeader();
32 $scripts = $header->getScripts();
33 $scripts->addFile('chart.js');
34 $scripts->addFile('vendor/jqplot/jquery.jqplot.js');
35 $scripts->addFile('vendor/jqplot/plugins/jqplot.pieRenderer.js');
36 $scripts->addFile('vendor/jqplot/plugins/jqplot.highlighter.js');
37 $scripts->addFile('vendor/jqplot/plugins/jqplot.enhancedPieLegendRenderer.js');
38 $scripts->addFile('vendor/jquery/jquery.tablesorter.js');
39 $scripts->addFile('server/status/sorter.js');
40 $scripts->addFile('server/status/queries.js');
42 $response->addHTML($controller->index());