X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fright_main.php;h=5037fa01245574734795b1c9f5a0ff621adec2f2;hb=b3b103cbbfc8cf14f79421b269ade59e6264ee10;hp=2008ee58426bd860e96794d9af2c09532f835771;hpb=3bcede4959fa66538bbaf8efdd86d227e68886bf;p=squirrelmail.git diff --git a/src/right_main.php b/src/right_main.php index 2008ee58..5037fa01 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -8,38 +8,44 @@ ** This is where the mailboxes are listed. This controls most of what ** goes on in SquirrelMail. ** + ** $Id$ **/ + if (!isset($i18n_php)) + include('../functions/i18n.php'); session_start(); - if(!isset($logged_in)) { - echo _("You must login first."); - exit; - } - if(!isset($username) || !isset($key)) { - echo _("You need a valid user and password to access this page!"); + if(!isset($logged_in) || !isset($username) || !isset($key)) { + include ('../themes/default_theme.php'); + include ('../functions/display_messages.php'); + printf('
', + $color[8], $color[4], $color[7], $color[7], $color[7]); + plain_error_message(_("You need a valid user and password to access this page!") + . '