Getting ready for 1.4.0 RC1
[squirrelmail.git] / plugins / listcommands / mailout.php
index bf2b51b175f5b2256d3851ca2b293d9880401f79..9040fef87d7161892f915bf2d26c65185b68ddc2 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * mailout.php
  *
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * $Id$
@@ -18,6 +18,13 @@ include_once(SM_PATH . 'functions/html.php');
 
 displayPageHeader($color, $mailbox);
 
+/* get globals */
+$mailbox = $_GET['mailbox'];
+$send_to = $_GET['send_to'];
+$subject = $_GET['subject'];
+$body    = $_GET['body'];
+$action  = $_GET['action'];
+
 echo html_tag('p', '', 'left' ) .
 html_tag( 'table', '', 'center', $color[0], 'border="0" width="75%"' ) . "\n" .
     html_tag( 'tr',
@@ -77,11 +84,11 @@ if ($idents != '' && $idents > 1) {
     echo $defaultmail;
 }
 
-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>'
-. '</form></TD></TR></TABLE></P></BODY></HTML>';
+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>'
+. '</form></td></tr></table></p></body></html>';
 ?>