X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fimage.php;h=1778343bf2dbcaf3292e14668cadaf17ece466ef;hb=045714fdf0cb84244f663ccf95e8dc04bbeb60ed;hp=559ad12faceeeca4ab2131a17c1f9e106c91d0e8;hpb=3fde693bb3935007ca630a23f72e352dd3889549;p=squirrelmail.git
diff --git a/src/image.php b/src/image.php
index 559ad12f..1778343b 100644
--- a/src/image.php
+++ b/src/image.php
@@ -11,53 +11,45 @@
* $Id$
*/
-require_once('../src/validate.php');
-require_once('../functions/date.php');
-require_once('../functions/page_header.php');
-require_once('../src/load_prefs.php');
-require_once('../functions/html.php');
+/* Path for SquirrelMail required files. */
+define('SM_PATH','../');
+
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.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');
displayPageHeader($color, 'None');
-if (isset($where) && isset($what)) {
- // from a search
- $ViewMessageLink = '' . _("View message") . '';
-} else {
- $ViewMessageLink = '' . _("View message") . '';
-}
+echo '
' .
+ '
' .
+ ' ' . - html_tag( 'table', - html_tag( 'tr', - html_tag( 'td', - '' . - _("Viewing an image attachment") . ' - ' . - $ViewMessageLink . '' , - 'center', $color[0] ) - ) . - html_tag( 'tr', - html_tag( 'td', - '' . - _("Download this as a file") . - ' ' . "\n" , - 'center' ) - ) , - 'center', '', 'border="0" width="100%" cellspacing="0" cellpadding="2"' ) . - - html_tag( 'table', - html_tag( 'tr', - html_tag( 'td', - ' |
' .
+ _("Download this as a file") .
+ ' ' . "\n" . + ' |
' .
+ ' |