Disable Save button because that doesn't work. Can be re-enabled if the
[squirrelmail.git] / plugins / message_details / message_details_top.php
index 0054746930355989d401351a35ad4f6489808015..8d256b5f2443f8c6104576e057dc8b1625dd1db3 100644 (file)
@@ -1,23 +1,22 @@
 <?php
+
 /** Message Source  
-*
-* Plugin to view the RFC822 raw message output and the bodystructure of a message
-*
-* Copyright (c) 2002 Marc Groot Koerkamp, The Netherlands
-* Licensed under the GNU GPL. For full terms see the file COPYING.
-* 
-* $Id$
-**/
+ *
+ * Plugin to view the RFC822 raw message output and the bodystructure of a message
+ *
+ * Copyright (c) 2002 Marc Groot Koerkamp, The Netherlands
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ 
+ * $Id$
+ */
 
-chdir('..');
-define('SM_PATH','../');
+define('SM_PATH','../../');
 
 /* SquirrelMail required files. */
 require_once(SM_PATH . 'include/validate.php');
 require_once(SM_PATH . 'functions/strings.php');
 require_once(SM_PATH . 'config/config.php');
 
-
 displayHtmlHeader( _("Message details"),
              "<script language=\"javascript\">\n".
              "<!--\n".
@@ -28,16 +27,19 @@ displayHtmlHeader( _("Message details"),
              "-->\n".
              "</script>\n", FALSE );
 
+$passed_id = $_GET['passed_id'];
+$mailbox = $_GET['mailbox'];
 
 echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
      '<center><b>'.
      '<FORM name=rfc822 action="message_details_download.php?savemessage=1&passed_id='."$passed_id".'" METHOD=POST>' .     
      '<input type="button" value="' . _("Print") . '" onClick="printPopup()">&nbsp&nbsp '.
      '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()">&nbsp&nbsp'.
-     '<input type="submit" value="' . _("Save Message") . '"> '.
+// disable for now because it doesn't work
+//     '<input type="submit" value="' . _("Save Message") . '"> '.
      '<input type="hidden" name="mailbox" value="'. "$mailbox" . '"> ' .
      '</form>'.
      '</b>'.
      '</body>'.
      "</html>\n";
-?>
\ No newline at end of file
+?>