> From: "Chris Picciotto" <Chris@Picciotto.net>
> Date: Thu, February 14, 2002 5:20 pm
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2451
7612ce4b-ef26-0410-bec9-
ea0150e637f0
} else {
translateText($body, $wrap_at, $body_message->header->charset);
}
} else {
translateText($body, $wrap_at, $body_message->header->charset);
}
$body .= "<SMALL><CENTER><A HREF=\"../src/download.php?absolute_dl=true&passed_id=$id&passed_ent_id=$ent_num&mailbox=$urlmailbox&showHeaders=1\">". _("Download this as a file") ."</A></CENTER><BR></SMALL>";
/** Display the ATTACHMENTS: message if there's more than one part **/
$body .= "<SMALL><CENTER><A HREF=\"../src/download.php?absolute_dl=true&passed_id=$id&passed_ent_id=$ent_num&mailbox=$urlmailbox&showHeaders=1\">". _("Download this as a file") ."</A></CENTER><BR></SMALL>";
/** Display the ATTACHMENTS: message if there's more than one part **/
*/
function encodeHeader ($string) {
global $default_charset;
*/
function encodeHeader ($string) {
global $default_charset;
// Encode only if the string contains 8-bit characters or =?
$j = strlen( $string );
$l = strstr($string, '=?'); // Must be encoded ?
// Encode only if the string contains 8-bit characters or =?
$j = strlen( $string );
$l = strstr($string, '=?'); // Must be encoded ?
if ( $l ) {
$string = "=?$default_charset?Q?$ret?=";
}
if ( $l ) {
$string = "=?$default_charset?Q?$ret?=";
}
*/
function MagicHTML( $body, $id ) {
*/
function MagicHTML( $body, $id ) {
- global $message, $HTTP_SERVER_VARS,
+ global $message, $HTTP_SERVER_VARS,
$attachment_common_show_images;
$attachment_common_show_images =
$attachment_common_show_images;
$attachment_common_show_images =
$pos = $i + 1;
$tag = '';
while ($body{$pos} == ' ' || $body{$pos} == "\t" ||
$pos = $i + 1;
$tag = '';
while ($body{$pos} == ' ' || $body{$pos} == "\t" ||
+ $body{$pos} == "\n" ) {
$pos ++;
}
while (strlen($tag) < 4 && $body{$pos} != ' ' &&
$pos ++;
}
while (strlen($tag) < 4 && $body{$pos} != ' ' &&
- $body{$pos} != "\t" && $body{$pos} != "\n") {
+ $body{$pos} != "\t" && $body{$pos} != "\n" &&
+ $pos < $j ) {
$tag .= $body{$pos};
$pos ++;
}
$tag .= $body{$pos};
$pos ++;
}
* we would like to use as little Javascript as possible.
*/
if (!isset($right_frame)) {
* we would like to use as little Javascript as possible.
*/
if (!isset($right_frame)) {
}
if ($right_frame == 'right_main.php') {
}
if ($right_frame == 'right_main.php') {
}
if ($location_of_bar == 'right') {
}
if ($location_of_bar == 'right') {
- echo "<FRAME SRC=\"$right_frame_url\" NORESIZE NAME=\"right\">";
- echo '<FRAME SRC="left_main.php" NORESIZE NAME="left">';
+ echo "<FRAME SRC=\"$right_frame_url\" NORESIZE NAME=\"right\">" .
+ '<FRAME SRC="left_main.php" NORESIZE NAME="left">';
- echo '<FRAME SRC="left_main.php" NORESIZE NAME="left">';
- echo "<FRAME SRC=\"$right_frame_url\" NORESIZE NAME=\"right\">";
+ echo '<FRAME SRC="left_main.php" NORESIZE NAME="left">'.
+ "<FRAME SRC=\"$right_frame_url\" NORESIZE NAME=\"right\">";
+</HEAD></HTML>
\ No newline at end of file