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");
}
// 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");