Translated using Weblate (Dutch)
[phpmyadmin.git] / server_status_queries.php
blobb8958432923ee4b2f822604c395287078024c589
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 /**
5 * Displays query statistics for the server
7 * @package PhpMyAdmin
8 */
10 require_once 'libraries/common.inc.php';
11 require_once 'libraries/server_common.inc.php';
12 require_once 'libraries/ServerStatusData.class.php';
13 require_once 'libraries/server_status_queries.lib.php';
15 if (PMA_DRIZZLE) {
16 $server_master_status = false;
17 $server_slave_status = false;
18 } else {
19 include_once 'libraries/replication.inc.php';
20 include_once 'libraries/replication_gui.lib.php';
23 $ServerStatusData = new PMA_ServerStatusData();
25 $response = PMA_Response::getInstance();
26 $header = $response->getHeader();
27 $scripts = $header->getScripts();
28 $scripts->addFile('server_status_queries.js');
30 /* < IE 9 doesn't support canvas natively */
31 if (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER < 9) {
32 $scripts->addFile('jqplot/excanvas.js');
35 // for charting
36 $scripts->addFile('jqplot/jquery.jqplot.js');
37 $scripts->addFile('jqplot/plugins/jqplot.pieRenderer.js');
38 $scripts->addFile('jqplot/plugins/jqplot.canvasTextRenderer.js');
39 $scripts->addFile('jqplot/plugins/jqplot.canvasAxisLabelRenderer.js');
40 $scripts->addFile('jqplot/plugins/jqplot.dateAxisRenderer.js');
41 $scripts->addFile('jqplot/plugins/jqplot.highlighter.js');
42 $scripts->addFile('jqplot/plugins/jqplot.cursor.js');
43 $scripts->addFile('jquery/jquery.tablesorter.js');
44 $scripts->addFile('server_status_sorter.js');
46 // Add the html content to the response
47 $response->addHTML('<div>');
48 $response->addHTML($ServerStatusData->getMenuHtml());
49 $response->addHTML(PMA_getHtmlForQueryStatistics($ServerStatusData));
50 $response->addHTML('</div>');
51 exit;