Fix unit tests
[phpmyadmin.git] / server_status.php
blob757ba04c999aaedaa620692951fb5bda0cceded9
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 PhpMyAdmin\Message;
10 use PhpMyAdmin\Response;
11 use PhpMyAdmin\Server\Status;
12 use PhpMyAdmin\Server\Status\Data;
14 require_once 'libraries/common.inc.php';
15 require_once 'libraries/server_common.inc.php';
17 /**
18 * Replication library
20 require_once 'libraries/replication.inc.php';
22 /**
23 * start output
25 $response = Response::getInstance();
26 $response->addHTML('<div>');
28 $serverStatusData = new Data();
29 $response->addHTML($serverStatusData->getMenuHtml());
30 if ($serverStatusData->dataLoaded) {
31 $response->addHTML(Status::getHtml($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;