f226cba7 |
1 | <?php |
44966ae5 |
2 | |
35586184 |
3 | /** |
b5cd24a8 |
4 | * printer_friendly frameset |
35586184 |
5 | * |
4b5049de |
6 | * @copyright © 1999-2007 The SquirrelMail Project Team |
b5cd24a8 |
7 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
30967a1e |
8 | * @version $Id$ |
8f6f9ba5 |
9 | * @package squirrelmail |
35586184 |
10 | */ |
f226cba7 |
11 | |
30967a1e |
12 | /** |
202bcbcc |
13 | * Include the SquirrelMail initialization file. |
30967a1e |
14 | */ |
202bcbcc |
15 | include('../include/init.php'); |
692155b7 |
16 | |
0b97a708 |
17 | /* get those globals into gear */ |
b5cd24a8 |
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)) { |
1b858d86 |
22 | error_box(_("Invalid URL")); |
b5cd24a8 |
23 | } else { |
24 | $passed_id= (int) $passed_id; |
e2da1d80 |
25 | $view_unsafe_images = (bool) $_GET['view_unsafe_images']; |
4c8986b4 |
26 | sqgetGlobalVar('show_html_default', $show_html_default, SQ_FORM); |
0b97a708 |
27 | /* end globals */ |
b5cd24a8 |
28 | displayHtmlHeader( _("Printer Friendly"), '', false, true ); |
be7a2943 |
29 | |
30 | $oErrorHandler->setDelayedErrors(true); |
31 | |
32 | $url = 'printer_friendly_bottom.php?passed_ent_id=' . |
33 | urlencode($passed_ent_id) . '&mailbox=' . urlencode($mailbox) . |
34 | '&passed_id=' . $passed_id . |
35 | '&view_unsafe_images='.$view_unsafe_images . |
36 | '&show_html_default='.$show_html_default; |
37 | |
38 | $oTemplate->assign('printer_friendly_url', $url); |
39 | |
40 | $oTemplate->display('printer_friendly_main.tpl'); |
a2b193bc |
41 | |
be7a2943 |
42 | } |