Translated using Weblate (Estonian)
[phpmyadmin.git] / server_status_advisor.php
blob24da2c81f63aecc52894bd2729f85abde450324a
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 $response->addHTML(PMA_getHtmlForAdvisor());
35 $response->addHTML('</div>');
37 exit;