Translated using Weblate (Dutch)
[phpmyadmin.git] / server_status_advisor.php
blob6f882033cc26746648e5bc88e36502cc5df03b43
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 $server_master_status = false;
16 $server_slave_status = false;
17 } else {
18 include_once 'libraries/replication.inc.php';
19 include_once 'libraries/replication_gui.lib.php';
22 $ServerStatusData = new PMA_ServerStatusData();
24 $response = PMA_Response::getInstance();
25 $scripts = $response->getHeader()->getScripts();
26 $scripts->addFile('server_status_advisor.js');
28 /**
29 * Output
31 $response->addHTML('<div>');
32 $response->addHTML($ServerStatusData->getMenuHtml());
33 $response->addHTML(PMA_getHtmlForAdvisor());
34 $response->addHTML('</div>');
35 exit;