~ubuntu-branches/debian/experimental/phpmyadmin/experimental

« back to all changes in this revision

Viewing changes to main.php

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2010-01-11 21:42:18 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100111214218-zgwqpgj6gwdha2s0
Tags: 4:3.2.5-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/* vim: set expandtab sw=4 ts=4 sts=4: */
3
3
/**
4
4
 *
5
 
 * @version $Id: main.php 12323 2009-03-25 08:32:33Z nijel $
 
5
 * @version $Id: main.php 13159 2009-12-09 17:53:48Z lem9 $
6
6
 * @package phpMyAdmin
7
7
 */
8
8
 
183
183
echo '</div>';
184
184
echo '<div id="main_pane_right">';
185
185
 
186
 
 
187
 
if ($server > 0) {
 
186
if ($server > 0 && $GLOBALS['cfg']['ShowServerInfo']) {
188
187
    echo '<div class="group">';
189
188
    echo '<h2>MySQL</h2>';
190
189
    echo '<ul>' . "\n";
191
190
    PMA_printListItem($strServer . ': ' . $server_info, 'li_server_info');
192
191
    PMA_printListItem($strServerVersion . ': ' . PMA_MYSQL_STR_VERSION, 'li_server_version');
193
 
    if ($GLOBALS['cfg']['ShowServerInfo']) {
194
 
        PMA_printListItem($strProtocolVersion . ': ' . PMA_DBI_get_proto_info(),
195
 
            'li_mysql_proto');
196
 
        PMA_printListItem($strUser . ': ' . htmlspecialchars($mysql_cur_user_and_host),
197
 
            'li_user_info');
198
 
    }
 
192
    PMA_printListItem($strProtocolVersion . ': ' . PMA_DBI_get_proto_info(),
 
193
        'li_mysql_proto');
 
194
    PMA_printListItem($strUser . ': ' . htmlspecialchars($mysql_cur_user_and_host),
 
195
        'li_user_info');
199
196
 
200
197
    echo '    <li id="li_select_mysql_charset">';
201
198
    echo '        ' . $strMySQLCharset . ': '
208
205
    echo ' </div>';
209
206
}
210
207
 
211
 
 
212
 
echo '<div class="group">';
213
 
echo '<h2>' . $strWebServer . '</h2>';
214
 
echo '<ul>';
215
 
PMA_printListItem($_SERVER['SERVER_SOFTWARE'], 'li_web_server_software');
216
 
 
217
 
if ($server > 0) {
218
 
    PMA_printListItem($strMysqlClientVersion . ': ' . PMA_DBI_get_client_info(),
219
 
        'li_mysql_client_version');
220
 
    PMA_printListItem($strPHPExtension . ': ' . $GLOBALS['cfg']['Server']['extension'],
221
 
        'li_used_php_extension');
222
 
}
223
 
 
224
 
if ($cfg['ShowPhpInfo']) {
225
 
    PMA_printListItem($strShowPHPInfo, 'li_phpinfo', './phpinfo.php?' . $common_url_query);
226
 
}
227
 
echo '  </ul>';
228
 
echo ' </div>';
 
208
if ($GLOBALS['cfg']['ShowServerInfo'] || $GLOBALS['cfg']['ShowPhpInfo']) {
 
209
    echo '<div class="group">';
 
210
    echo '<h2>' . $strWebServer . '</h2>';
 
211
    echo '<ul>';
 
212
    if ($GLOBALS['cfg']['ShowServerInfo']) {
 
213
        PMA_printListItem($_SERVER['SERVER_SOFTWARE'], 'li_web_server_software');
 
214
 
 
215
        if ($server > 0) {
 
216
            PMA_printListItem($strMysqlClientVersion . ': ' . PMA_DBI_get_client_info(),
 
217
                'li_mysql_client_version');
 
218
            PMA_printListItem($strPHPExtension . ': ' . $GLOBALS['cfg']['Server']['extension'],
 
219
                'li_used_php_extension');
 
220
        }
 
221
    }
 
222
 
 
223
    if ($cfg['ShowPhpInfo']) {
 
224
        PMA_printListItem($strShowPHPInfo, 'li_phpinfo', './phpinfo.php?' . $common_url_query);
 
225
    }
 
226
    echo '  </ul>';
 
227
    echo ' </div>';
 
228
}
229
229
 
230
230
echo '<div class="group">';
231
231
echo '<h2>phpMyAdmin</h2>';