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 * Path for SquirrelMail required files.
16 define('SM_PATH','../');
18 /* SquirrelMail required files. */
19 require_once(SM_PATH
. 'include/validate.php');
21 /* get those globals into gear */
23 if ( ! sqgetGlobalVar('passed_ent_id',$passed_ent_id,SQ_GET
))
25 if ( ! sqgetGlobalVar('mailbox',$mailbox,SQ_GET
) ||
26 ! sqgetGlobalVar('passed_id',$passed_id,SQ_GET
)) {
27 error_box(_("Invalid URL"),$color);
29 $passed_id= (int) $passed_id;
30 $view_unsafe_images = (bool) $_GET['view_unsafe_images'];
31 sqgetGlobalVar('show_html_default', $show_html_default, SQ_FORM
);
33 displayHtmlHeader( _("Printer Friendly"), '', false, true );
34 echo '<frameset rows="60, *">' . "\n";
35 echo '<frame src="printer_friendly_top.php" name="top_frame" '
36 . 'scrolling="no" noresize="noresize" frameborder="0" />' . "\n";
37 echo '<frame src="printer_friendly_bottom.php?passed_ent_id='
38 . urlencode($passed_ent_id) . '&mailbox=' . urlencode($mailbox)
39 . '&passed_id=' . $passed_id
40 . '&view_unsafe_images='.$view_unsafe_images
41 . '&show_html_default='.$show_html_default
42 . '" name="bottom_frame" frameborder="0" />' . "\n";