<?php
+
/**
* right_main.php
*
- * Copyright (c) 1999-2004 The SquirrelMail Project Team
+ * Copyright (c) 1999-2005 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This is where the mailboxes are listed. This controls most of what
session_write_close();
sqsession_is_active();
$comp_uri = SM_PATH . 'src/compose.php?mailbox='. urlencode($mailbox).
- '&session='.$aMailbox['FORWARD_SESSION'];
+ '&session='.$aMailbox['FORWARD_SESSION'];
displayPageHeader($color, $mailbox, "comp_in_new('$comp_uri');", false);
} else {
// save mailboxstate
sqsession_register($aMailbox,'aLastSelectedMailbox');
session_write_close();
// we have to redirect to the compose page
- global $PHP_SELF;
- if (!strpos($PHP_SELF,'?')) {
- $location = $PHP_SELF.'?mailbox=INBOX&startMessage=1';
- } else {
- $location = $PHP_SELF;
- }
- $location = set_url_var($location, 'session',$aMailbox['FORWARD_SESSION'], false);
+ $location = SM_PATH . 'src/compose.php?mailbox='. urlencode($mailbox).
+ '&session='.$aMailbox['FORWARD_SESSION'];
header("Location: $location");
exit;
}