Added i18n support to left_main
[squirrelmail.git] / src / left_main.php
index 281b3fffb74e4a85f4fe2bfa1254b09048e34fa2..d4d1e04f5ee716015b9a985f19f13a1379b206e8 100644 (file)
@@ -22,6 +22,9 @@
       include("../functions/imap.php");
    if (!isset($page_header_php))
       include("../functions/page_header.php");
+   if (!isset($i18n_php))
+      include("../functions/i18n.php");
+
 
    echo "<HTML>";
 
    }
 
    // 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");
+
    if (isset($left_refresh) && ($left_refresh != "None") && ($left_refresh != "")) {
       echo "<META HTTP-EQUIV=\"Expires\" CONTENT=\"Thu, 01 Dec 1994 16:00:00 GMT\">";
       echo "<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">";