X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fview_text.php;h=969b60f52780137cdcf81d2fca350d32a2fde224;hb=30553e2888fa18c4283c366cb48dd4df8bf2f299;hp=01b8bb2a2b10ac71a47bf9dc5a3553cfeb07a02b;hpb=30967a1e09679c395b31929cbdb1a0e88b13f01e;p=squirrelmail.git
diff --git a/src/view_text.php b/src/view_text.php
index 01b8bb2a..969b60f5 100644
--- a/src/view_text.php
+++ b/src/view_text.php
@@ -3,7 +3,7 @@
/**
* view_text.php -- Displays the main frameset
*
- * Copyright (c) 1999-2004 The SquirrelMail development team
+ * Copyright (c) 1999-2005 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
@@ -40,7 +40,7 @@ if (sqgetGlobalVar('passed_id', $temp, SQ_GET)) {
}
$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
-$mbx_response = sqimap_mailbox_select($imapConnection, $mailbox);
+$mbx_response = sqimap_mailbox_select($imapConnection, $mailbox);
$message = &$messages[$mbx_response['UIDVALIDITY']][$passed_id];
if (!is_object($message)) {
@@ -58,15 +58,15 @@ $encoding = strtolower($header->encoding);
$msg_url = 'read_body.php?' . $QUERY_STRING;
$msg_url = set_url_var($msg_url, 'ent_id', 0);
-$dwnld_url = '../src/download.php?'. $QUERY_STRING . '&absolute_dl=true';
+$dwnld_url = '../src/download.php?' . $QUERY_STRING . '&absolute_dl=true';
$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);
}
}
@@ -77,18 +77,22 @@ if ($type1 == 'html' || (isset($override_type1) && $override_type1 == 'html'))
}
displayPageHeader($color, 'None');
-
-echo '
' .
- ' |
' . - '' . - ' |
' . - ' |
' . - $body . ' |