Adding reminder
[squirrelmail.git] / plugins / listcommands / mailout.php
index e505465a8c2a02f6851fb6e8162af185f06c0104..db305b5c0435505fb972847e235add6361a77230 100644 (file)
@@ -2,12 +2,15 @@
 /**
  * mailout.php
  *
 /**
  * mailout.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.
  *
  * $Id$
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * $Id$
+ * @package plugins
+ * @subpackage listcommands
  */
 
  */
 
+/** @ignore */
 define('SM_PATH','../../');
 
 /* SquirrelMail required files. */
 define('SM_PATH','../../');
 
 /* SquirrelMail required files. */
@@ -16,6 +19,7 @@ include_once(SM_PATH . 'functions/page_header.php');
 include_once(SM_PATH . 'include/load_prefs.php');
 include_once(SM_PATH . 'functions/html.php');
 require_once(SM_PATH . 'functions/identity.php');
 include_once(SM_PATH . 'include/load_prefs.php');
 include_once(SM_PATH . 'functions/html.php');
 require_once(SM_PATH . 'functions/identity.php');
+require_once(SM_PATH . 'functions/forms.php');
 
 displayPageHeader($color, $mailbox);
 
 
 displayPageHeader($color, $mailbox);
 
@@ -47,7 +51,7 @@ case 'unsubscribe':
 
 printf( $out_string, htmlspecialchars($send_to) );
 
 
 printf( $out_string, htmlspecialchars($send_to) );
 
-echo '<form method="post" action="../../src/compose.php">';
+echo addForm('../../src/compose.php', 'POST');
 
 
 $idents = get_identities();
 
 
 $idents = get_identities();
@@ -68,10 +72,11 @@ if (count($idents) > 1) {
 }
 
 echo '<br />'
 }
 
 echo '<br />'
-. '<input type="hidden" name="send_to" value="' . htmlspecialchars($send_to) . '">'
-. '<input type="hidden" name="subject" value="' . htmlspecialchars($subject) . '">'
-. '<input type="hidden" name="body" value="' . htmlspecialchars($body) . '">'
-. '<input type="hidden" name="mailbox" value="' . htmlspecialchars($mailbox) . '">'
-. '<input type="submit" name="send" value="' . _("Send Mail") . '"><br /><br /></center>'
+. addHidden('send_to', $send_to)
+. addHidden('subject', $subject)
+. addHidden('body', $body)
+. addHidden('mailbox', $mailbox)
+. addSubmit(_("Send Mail"), 'send')
+. '<br /><br /></center>'
 . '</form></td></tr></table></p></body></html>';
 ?>
 . '</form></td></tr></table></p></body></html>';
 ?>