X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fwebmail.php;h=ae497bad6a0fb1c47936ffee559b987dbe1e6c2e;hb=b61ed24d8a140c29d4a1ca2d918719094963aa4f;hp=41cf17c25ab07d53b35da0957b42c659b5464c01;hpb=e146912692c921160f93dcb6da97dc6246bf95d2;p=squirrelmail.git diff --git a/src/webmail.php b/src/webmail.php index 41cf17c2..ae497bad 100644 --- a/src/webmail.php +++ b/src/webmail.php @@ -1,44 +1,77 @@ -', + $color[8], $color[4], $color[7], $color[7], $color[7]); + plain_error_message(_("You need a valid user and password to access this page!") + . "
" + . _("Click here to log back in.") . ".", $color); + echo ''; exit; } - setcookie("username", $username, 0, "/"); - setcookie("key", $key, 0, "/"); - setcookie("logged_in", 1, 0, "/"); - // Refresh the language cookie. - if (isset($squirrelmail_language)) - setcookie("squirrelmail_language", $squirrelmail_language, - time()+2592000); -?> - -\n"; + echo ''; + echo $org_title; + echo ''; - include ("../src/load_prefs.php"); + $bar_size = $left_size; - echo ""; - echo "$org_title"; - echo ""; - echo ""; + if ($location_of_bar == 'right') + { + echo ""; + } else { + echo ""; + } /** There are three ways to call webmail.php 1. webmail.php - - this just loads the default entry screen. + - This just loads the default entry screen. 2. webmail.php?right_frame=right_main.php&sort=X&startMessage=X&mailbox=XXXX - This loads the frames starting at the given values. 3. webmail.php?right_frame=folders.php @@ -47,18 +80,31 @@ This was done to create a pure HTML way of refreshing the folder list since we would like to use as little Javascript as possible. **/ - if ($right_frame == "right_main.php") { - $urlMailbox = urlencode($mailbox); - echo ""; - echo ""; - } else if ($right_frame == "folders.php") { + if (!isset($right_frame)) $right_frame = ""; + + if ($right_frame == 'right_main.php') { $urlMailbox = urlencode($mailbox); - echo ""; - echo ""; + $right_frame_url = "right_main.php?mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage"; + } else if ($right_frame == 'options.php') { + $right_frame_url = 'options.php'; + } else if ($right_frame == 'folders.php') { + $right_frame_url = 'folders.php'; } else { - echo ""; - echo ""; + if (!isset($just_logged_in)) $just_logged_in = 0; + $right_frame_url = "right_main.php?just_logged_in=$just_logged_in"; } + + if ($location_of_bar == 'right') + { + echo ""; + echo ''; + } + else + { + echo ''; + echo ""; + } + ?>