X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fright_main.php;h=6c85464b477053a41b23ebde796084eed0964e62;hb=47ccfad452e8d345542d09e59112cac317cffed8;hp=019a4879bc08378aa269c4772dd9bee28f620f7a;hpb=580e80b86afdb75e8321801744fdf101dd420fe6;p=squirrelmail.git diff --git a/src/right_main.php b/src/right_main.php index 019a4879..6c85464b 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -3,12 +3,11 @@ /** * right_main.php * - * 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 * goes on in SquirrelMail. * + * @copyright © 1999-2006 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail */ @@ -60,7 +59,7 @@ if (version_compare(PHP_VERSION, "4.3.0", ">=")) { } // Trigger Developers to look at CSS ;) -trigger_error("This layout sucks. Adapt squirrelmail.css!!!",E_USER_WARNING); +// trigger_error("This layout sucks. Adapt squirrelmail.css!!!",E_USER_WARNING); //sqm_trigger_imap_error('SQM_IMAP_NO_THREAD',"BLA1",'BAD', 'BLA2', array('test1'=>'test1')); /* lets get the global vars we may need */ @@ -122,10 +121,6 @@ if ($imap_server_type == 'uw' && (strstr($mailbox, '../') || * preferences. */ - -/* not sure if this hook should be capable to alter the global pref array */ -do_hook ('generic_header'); - $aMailboxPrefSer=getPref($data_dir, $username,'pref_'.$account.'_'.$mailbox); if ($aMailboxPrefSer) { $aMailboxPref = unserialize($aMailboxPrefSer); @@ -282,7 +277,7 @@ if (isset($aMailbox['FORWARD_SESSION'])) { session_write_close(); // restart the session. Do not use sqsession_is_active because the session_id // isn't empty after a session_write_close - session_start(); + sqsession_start(); if (!preg_match("/^[0-9]{3,4}$/", $compose_width)) { $compose_width = '640'; } @@ -302,7 +297,7 @@ if (isset($aMailbox['FORWARD_SESSION'])) { session_write_close(); // we have to redirect to the compose page $location = SM_PATH . 'src/compose.php?mailbox='. urlencode($mailbox). - '&session='.$aMailbox['FORWARD_SESSION']; + '&session='.$aMailbox['FORWARD_SESSION']; header("Location: $location"); exit; } @@ -343,7 +338,7 @@ if ( sqgetGlobalVar('just_logged_in', $just_logged_in, SQ_SESSION) ) { if ($aMailbox['EXISTS'] > 0) { - $aTemplateVars =& showMessagesForMailbox($imapConnection,$aMailbox,$aProps,$iError); + $aTemplateVars = showMessagesForMailbox($imapConnection,$aMailbox,$aProps,$iError); if ($iError) { }