finished adding czech translation
[squirrelmail.git] / src / right_main.php
index be8f683e997d5f0a4378e1068919002390e7e232..3efad3d61471d9b7feb37d52d8cd57447e6ea906 100644 (file)
@@ -2,6 +2,9 @@
    /**
     **  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>