2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * displays the advisor feature
9 use PMA\libraries\Message
;
10 use PMA\libraries\ServerStatusData
;
12 require_once 'libraries/common.inc.php';
13 require_once 'libraries/server_status_advisor.lib.php';
14 require_once 'libraries/replication.inc.php';
15 require_once 'libraries/replication_gui.lib.php';
17 $serverStatusData = new ServerStatusData();
19 $response = PMA\libraries\Response
::getInstance();
20 $scripts = $response->getHeader()->getScripts();
21 $scripts->addFile('server_status_advisor.js');
26 $response->addHTML('<div>');
27 $response->addHTML($serverStatusData->getMenuHtml());
28 if ($serverStatusData->dataLoaded
) {
29 $response->addHTML(PMA_getHtmlForAdvisor());
33 __('Not enough privilege to view the advisor.')
37 $response->addHTML('</div>');