next up previous contents
Next: view_header.php Up: 目錄 src Previous: redirect.php   Contents

right_main.php

  1. 主頁面右側顯示程式。
    [root@mail squirrelmail-1.4.8]# diff -wuN ./src/right_main.php /var/www/squirrelmail/src/right_main.php
    --- ./src/right_main.php	2006-06-02 10:52:15.000000000 +0800
    +++ /var/www/squirrelmail/src/right_main.php	2014-05-12 07:45:14.779911272 +0800
    
  2. 郵件顯示由預設每頁 15 封,改成 25 封。
    @@ -102,8 +102,8 @@
     }
     
     if (!isset($show_num) || empty($show_num) || ($show_num == 0)) {
    -    setPref($data_dir, $username, 'show_num' , 15);
    -    $show_num = 15;
    +    setPref($data_dir, $username, 'show_num' , 25);
    +    $show_num = 25;
     }
     
     if (isset($newsort) && $newsort != $sort) {
    
  3. session 先進行 url 編碼。
    @@ -154,7 +154,7 @@
     
     if ($composenew) {
         $comp_uri = SM_PATH . 'src/compose.php?mailbox='. urlencode($mailbox).
    -        "&session=$session";
    +        "&session=" .urlencode($session);
         displayPageHeader($color, $mailbox, "comp_in_new('$comp_uri');", false);
     } else {
         displayPageHeader($color, $mailbox);
    



2016-03-11