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; } -?> - -"; 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 "
"; + echo "
"; echo _("Folders") . "
"; - echo "("; + echo "("; echo _("refresh folder list"); - echo ")

"; - echo "\n"; + echo ")

"; $delimeter = sqimap_get_delimiter($imapConnection); for ($i = 0;$i < count($boxes); $i++) { @@ -104,9 +104,9 @@ $noselect = true; } if ($noselect == true) { - $line .= ""; + $line .= ""; $line .= replace_spaces(readShortMailboxName($mailbox, $delimeter)); - $line .= ""; + $line .= ""; } else { $line .= formatMailboxName($imapConnection, $mailbox, $boxes[$i]["unformatted"], $delimeter, $color, $move_to_trash); } @@ -116,9 +116,8 @@ echo "$line
"; } - echo "
"; fclose($imapConnection); ?> -
+