Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRouslan Placella <rouslan@placella.com>2012-12-01 16:39:56 +0400
committerRouslan Placella <rouslan@placella.com>2012-12-14 23:05:03 +0400
commit67749fa881ca2c9823dce0b84d35b95deb30a73f (patch)
treea9906b4bb47971406795118cc1d5dc90806dcd34 /server_status.php
parent066674497e5063140170099167c77eda962cf35a (diff)
Split the advisor feature into a separate page
Diffstat (limited to 'server_status.php')
-rw-r--r--server_status.php33
1 files changed, 2 insertions, 31 deletions
diff --git a/server_status.php b/server_status.php
index b8d00b05fd..a8ded59b38 100644
--- a/server_status.php
+++ b/server_status.php
@@ -443,12 +443,6 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) {
exit(json_encode($return));
}
-
- if (isset($_REQUEST['advisor'])) {
- include 'libraries/Advisor.class.php';
- $advisor = new Advisor();
- exit(json_encode($advisor->run()));
- }
}
@@ -830,9 +824,9 @@ echo '<li><a href="#statustabs_allvars">'
. __('All status variables') . '</a></li>';
echo '<li class="jsfeature"><a href="#statustabs_charting">'
. __('Monitor') . '</a></li>';
-echo '<li class="jsfeature"><a href="#statustabs_advisor">'
- . __('Advisor') . '</a></li>';
echo '</ul>';
+echo '<a href="server_status_advisor.php?' . PMA_generate_common_url() . '">'
+ . __('Advisor') . '</a>';
echo '<div id="statustabs_traffic" class="clearfloat">';
echo '<div class="buttonlinks jsfeature">';
@@ -958,29 +952,6 @@ echo '<div id="statustabs_charting" class="jsfeature">';
printMonitor();
echo '</div>';
-echo '<div id="statustabs_advisor" class="jsfeature">';
-echo '<div class="tabLinks">';
-echo PMA_Util::getImage('play.png');
-echo '<a href="#startAnalyzer">' . __('Run analyzer') . '</a>';
-echo PMA_Util::getImage('b_help.png');
-echo '<a href="#openAdvisorInstructions">' . __('Instructions') . '</a>';
-echo '</div>';
-echo '<div class="tabInnerContent clearfloat">';
-echo '</div>';
-echo '<div id="advisorInstructionsDialog" style="display:none;">';
-
-echo '<p>';
-echo __('The Advisor system can provide recommendations on server variables by analyzing the server status variables.');
-echo '</p> <p>';
-echo __('Do note however that this system provides recommendations based on simple calculations and by rule of thumb which may not necessarily apply to your system.');
-echo '</p> <p>';
-echo __('Prior to changing any of the configuration, be sure to know what you are changing (by reading the documentation) and how to undo the change. Wrong tuning can have a very negative effect on performance.');
-echo '</p> <p>';
-echo __('The best way to tune your system would be to change only one setting at a time, observe or benchmark your database, and undo the change if there was no clearly measurable improvement.');
-echo '</p>';
-
-echo '</div>';
-echo '</div>';
echo '</div>';
echo '</div>';