Translated using Weblate (Albanian)
[phpmyadmin.git] / server_status.php
blob002f367ffe5329d61236dc89b712ecd4d52b25e9
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\Response;
11 use PMA\libraries\ServerStatusData;
13 require_once 'libraries/common.inc.php';
14 require_once 'libraries/server_common.inc.php';
15 require_once 'libraries/server_status.lib.php';
17 /**
18 * Replication library
20 require_once 'libraries/replication.inc.php';
21 require_once 'libraries/replication_gui.lib.php';
23 /**
24 * start output
26 $response = Response::getInstance();
27 $response->addHTML('<div>');
29 $serverStatusData = new ServerStatusData();
30 $response->addHTML($serverStatusData->getMenuHtml());
31 if ($serverStatusData->dataLoaded) {
32 $response->addHTML(PMA_getHtmlForServerStatus($serverStatusData));
33 } else {
34 $response->addHTML(
35 Message::error(
36 __('Not enough privilege to view server status.')
37 )->getDisplay()
40 $response->addHTML('</div>');
41 exit;