Adding comments about obsolete plugins.
[squirrelmail.git] / src / printer_friendly_main.php
CommitLineData
f226cba7 1<?php
44966ae5 2
35586184 3/**
b5cd24a8 4 * printer_friendly frameset
35586184 5 *
47ccfad4 6 * @copyright &copy; 1999-2006 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/**
13 * Path for SquirrelMail required files.
14 * @ignore
15 */
86725763 16define('SM_PATH','../');
17
18/* SquirrelMail required files. */
08185f2a 19require_once(SM_PATH . 'include/validate.php');
692155b7 20
0b97a708 21/* get those globals into gear */
b5cd24a8 22global $color;
23if ( ! sqgetGlobalVar('passed_ent_id',$passed_ent_id,SQ_GET))
24 $passed_ent_id = 0;
25if ( ! sqgetGlobalVar('mailbox',$mailbox,SQ_GET) ||
26 ! sqgetGlobalVar('passed_id',$passed_id,SQ_GET)) {
27 error_box(_("Invalid URL"),$color);
28} else {
29 $passed_id= (int) $passed_id;
e2da1d80 30 $view_unsafe_images = (bool) $_GET['view_unsafe_images'];
4c8986b4 31 sqgetGlobalVar('show_html_default', $show_html_default, SQ_FORM);
0b97a708 32/* end globals */
b5cd24a8 33 displayHtmlHeader( _("Printer Friendly"), '', false, true );
34 echo '<frameset rows="60, *">' . "\n";
35 echo '<frame src="printer_friendly_top.php" name="top_frame" '
44966ae5 36 . 'scrolling="no" noresize="noresize" frameborder="0" />' . "\n";
b5cd24a8 37 echo '<frame src="printer_friendly_bottom.php?passed_ent_id='
91e0dccc 38 . urlencode($passed_ent_id) . '&amp;mailbox=' . urlencode($mailbox)
b5cd24a8 39 . '&amp;passed_id=' . $passed_id
e2da1d80 40 . '&amp;view_unsafe_images='.$view_unsafe_images
4c8986b4 41 . '&amp;show_html_default='.$show_html_default
44966ae5 42 . '" name="bottom_frame" frameborder="0" />' . "\n";
b5cd24a8 43 echo "</frameset>\n";
44}
a2b193bc 45
5e9e90fd 46?>
4c8986b4 47</html>