X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fread_body.php;h=ef59d7656a8afa1a2757684d7c5b291ea4da3b85;hp=dc3c308af3c261d72ceeb560417b753cf75f1ef4;hb=4002354021d08a99f572eb33fa009ac4cc86de4c;hpb=508c06bf020df744a978fc85b6222bfa24f95d54 diff --git a/src/read_body.php b/src/read_body.php index dc3c308a..ef59d765 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -7,14 +7,16 @@ ** ** This file is used for reading the msgs array and displaying ** the resulting emails in the right frame. + ** + ** $Id$ **/ session_start(); - if (!isset($config_php)) - include("../config/config.php"); if (!isset($strings_php)) include("../functions/strings.php"); + if (!isset($config_php)) + include("../config/config.php"); if (!isset($page_header_php)) include("../functions/page_header.php"); if (!isset($imap_php)) @@ -23,13 +25,16 @@ include("../functions/mime.php"); if (!isset($date_php)) include("../functions/date.php"); + if (!isset($url_parser_php)) + include("../functions/url_parser.php"); include("../src/load_prefs.php"); $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); sqimap_mailbox_select($imapConnection, $mailbox); + do_hook("html_top"); displayPageHeader($color, $mailbox); - if ($view_hdr) { + if (isset($view_hdr)) { fputs ($imapConnection, "a003 FETCH $passed_id BODY[HEADER]\r\n"); $read = sqimap_read_data ($imapConnection, "a003", true, $a, $b); @@ -39,25 +44,45 @@ if ($where && $what) { // Got here from a search echo ""; - } else { + } else { echo ""; } echo ""._("View message") . "\n"; echo "
"; + echo " |