6 * Copyright (c) 1999-2002 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
9 * This file shows an attached image
14 require_once('../src/validate.php');
15 require_once('../functions/date.php');
16 require_once('../functions/page_header.php');
17 require_once('../src/load_prefs.php');
18 require_once('../functions/html.php');
20 displayPageHeader($color, 'None');
22 if (isset($where) && isset($what)) {
24 $ViewMessageLink = '<a href="../src/read_body.php?mailbox=' . urlencode($mailbox) .
25 '&passed_id=' . $passed_id . '&where=' . urlencode($where) .
26 '&what=' . urlencode($what). '">' . _("View message") . '</a>';
28 $ViewMessageLink = '<a href="../src/read_body.php?mailbox=' . urlencode($mailbox) .
29 '&passed_id=' . $passed_id . '&startMessage=' . $startMessage .
30 '&show_more=0">' . _("View message") . '</a>';
33 $DownloadLink = '../src/download.php?passed_id=' . $passed_id .
34 '&mailbox=' . urlencode($mailbox) .
35 '&passed_ent_id=' . $passed_ent_id . '&absolute_dl=true';
42 _("Viewing an image attachment") . ' - ' .
43 $ViewMessageLink . '</b>' ,
48 '<a href="' . $DownloadLink . '">' .
49 _("Download this as a file") .
50 '</a><br> ' . "\n" ,
53 'center', '', 'border="0" width="100%" cellspacing="0" cellpadding="2"' ) .
58 '<img src="' . $DownloadLink . '">'
61 , 'center', '', 'border="0" cellspacing="0" cellpadding="2"' );