devilbox/.devilbox/www/htdocs/vendor/phpmyadmin-4.9.3/server_status.php

41 lines
897 B
PHP
Raw Normal View History

2016-10-22 14:57:10 +00:00
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* object the server status page: processes, connections and traffic
*
* @package PhpMyAdmin
*/
2018-04-14 09:18:00 +00:00
use PhpMyAdmin\Message;
use PhpMyAdmin\Response;
use PhpMyAdmin\Server\Status;
use PhpMyAdmin\Server\Status\Data;
2016-10-22 14:57:10 +00:00
require_once 'libraries/common.inc.php';
require_once 'libraries/server_common.inc.php';
/**
* Replication library
*/
require_once 'libraries/replication.inc.php';
/**
* start output
*/
$response = Response::getInstance();
2016-10-22 14:57:10 +00:00
$response->addHTML('<div>');
2018-04-14 09:18:00 +00:00
$serverStatusData = new Data();
2016-10-22 14:57:10 +00:00
$response->addHTML($serverStatusData->getMenuHtml());
if ($serverStatusData->dataLoaded) {
2018-04-14 09:18:00 +00:00
$response->addHTML(Status::getHtml($serverStatusData));
2016-10-22 14:57:10 +00:00
} else {
$response->addHTML(
Message::error(
__('Not enough privilege to view server status.')
)->getDisplay()
);
}
$response->addHTML('</div>');
exit;