X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fleft_main.php;h=8c2193b6c4790254637ba1908a6c17b04985e203;hb=a564b9e3f94dcd52acd4133c84de9cac3da3cab6;hp=86da570e745e23dacec065db5a622e046b9e8275;hpb=5edfad3d07901c07aa0509318884b861878598ec;p=squirrelmail.git
diff --git a/src/left_main.php b/src/left_main.php
index 86da570e..8c2193b6 100644
--- a/src/left_main.php
+++ b/src/left_main.php
@@ -6,12 +6,15 @@
* This is the code for the left bar. The left bar shows the folders
* available, and has cookie information.
*
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2017 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
*/
+/** This is the left_main page */
+define('PAGE_NAME', 'left_main');
+
/**
* Include the SquirrelMail initialization file.
*/
@@ -35,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 = '';
}
@@ -60,7 +62,7 @@ foreach ($js_includes as $js_file) {
// get mailbox list and cache it
$mailboxes=sqimap_get_mailboxes($imapConnection,false,$show_only_subscribed_folders);
-displayHtmlHeader( 'SquirrelMail', $xtra );
+displayHtmlHeader( $org_title, $xtra );
$oErrorHandler->setDelayedErrors(true);
sqgetGlobalVar('auto_create_done',$auto_create_done,SQ_SESSION);
@@ -69,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 != '') && ($folder != 'none')) {
+ if ($folder != '' && $folder != SMPREF_NONE) {
/**
* If $show_only_subscribed_folders is true, don't use
* $mailboxes array for checking if mailbox exists.
@@ -202,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);