X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=410517bf5ea12aba8e0d42fe68d01171be27af0a;hb=567d419923235fe370ba4f18ce762f70d6dcae82;hp=094b3266b6df9441957dd092d2416caaa0dbc24d;hpb=91c27aee3c2f6c883b2996827567999e291cfd19;p=squirrelmail.git diff --git a/src/read_body.php b/src/read_body.php index 094b3266..410517bf 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -3,34 +3,33 @@ /** * 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 */ /** - * Path for SquirrelMail required files. - * @ignore + * Include the SquirrelMail initialization file. */ -define('SM_PATH','../'); +require('../include/init.php'); /* SquirrelMail required files. */ -require_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/imap_asearch.php'); // => move to mailbox_display 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/identity.php'); -include_once(SM_PATH . 'functions/arrays.php'); +require_once(SM_PATH . 'functions/arrays.php'); require_once(SM_PATH . 'functions/mailbox_display.php'); +require_once(SM_PATH . 'functions/forms.php'); +require_once(SM_PATH . 'functions/attachment_common.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 = '