2 /* vim: set expandtab sw=4 ts=4 sts=4: */
5 * functions for displaying server status sub item: advisor
7 * @usedby server_status_advisor.php
11 if (! defined('PHPMYADMIN')) {
16 * Returns html with Advisor
20 function PMA_getHtmlForAdvisor()
22 $output = '<a href="#openAdvisorInstructions">';
23 $output .= PMA_Util
::getIcon('b_help.png', __('Instructions'));
25 $output .= '<div id="statustabs_advisor"></div>';
26 $output .= '<div id="advisorInstructionsDialog" style="display:none;">';
29 'The Advisor system can provide recommendations '
30 . 'on server variables by analyzing the server status variables.'
35 'Do note however that this system provides recommendations '
36 . 'based on simple calculations and by rule of thumb which may '
37 . 'not necessarily apply to your system.'
42 'Prior to changing any of the configuration, be sure to know '
43 . 'what you are changing (by reading the documentation) and how '
44 . 'to undo the change. Wrong tuning can have a very negative '
45 . 'effect on performance.'
50 'The best way to tune your system would be to change only one '
51 . 'setting at a time, observe or benchmark your database, and undo '
52 . 'the change if there was no clearly measurable improvement.'
56 $output .= '<div id="advisorData" style="display:none;">';
57 $advisor = new Advisor();
58 $output .= htmlspecialchars(