X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Ffolders.php;h=4718e760c23d5ee6565d48b5ec5a8f295f17eecd;hb=bd8bf4916ce19acd6151da6c2404488d731d8fd6;hp=a3abbf5bd05cbd126f8cbe571ec961037182920d;hpb=aa42fbfb4a9b641bf58178697707dca5638ee1dd;p=squirrelmail.git diff --git a/src/folders.php b/src/folders.php index a3abbf5b..4718e760 100644 --- a/src/folders.php +++ b/src/folders.php @@ -1,47 +1,121 @@ - \n"; + + displayPageHeader($color, "None"); echo "\n"; - echo " \n"; echo "
\n"; - echo " Folders\n"; + echo "
\n"; + echo " "; + echo _("Folders"); + echo "\n"; echo "
\n"; - $imapConnection = fsockopen($imapServerAddress, 143, &$errorNumber, &$errorString); - if (!$imapConnection) { - echo "Error connecting to IMAP Server.
"; - echo "$errorNumber : $errorString
"; - exit; - } - $serverInfo = fgets($imapConnection, 256); + $imapConnection = loginToImapServer($username, $key, $imapServerAddress, 0); + getFolderList($imapConnection, $boxes); - fputs($imapConnection, "1 login $username $key\n"); - $read = fgets($imapConnection, 1024); + /** DELETING FOLDERS **/ + echo "\n"; + echo ""; + echo "
\n"; - for ($i = 0;$i < count($str); $i++) { - $mailbox = Chop($str[$i]); - // find the quote at the begining of the mailbox name. - // i subtract 1 from the strlen so it doesn't find the quote at the end of the mailbox name. - $mailbox = findMailboxName($mailbox); - $periodCount = countCharInString($mailbox, "."); + /** CREATING FOLDERS **/ + echo ""; + echo "
\n"; - $mailboxURL = urlencode($mailbox); - echo "\n"; - echo readShortMailboxName($mailbox, "."); - echo "
\n"; + /** RENAMING FOLDERS **/ + echo ""; + echo "
"; + echo _("Delete Folder"); + echo "
"; + echo "
\n"; + echo "\n"; + echo "\n"; + echo "

"; + echo _("Create Folder"); + echo "
"; + echo "
\n"; + echo "
\n"; + echo ""; + echo _("as a subfolder of"); + echo "
"; + echo "
\n"; + echo ""; + if ($show_contain_subfolders_option) + echo "  "; + echo _("Let this folder contain subfolders"); + echo "
"; + echo "
\n"; + echo "

"; + echo _("Rename a Folder"); + echo "
"; + echo "
\n"; + echo "\n"; + echo "\n"; + echo "

\n"; + ?> - \ No newline at end of file +