Version 1.0pre1 -- DEVELOPMENT
------------------------------
+- Made session cookie parameter use PHP's settings rather than making assumptions
+- Select/Deslect all implemented using only HTML (not Javascript)
- Fixed default charset that is sent with outbound messages (now user's preferred charset)
- Sort method saving now transparent to user, and saves between sessions
- Now replacing all \n with \r\n before sending the message.
if (!$invert_time) {
$invert_time = "false";
}
+if (!$force_username_lowercase) {
+ $force_username_lowercase = "false";
+}
#####################################################################################
if ($config_use_color == 1) {
} else {
switch ($type0) {
case "text":
- $body = decodeBody($body, $header->encoding);
- include("../functions/page_header.php");
- viewText($color, $body, $passed_id, $passed_ent_id, $mailbox, $type1, $wrap_at);
- break;
+ if ($type1 == "text" || $type1 == "html") {
+ $body = decodeBody($body, $header->encoding);
+ include("../functions/page_header.php");
+ viewText($color, $body, $passed_id, $passed_ent_id, $mailbox, $type1, $wrap_at);
+ } else {
+ $body = decodeBody($body, $header->encoding);
+ header("Content-type: $type0/$type1; name=\"$filename\"");
+ header("Content-Disposition: attachment; filename=\"$filename\"");
+ echo $body;
+ }
+ break;
case "message":
$body = decodeBody($body, $header->encoding);
include("../functions/page_header.php");
// In case the last session was not terminated properly, make sure
// we get a new one.
- setcookie("PHPSESSID", "", 0, $base_uri);
+ $cookie_params = session_get_cookie_params();
+ setcookie(session_name(),"",0,$cookie_params["domain"].$cookie_params["path"]);
echo "<HTML>";
echo "<HEAD><TITLE>";