updated acknowledgments
[openemr.git] / phpmyadmin / server_status_advisor.php
blobeb2e57c86b62350ed2a32422858b16313036a4ae
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * displays the advisor feature
6 * @package PhpMyAdmin
7 */
9 require_once 'libraries/common.inc.php';
10 require_once 'libraries/Advisor.class.php';
11 require_once 'libraries/ServerStatusData.class.php';
12 require_once 'libraries/server_status_advisor.lib.php';
14 if (PMA_DRIZZLE) {
15 $GLOBALS['replication_info'] = array();
16 $GLOBALS['replication_info']['master']['status'] = false;
17 $GLOBALS['replication_info']['slave']['status'] = false;
18 } else {
19 include_once 'libraries/replication.inc.php';
20 include_once 'libraries/replication_gui.lib.php';
23 $serverStatusData = new PMA_ServerStatusData();
25 $response = PMA_Response::getInstance();
26 $scripts = $response->getHeader()->getScripts();
27 $scripts->addFile('server_status_advisor.js');
29 /**
30 * Output
32 $response->addHTML('<div>');
33 $response->addHTML($serverStatusData->getMenuHtml());
34 if ($serverStatusData->dataLoaded) {
35 $response->addHTML(PMA_getHtmlForAdvisor());
36 } else {
37 $response->addHTML(
38 PMA_Message::error(
39 __('Not enough privilege to view the advisor.')
40 )->getDisplay()
43 $response->addHTML('</div>');
45 exit;