From 2f81b476244247df51bbb63ddb3f033bfa8ee3e2 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 1 Aug 2008 19:00:36 +0000 Subject: [PATCH] bug #2031221 [auth] Links to version number on login screen --- ChangeLog | 3 +++ libraries/auth/cookie.auth.lib.php | 13 ++++--------- libraries/display_select_lang.lib.php | 8 +++++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0d14b3d50..4471b0cfc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -70,6 +70,9 @@ danbarry + [doc] Documentation for distributing phpMyAdmin in README.VENDOR. + [display] headwords for sorted column +2.11.9.0 (not yet released) +- bug #2031221 [auth] Links to version number on login screen + 2.11.8.0 (2008-07-28) - patch #1987593 [interface] Table list pagination in navi, thanks to Jason Day - jday29 diff --git a/libraries/auth/cookie.auth.lib.php b/libraries/auth/cookie.auth.lib.php index 302b90c47..934eade98 100644 --- a/libraries/auth/cookie.auth.lib.php +++ b/libraries/auth/cookie.auth.lib.php @@ -199,7 +199,8 @@ if (top != self) { // Displays the languages form if (empty($GLOBALS['cfg']['Lang'])) { require_once './libraries/display_select_lang.lib.php'; - PMA_select_language(true); + // use fieldset, don't show doc link + PMA_select_language(true, false); } // Displays the warning message and the login form @@ -251,14 +252,8 @@ if (top != self) { '; - if ($GLOBALS['cfg']['ReplaceHelpImg']) { - echo '' . $GLOBALS['strPmaDocumentation'] . ''; - } else { - echo '(*)'; - } - echo ''; + // no real need to put a link to doc here, and it would reveal the + // version number ?> diff --git a/libraries/display_select_lang.lib.php b/libraries/display_select_lang.lib.php index cdcf3c05b..a7a1f84be 100644 --- a/libraries/display_select_lang.lib.php +++ b/libraries/display_select_lang.lib.php @@ -26,7 +26,7 @@ function PMA_language_cmp(&$a, &$b) { * * @access public */ -function PMA_select_language($use_fieldset = FALSE) { +function PMA_select_language($use_fieldset = FALSE, $show_doc = TRUE) { global $cfg, $lang; ?> @@ -42,11 +42,13 @@ function PMA_select_language($use_fieldset = FALSE) { // not a proper word in the current language; we show it to help // people recognize the dialog $language_title = $GLOBALS['strLanguage'] - . ($GLOBALS['strLanguage'] != 'Language' ? ' - Language' : '') - . ' ' . + . ($GLOBALS['strLanguage'] != 'Language' ? ' - Language' : ''); + if ($show_doc) { + $language_title .= ' ' . ($cfg['ReplaceHelpImg'] ? 'Info' : '(*)') . ''; + } if ($use_fieldset) { echo '
' . $language_title . ''; } else {