2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * displays the advisor feature
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';
15 $GLOBALS['replication_info'] = array();
16 $GLOBALS['replication_info']['master']['status'] = false;
17 $GLOBALS['replication_info']['slave']['status'] = false;
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');
32 $response->addHTML('<div>');
33 $response->addHTML($ServerStatusData->getMenuHtml());
34 $response->addHTML(PMA_getHtmlForAdvisor());
35 $response->addHTML('</div>');