X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Ffolders.php;h=f727337be6ac07b42effff21ec0c53edafcaa00d;hb=f740c049d91feb836dd9633be9e8ff52c00d066f;hp=db48ce95b952dd8083103128274d4eeaf71fca4a;hpb=88c813966455692c10444dbf9e091f2b920486a2;p=squirrelmail.git
diff --git a/src/folders.php b/src/folders.php
index db48ce95..f727337b 100644
--- a/src/folders.php
+++ b/src/folders.php
@@ -8,24 +8,20 @@
** Handles all interaction between the user and the other folder
** scripts which do most of the work. Also handles the Special
** Folders.
+ **
+ ** $Id$
**/
- 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");
-
+ include('../src/validate.php');
+ include("../functions/strings.php");
+ include("../config/config.php");
+ include("../functions/page_header.php");
+ include("../functions/imap.php");
+ include("../functions/array.php");
+ include("../functions/plugin.php");
include("../src/load_prefs.php");
- displayPageHeader($color, "None");
+ displayPageHeader($color, _("None"));
echo "
";
echo "
"; } 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 " |
"; + 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 " |