From: gustavf Date: Tue, 11 Jul 2000 09:58:33 +0000 (+0000) Subject: Changed the way attachments are viewed. Now, clicking on the filename X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=286bcdcb4e4a98a6affe737c03cba00a49f82d10;p=squirrelmail.git Changed the way attachments are viewed. Now, clicking on the filename is "view" and a link behind is "download" (application/octet.stream). git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@611 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mime.php b/functions/mime.php index eeb461b3..12ec00e8 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -474,15 +474,10 @@ $urlMailbox = urlencode($mailbox); $ent = urlencode($message->header->entity_id); - $body .= "   " . $display_filename . "  (TYPE: $type0/$type1)"; + $body .= "   " . $display_filename . "  (TYPE: $type0/$type1)"; if ($message->header->description) $body .= "  " . htmlspecialchars($message->header->description).""; - if ($message->header->type0 == "image" && - ($message->header->type1 == "jpg" || - $message->header->type1 == "jpeg" || - $message->header->type1 == "gif" || - $message->header->type1 == "png")) - $body .= " ("._("view").")\n"; + $body .= " ("._("download").")\n"; $body .= "
"; $num++; }