X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fleft_main.php;h=a6702f23d4ca2082d4a057ac27f067bb647102bc;hb=e146912692c921160f93dcb6da97dc6246bf95d2;hp=1a38163039d00b0112efef8c3f79695f7e9970bb;hpb=b6def0e7aaf44c772c1db0f2e6d1223c4e3332b0;p=squirrelmail.git diff --git a/src/left_main.php b/src/left_main.php index 1a381630..a6702f23 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -11,9 +11,7 @@ echo "You need a valid user and password to access this page!"; exit; } -?> - - + if (!isset($config_php)) include("../config/config.php"); if (!isset($array_php)) @@ -22,6 +20,10 @@ include("../functions/strings.php"); if (!isset($imap_php)) include("../functions/imap.php"); + if (!isset($page_header_php)) + include("../functions/page_header.php"); + + echo ""; function formatMailboxName($imapConnection, $mailbox, $real_box, $delimeter, $color, $move_to_trash) { require ("../config/config.php"); @@ -41,11 +43,11 @@ } if ($special_color == true) { - $line .= ""; + $line .= ""; $line .= replace_spaces($mailbox); $line .= ""; } else { - $line .= ""; + $line .= ""; $line .= replace_spaces($mailbox); $line .= ""; } @@ -54,14 +56,14 @@ $line .= ""; if ($numUnseen > 0) { - $line .= " ($numUnseen)"; + $line .= " ($numUnseen)"; } if (($move_to_trash == true) && (trim($real_box) == $trash_folder)) { $urlMailbox = urlencode($real_box); - $line .= ""; + $line .= ""; $line .= " ("._("purge").")"; - $line .= "\n"; + $line .= "\n"; } echo ""; @@ -69,7 +71,7 @@ } // open a connection on the imap port (143) - $imapConnection = sqimap_login($username, $key, $imapServerAddress, 10); // the 10 is to hide the output + $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 10); // the 10 is to hide the output /** If it was a successful login, lets load their preferences **/ include("../src/load_prefs.php"); @@ -80,17 +82,15 @@ } echo "
"; - echo ""; $boxes = sqimap_mailbox_list($imapConnection); - echo "