/** ** right_main.php3 ** ** This is where the mailboxes are listed. This controls most of what ** goes on in SquirrelMail. ** **/ if(!isset($logged_in)) { echo "You must login first."; exit; } if(!isset($username) || !isset($key)) { echo "You need a valid user and password to access this page!"; exit; } ?>
include("../config/config.php3"); include("../functions/imap.php3"); include("../functions/strings.php3"); include("../functions/date.php3"); include("../functions/page_header.php3"); include("../functions/array.php3"); include("../functions/mailbox.php3"); include("../functions/mailbox_display.php3"); include("../functions/display_messages.php3"); ///////////////////////////////////////////////////////////////////////////////// // // incoming variables from URL: // $sort Direction to sort by date // values: 0 - descending order // values: 1 - ascending order // $startMessage Message to start at // $mailbox Full Mailbox name // // incoming from cookie: // $username duh // $key pass // ///////////////////////////////////////////////////////////////////////////////// // open a connection on the imap port (143) $imapConnection = fsockopen($imapServerAddress, 143, &$errorNumber, &$errorString); if (!$imapConnection) { echo "Error connecting to IMAP Server.