Translated using Weblate (Slovenian)
[phpmyadmin.git] / server_status.php
blobd04a5779e9c0e5874e6d0f7c4ab1b77dbad923bb
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * object the server status page: processes, connections and traffic
6 * @package PhpMyAdmin
7 */
9 use PMA\libraries\Message;
10 use PMA\libraries\ServerStatusData;
12 require_once 'libraries/common.inc.php';
13 require_once 'libraries/server_common.inc.php';
14 require_once 'libraries/server_status.lib.php';
16 /**
17 * Replication library
19 require_once 'libraries/replication.inc.php';
20 require_once 'libraries/replication_gui.lib.php';
22 /**
23 * start output
25 $response = PMA\libraries\Response::getInstance();
26 $response->addHTML('<div>');
28 $serverStatusData = new ServerStatusData();
29 $response->addHTML($serverStatusData->getMenuHtml());
30 if ($serverStatusData->dataLoaded) {
31 $response->addHTML(PMA_getHtmlForServerStatus($serverStatusData));
32 } else {
33 $response->addHTML(
34 Message::error(
35 __('Not enough privilege to view server status.')
36 )->getDisplay()
39 $response->addHTML('</div>');
40 exit;