Add "Security:" with relevant changelog items and add CVE id's.
[squirrelmail.git] / src / image.php
CommitLineData
7baf86a9 1<?php
895905c0 2
35586184 3/**
4 * image.php
5 *
82d304a0 6 * Copyright (c) 1999-2004 The SquirrelMail Project Team
35586184 7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
9 * This file shows an attached image
10 *
30967a1e 11 * @version $Id$
8f6f9ba5 12 * @package squirrelmail
35586184 13 */
7baf86a9 14
30967a1e 15/**
16 * Path for SquirrelMail required files.
17 * @ignore
18 */
86725763 19define('SM_PATH','../');
20
21/* SquirrelMail required files. */
08185f2a 22require_once(SM_PATH . 'include/validate.php');
1e12d1ff 23require_once(SM_PATH . 'functions/global.php');
86725763 24require_once(SM_PATH . 'functions/date.php');
25require_once(SM_PATH . 'functions/page_header.php');
26require_once(SM_PATH . 'functions/html.php');
08185f2a 27require_once(SM_PATH . 'include/load_prefs.php');
7baf86a9 28
5be9f195 29displayPageHeader($color, 'None');
30
0b97a708 31/* globals */
1e12d1ff 32if ( sqgetGlobalVar('passed_id', $temp, SQ_GET) ) {
33 $passed_id = (int) $temp;
34}
35sqgetGlobalVar('mailbox', $mailbox, SQ_GET);
36sqgetGlobalVar('ent_id', $ent_id, SQ_GET);
37sqgetGlobalVar('QUERY_STRING', $QUERY_STRING, SQ_SERVER);
0b97a708 38/* end globals */
39
91e0dccc 40echo '<br />' .
796f91d9 41 '<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">' .
ff9d4297 42 "\n" .
796f91d9 43 '<tr><td bgcolor="' . $color[0] . '">' .
44 '<b><center>' .
ff9d4297 45 _("Viewing an image attachment") . " - ";
46
da56720b 47$msg_url = 'read_body.php?' . $QUERY_STRING;
ff9d4297 48$msg_url = set_url_var($msg_url, 'ent_id', 0);
49echo '<a href="'.$msg_url.'">'. _("View message") . '</a>';
50
5be9f195 51
52$DownloadLink = '../src/download.php?passed_id=' . $passed_id .
91e0dccc 53 '&amp;mailbox=' . urlencode($mailbox) .
9b761dbd 54 '&amp;ent_id=' . urlencode($ent_id) . '&amp;absolute_dl=true';
796f91d9 55?>
56</b></td></tr>
57<tr><td align="center">
58<a href="<?php echo $DownloadLink; ?>"><?php echo _("Download this as a file"); ?></a>
59<br />&nbsp;</td></tr></table>
ff9d4297 60
796f91d9 61<table border="0" cellspacing="0" cellpadding="2" align="center">
62<tr><td bgcolor="<?php echo $color[4]; ?>">
63<img src="<?php echo $DownloadLink; ?>" />
7baf86a9 64
796f91d9 65</td></tr></table>
91e0dccc 66</body></html>