$k++;
}
if ( $base <> '' )
+
$ret = "<base href=\"$base\">" . $ret;
}
} else if (ereg('"([^"]*)"', $topline, $regs)) {
*/
function MagicHTML( $body, $id ) {
- global $message, $PHP_SELF, $HTTP_SERVER_VARS;
+ global $message, $PHP_SELF, $HTTP_SERVER_VARS,
+ $attachment_common_show_images;
+ $attachment_common_show_images =
+ FALSE; // Don't display attached images in HTML mode
$j = strlen( $body ); // Legnth of the HTML
$ret = ''; // Returned string
$bgcolor = '#ffffff'; // Background style color (defaults to white)
return( "\n\n<!-- HTML Output ahead -->\n" .
$ret .
"\n<!-- END of HTML Output --><base href=\"".
- $HTTP_SERVER_VARS["SERVER_NAME"] . substr( $PHP_SELF, 0, strlen( $PHP_SELF ) - 13 ) .
+ get_location() . '/'.
"\">\n\n" );
}