X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fimage.php;h=9dc8d897082777d10e801d735ff46c4ad2783add;hp=8ae17e0a886c2ced884bb153dea725219f516ac4;hb=0bbf8622773554348ff9dc200e7e01411a81be0b;hpb=7baf86a911ddc0ef8b2c3f9b9dbaa579f31ab4bc diff --git a/src/image.php b/src/image.php index 8ae17e0a..9dc8d897 100644 --- a/src/image.php +++ b/src/image.php @@ -1,52 +1,59 @@ ' . - '' . - "\n" . - '' . "\n" . - '
' . - '
' . - _("Viewing an image attachment") . " - "; - if (isset($where) && isset($what)) { - // from a search - echo '' . _("View message") . ''; - } else { - echo '' . _("View message") . ''; - } - - $DownloadLink = '../src/download.php?passed_id=' . $passed_id . - '&mailbox=' . urlencode($mailbox) . - '&passed_ent_id=' . $passed_ent_id . '&absolute_dl=true'; - - echo '
' . - _("Download this as a file") . - '
 ' . "\n" . - '
' . "\n" . - - '' . "\n" . - '
' . - '' . - - '
' . "\n"; - '' . "\n"; + * Include the SquirrelMail initialization file. + */ +require('../include/init.php'); + +displayPageHeader($color); + +/* globals */ +sqgetGlobalVar('passed_id', $passed_id, SQ_GET, NULL, SQ_TYPE_BIGINT); +sqgetGlobalVar('mailbox', $mailbox, SQ_GET); +sqgetGlobalVar('ent_id', $ent_id, SQ_GET); +sqgetGlobalVar('QUERY_STRING', $QUERY_STRING, SQ_SERVER); +/* end globals */ + +echo '
' . + '' . + "\n" . + ' +
' . + '
' . + _("Viewing an image attachment") . " - "; + +$msg_url = 'read_body.php?' . $QUERY_STRING; +$msg_url = set_url_var($msg_url, 'ent_id', 0); +echo ''. _("View message") . ''; + + +$DownloadLink = '../src/download.php?passed_id=' . $passed_id . + '&mailbox=' . urlencode($mailbox) . + '&ent_id=' . urlencode($ent_id) . '&absolute_dl=true'; ?> +
+ +
 
+ + +
+ + +
+display('footer.tpl');