removed require_once() calls that are already loaded by include/validate.php
[squirrelmail.git] / src / printer_friendly_main.php
1 <?php
2 /**
3 * printer_friendly frameset
4 *
5 * @copyright (c) 1999-2004 The SquirrelMail Project Team
6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
7 * @version $Id$
8 * @package squirrelmail
9 */
10
11 /**
12 * Path for SquirrelMail required files.
13 * @ignore
14 */
15 define('SM_PATH','../');
16
17 /* SquirrelMail required files. */
18 require_once(SM_PATH . 'include/validate.php');
19
20 /* get those globals into gear */
21 global $color;
22 if ( ! sqgetGlobalVar('passed_ent_id',$passed_ent_id,SQ_GET))
23 $passed_ent_id = 0;
24 if ( ! 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;
29 /* end globals */
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 }
40 ?>
41 </html>