From 90790bd4948f74f211c6e4294832c239bbe9a6e7 Mon Sep 17 00:00:00 2001 From: cosworth Date: Tue, 11 Apr 2000 18:30:00 +0000 Subject: [PATCH] Fixed back link. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@409 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/folders.php | 60 ++++++++++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/src/folders.php b/src/folders.php index 167993c3..cbcd38b7 100644 --- a/src/folders.php +++ b/src/folders.php @@ -29,45 +29,49 @@ /** Cyrus Folder Options**/ //Creates the Sent and Trash folder -if (($sent_create == "true") || ($trash_create == "true")) { - if ($sent_create == "true") { - sqimap_mailbox_create ($imapConnection, $sent_folder, ""); - } + if (($sent_create == "true") || ($trash_create == "true")) { + if ($sent_create == "true") { + sqimap_mailbox_create ($imapConnection, $sent_folder, ""); + } if ($trash_create == "true") { - sqimap_mailbox_create ($imapConnection, $trash_folder, ""); - } + sqimap_mailbox_create ($imapConnection, $trash_folder, ""); + } + //Major hack, need to right a funtion to check and if mailbox is subscribed to sqimap_subscribe($imapConnection, "INBOX"); - echo "

"; - echo _("Mailboxes Created Successfully!"); + echo "

"; + echo _("Mailboxes Created Successfully!"); echo "
"; echo _("Click here"); echo " "; echo _("to continue."); echo "
"; echo ""; -exit; -} + + exit; + } + //display form option for creating Sent and Trash folder if ($imap_server_type == "cyrus") { - if ((!sqimap_mailbox_exists ($imapConnection, $sent_folder)) || (!sqimap_mailbox_exists ($imapConnection, $trash_folder))) { - echo "\n"; - echo ""; - echo "\n"; - } - } -} + if ((!sqimap_mailbox_exists ($imapConnection, $sent_folder)) || (!sqimap_mailbox_exists ($imapConnection, $trash_folder))) { + echo "
"; - echo _("Special Folder Options"); - 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 "
\n"; - if (!sqimap_mailbox_exists ($imapConnection, $sent_folder)) { - echo _("Create Sent") . "
\n"; - } - if (!sqimap_mailbox_exists ($imapConnection, $trash_folder)){ - echo _("Create Trash") . "
\n"; - echo ""; - echo "
\n"; + echo ""; + echo "\n"; + } + } + } + /** DELETING FOLDERS **/ echo "
"; + echo _("Special Folder Options"); + 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 "
\n"; + if (!sqimap_mailbox_exists ($imapConnection, $sent_folder)) { + echo _("Create Sent") . "
\n"; + } + if (!sqimap_mailbox_exists ($imapConnection, $trash_folder)){ + echo _("Create Trash") . "
\n"; + echo ""; + echo "
\n"; echo "
"; -- 2.25.1