WORLD IPV6 DAY is 8 June 2011 – The Future is Forever

IPv6 detector

Still using IPv4? 10.3.19.245 Show stats

Mapa de Visites

Twitter


Squirrelmail: Afegir favicon.ico

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:

  1. functions/page_header.php
  2. El codi original és:

    echo '&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;' .
     "\n\n" . html_tag( 'html' ,'' , '', '', '' ) . "\n&lt;head&gt;\n" .
     "&lt;meta name=\"robots\" content=\"noindex,nofollow\"&gt;\n";
    
     if ( !isset( $custom_css ) || $custom_css == 'none' ) {
     if ($theme_css != '') {
     echo "&lt;link rel=\"stylesheet\" type=\"text/css\" href=\"$theme_css\"&gt;";
     }
     } else {
     echo '&lt;link rel="stylesheet" type="text/css" href="' .
     $base_uri . 'themes/css/'.$custom_css.'"&gt;';
     }
    
     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') {
    

  3. src/webmail.php
  4. 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>";
    

  5. src/signout.php
  6. 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.

VN:F [1.9.13_1145]
Rating: 0.0/5 (0 votes cast)
Share

Deixa un Comentari

 

 

 

Pots usar aquestes etiquetes HTML

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*