~ubuntu-branches/ubuntu/vivid/phpmyadmin/vivid

« back to all changes in this revision

Viewing changes to libraries/server_status_monitor.lib.php

  • Committer: Package Import Robot
  • Author(s): Michal Čihař
  • Date: 2014-08-11 11:14:26 UTC
  • mfrom: (1.2.61)
  • Revision ID: package-import@ubuntu.com-20140811111426-uimdbe8nyzrvpddo
Tags: 4:4.2.7-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
        . ' by up to 15%.'
148
148
    );
149
149
 
150
 
    if (PMA_MYSQL_INT_VERSION < 50106) {
151
 
        $retval .= '<p>';
152
 
        $retval .= PMA_Util::getImage('s_attention.png');
153
 
        $retval .=  __(
154
 
            'Unfortunately your Database server does not support logging to table,'
155
 
            . ' which is a requirement for analyzing the database logs with'
156
 
            . ' phpMyAdmin. Logging to table is supported by MySQL 5.1.6 and'
157
 
            . ' onwards. You may still use the server charting features however.'
158
 
        );
159
 
        $retval .= '</p>';
160
 
    } else {
161
 
        $retval .= '<p></p>';
162
 
        $retval .= '<img class="ajaxIcon" src="';
163
 
        $retval .= $GLOBALS['pmaThemeImage'] . 'ajax_clock_small.gif"';
164
 
        $retval .= ' alt="' . __('Loading…') . '" />';
165
 
        $retval .= '<div class="ajaxContent"></div>';
166
 
        $retval .= '<div class="monitorUse" style="display:none;">';
167
 
        $retval .= '<p></p>';
168
 
        $retval .= '<strong>';
169
 
        $retval .= __('Using the monitor:');
170
 
        $retval .= '</strong><p>';
171
 
        $retval .= __(
172
 
            'Your browser will refresh all displayed charts in a regular interval.'
173
 
            . ' You may add charts and change the refresh rate under \'Settings\','
174
 
            . ' or remove any chart using the cog icon on each respective chart.'
175
 
        );
176
 
        $retval .= '</p><p>';
177
 
        $retval .= __(
178
 
            'To display queries from the logs, select the relevant time span on any'
179
 
            . ' chart by holding down the left mouse button and panning over the'
180
 
            . ' chart. Once confirmed, this will load a table of grouped queries,'
181
 
            . ' there you may click on any occurring SELECT statements to further'
182
 
            . ' analyze them.'
183
 
        );
184
 
        $retval .= '</p>';
185
 
        $retval .= '<p>';
186
 
        $retval .= PMA_Util::getImage('s_attention.png');
187
 
        $retval .= '<strong>';
188
 
        $retval .= __('Please note:');
189
 
        $retval .= '</strong><br />';
190
 
        $retval .= __(
191
 
            'Enabling the general_log may increase the server load by'
192
 
            . ' 5-15%. Also be aware that generating statistics from the logs is a'
193
 
            . ' load intensive task, so it is advisable to select only a small time'
194
 
            . ' span and to disable the general_log and empty its table once'
195
 
            . ' monitoring is not required any more.'
196
 
        );
197
 
        $retval .= '</p>';
198
 
        $retval .= '</div>';
199
 
    }
 
150
    $retval .= '<p></p>';
 
151
    $retval .= '<img class="ajaxIcon" src="';
 
152
    $retval .= $GLOBALS['pmaThemeImage'] . 'ajax_clock_small.gif"';
 
153
    $retval .= ' alt="' . __('Loading…') . '" />';
 
154
    $retval .= '<div class="ajaxContent"></div>';
 
155
    $retval .= '<div class="monitorUse" style="display:none;">';
 
156
    $retval .= '<p></p>';
 
157
    $retval .= '<strong>';
 
158
    $retval .= __('Using the monitor:');
 
159
    $retval .= '</strong><p>';
 
160
    $retval .= __(
 
161
        'Your browser will refresh all displayed charts in a regular interval.'
 
162
        . ' You may add charts and change the refresh rate under \'Settings\','
 
163
        . ' or remove any chart using the cog icon on each respective chart.'
 
164
    );
 
165
    $retval .= '</p><p>';
 
166
    $retval .= __(
 
167
        'To display queries from the logs, select the relevant time span on any'
 
168
        . ' chart by holding down the left mouse button and panning over the'
 
169
        . ' chart. Once confirmed, this will load a table of grouped queries,'
 
170
        . ' there you may click on any occurring SELECT statements to further'
 
171
        . ' analyze them.'
 
172
    );
 
173
    $retval .= '</p>';
 
174
    $retval .= '<p>';
 
175
    $retval .= PMA_Util::getImage('s_attention.png');
 
176
    $retval .= '<strong>';
 
177
    $retval .= __('Please note:');
 
178
    $retval .= '</strong><br />';
 
179
    $retval .= __(
 
180
        'Enabling the general_log may increase the server load by'
 
181
        . ' 5-15%. Also be aware that generating statistics from the logs is a'
 
182
        . ' load intensive task, so it is advisable to select only a small time'
 
183
        . ' span and to disable the general_log and empty its table once'
 
184
        . ' monitoring is not required any more.'
 
185
    );
 
186
    $retval .= '</p>';
 
187
    $retval .= '</div>';
200
188
    $retval .= '</div>';
201
189
 
202
190
    return $retval;