message_details_main.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Message Details plugin - main frame
  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 2002-2025 The SquirrelMail Project Team
  10. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  11. * @version $Id$
  12. * @package plugins
  13. * @subpackage message_details
  14. */
  15. /**
  16. * Include the SquirrelMail initialization file.
  17. */
  18. require('../../include/init.php');
  19. displayHtmlHeader( _("Message Details"), '', FALSE );
  20. sqgetGlobalVar('mailbox', $mailbox, SQ_GET);
  21. sqgetGlobalVar('passed_id', $passed_id, SQ_GET, NULL, SQ_TYPE_BIGINT);
  22. if (!sqgetGlobalVar('passed_ent_id', $passed_ent_id, SQ_GET))
  23. $passed_ent_id = 0;
  24. //FIXME: Don't echo HTML directly - need to "templatize" this
  25. echo "<frameset rows=\"60, *\" >\n";
  26. echo '<frame src="message_details_top.php?mailbox=' . urlencode($mailbox) .'&amp;passed_id=' . $passed_id
  27. . '&amp;passed_ent_id=' . $passed_ent_id
  28. . '" name="top_frame" scrolling="no" noresize="noresize" frameborder="0" />';
  29. echo '<frame src="message_details_bottom.php?mailbox=' . urlencode($mailbox)
  30. . '&amp;get_message_details=yes&amp;passed_id=' . $passed_id
  31. . '&amp;passed_ent_id=' . $passed_ent_id
  32. . '" name="bottom_frame" frameborder="0" />';
  33. echo '</frameset>'."\n"."</html>\n";