X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fauth.php;h=3ac8fc897b0919180dd5686217b666c6df30585f;hp=f302a496e021bdb2ddb3f6d2d23f25a1489a0c23;hb=b01b21d00c21c47620a86a8412918b287676eca7;hpb=b9bfd165b055eac4f5e62438ae78eaab01cbb90e diff --git a/functions/auth.php b/functions/auth.php index f302a496..3ac8fc89 100644 --- a/functions/auth.php +++ b/functions/auth.php @@ -1,23 +1,25 @@ \n\n"; - exit; - } else { - return true; - } - } + 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