Si voleu afegir el favicon.ico a les vostres planes del Squirrelmail no n’hi ha prou amb afegir la icona al directori arrel del Squirrelmail.
Heu de modificar lleugerament el codi PHP de 3 arxius per afegir el següent codi:
<link rel="shortcut icon" href="../images/favicon.ico">
Els arxius son aquests:
- functions/page_header.php
- src/webmail.php
- src/signout.php
El codi original és:
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' .
"\n\n" . html_tag( 'html' ,'' , '', '', '' ) . "\n<head>\n" .
"<meta name=\"robots\" content=\"noindex,nofollow\">\n";
if ( !isset( $custom_css ) || $custom_css == 'none' ) {
if ($theme_css != '') {
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"$theme_css\">";
}
} else {
echo '<link rel="stylesheet" type="text/css" href="' .
$base_uri . 'themes/css/'.$custom_css.'">';
}
if ($squirrelmail_language == 'ja_JP') {
Ha de quedar així:
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' .
"\n\n" . html_tag( 'html' ,'' , '', '', '' ) . "\n<head>\n" .
"<meta name=\"robots\" content=\"noindex,nofollow\">\n";
if ( !isset( $custom_css ) || $custom_css == 'none' ) {
if ($theme_css != '') {
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"$theme_css\">";
}
} else {
echo '<link rel="stylesheet" type="text/css" href="' .
$base_uri . 'themes/css/'.$custom_css.'">';
}
echo '<link rel="shortcut icon" href="../images/favicon.ico">';
if ($squirrelmail_language == 'ja_JP') {
El codi original és:
$output = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\">\n".
"<html><head>\n" .
"<meta name=\"robots\" content=\"noindex,nofollow\">\n" .
"<title>$org_title</title>\n".
"</head>";
Ha de quedar així:
$output = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\">\n".
"<html><head>\n" .
"<meta name=\"robots\" content=\"noindex,nofollow\">\n" .
"<link rel=\"shortcut icon\" href=\"../images/favicon.ico\">\n" .
"<title>$org_title</title>\n".
"</head>";
El codi original és:
<head>
<meta name="robots" content="noindex,nofollow">
<?php
if ($theme_css != '') {
?>
<link rel="stylesheet" type="text/css" href="<?php echo $theme_css; ?>">
<?php
}
?>
<title><?php echo $org_title . ' - ' . _("Signout"); ?></title>
</head>
Ha de quedar així:
<head>
<meta name="robots" content="noindex,nofollow">
<?php
if ($theme_css != '') {
?>
<link rel="stylesheet" type="text/css" href="<?php echo $theme_css; ?>">
<?php
}
?>
<link rel="shortcut icon" href="../images/favicon.ico">
<title><?php echo $org_title . ' - ' . _("Signout"); ?></title>
</head>
Si deseu l’arxiu favicon.ico en un altre directori ( jo l’he deixat a imatges/ ), haureu de modificar el codi per reflexar el lloc correcte.


