Changed word in text for an Appointment Display Style global option, to mirror Add...
[openemr.git] / phpmyadmin / server_status.php
bloba69b84c84ff684438a1d378e203cadd54ba061e4
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 require_once 'libraries/common.inc.php';
10 require_once 'libraries/server_common.inc.php';
11 require_once 'libraries/ServerStatusData.class.php';
12 require_once 'libraries/server_status.lib.php';
14 /**
15 * Replication library
17 if (PMA_DRIZZLE) {
18 $GLOBALS['replication_info'] = array();
19 $GLOBALS['replication_info']['master']['status'] = false;
20 $GLOBALS['replication_info']['slave']['status'] = false;
21 } else {
22 include_once 'libraries/replication.inc.php';
23 include_once 'libraries/replication_gui.lib.php';
26 /**
27 * start output
29 $response = PMA_Response::getInstance();
30 $response->addHTML('<div>');
32 $serverStatusData = new PMA_ServerStatusData();
33 $response->addHTML($serverStatusData->getMenuHtml());
34 if ($serverStatusData->dataLoaded) {
35 $response->addHTML(PMA_getHtmlForServerStatus($serverStatusData));
36 } else {
37 $response->addHTML(
38 PMA_Message::error(
39 __('Not enough privilege to view server status.')
40 )->getDisplay()
43 $response->addHTML('</div>');
44 exit;