X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fread_body.php;h=36dfe50b6244254b763fe537fc5af724869efc1b;hp=b336e23ec51ea90fc1beeb35340cd110d3952d08;hb=407e70327abb65df0d3da60110eb27d477776898;hpb=d0b119a5463cbdf99e4cef5079e840706995cb79 diff --git a/src/read_body.php b/src/read_body.php index b336e23e..36dfe50b 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -3,12 +3,11 @@ /** * read_body.php * - * Copyright (c) 1999-2005 The SquirrelMail Project Team - * Licensed under the GNU GPL. For full terms see the file COPYING. - * * This file is used for reading the msgs array and displaying * the resulting emails in the right frame. * + * @copyright © 1999-2006 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail */ @@ -20,17 +19,17 @@ define('SM_PATH','../'); /* SquirrelMail required files. */ -require_once(SM_PATH . 'include/validate.php'); -require_once(SM_PATH . 'functions/global.php'); +include_once(SM_PATH . 'include/validate.php'); +//require_once(SM_PATH . 'functions/global.php'); require_once(SM_PATH . 'functions/imap.php'); require_once(SM_PATH . 'functions/mime.php'); require_once(SM_PATH . 'functions/date.php'); require_once(SM_PATH . 'functions/url_parser.php'); require_once(SM_PATH . 'functions/html.php'); -require_once(SM_PATH . 'functions/global.php'); +//require_once(SM_PATH . 'functions/global.php'); require_once(SM_PATH . 'functions/identity.php'); include_once(SM_PATH . 'functions/arrays.php'); -require_once(SM_PATH . 'functions/mailbox_display.php'); +include_once(SM_PATH . 'functions/mailbox_display.php'); /** * Given an IMAP message id number, this will look it up in the cached @@ -81,7 +80,7 @@ function findPreviousMessage($uidset, $passed_id) { * @param int $passed_id */ function printer_friendly_link($mailbox, $passed_id, $passed_ent_id) { - global $javascript_on; + global $javascript_on, $show_html_default; /* hackydiehack */ if( !sqgetGlobalVar('view_unsafe_images', $view_unsafe_images, SQ_GET) ) { @@ -91,15 +90,16 @@ function printer_friendly_link($mailbox, $passed_id, $passed_ent_id) { } $params = '?passed_ent_id=' . urlencode($passed_ent_id) . '&mailbox=' . urlencode($mailbox) . - '&passed_id=' . urlencode($passed_id). - '&view_unsafe_images='. (bool) $view_unsafe_images; + '&passed_id=' . urlencode($passed_id) . + '&view_unsafe_images='. (bool) $view_unsafe_images . + '&show_html_default=' . $show_html_default; $print_text = _("View Printable Version"); $result = ''; /* Output the link. */ if ($javascript_on) { - $result = '