6 * This file shows an attached image
8 * @copyright © 1999-2007 The SquirrelMail Project Team
9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
11 * @package squirrelmail
15 * Include the SquirrelMail initialization file.
17 require('../include/init.php');
19 displayPageHeader($color);
22 if ( sqgetGlobalVar('passed_id', $temp, SQ_GET
) ) {
23 $passed_id = (int) $temp;
25 sqgetGlobalVar('mailbox', $mailbox, SQ_GET
);
26 sqgetGlobalVar('ent_id', $ent_id, SQ_GET
);
27 sqgetGlobalVar('QUERY_STRING', $QUERY_STRING, SQ_SERVER
);
31 '<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">' .
33 '<tr><td bgcolor="' . $color[0] . '">' .
34 '<div style="text-align: center;"><b>' .
35 _("Viewing an image attachment") . " - ";
37 $msg_url = 'read_body.php?' . $QUERY_STRING;
38 $msg_url = set_url_var($msg_url, 'ent_id', 0);
39 echo '<a href="'.$msg_url.'">'. _("View message") . '</a>';
42 $DownloadLink = '../src/download.php?passed_id=' . $passed_id .
43 '&mailbox=' . urlencode($mailbox) .
44 '&ent_id=' . urlencode($ent_id) . '&absolute_dl=true';
48 <tr
><td align
="center">
49 <a href
="<?php echo $DownloadLink; ?>"><?php
echo _("Download this as a file"); ?
></a
>
50 <br
/> 
;</td
></tr
></table
>
52 <table border
="0" cellspacing
="0" cellpadding
="2" align
="center">
53 <tr
><td bgcolor
="<?php echo $color[4]; ?>">
54 <img src
="<?php echo $DownloadLink; ?>" />
58 $oTemplate->display('footer.tpl');