21c3249f |
1 | <? |
2 | /** |
a09387f4 |
3 | ** webmail.php |
21c3249f |
4 | ** |
5 | ** This simply creates the frames. |
6 | ** |
7 | **/ |
8 | |
9 | if(!isset($username)) { |
10 | echo "You need a valid user and password to access this page!"; |
11 | exit; |
12 | } |
13 | |
14 | setcookie("username", $username, 0, "/"); |
15 | setcookie("key", $key, 0, "/"); |
16 | setcookie("logged_in", 1, 0, "/"); |
17 | ?> |
18 | <HTML><HEAD> |
19 | <TITLE> |
7ce342dc |
20 | <? |
21 | include ("../config/config.php"); |
22 | echo "$org_title"; |
23 | ?> |
21c3249f |
24 | </TITLE> |
25 | <FRAMESET COLS="200, *" NORESIZE BORDER=0> |
ad6787f0 |
26 | |
27 | /** |
907165ca |
28 | There are three ways to call webmail.php |
ad6787f0 |
29 | 1. webmail.php |
30 | - this just loads the default entry screen. |
907165ca |
31 | 2. webmail.php?right_frame=right_main.php&sort=X&startMessage=X&mailbox=XXXX |
ad6787f0 |
32 | - This loads the frames starting at the given values. |
907165ca |
33 | 3. webmail.php?right_frame=folders.php |
34 | - Loads the frames with the Folder options in the right frame. |
ad6787f0 |
35 | |
36 | This was done to create a pure HTML way of refreshing the folder list since |
37 | we would like to use as little Javascript as possible. |
38 | **/ |
39 | <? |
907165ca |
40 | if ($right_frame == "right_main.php") { |
ad6787f0 |
41 | $urlMailbox = urlencode($mailbox); |
42 | echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">"; |
43 | echo "<FRAME SRC=\"right_main.php?mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage\" NAME=\"right\">"; |
907165ca |
44 | } else if ($right_frame == "folders.php") { |
45 | $urlMailbox = urlencode($mailbox); |
46 | echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">"; |
47 | echo "<FRAME SRC=\"folders.php\" NAME=\"right\">"; |
ad6787f0 |
48 | } else { |
49 | echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">"; |
50 | echo "<FRAME SRC=\"right_main.php\" NAME=\"right\">"; |
51 | } |
52 | ?> |
21c3249f |
53 | </FRAMESET> |
54 | </HEAD></HTML> |