sqgetGlobalVar('orig', $orig, SQ_POST);
sqgetGlobalVar('old_name', $old_name, SQ_POST);
folders_rename_do($imapConnection, $delimiter, $orig, $old_name, $new_name);
- $td_str = _("Renamed successfully!");
+ $td_str = _("Renamed successfully.");
}
break;
case 'delete':
folders_unsubscribe($imapConnection, $folder_names);
$td_str = _("Unsubscribed successfully.");
break;
- }
+ }
// if there are any messages, output them.
if ( !empty($td_str) ) {
echo addForm('folders.php')
. addHidden('smaction', 'unsubscribe')
. "<tt><select name=\"folder_names[]\" multiple=\"multiple\" size=\"8\">\n";
- foreach ( $boxes as $box ) {
+ foreach ( $boxes as $box ) {
$use_folder = true;
if ((strtolower($box["unformatted"]) != "inbox") &&
($box['unformatted'] != $trash_folder) &&
. "\" />\n"
. "</form></td>\n";
} else {
- echo _("No folders were found to unsubscribe from!") . '</td>';
+ echo _("No folders were found to unsubscribe from.") . '</td>';
}
/** SUBSCRIBE TO FOLDERS **/
// here we filter out all boxes we're already subscribed to,
// so we keep only the unsubscribed ones.
foreach ($boxes_all as $box_a) {
-
+
$use_folder = true;
foreach ( $boxes as $box ) {
if ($box_a['unformatted'] == $box['unformatted'] ||
$use_folder = false;
}
}
-
+
if ($use_folder == true) {
- $box_enc = htmlspecialchars($box_a['unformatted-dm']);
+ $box_enc = htmlspecialchars($box_a['unformatted-dm']);
$box_disp = htmlspecialchars(imap_utf7_decode_local($box_a['unformatted-disp']));
$subboxes[$box_enc] = $box_disp;
}
}
-
+
if ( count($subboxes) > 0 ) {
echo addForm('folders.php')
. addHidden('smaction', 'subscribe')
do_hook('folders_bottom');
sqimap_logout($imapConnection);
+
?>
</td></tr>
</table>
</td></tr>
</table>
-</body></html>
+</body></html>
\ No newline at end of file