X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fleft_main.php;h=de0055379db18f7c5391a2eb0c3de9f427680cc1;hb=3b6a455c9af15582495ea5e55faacddc10700c29;hp=3c1dd21ea5d6cf90bd4f8ae3873e9be3eb5dcd6e;hpb=be4ba0bffba237a21d902482a0eadb4ed2158e7c;p=squirrelmail.git diff --git a/src/left_main.php b/src/left_main.php index 3c1dd21e..de005537 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-2007 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. */ @@ -20,7 +23,7 @@ require('../include/init.php'); /* SquirrelMail required files. */ require_once(SM_PATH . 'functions/imap_general.php'); require_once(SM_PATH . 'functions/date.php'); -require_once(SM_PATH . 'templates/util_left_main.php'); +require_once(SM_PATH . 'functions/template/folder_list_util.php'); /* These constants are used for folder stuff. */ define('SM_BOX_UNCOLLAPSED', 0); @@ -60,7 +63,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 +72,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 != '') { /** * If $show_only_subscribed_folders is true, don't use * $mailboxes array for checking if mailbox exists. @@ -141,6 +144,7 @@ if ($date_format != 6) { } $clk = str_replace(' ',' ',$clk); +//FIXME don't build HTML here - do it in template $clock = '' . str_replace(' ', ' ', _("Last Refresh")) . ":
$clk

\n";