4 * printer_friendly frameset
6 * @copyright © 1999-2006 The SquirrelMail Project Team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
9 * @package squirrelmail
13 * Include the SquirrelMail initialization file.
15 include('../include/init.php');
17 /* get those globals into gear */
19 if ( ! sqgetGlobalVar('passed_ent_id',$passed_ent_id,SQ_GET
))
21 if ( ! sqgetGlobalVar('mailbox',$mailbox,SQ_GET
) ||
22 ! sqgetGlobalVar('passed_id',$passed_id,SQ_GET
)) {
23 error_box(_("Invalid URL"));
25 $passed_id= (int) $passed_id;
26 $view_unsafe_images = (bool) $_GET['view_unsafe_images'];
27 sqgetGlobalVar('show_html_default', $show_html_default, SQ_FORM
);
29 displayHtmlHeader( _("Printer Friendly"), '', false, true );
30 echo '<frameset rows="60, *">' . "\n";
31 echo '<frame src="printer_friendly_top.php" name="top_frame" '
32 . 'scrolling="no" noresize="noresize" frameborder="0" />' . "\n";
33 echo '<frame src="printer_friendly_bottom.php?passed_ent_id='
34 . urlencode($passed_ent_id) . '&mailbox=' . urlencode($mailbox)
35 . '&passed_id=' . $passed_id
36 . '&view_unsafe_images='.$view_unsafe_images
37 . '&show_html_default='.$show_html_default
38 . '" name="bottom_frame" frameborder="0" />' . "\n";