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 three ways to call webmail.php
27 - this just loads the default entry screen.
28 2. webmail.php?right_frame=right_main.php&sort=X&startMessage=X&mailbox=XXXX
29 - This loads the frames starting at the given values.
30 3. webmail.php?right_frame=folders.php
31 - Loads the frames with the Folder options in the right frame.
33 This was done to create a pure HTML way of refreshing the folder list since
34 we would like to use as little Javascript as possible.
37 if ($right_frame == "right_main.php") {
38 $urlMailbox = urlencode($mailbox);
39 echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">";
40 echo "<FRAME SRC=\"right_main.php?mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage\" NAME=\"right\">";
41 } else if ($right_frame == "folders.php") {
42 $urlMailbox = urlencode($mailbox);
43 echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">";
44 echo "<FRAME SRC=\"folders.php\" NAME=\"right\">";
46 echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">";
47 echo "<FRAME SRC=\"right_main.php\" NAME=\"right\">";