removed old rcptaddress
[squirrelmail.git] / src / image.php
CommitLineData
7baf86a9 1<?php
895905c0 2
35586184 3/**
4 * image.php
5 *
15e6162e 6 * Copyright (c) 1999-2002 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 *
11 * $Id$
12 */
7baf86a9 13
35586184 14require_once('../src/validate.php');
15require_once('../functions/date.php');
16require_once('../functions/page_header.php');
17require_once('../src/load_prefs.php');
3fde693b 18require_once('../functions/html.php');
7baf86a9 19
5be9f195 20displayPageHeader($color, 'None');
21
5be9f195 22if (isset($where) && isset($what)) {
23 // from a search
3fde693b 24 $ViewMessageLink = '<a href="../src/read_body.php?mailbox=' . urlencode($mailbox) .
5e9e90fd 25 '&amp;passed_id=' . $passed_id . '&amp;where=' . urlencode($where) .
26 '&amp;what=' . urlencode($what). '">' . _("View message") . '</a>';
5be9f195 27} else {
3fde693b 28 $ViewMessageLink = '<a href="../src/read_body.php?mailbox=' . urlencode($mailbox) .
5e9e90fd 29 '&amp;passed_id=' . $passed_id . '&amp;startMessage=' . $startMessage .
30 '&amp;show_more=0">' . _("View message") . '</a>';
3fde693b 31}
5be9f195 32
33$DownloadLink = '../src/download.php?passed_id=' . $passed_id .
5e9e90fd 34 '&amp;mailbox=' . urlencode($mailbox) .
35 '&amp;passed_ent_id=' . $passed_ent_id . '&amp;absolute_dl=true';
5be9f195 36
3fde693b 37echo '<br>' .
38 html_tag( 'table',
39 html_tag( 'tr',
40 html_tag( 'td',
41 '<b>' .
42 _("Viewing an image attachment") . ' - ' .
43 $ViewMessageLink . '</b>' ,
44 'center', $color[0] )
45 ) .
46 html_tag( 'tr',
47 html_tag( 'td',
48 '<a href="' . $DownloadLink . '">' .
49 _("Download this as a file") .
50 '</a><br>&nbsp;' . "\n" ,
51 'center' )
52 ) ,
53 'center', '', 'border="0" width="100%" cellspacing="0" cellpadding="2"' ) .
54
55 html_tag( 'table',
56 html_tag( 'tr',
57 html_tag( 'td',
58 '<img src="' . $DownloadLink . '">'
59 , 'left', $color[4] )
60 )
61 , 'center', '', 'border="0" cellspacing="0" cellpadding="2"' );
7baf86a9 62
63?>