5 ** This simply creates the frames.
9 if(!isset($username)) {
10 echo "You need a valid user and password to access this page!";
14 setcookie("username", $username, 0, "/");
15 setcookie("key", $key, 0, "/");
16 setcookie("logged_in", 1, 0, "/");
22 <FRAMESET COLS
="200, *" NORESIZE BORDER
=0>
25 There are two ways to call webmail.php
27 - this just loads the default entry screen.
28 2. webmail.php?sort=X&startMessage=X&mailbox=XXXX
29 - This loads the frames starting at the given values.
31 This was done to create a pure HTML way of refreshing the folder list since
32 we would like to use as little Javascript as possible.
35 if (strlen($mailbox) > 0) {
36 $urlMailbox = urlencode($mailbox);
37 echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">";
38 echo "<FRAME SRC=\"right_main.php?mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage\" NAME=\"right\">";
40 echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">";
41 echo "<FRAME SRC=\"right_main.php\" NAME=\"right\">";