fix switch of en/decode in mdn, thanks Masato HIGASHIYAMA (#1694687)
[squirrelmail.git] / src / printer_friendly_main.php
1 <?php
2
3 /**
4 * printer_friendly frameset
5 *
6 * @copyright &copy; 1999-2007 The SquirrelMail Project Team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
8 * @version $Id$
9 * @package squirrelmail
10 */
11
12 /**
13 * Include the SquirrelMail initialization file.
14 */
15 include('../include/init.php');
16
17 /* get those globals into gear */
18 if ( ! sqgetGlobalVar('passed_ent_id',$passed_ent_id,SQ_GET))
19 $passed_ent_id = 0;
20 if ( ! sqgetGlobalVar('mailbox',$mailbox,SQ_GET) ||
21 ! sqgetGlobalVar('passed_id',$passed_id,SQ_GET)) {
22 error_box(_("Invalid URL"));
23 } else {
24 $passed_id= (int) $passed_id;
25 $view_unsafe_images = (bool) $_GET['view_unsafe_images'];
26 sqgetGlobalVar('show_html_default', $show_html_default, SQ_FORM);
27 /* end globals */
28 displayHtmlHeader( _("Printer Friendly"), '', false, true );
29
30 $oErrorHandler->setDelayedErrors(true);
31
32 $url = 'printer_friendly_bottom.php?passed_ent_id=' .
33 urlencode($passed_ent_id) . '&amp;mailbox=' . urlencode($mailbox) .
34 '&amp;passed_id=' . $passed_id .
35 '&amp;view_unsafe_images='.$view_unsafe_images .
36 '&amp;show_html_default='.$show_html_default;
37
38 $oTemplate->assign('printer_friendly_url', $url);
39
40 $oTemplate->display('printer_friendly_main.tpl');
41
42 }