2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * object the server status page: processes, connections and traffic
8 declare(strict_types
=1);
10 use PhpMyAdmin\Message
;
11 use PhpMyAdmin\Response
;
12 use PhpMyAdmin\Server\Status
;
13 use PhpMyAdmin\Server\Status\Data
;
15 require_once 'libraries/common.inc.php';
16 require_once 'libraries/server_common.inc.php';
21 require_once 'libraries/replication.inc.php';
26 $response = Response
::getInstance();
27 $response->addHTML('<div>');
29 $serverStatusData = new Data();
30 $response->addHTML($serverStatusData->getMenuHtml());
31 if ($serverStatusData->dataLoaded
) {
32 $response->addHTML(Status
::getHtml($serverStatusData));
36 __('Not enough privilege to view server status.')
40 $response->addHTML('</div>');