Translated using Weblate (Slovenian)
[phpmyadmin.git] / server_status_advisor.php
blobca7a75113f37b6bca6ecb827c353aa8315562968
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * displays the advisor feature
6 * @package PhpMyAdmin
7 */
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');
23 /**
24 * Output
26 $response->addHTML('<div>');
27 $response->addHTML($serverStatusData->getMenuHtml());
28 if ($serverStatusData->dataLoaded) {
29 $response->addHTML(PMA_getHtmlForAdvisor());
30 } else {
31 $response->addHTML(
32 Message::error(
33 __('Not enough privilege to view the advisor.')
34 )->getDisplay()
37 $response->addHTML('</div>');
39 exit;