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

'. - _("You must be logged in to access this page.").'

'. - ""._("Go to the login page")."\n". - "
\n"; +/** + * auth.php + * + * Copyright (c) 1999-2002 The SquirrelMail Project Team + * Licensed under the GNU GPL. For full terms see the file COPYING. + * + * Contains functions used to do authentication. + * + * $Id$ + */ + +function is_logged_in() { + + 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