/**
** right_main.php
**
+ ** Copyright (c) 1999-2000 The SquirrelMail development team
+ ** Licensed under the GNU GPL. For full terms see the file COPYING.
+ **
** This is where the mailboxes are listed. This controls most of what
** goes on in SquirrelMail.
**
include("../src/load_prefs.php");
// If the page has been loaded without a specific mailbox,
- // just show a page of general info.
+ // send them to the inbox
if (!isset($mailbox)) {
- displayPageHeader($color, "None");
- general_info($motd, $org_logo, $version, $org_name, $color);
- echo "</BODY></HTML>";
- exit;
+ $mailbox = "INBOX";
+ $sort = $newsort = 0;
+ $startMessage = 1;
}
sqimap_mailbox_select($imapConnection, $mailbox);
displayPageHeader($color, $mailbox);
+ do_hook("right_main_after_header");
+
+ if ($just_logged_in == 1 && strlen(trim($motd)) > 0) {
+ echo "<center><br>\n";
+ echo "<table width=70% cellpadding=0 cellspacing=0 border=0><tr><td bgcolor=\"$color[9]\">\n";
+ echo "<table width=100% cellpadding=5 cellspacing=1 border=0><tr><td bgcolor=\"$color[4]\">\n";
+ echo "$motd\n";
+ echo "</td></tr></table>\n";
+ echo "</td></tr></table>\n";
+ echo "</center><br>\n";
+ }
+
if (isset($newsort)) {
$sort = $newsort;
session_register("sort");
session_register("numMessages");
}
+ do_hook("right_main_bottom");
// close the connection
+ sqimap_mailbox_close($imapConnection);
sqimap_logout ($imapConnection);
?>
</FONT>