A lot of code optimization with regard to deleting and creating folders.
[squirrelmail.git] / src / webmail.php
CommitLineData
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>
20OM-USA WebMail
21</TITLE>
22<FRAMESET COLS="200, *" NORESIZE BORDER=0>
ad6787f0 23
24/**
25 There are two ways to call webmail.php
26 1. 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.
30
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.
33**/
34<?
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\">";
39 } else {
40 echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">";
41 echo "<FRAME SRC=\"right_main.php\" NAME=\"right\">";
42 }
43?>
21c3249f 44</FRAMESET>
45</HEAD></HTML>