X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=e8a74a1582504c83f219a2ba4887fe1b76d9e885;hb=190dc452bedb05364a6f5842142b5e484995b1ca;hp=de7b9c43a480084b35c73b3166dc44351b0b4282;hpb=c077ffeb31033c67acc441a1d0314a9e1896d6fc;p=squirrelmail.git diff --git a/src/read_body.php b/src/read_body.php index de7b9c43..e8a74a15 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -6,30 +6,30 @@ * This file is used for reading the msgs array and displaying * the resulting emails in the right frame. * - * @copyright © 1999-2005 The SquirrelMail Project Team + * @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'); -include_once(SM_PATH . 'functions/mailbox_display.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 @@ -80,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) ) { @@ -90,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 = '