X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Ffolder_manip.php;h=a5e5c02c2345d8267f501ef2637a8e6f06ed0e11;hb=ca885a4ff4cc1175af8db97bab02f7aa74ced73a;hp=4b4708fdd5665d99f3f0fe146de05b0b674d6a85;hpb=a74103ddb7785467df4aff77fbb9a59a8b294bb8;p=squirrelmail.git diff --git a/functions/folder_manip.php b/functions/folder_manip.php index 4b4708fd..a5e5c02c 100644 --- a/functions/folder_manip.php +++ b/functions/folder_manip.php @@ -3,16 +3,15 @@ /** * folder_manip.php * - * Copyright (c) 1999-2005 The SquirrelMail Project Team - * Licensed under the GNU GPL. For full terms see the file COPYING. - * * Functions for IMAP folder manipulation: * (un)subscribe, create, rename, delete. * + * @author Thijs Kinkhorst + * @copyright © 1999-2006 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail * @see folders.php - * @author Thijs Kinkhorst - kink@squirrelmail.org */ @@ -25,14 +24,14 @@ function folders_checkname($imapConnection, $folder_name, $delimiter) { if (substr_count($folder_name, '"') || substr_count($folder_name, "\\") || substr_count($folder_name, $delimiter) || ($folder_name == '')) { - + global $color; error_box(_("Illegal folder name.") . "
\n" . - sprintf(_("The name may not contain any of the following: %s"), '" \\ '.$delimiter.'') - . "
\n" . - _("Please select a different name."). - '
'. - _("Click here to go back") . '.', $color); + sprintf(_("The name may not contain any of the following: %s"), '" \\ '.$delimiter.'') + . "
\n" . + _("Please select a different name."). + '
'. + _("Click here to go back") . '.', $color); sqimap_logout($imapConnection); exit; @@ -49,7 +48,7 @@ function folders_create ($imapConnection, $delimiter, $folder_name, $subfolder, global $folder_prefix; $folder_name = imap_utf7_encode_local($folder_name); - + if ( ! empty($contain_subs) ) { $folder_name = $folder_name . $delimiter; } @@ -83,7 +82,7 @@ function folders_rename_getname ($imapConnection, $delimiter, $old) { if ( $old == '' ) { plain_error_message(_("You have not selected a folder to rename. Please do so."). '
'._("Click here to go back").'.', $color); - sqimap_logout($imapConnection); + sqimap_logout($imapConnection); exit; } @@ -133,8 +132,8 @@ function folders_rename_getname ($imapConnection, $delimiter, $old) { '\n". '
'; echo "\n\n\n\n"; - - sqimap_logout($imapConnection); + + sqimap_logout($imapConnection); exit; } @@ -148,7 +147,7 @@ function folders_rename_do($imapConnection, $delimiter, $orig, $old_name, $new_n $orig = imap_utf7_encode_local($orig); $old_name = imap_utf7_encode_local($old_name); $new_name = imap_utf7_encode_local($new_name); - + if ($old_name != $new_name) { if (strpos($orig, $delimiter)) { @@ -214,7 +213,7 @@ function folders_delete_ask ($imapConnection, $folder_name) echo "\n\n\n\n"; - sqimap_logout($imapConnection); + sqimap_logout($imapConnection); exit; } @@ -224,7 +223,7 @@ function folders_delete_ask ($imapConnection, $folder_name) function folders_delete_do ($imapConnection, $delimiter, $folder_name) { require_once(SM_PATH . 'functions/tree.php'); - + $boxes = sqimap_mailbox_list ($imapConnection); global $delete_folder, $imap_server_type, $trash_folder, $move_to_trash; @@ -310,7 +309,7 @@ function folders_subscribe($imapConnection, $folder_names) '
'._("Click here to go back").'.', $color); sqimap_logout($imapConnection); exit; - + } } foreach ( $folder_names as $folder_name ) { @@ -342,4 +341,4 @@ function folders_unsubscribe($imapConnection, $folder_names) } -?> +?> \ No newline at end of file