~ubuntu-branches/ubuntu/hardy/squirrelmail/hardy-updates

« back to all changes in this revision

Viewing changes to src/printer_friendly_main.php

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2005-02-06 21:41:51 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050206214151-z4n1o8mnttgzuj0y
Tags: 2:1.4.4-3
* Move default_pref config file from /var to /etc, as per Debian policy
  (Closes: #293281)
* [JvW] (finally) override two lintian warnings about nonstandard
  permissions that are intentional (Closes: #293366)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
2
 
3
3
/**
4
 
 * printer_friendly_main.php
5
 
 *
6
 
 * Copyright (c) 1999-2003 The SquirrelMail Project Team
7
 
 * Licensed under the GNU GPL. For full terms see the file COPYING.
8
 
 *
9
 
 * $Id: printer_friendly_main.php,v 1.15 2003/10/29 15:25:11 tassium Exp $
 
4
 * printer_friendly frameset
 
5
 *
 
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
11
10
 */
12
11
 
13
 
/** Path for SquirrelMail required files. */
 
12
/**
 
13
 * Path for SquirrelMail required files.
 
14
 * @ignore
 
15
 */
14
16
define('SM_PATH','../');
15
17
 
16
18
/* SquirrelMail required files. */
17
19
require_once(SM_PATH . 'include/validate.php');
18
 
require_once(SM_PATH . 'functions/page_header.php');
19
 
 
20
 
displayHtmlHeader( _("Printer Friendly"), '', FALSE );
21
20
 
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'];
 
22
global $color;
 
23
if ( ! sqgetGlobalVar('passed_ent_id',$passed_ent_id,SQ_GET))
 
24
    $passed_ent_id = 0;
 
25
if ( ! 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;
26
30
/* 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
 
 
 
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) . '&amp;mailbox=' . urlencode($mailbox) 
 
37
        . '&amp;passed_id=' . $passed_id
 
38
        . '" name="bottom_frame" frameborder="0" />' . "\n";
 
39
    echo "</frameset>\n";
 
40
}
37
41
?>
 
42
</html>