X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fimage.php;h=09fa55beb33a15bf8333b409befbf8c4dae58885;hb=6fd953618853477f6ffe569ce3c9733ca9f9c2d0;hp=33b8efaf148951e2b2b16ee55acb8b95196e6e07;hpb=0b97a708e71c931153cd1ceee1495c9f4e1e209b;p=squirrelmail.git
diff --git a/src/image.php b/src/image.php
index 33b8efaf..09fa55be 100644
--- a/src/image.php
+++ b/src/image.php
@@ -3,19 +3,24 @@
/**
* image.php
*
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Copyright (c) 1999-2004 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This file shows an attached image
*
- * $Id$
+ * @version $Id$
+ * @package squirrelmail
*/
-/* Path for SquirrelMail required files. */
+/**
+ * Path for SquirrelMail required files.
+ * @ignore
+ */
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');
@@ -24,17 +29,19 @@ require_once(SM_PATH . 'include/load_prefs.php');
displayPageHeader($color, 'None');
/* globals */
-
-$mailbox = $_GET['mailbox'];
-$passed_id = $_GET['passed_id'];
-
+if ( sqgetGlobalVar('passed_id', $temp, SQ_GET) ) {
+ $passed_id = (int) $temp;
+}
+sqgetGlobalVar('mailbox', $mailbox, SQ_GET);
+sqgetGlobalVar('ent_id', $ent_id, SQ_GET);
+sqgetGlobalVar('QUERY_STRING', $QUERY_STRING, SQ_SERVER);
/* end globals */
-echo '
' .
- '
' .
- '' .
+ ' | ' .
- _("Download this as a file") .
- ' | ' . "\n" . - ' |
' .
- ' |
+
+ |