X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fleft_main.php;h=b54183bfb09374bc46abedd3bf484f7a71321cbc;hb=f197ec8835b64975ff47dc6cd86dae75605baebf;hp=de0055379db18f7c5391a2eb0c3de9f427680cc1;hpb=ebd2391cb0c5e3049870f90fa8a8b28707e9571a;p=squirrelmail.git diff --git a/src/left_main.php b/src/left_main.php index de005537..b54183bf 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -6,7 +6,7 @@ * This is the code for the left bar. The left bar shows the folders * available, and has cookie information. * - * @copyright © 1999-2007 The SquirrelMail Project Team + * @copyright 1999-2016 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -38,16 +38,15 @@ sqgetGlobalVar('unfold', $unfold, SQ_GET); // open a connection on the imap port (143) // why hide the output? -$imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, true); +global $imap_stream_options; // in case not defined in config +$imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, true, $imap_stream_options); /** * Using stristr since very old preferences may contain "None" and "none". */ if (!empty($left_refresh) && !stristr($left_refresh, 'none')){ - $xtra = "\n\n" . - "\n". - "\n"; + $xtra = "\n\n"; } else { $xtra = ''; } @@ -72,7 +71,7 @@ if ($auto_create_special && !isset($auto_create_done)) { $autocreate = array($sent_folder, $trash_folder, $draft_folder); $folders_created = false; foreach( $autocreate as $folder ) { - if ($folder != '') { + if ($folder != '' && $folder != SMPREF_NONE) { /** * If $show_only_subscribed_folders is true, don't use * $mailboxes array for checking if mailbox exists. @@ -205,6 +204,12 @@ $settings['messageRecyclingEnabled'] = $move_to_trash; $settings['collapsableFoldersEnabled'] = $collapse_folders==1; $oTemplate->assign('settings', $settings); +//access keys +// +$oTemplate->assign('accesskey_folders_refresh', $accesskey_folders_refresh); +$oTemplate->assign('accesskey_folders_purge_trash', $accesskey_folders_purge_trash); +$oTemplate->assign('accesskey_folders_inbox', $accesskey_folders_inbox); + $oTemplate->display('left_main.tpl'); sqimap_logout($imapConnection);