We're living in 2004 now... perl is your friend for these kinds of things :)
[squirrelmail.git] / src / printer_friendly_main.php
1 <?php
2
3 /**
4 * printer_friendly_main.php
5 *
6 * Copyright (c) 1999-2004 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
9 * $Id$
10 * @package squirrelmail
11 */
12
13 /** Path for SquirrelMail required files. */
14 define('SM_PATH','../');
15
16 /* SquirrelMail required files. */
17 require_once(SM_PATH . 'include/validate.php');
18 require_once(SM_PATH . 'functions/page_header.php');
19
20 displayHtmlHeader( _("Printer Friendly"), '', FALSE );
21
22 /* get those globals into gear */
23 $passed_ent_id = $_GET['passed_ent_id'];
24 $passed_id = (int) $_GET['passed_id'];
25 $mailbox = $_GET['mailbox'];
26 /* end globals */
27
28 echo "<frameset rows=\"60, *\" noresize border=\"0\">\n".
29 '<frame src="printer_friendly_top.php" name="top_frame" scrolling="no" />'.
30 '<frame src="printer_friendly_bottom.php?passed_ent_id='.
31 urlencode($passed_ent_id) . '&amp;mailbox=' . urlencode($mailbox) .
32 '&amp;passed_id=' . $passed_id .
33 '" name="bottom_frame" />'.
34 "\n</frameset>\n".
35 "</html>\n";
36
37 ?>