X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fview_text.php;h=2c2b54b47db4152a3baec72c9d4227953f588528;hb=e1728a7ada03ba597fc2f8a800773cb427a711ce;hp=e9f6acc0b069f7df39020f562679ca0c537ffa47;hpb=2e30aa641f6fd32e64d97f028a7f0f0866d00e6a;p=squirrelmail.git diff --git a/src/view_text.php b/src/view_text.php index e9f6acc0..2c2b54b4 100644 --- a/src/view_text.php +++ b/src/view_text.php @@ -3,17 +3,21 @@ /** * view_text.php -- Displays the main frameset * - * Copyright (c) 1999-2003 The SquirrelMail development team + * Copyright (c) 1999-2004 The SquirrelMail development team * Licensed under the GNU GPL. For full terms see the file COPYING. * * Who knows what this file does. However PUT IT HERE DID NOT PUT * A SINGLE FREAKING COMMENT IN! Whoever is responsible for this, * be very ashamed. * - * $Id$ + * @version $Id$ + * @package squirrelmail */ -/* Path for SquirrelMail required files. */ +/** + * Path for SquirrelMail required files. + * @ignore + */ define('SM_PATH','../'); /* SquirrelMail required files. */ @@ -60,9 +64,9 @@ $body = mime_fetch_body($imapConnection, $passed_id, $ent_id); $body = decodeBody($body, $encoding); if (isset($languages[$squirrelmail_language]['XTRA_CODE']) && - function_exists($languages[$squirrelmail_language]['XTRA_CODE'])) { + function_exists($languages[$squirrelmail_language]['XTRA_CODE'].'_decode')) { if (mb_detect_encoding($body) != 'ASCII') { - $body = $languages[$squirrelmail_language]['XTRA_CODE']('decode', $body); + $body = call_user_func($languages[$squirrelmail_language]['XTRA_CODE'] . '_decode', $body); } } @@ -74,17 +78,17 @@ if ($type1 == 'html' || (isset($override_type1) && $override_type1 == 'html')) displayPageHeader($color, 'None'); -echo '
' . - '
' . +echo '
' . + '
' . _("Viewing a text attachment") . ' - ' . ''. _("View message") . '' . - '
' . + '
' . _("Download this as a file") . - '

' . - '' . - '
' . - '
' . - '
' . - $body . '
' . + '

' . + '
' . + '
' . + '
' . + '
' . + $body . '
' . ''; -?> +?> \ No newline at end of file