4 * printer_friendly frameset
6 * @copyright © 1999-2007 The SquirrelMail Project Team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
9 * @package squirrelmail
12 /** This is the printer_friendly_main page */
13 define('PAGE_NAME', 'printer_friendly_main');
16 * Include the SquirrelMail initialization file.
18 include('../include/init.php');
20 /* get those globals into gear */
21 if ( ! sqgetGlobalVar('passed_ent_id',$passed_ent_id,SQ_GET
))
23 if ( ! sqgetGlobalVar('mailbox',$mailbox,SQ_GET
) ||
24 ! sqgetGlobalVar('passed_id',$passed_id,SQ_GET
)) {
25 error_box(_("Invalid URL"));
27 $passed_id= (int) $passed_id;
28 $view_unsafe_images = (bool) $_GET['view_unsafe_images'];
29 sqgetGlobalVar('show_html_default', $show_html_default, SQ_FORM
);
31 displayHtmlHeader( _("Printer Friendly"), '', false, true );
33 $oErrorHandler->setDelayedErrors(true);
35 $url = 'printer_friendly_bottom.php?passed_ent_id=' .
36 urlencode($passed_ent_id) . '&mailbox=' . urlencode($mailbox) .
37 '&passed_id=' . $passed_id .
38 '&view_unsafe_images='.$view_unsafe_images .
39 '&show_html_default='.$show_html_default;
41 $oTemplate->assign('printer_friendly_url', $url);
43 $oTemplate->display('printer_friendly_main.tpl');