X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Ffolders.php;h=ad9c7232799e3efae3269ddc5256466ccf83c0f2;hb=5bdd722368a3fac32defc2242e9dd3f1e567a527;hp=5ce49644ae9e93fab82b478f3bff2d34ce588559;hpb=8c7dfc9960e03539b2ab145a37a3752cb8b31b4d;p=squirrelmail.git diff --git a/src/folders.php b/src/folders.php index 5ce49644..ad9c7232 100644 --- a/src/folders.php +++ b/src/folders.php @@ -1,94 +1,317 @@ -
- - include("../config/config.php"); - include("../functions/strings.php"); - include("../functions/page_header.php"); - include("../functions/imap.php"); - - displayPageHeader("None"); - - echo "\n"; - echo " Folders\n"; - echo " |
\n"; + echo _("Folders"); + echo " |
"; + } else if ($success == "unsubscribe") { + echo "" . _("Unsubscribed successfully!") . " "; + } else if ($success == "delete") { + echo "" . _("Deleted folder successfully!") . " "; + } else if ($success == "create") { + 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!"); + } - // indent the correct number of spaces. - for ($j = 0;$j < $periodCount;$j++) - $boxes[$i] = "$boxes[$i] "; + echo " " . _("refresh folder list") . ""; + 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 " |