/**
* left_main.php
*
- * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Copyright (c) 1999-2002 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This is the code for the left bar. The left bar shows the folders
/* If requested and not yet complete, attempt to autocreate folders. */
if ($auto_create_special && !isset($auto_create_done)) {
- $autocreate = array( $sent_folder,
- $trash_folder,
- $draft_folder );
+ $autocreate = array($sent_folder, $trash_folder, $draft_folder);
foreach( $autocreate as $folder ) {
- if ($folder != '' && $folder != 'none') {
+ if (($folder != '') && ($folder != 'none')) {
if ( !sqimap_mailbox_exists($imapConnection, $folder)) {
sqimap_mailbox_create($imapConnection, $folder, '');
- } elseif ( !sqimap_mailbox_is_subscribed($imapConnection, $folder)) {
+ } else if (!sqimap_mailbox_is_subscribed($imapConnection, $folder)) {
sqimap_subscribe($imapConnection, $folder);
}
}
$line = "<NOBR><TT>$prefix</TT>";
/* Add the folder name and link. */
+ if (! isset($color[15])) {
+ $color[15] = $color[6];
+ }
if (in_array('noselect', $boxes[$i]['flags'])) {
- $line .= "<FONT COLOR=\"$color[7]\">";
+ $line .= "<FONT COLOR=\"$color[15]\">";
if (ereg("^( *)([^ ]*)", $mailbox, $regs)) {
$mailbox = str_replace(' ','',$mailbox);
$line .= str_replace(' ', ' ', $mailbox);