next up previous contents
Next: setup.php Up: 目錄 plugins Previous: options.php   Contents

filters.php

  1. 設定只要用戶使用英文或中文界面,過濾語言皆設為繁體中文 zh_TW
    [root@mail squirrelmail-1.4.8]# diff -wuN ./plugins/filters/filters.php /var/www/squirrelmail/plugins/filters/filters.php
    --- ./plugins/filters/filters.php	2006-07-29 16:46:57.000000000 +0800
    +++ /var/www/squirrelmail/plugins/filters/filters.php	2014-07-21 06:08:51.480883296 +0800
    @@ -300,11 +300,12 @@
     
         $category .= ' UNDELETED';
     
    +    if (strstr($squirrelmail_language,'en') || strstr($squirrelmail_language,'zh')) {$filter_language='zh_TW'; } //dywang 
         if ($allow_charset_search &&
    -        isset($languages[$squirrelmail_language]['CHARSET']) &&
    -        $languages[$squirrelmail_language]['CHARSET']) {
    +        isset($languages[$filter_language]['CHARSET']) &&   //dywang
    +        $languages[$filter_language]['CHARSET']) {
             $search_str = 'SEARCH CHARSET '
    -                    . strtoupper($languages[$squirrelmail_language]['CHARSET'])
    +                    . strtoupper($languages[$filter_language]['CHARSET'])
                         . ' ' . $category;
         } else {
             $search_str = 'SEARCH CHARSET US-ASCII ' . $category;
    



2016-03-11