Fix for 906217. If replying to an email inline, and a spell check is done,
[squirrelmail.git] / src / printer_friendly_main.php
CommitLineData
f226cba7 1<?php
35586184 2/**
b5cd24a8 3 * printer_friendly frameset
35586184 4 *
b5cd24a8 5 * @copyright (c) 1999-2004 The SquirrelMail Project Team
6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
30967a1e 7 * @version $Id$
8f6f9ba5 8 * @package squirrelmail
35586184 9 */
f226cba7 10
30967a1e 11/**
12 * Path for SquirrelMail required files.
13 * @ignore
14 */
86725763 15define('SM_PATH','../');
16
17/* SquirrelMail required files. */
08185f2a 18require_once(SM_PATH . 'include/validate.php');
692155b7 19
0b97a708 20/* get those globals into gear */
b5cd24a8 21global $color;
22if ( ! sqgetGlobalVar('passed_ent_id',$passed_ent_id,SQ_GET))
23 $passed_ent_id = 0;
24if ( ! sqgetGlobalVar('mailbox',$mailbox,SQ_GET) ||
25 ! sqgetGlobalVar('passed_id',$passed_id,SQ_GET)) {
26 error_box(_("Invalid URL"),$color);
27} else {
28 $passed_id= (int) $passed_id;
0b97a708 29/* end globals */
b5cd24a8 30 displayHtmlHeader( _("Printer Friendly"), '', false, true );
31 echo '<frameset rows="60, *">' . "\n";
32 echo '<frame src="printer_friendly_top.php" name="top_frame" '
33 . 'scrolling="no" noresize="noresize" frameborder="0">' . "\n";
34 echo '<frame src="printer_friendly_bottom.php?passed_ent_id='
35 . urlencode($passed_ent_id) . '&amp;mailbox=' . urlencode($mailbox)
36 . '&amp;passed_id=' . $passed_id
37 . '" name="bottom_frame" frameborder="0">' . "\n";
38 echo "</frameset>\n";
39}
5e9e90fd 40?>
ce6d6a99 41</html>