Преглед на файлове

think finally fixed the deleting of folders stuff.. :)

nehresma преди 25 години
родител
ревизия
3af3ea33e2
променени са 3 файла, в които са добавени 5 реда и са изтрити 6 реда
  1. 1 1
      src/empty_trash.php
  2. 4 4
      src/folders.php
  3. 0 1
      src/folders_delete.php

+ 1 - 1
src/empty_trash.php

@@ -37,7 +37,7 @@
    $j = 0;
    for ($i = 0;$i < count($boxes);$i++) {
       if (substr($boxes[$i]["unformatted"], 0, strlen($mailbox . $dm)) == ($mailbox . $dm)) {
-         addChildNodeToTree($boxes[$i]["unformatted"], $foldersTree);
+         addChildNodeToTree($boxes[$i]["unformatted"], $boxes[$i]["unformatted-dm"], $foldersTree);
       }
    }
    

+ 4 - 4
src/folders.php

@@ -74,8 +74,8 @@
       echo "<OPTION>[ None ]\n";
 
    for ($i = 0; $i < count($boxes); $i++) {
-      for ($j = 0; $j < count($boxes[$i]["flags"]); $j++) {
-         if ($boxes[$i]["flags"][$j] != "noinferiors") {
+//      for ($j = 0; $j < count($boxes[$i]["flags"]); $j++) {
+//         if ($boxes[$i]["flags"][$j] != "noinferiors") {
             if (($boxes[$i]["unformatted"] == $special_folders[0]) && ($default_sub_of_inbox == true)) {
                $box = $boxes[$i]["unformatted"];
                $box2 = replace_spaces($boxes[$i]["formatted"]);
@@ -85,8 +85,8 @@
                $box2 = replace_spaces($boxes[$i]["formatted"]);
                echo "<OPTION VALUE=\"$box\">$box2\n";
             }
-         }   
-      }
+//         }   
+//      }
    }
    echo "</SELECT></TT><BR>\n";
    echo "<FONT FACE=\"Arial,Helvetica\">";

+ 0 - 1
src/folders_delete.php

@@ -58,7 +58,6 @@
    $j = 0;
    for ($i = 0;$i < count($boxes);$i++) {
       if (substr($boxes[$i]["unformatted"], 0, strlen($mailbox_no_dm . $dm)) == ($mailbox_no_dm . $dm)) {
-//         echo "<B>".$boxes[$i]["unformatted-dm"] . "</b><BR>";
          addChildNodeToTree($boxes[$i]["unformatted"], $boxes[$i]["unformatted-dm"], $foldersTree);
       }
    }