bug #1443337, homepage link
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2006-03-06 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* main.php: bug #1443337, homepage link
|
||||
|
||||
2006-03-06 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||
* libraries/Config.class.php, libraries/select_lang.lib.php,
|
||||
libraries/footer.inc.php, libraries/ip_allow_deny.lib.php,
|
||||
|
15
main.php
15
main.php
@@ -278,7 +278,8 @@ if ( $cfg['ShowPhpInfo'] ) {
|
||||
PMA_printListItem( $strShowPHPInfo, 'li_phpinfo', './phpinfo.php?' . $common_url_query );
|
||||
}
|
||||
|
||||
PMA_printListItem( $strHomepageOfficial, 'li_pma_homepage', 'http://www.phpMyAdmin.net/' );
|
||||
// does not work if no target specified, don't know why
|
||||
PMA_printListItem( $strHomepageOfficial, 'li_pma_homepage', 'http://www.phpMyAdmin.net/', null, '_blank' );
|
||||
?>
|
||||
<li><bdo xml:lang="en" dir="ltr">
|
||||
[<a href="changelog.php" target="_blank">ChangeLog</a>]
|
||||
@@ -369,15 +370,21 @@ if (defined('PMA_MYSQL_INT_VERSION') && PMA_MYSQL_INT_VERSION < 32332) {
|
||||
/**
|
||||
* prints list item for main page
|
||||
*
|
||||
* @param string $name dsiplayed text
|
||||
* @param string $name displayed text
|
||||
* @param string $id id, used for css styles
|
||||
* @param string $url make item as link with $url as target
|
||||
* @param string $mysql_help_page display a link to MySQL's manual
|
||||
* @param string $target special target for $url
|
||||
*/
|
||||
function PMA_printListItem($name, $id = null, $url = null, $mysql_help_page = null)
|
||||
function PMA_printListItem($name, $id = null, $url = null, $mysql_help_page = null, $target = null)
|
||||
{
|
||||
echo '<li id="' . $id . '">';
|
||||
if (null !== $url) {
|
||||
echo '<a href="' . $url . '">';
|
||||
echo '<a href="' . $url . '"';
|
||||
if (null !== $target) {
|
||||
echo ' target="' . $target . '"';
|
||||
}
|
||||
echo '>';
|
||||
}
|
||||
|
||||
echo $name;
|
||||
|
Reference in New Issue
Block a user