Added use of $imapPort
[squirrelmail.git] / src / left_main.php
index 0778297094589addb4a35a6d10b112b3a86c274b..a6702f23d4ca2082d4a057ac27f067bb647102bc 100644 (file)
@@ -11,9 +11,7 @@
       echo "You need a valid user and password to access this page!";
       exit;
    }
-?>
-<HTML>
-<?
+
    if (!isset($config_php))
       include("../config/config.php");
    if (!isset($array_php))
       include("../functions/strings.php");
    if (!isset($imap_php))
       include("../functions/imap.php");
+   if (!isset($page_header_php))
+      include("../functions/page_header.php");
+
+   echo "<HTML>";
 
    function formatMailboxName($imapConnection, $mailbox, $real_box, $delimeter, $color, $move_to_trash) {
       require ("../config/config.php");
@@ -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");