bug #2031221 [auth] Links to version number on login screen

This commit is contained in:
Marc Delisle
2008-08-01 19:00:36 +00:00
parent 47bda17428
commit f5159676c2
3 changed files with 12 additions and 11 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - ChangeLog
$Id$
$HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyAdmin/ChangeLog $
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

View File

@@ -154,7 +154,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
@@ -179,14 +180,8 @@ if (top != self) {
<legend>
<?php
echo $GLOBALS['strLogin'];
echo '<a href="./Documentation.html" target="documentation" ' .
'title="' . $GLOBALS['strPmaDocumentation'] . '">';
if ($GLOBALS['cfg']['ReplaceHelpImg']) {
echo '<img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_help.png" width="11" height="11" alt="' . $GLOBALS['strPmaDocumentation'] . '" />';
} else {
echo '(*)';
}
echo '</a>';
// no real need to put a link to doc here, and it would reveal the
// version number
?>
</legend>

View File

@@ -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;
?>
@@ -56,10 +56,13 @@ function PMA_select_language($use_fieldset = FALSE) {
// For non-English, display "Language" with emphasis because it's
// not a proper word in the current language; we show it to help
// people recognize the dialog
$language_title = $GLOBALS['strLanguage'] . ($GLOBALS['strLanguage'] != 'Language' ? ' - <em>Language</em>' : '') . ' <a href="./translators.html" target="documentation">' .
$language_title = $GLOBALS['strLanguage'] . ($GLOBALS['strLanguage'] != 'Language' ? ' - <em>Language</em>' : '');
if ($show_doc) {
$language_title .= ' <a href="./translators.html" target="documentation">' .
($cfg['ReplaceHelpImg'] ?
'<img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_info.png" width="11" height="11" alt="Info" />' :
'(*)') . '</a>';
}
if ($use_fieldset) {
echo '<fieldset><legend xml:lang="en" dir="ltr">' . $language_title . '</legend>';
} else {