diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 35ddeee0a..5d049315c 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -447,6 +447,28 @@ function PMA_showDocu($anchor) { } } // end of the 'PMA_showDocu()' function +/** + * Displays a link to the PHP documentation + * + * @param string anchor in documentation + * + * @return string the html link + * + * @access public + */ +function PMA_showPHPDocu($target) { + /* l10n: Language to use for PHP documentation, please use only languages which do exist in official documentation. */ + $lang = _pgettext('PHP documentation language', 'en'); + + $url = 'http://php.net/manual/' . $lang . '/' . $target; + + if ($GLOBALS['cfg']['ReplaceHelpImg']) { + return '' . __('Documentation') . ''; + } else { + return '[' . __('Documentation') . ']'; + } +} // end of the 'PMA_showPHPDocu()' function + /** * returns HTML for a footnote marker and add the messsage to the footnotes * diff --git a/main.php b/main.php index 6e839b93d..5f18ba82b 100644 --- a/main.php +++ b/main.php @@ -199,7 +199,7 @@ if ($GLOBALS['cfg']['ShowServerInfo'] || $GLOBALS['cfg']['ShowPhpInfo']) { if ($server > 0) { PMA_printListItem(__('MySQL client version') . ': ' . PMA_DBI_get_client_info(), 'li_mysql_client_version'); - PMA_printListItem(__('PHP extension') . ': ' . $GLOBALS['cfg']['Server']['extension'], + PMA_printListItem(__('PHP extension') . ': ' . $GLOBALS['cfg']['Server']['extension'] . ' ' . PMA_showPHPDocu('book.' . $GLOBALS['cfg']['Server']['extension'] . '.php'), 'li_used_php_extension'); } } @@ -211,7 +211,7 @@ if ($GLOBALS['cfg']['ShowServerInfo'] || $GLOBALS['cfg']['ShowPhpInfo']) { echo ' '; } -echo '
'; +echo '
'; echo '

phpMyAdmin

'; echo '