next up previous contents
Next: strings.php Up: 目錄 functions Previous: mime.php   Contents

page_header.php

  1. 在網頁上顯示登入的用戶名稱,加入用戶變數。
    [root@mail squirrelmail-1.4.8]# diff -wuN ./functions/page_header.php /var/www/squirrelmail/functions/page_header.php
    --- ./functions/page_header.php	2006-06-14 22:25:41.000000000 +0800
    +++ /var/www/squirrelmail/functions/page_header.php	2010-11-18 16:46:47.000000000 +0800
    @@ -88,7 +88,7 @@
                $compose_new_win, $compose_width, $compose_height,
                $attachemessages, $provider_name, $provider_uri,
                $javascript_on, $default_use_mdn, $mdn_user_support,
    -           $startMessage;
    +           $startMessage, $username;
     
         sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION );
         sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION );
    
  2. 在網頁右上角顯示登入的用戶名稱,連結登出網頁。
    @@ -271,7 +271,7 @@
         }
         echo  "      </td>\n"
             . html_tag( 'td', '', 'right' ) ."<b>\n";
    -    displayInternalLink ('src/signout.php', _("Sign Out"), $frame_top);
    +    displayInternalLink ('src/signout.php', _("$username  Sign Out"), $frame_top);
         echo "</b></td>\n"
             . "   </tr>\n"
             . html_tag( 'tr', '', '', $color[4] ) ."\n"
    



2016-03-11