X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fimage.php;h=87423e80ca94ad821a0215fdd07ef5e3fa1fc6e0;hb=64033e1c54e52d462f6dbb93c3bb06a5c0050865;hp=574c9adc427cac5870da3bb3fef49721ae7c73c0;hpb=1e12d1ffb4f54350932a17397d38917db21d64df;p=squirrelmail.git
diff --git a/src/image.php b/src/image.php
index 574c9adc..87423e80 100644
--- a/src/image.php
+++ b/src/image.php
@@ -3,24 +3,18 @@
/**
* image.php
*
- * Copyright (c) 1999-2003 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
* This file shows an attached image
*
- * $Id$
+ * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package squirrelmail
*/
-/* Path for SquirrelMail required files. */
-define('SM_PATH','../');
-
-/* SquirrelMail required files. */
-require_once(SM_PATH . 'include/validate.php');
-require_once(SM_PATH . 'functions/global.php');
-require_once(SM_PATH . 'functions/date.php');
-require_once(SM_PATH . 'functions/page_header.php');
-require_once(SM_PATH . 'functions/html.php');
-require_once(SM_PATH . 'include/load_prefs.php');
+/**
+ * Include the SquirrelMail initialization file.
+ */
+require('../include/init.php');
displayPageHeader($color, 'None');
@@ -33,11 +27,11 @@ sqgetGlobalVar('ent_id', $ent_id, SQ_GET);
sqgetGlobalVar('QUERY_STRING', $QUERY_STRING, SQ_SERVER);
/* end globals */
-echo '
' .
- '
' .
- '' .
+ ' | ' .
_("Viewing an image attachment") . " - ";
$msg_url = 'read_body.php?' . $QUERY_STRING;
@@ -46,20 +40,19 @@ echo ''. _("View message") . '';
$DownloadLink = '../src/download.php?passed_id=' . $passed_id .
- '&mailbox=' . urlencode($mailbox) .
+ '&mailbox=' . urlencode($mailbox) .
'&ent_id=' . urlencode($ent_id) . '&absolute_dl=true';
-echo ' ' .
- _("Download this as a file") .
- ' | ' . "\n" . - ' |
' . - '' . +?> + |
+
+ |