newmail plugin strings
[squirrelmail.git] / src / image.php
1 <?php
2 /**
3 ** image.php
4 **
5 ** This file shows an attached image
6 **
7 ** $Id$
8 **/
9
10 require_once('../src/validate.php');
11 require_once('../functions/date.php');
12 require_once('../functions/page_header.php');
13 require_once('../src/load_prefs.php');
14
15
16 displayPageHeader($color, 'None');
17
18 echo '<BR>' .
19 '<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER>' .
20 "\n" .
21 '<TR><TD BGCOLOR="' . $color[0] . '">' .
22 '<B><CENTER>' .
23 _("Viewing an image attachment") . " - ";
24 if (isset($where) && isset($what)) {
25 // from a search
26 echo '<a href="../src/read_body.php?mailbox=' . urlencode($mailbox) .
27 '&passed_id=' . $passed_id . '&where=' . urlencode($where) .
28 '&what=' . urlencode($what). '">' . _("View message") . '</a>';
29 } else {
30 echo '<a href="../src/read_body.php?mailbox=' . urlencode($mailbox) .
31 '&passed_id=' . $passed_id . '&startMessage=' . $startMessage .
32 '&show_more=0">' . _("View message") . '</a>';
33 }
34
35 $DownloadLink = '../src/download.php?passed_id=' . $passed_id .
36 '&mailbox=' . urlencode($mailbox) .
37 '&passed_ent_id=' . $passed_ent_id . '&absolute_dl=true';
38
39 echo '</b></td></tr>' . "\n" .
40 '<tr><td align=center><A HREF="' . $DownloadLink . '">' .
41 _("Download this as a file") .
42 '</A></B><BR>&nbsp;' . "\n" .
43 '</TD></TR></TABLE>' . "\n" .
44
45 '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER>' . "\n" .
46 '<TR><TD BGCOLOR="' . $color[4] . '">' .
47 '<img src="' . $DownloadLink . '">' .
48
49 '</TD></TR></TABLE>' . "\n";
50 '</body></html>' . "\n";
51
52 ?>