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
14 /** This is the image page */
15 define('PAGE_NAME', 'image');
18 * Include the SquirrelMail initialization file.
20 require('../include/init.php');
22 displayPageHeader($color);
25 sqgetGlobalVar('passed_id', $passed_id, SQ_GET
, NULL, SQ_TYPE_BIGINT
);
26 sqgetGlobalVar('mailbox', $mailbox, SQ_GET
);
27 sqgetGlobalVar('ent_id', $ent_id, SQ_GET
);
28 sqgetGlobalVar('QUERY_STRING', $QUERY_STRING, SQ_SERVER
);
32 '<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">' .
34 '<tr><td bgcolor="' . $color[0] . '">' .
35 '<div style="text-align: center;"><b>' .
36 _("Viewing an image attachment") . " - ";
38 $msg_url = 'read_body.php?' . $QUERY_STRING;
39 $msg_url = set_url_var($msg_url, 'ent_id', 0);
40 echo '<a href="'.$msg_url.'">'. _("View message") . '</a>';
43 $DownloadLink = '../src/download.php?passed_id=' . $passed_id .
44 '&mailbox=' . urlencode($mailbox) .
45 '&ent_id=' . urlencode($ent_id) . '&absolute_dl=true';
49 <tr
><td align
="center">
50 <a href
="<?php echo $DownloadLink; ?>"><?php
echo _("Download this as a file"); ?
></a
>
51 <br
/> 
;</td
></tr
></table
>
53 <table border
="0" cellspacing
="0" cellpadding
="2" align
="center">
54 <tr
><td bgcolor
="<?php echo $color[4]; ?>">
55 <img src
="<?php echo $DownloadLink; ?>" />
59 $oTemplate->display('footer.tpl');