if (substr_count($folder_name, '"') || substr_count($folder_name, "\\") ||
substr_count($folder_name, $delimiter) || ($folder_name == '')) {
- global $color;
+ global $color, $oTemplate;
error_box(_("Illegal folder name.") . "<br />\n" .
sprintf(_("The name may not contain any of the following: %s"), '<tt>" \\ '.$delimiter.'</tt>')
. "<br />\n" .
_("Please select a different name.").
'<br /><a href="folders.php">'.
- _("Click here to go back") . '</a>.', $color);
+ _("Click here to go back") . '</a>.');
sqimap_logout($imapConnection);
+ $oTemplate->display('footer.tpl');
exit;
}
}
html_tag( 'td', '', 'center', $color[4] ) .
addForm('folders.php').
addHidden('smaction', 'rename').
- _("New name:").
+ '<label for="new_name">' . _("New name:") . '</label>' .
'<br /><b>' . htmlspecialchars($old_parent) . '</b>' .
addInput('new_name', $old_name, 25) . '<br /><br />' . "\n";
if ( $isfolder ) {
*/
function folders_delete_do ($imapConnection, $delimiter, $folder_name)
{
- require_once(SM_PATH . 'functions/tree.php');
+ include(SM_PATH . 'functions/tree.php');
$boxes = sqimap_mailbox_list ($imapConnection);
return;
}
-
-
-?>
\ No newline at end of file