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

tree.php

  1. 增加可一次清除的目錄 Sapm,原先只有 Trash。
    [root@mail squirrelmail-1.4.8]# diff -uwN ./functions/tree.php /var/www/squirrelmail/functions/tree.php
    --- ./functions/tree.php	2006-04-15 06:27:08.000000000 +0800
    +++ /var/www/squirrelmail/functions/tree.php	2013-03-29 09:43:04.000000000 +0800
    @@ -78,8 +78,9 @@
      * @param array tree the tree to walk
      * @return void
      */
    -function walkTreeInPreOrderEmptyTrash($index, $imap_stream, $tree) {
    -    global $trash_folder;
    +function walkTreeInPreOrderEmptyTrash($index, $imap_stream, $tree, $purge_folder) { //dywang
    +	$trash_folder=$purge_folder; 
         if ($tree[$index]['doIHaveChildren']) {
             for ($j = 0; $j < count($tree[$index]['subNodes']); $j++) {
                 walkTreeInPreOrderEmptyTrash($tree[$index]['subNodes'][$j], $imap_stream, $tree);
    


2016-03-11