4
* printer_friendly_main.php
6
* Copyright (c) 1999-2003 The SquirrelMail Project Team
7
* Licensed under the GNU GPL. For full terms see the file COPYING.
9
* $Id: printer_friendly_main.php,v 1.15 2003/10/29 15:25:11 tassium Exp $
4
* printer_friendly frameset
6
* @copyright (c) 1999-2005 The SquirrelMail Project Team
7
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
8
* @version $Id: printer_friendly_main.php,v 1.14.2.4 2004/12/27 15:04:00 kink Exp $
10
9
* @package squirrelmail
13
/** Path for SquirrelMail required files. */
13
* Path for SquirrelMail required files.
14
16
define('SM_PATH','../');
16
18
/* SquirrelMail required files. */
17
19
require_once(SM_PATH . 'include/validate.php');
18
require_once(SM_PATH . 'functions/page_header.php');
20
displayHtmlHeader( _("Printer Friendly"), '', FALSE );
22
21
/* get those globals into gear */
23
$passed_ent_id = $_GET['passed_ent_id'];
24
$passed_id = (int) $_GET['passed_id'];
25
$mailbox = $_GET['mailbox'];
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;
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) . '&mailbox=' . urlencode($mailbox) .
32
'&passed_id=' . $passed_id .
33
'" name="bottom_frame" />'.
31
displayHtmlHeader( _("Printer Friendly"), '', false, true );
32
echo '<frameset rows="60, *">' . "\n";
33
echo '<frame src="printer_friendly_top.php" name="top_frame" '
34
. 'scrolling="no" noresize="noresize" frameborder="0" />' . "\n";
35
echo '<frame src="printer_friendly_bottom.php?passed_ent_id='
36
. urlencode($passed_ent_id) . '&mailbox=' . urlencode($mailbox)
37
. '&passed_id=' . $passed_id
38
. '" name="bottom_frame" frameborder="0" />' . "\n";