+
+
- displayPageHeader($color, "None");
+
+
- echo " ";
- echo "\n";
- echo " \n";
- echo _("Folders");
- echo " \n";
- echo "
\n";
+\n";
- echo " \n";
+ echo "\n";
+ echo " \n";
if ($success == "subscribe") {
echo "" . _("Subscribed successfully!") . " ";
} else if ($success == "unsubscribe") {
@@ -53,47 +47,15 @@
echo "" . _("Created folder successfully!") . " ";
} else if ($success == "rename") {
echo "" . _("Renamed successfully!") . " ";
- } else if (($sent_create == "true") || ($trash_create == "true")) {
- $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
- if ($sent_create == "true") {
- sqimap_mailbox_create ($imapConnection, $sent_folder, "");
- }
- if ($trash_create == "true") {
- sqimap_mailbox_create ($imapConnection, $trash_folder, "");
- }
- sqimap_logout($imapConnection);
- echo _("Folders created successfully!");
}
echo " " . _("refresh folder list") . " ";
- echo " \n";
+ echo " \n";
echo "
\n";
}
$imapConnection = sqimap_login ($username, $key, $imapServerAddress, $imapPort, 0);
$boxes = sqimap_mailbox_list($imapConnection);
- //display form option for creating Sent and Trash folder
- if ($imap_server_type == "cyrus" && ($sent_folder != "none" || $trash_folder != "none")) {
- if ((!sqimap_mailbox_exists ($imapConnection, $sent_folder)) ||
- (!sqimap_mailbox_exists ($imapConnection, $trash_folder))) {
- echo "\n";
- echo "";
- echo _("Special Folder Options");
- echo " ";
- echo "";
- echo _("In order for SquirrelMail to provide the full set of options you need to create the special folders listed below. Just click the check box and hit the create button.");
- echo "
";
- }
- }
-
/** DELETING FOLDERS **/
echo "\n";
echo "";
@@ -132,7 +94,7 @@
strtolower($boxes[$i]["unformatted"]) != "inbox.trash"))
{
$box = $boxes[$i]["unformatted-dm"];
- $box2 = replace_spaces($boxes[$i]["unformatted-disp"]);
+ $box2 = str_replace(' ', ' ', $boxes[$i]["unformatted-disp"]);
echo " $box2\n";
}
}
@@ -159,50 +121,29 @@
echo "\n";
if (strtolower($imap_server_type) != "courier"){
if ($default_sub_of_inbox == false)
- echo "[ None ]\n";
+ echo ' [ '._("None")." ]\n";
else
- echo " [ None ]\n";
+ echo ' [ '._("None")." ]\n";
}
for ($i = 0; $i < count($boxes); $i++) {
- if (count($boxes[$i]["flags"]) > 0) {
- $noinf = false;
- for ($j = 0; $j < count($boxes[$i]["flags"]); $j++) {
- if ($boxes[$i]["flags"][$j] == "noinferiors") {
- $noinf = true;
- continue;
- }
- }
- if ($noinf == false) {
- if ((strtolower($boxes[$i]["unformatted"]) == "inbox") && ($default_sub_of_inbox == true)) {
- $box = $boxes[$i]["unformatted"];
- $box2 = replace_spaces($boxes[$i]["unformatted-disp"]);
- echo " $box2\n";
- } else {
- $box = $boxes[$i]["unformatted"];
- $box2 = replace_spaces($boxes[$i]["unformatted-disp"]);
- if (strtolower($imap_server_type) != "courier" ||
- strtolower($box) != "inbox.trash")
- echo " $box2\n";
- }
- }
- } else {
+ if (!in_array('noinferiors', $boxes[$i]['flags'])) {
if ((strtolower($boxes[$i]["unformatted"]) == "inbox") && ($default_sub_of_inbox == true)) {
$box = $boxes[$i]["unformatted"];
- $box2 = replace_spaces($boxes[$i]["unformatted-disp"]);
+ $box2 = str_replace(' ', ' ', $boxes[$i]["unformatted-disp"]);
echo " $box2\n";
} else {
$box = $boxes[$i]["unformatted"];
- $box2 = replace_spaces($boxes[$i]["unformatted-disp"]);
+ $box2 = str_replace(' ', ' ', $boxes[$i]["unformatted-disp"]);
if (strtolower($imap_server_type) != "courier" ||
strtolower($box) != "inbox.trash")
echo " $box2\n";
}
}
}
- echo " \n";
+ echo "\n";
if ($show_contain_subfolders_option) {
- echo " ";
+ echo " ";
echo _("Let this folder contain subfolders");
echo " ";
}
@@ -227,7 +168,7 @@
($boxes[$i]["unformatted"] != $sent_folder))
{
$box = $boxes[$i]["unformatted-dm"];
- $box2 = replace_spaces($boxes[$i]["unformatted-disp"]);
+ $box2 = str_replace(' ', ' ', $boxes[$i]["unformatted-disp"]);
if (strtolower($imap_server_type) != "courier" || strtolower($box) != "inbox.trash")
echo " $box2\n";
}
@@ -245,11 +186,11 @@
echo "
\n";
/** UNSUBSCRIBE FOLDERS **/
- echo "\n";
- echo "";
+ echo "\n";
+ echo "";
echo _("Unsubscribe") . "/" . _("Subscribe");
- echo " ";
- echo "";
+ echo " \n";
+ echo "\n";
if ($count_special_folders < count($boxes)) {
echo "
";
}
+?>
+
+
+
- do_hook("folders_bottom");
+
+
+
+
+
+
+
+
-