X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fauth.php;h=3ac8fc897b0919180dd5686217b666c6df30585f;hp=7dd58a7a14a636405097bdb2564d8dd452b64c39;hb=b01b21d00c21c47620a86a8412918b287676eca7;hpb=2d367c687f9813a45a3d2f1911036cfc0425fdd0 diff --git a/functions/auth.php b/functions/auth.php index 7dd58a7a..3ac8fc89 100644 --- a/functions/auth.php +++ b/functions/auth.php @@ -1,28 +1,25 @@ \n" . - '

echo "
'. - _("You must be logged in to access this page.").'
'. - ""._("Go to the login page")."\n". - "
\n"; + if ( session_is_registered('user_is_logged_in') ) { + return; + } else { + include_once( '../functions/display_messages.php' ); + logout_error( _("You must be logged in to access this page.") ); exit; } +} -?> +?> \ No newline at end of file