From: kink Date: Mon, 26 Apr 2004 14:15:20 +0000 (+0000) Subject: Use forms.php functions. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=d8a8fe9f2dc7c2200cd0aff33ef1ebf155d67a5a Use forms.php functions. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7258 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index 986879b9..db305b5c 100644 --- a/plugins/listcommands/mailout.php +++ b/plugins/listcommands/mailout.php @@ -19,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'); +require_once(SM_PATH . 'functions/forms.php'); displayPageHeader($color, $mailbox); @@ -50,7 +51,7 @@ case 'unsubscribe': printf( $out_string, htmlspecialchars($send_to) ); -echo '
'; +echo addForm('../../src/compose.php', 'POST'); $idents = get_identities(); @@ -71,10 +72,11 @@ if (count($idents) > 1) { } echo '
' -. '' -. '' -. '' -. '' -. '

' +. addHidden('send_to', $send_to) +. addHidden('subject', $subject) +. addHidden('body', $body) +. addHidden('mailbox', $mailbox) +. addSubmit(_("Send Mail"), 'send') +. '

' . '

'; ?> diff --git a/plugins/message_details/message_details_top.php b/plugins/message_details/message_details_top.php index e2808f0e..6a5fe430 100644 --- a/plugins/message_details/message_details_top.php +++ b/plugins/message_details/message_details_top.php @@ -19,6 +19,7 @@ define('SM_PATH','../../'); require_once(SM_PATH . 'include/validate.php'); require_once(SM_PATH . 'functions/strings.php'); require_once(SM_PATH . 'config/config.php'); +require_once(SM_PATH . 'functions/forms.php'); displayHtmlHeader( _("Message Details"), "