/**
* folders_delete.php
*
- * Copyright (c) 1999-2003 The SquirrelMail Project Team
+ * Copyright (c) 1999-2004 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Deletes folders from the IMAP server.
* Called from the folders.php
*
- * $Id$
+ * @version $Id$
+ * @package squirrelmail
*/
-/* Path for SquirrelMail required files. */
+/**
+ * Path for SquirrelMail required files.
+ * @ignore
+ */
define('SM_PATH','../');
/* SquirrelMail required files. */
require_once(SM_PATH . 'functions/tree.php');
require_once(SM_PATH . 'functions/display_messages.php');
require_once(SM_PATH . 'functions/html.php');
+require_once(SM_PATH . 'functions/forms.php');
/*
* Incoming values:
) .
html_tag( 'tr' ) .
html_tag( 'td', '', 'center', $color[4] ) .
- sprintf(_("Are you sure you want to delete %s?"), imap_utf7_decode_local($mailbox)).
- '<FORM ACTION="folders_delete.php" METHOD="POST"><p>'.
-
- '<INPUT TYPE=HIDDEN NAME="mailbox" VALUE="' . htmlspecialchars($mailbox) . "\">\n" .
+ sprintf(_("Are you sure you want to delete %s?"), str_replace(array(' ','<','>'),array(' ','<','>'),imap_utf7_decode_local($mailbox))).
+ addForm('folders_delete.php', 'POST').
+ addHidden('mailbox', $mailbox).
'<INPUT TYPE=SUBMIT NAME="confirmed" VALUE="'._("Yes")."\">\n".
'<INPUT TYPE=SUBMIT NAME="backingout" VALUE="'._("No")."\">\n".
'</p></FORM><BR></td></tr></table>';