X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=41ae3d5f0e0965142c87f568e0322657e3c4a47c;hb=474fc5fab3acc09ba21189e8c7c7a19dacb04c40;hp=b74b0584c16ca87e13e25b91c9ed36d5e578c1f0;hpb=ce274df943cb730e7008f94ca927f9f10c78da09;p=squirrelmail.git
diff --git a/src/read_body.php b/src/read_body.php
index b74b0584..41ae3d5f 100644
--- a/src/read_body.php
+++ b/src/read_body.php
@@ -52,20 +52,14 @@ function findNextMessage($passed_id) {
}
}
} else {
- if ($sort == 6) {
- if ($passed_id != 1) {
- $result = $passed_id - 1;
- }
- } else {
- if (is_array($msort)) {
- for (reset($msort); ($key = key($msort)), (isset($key)); next($msort)) {
- if ($passed_id == $msgs[$key]['ID']) {
- next($msort);
- $key = key($msort);
- if (isset($key)){
- $result = $msgs[$key]['ID'];
- break;
- }
+ if (is_array($msort)) {
+ for (reset($msort); ($key = key($msort)), (isset($key)); next($msort)) {
+ if ($passed_id == $msgs[$key]['ID']) {
+ next($msort);
+ $key = key($msort);
+ if (isset($key)){
+ $result = $msgs[$key]['ID'];
+ break;
}
}
}
@@ -95,21 +89,14 @@ function findPreviousMessage($numMessages, $passed_id) {
}
}
} else {
- if ($sort == 6) {
- if ($passed_id != $numMessages) {
- $result = $passed_id + 1;
- }
- } else {
- if (is_array($msort)) {
- for (reset($msort); ($key = key($msort)), (isset($key)); next($msort)) {
- if ($passed_id == $msgs[$key]['ID']) {
- prev($msort);
- $key = key($msort);
- if (isset($key)) {
- //echo $msort[$key]; /* Why again were we echoing here? */
- $result = $msgs[$key]['ID'];
- break;
- }
+ if (is_array($msort)) {
+ for (reset($msort); ($key = key($msort)), (isset($key)); next($msort)) {
+ if ($passed_id == $msgs[$key]['ID']) {
+ prev($msort);
+ $key = key($msort);
+ if (isset($key)) {
+ $result = $msgs[$key]['ID'];
+ break;
}
}
}
@@ -458,8 +445,8 @@ function formatEnvheader($mailbox, $passed_id, $passed_ent_id, $message,
}
}
- $s = '
';
+ $s = '';
foreach ($env as $key => $val) {
if ($val) {
$s .= '';
@@ -468,10 +455,16 @@ function formatEnvheader($mailbox, $passed_id, $passed_ent_id, $message,
$s .= '
';
}
}
+ echo ''."\n";
+ echo ' |
'."\n";
echo $s;
do_hook("read_body_header");
formatToolbar($mailbox, $passed_id, $passed_ent_id, $message, $color);
echo ' |
';
+ echo ' |
'."\n";
+ echo '
';
}
function formatMenubar($mailbox, $passed_id, $passed_ent_id, $message, $mbx_response) {
@@ -658,8 +651,11 @@ elseif (isset($_POST['startMessage'])) {
if (isset($_GET['show_more'])) {
$show_more = $_GET['show_more'];
}
-elseif (isset($_POST['show_more'])) {
- $show_more = $_POST['show_more'];
+if (isset($_GET['show_more_cc'])) {
+ $show_more_cc = $_GET['show_more_cc'];
+}
+if (isset($_GET['show_more_bcc'])) {
+ $show_more_bcc = $_GET['show_more_bcc'];
}
if (isset($_GET['mailbox'])) {
$mailbox = $_GET['mailbox'];
@@ -802,20 +798,24 @@ echo ' ';
echo ' ';
echo ' ';
-echo ' ';
-echo ' ' . $messagebody . ' | ';
+echo ' ';
+echo ' ' . html_tag( 'td', ' '. $messagebody."\n", 'left')
+ . '';
echo ' ';
echo ' ';
echo ' | ';
echo ' ';
echo ' | ';
+echo ' |
'."\n";
+
$attachmentsdisplay = formatAttachments($message,$ent_ar,$mailbox, $passed_id);
if ($attachmentsdisplay) {
echo ' |
';
echo ' ';
echo ' ';
- echo ' ';
+ echo ' ';
echo ' ';
echo ' ' . _("Attachments") . ':';
echo ' | ';
| |