Source for file message_details_top.php

Documentation is available at message_details_top.php

  1. <?php
  2. /**
  3.  * Message Details plugin - top frame with buttons
  4.  *
  5.  * Plugin to view the RFC822 raw message output and the bodystructure of a message
  6.  *
  7.  * @author Marc Groot Koerkamp
  8.  * @copyright 2002 Marc Groot Koerkamp, The Netherlands
  9.  * @copyright 2004-2020 The SquirrelMail Project Team
  10.  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  11.  * @version $Id: message_details_top.php 14840 2020-01-07 07:42:38Z pdontthink $
  12.  * @package plugins
  13.  * @subpackage message_details
  14.  */
  15.  
  16. /** @ignore */
  17. define('SM_PATH','../../');
  18.  
  19. /* SquirrelMail required files. */
  20. require_once(SM_PATH 'include/validate.php');
  21.  
  22. displayHtmlHeader_("Message Details"),
  23.              "<script language=\"javascript\">\n".
  24.              "<!--\n".
  25.              "function printPopup() {\n".
  26.                 "parent.frames[1].focus();\n".
  27.                 "parent.frames[1].print();\n".
  28.              "}\n".
  29.              "-->\n".
  30.              "</script>\n"FALSE );
  31.  
  32. sqgetGlobalVar('passed_id'$passed_idSQ_GET);
  33. if (!sqgetGlobalVar('passed_ent_id'$passed_ent_idSQ_GET))
  34.     $passed_ent_id 0;
  35. sqgetGlobalVar('mailbox'$mailboxSQ_GET);
  36.  
  37. echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n.
  38.      '<center><b>' .
  39.      '<form action="' SM_PATH 'src/download.php" method="GET">' .     
  40.      '<input type="button" value="' _("Print"'" onClick="printPopup()" />&nbsp;&nbsp;'.
  41.      '<input type="button" value="' _("Close Window"'" onClick="window.parent.close()" />&nbsp;&nbsp;'.
  42.      '<input type="submit" value="' _("Save Message"'" /> '.
  43.      '<input type="hidden" name="mailbox" value="' urlencode($mailbox'" />' .
  44.      '<input type="hidden" name="passed_id" value="' urlencode($passed_id'" />' .
  45.      '<input type="hidden" name="ent_id" value="' urlencode($passed_ent_id'" />' .
  46.      '<input type="hidden" name="absolute_dl" value="true" />' .
  47.      '</form>'.
  48.      '</b>'.
  49.      '</body>'.
  50.      "</html>\n";
  51. ?>

Documentation generated on Mon, 13 Jan 2020 04:24:57 +0100 by phpDocumentor 1.4.3