X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Ffolders.php;h=f727337be6ac07b42effff21ec0c53edafcaa00d;hb=f740c049d91feb836dd9633be9e8ff52c00d066f;hp=3d676ba10f0955962a7909f1f3bb8feb414d202c;hpb=51a3d59da99a8fdaac5193968b7061b72cfc5e25;p=squirrelmail.git diff --git a/src/folders.php b/src/folders.php index 3d676ba1..f727337b 100644 --- a/src/folders.php +++ b/src/folders.php @@ -1,155 +1,173 @@ - - session_start(); - - if (!isset($config_php)) - include("../config/config.php"); - if (!isset($strings_php)) - include("../functions/strings.php"); - if (!isset($page_header_php)) - include("../functions/page_header.php"); - if (!isset($imap_php)) - include("../functions/imap.php"); - if (!isset($array_php)) - include("../functions/array.php"); +
\n"; + displayPageHeader($color, _("None")); - displayPageHeader($color, "None"); - - echo "\n";
+ echo " "; + echo "
\n"; + } $imapConnection = sqimap_login ($username, $key, $imapServerAddress, $imapPort, 0); $boxes = sqimap_mailbox_list($imapConnection); - /** 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 ($trash_create == "true") { - 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 _("Click here"); - echo " "; - echo _("to continue."); - echo ""; - echo " |