X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fleft_main.php;h=fbe5c3c13be9115d3969e0d02a3ce5b1c58b9935;hb=52ead32b39c66cc83112a68d65d78b6f8c86cbc5;hp=51b37976ee14effb587f819fccbfb9170a58b30a;hpb=a9cce2ae64fcb5a446e41fbf2ab03b42e39e72b8;p=squirrelmail.git diff --git a/src/left_main.php b/src/left_main.php index 51b37976..fbe5c3c1 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-2012 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. */ @@ -42,9 +45,7 @@ $imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, */ if (!empty($left_refresh) && !stristr($left_refresh, 'none')){ - $xtra = "\n\n" . - "\n". - "\n"; + $xtra = "\n\n"; } else { $xtra = ''; } @@ -60,7 +61,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 +70,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. @@ -141,7 +142,7 @@ if ($date_format != 6) { } $clk = str_replace(' ',' ',$clk); -//FIXME don't build HTML here - do it in template; after this is fixed BE SURE to remove the FALSE from the assign() call for $clock below! +//FIXME don't build HTML here - do it in template $clock = '' . str_replace(' ', ' ', _("Last Refresh")) . ":
$clk

\n"; @@ -202,6 +203,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);