Removed, now a plugin, no idea if this will be included with the source tree.
[squirrelmail.git] / src / left_main.php
index 112ad87b7aca3dc1a961b526acf28b002e0a17f4..d6de4f84339266187a97f684ffa6093cd65ef4e0 100644 (file)
    if (!isset($plugin_php))
       include("../functions/plugin.php");
 
+   // open a connection on the imap port (143)
+   $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");
+
    displayHtmlHeader();
 
    function formatMailboxName($imapConnection, $mailbox, $real_box, $delimeter, $unseen) {
       return $line;
    }
 
-   // open a connection on the imap port (143)
-   $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\">\n";
       echo "<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">\n";