3c13b9fb |
1 | <?php |
2 | |
35586184 |
3 | /** |
4 | * auth.php |
5 | * |
15e6162e |
6 | * Copyright (c) 1999-2002 The SquirrelMail Project Team |
35586184 |
7 | * Licensed under the GNU GPL. For full terms see the file COPYING. |
8 | * |
9 | * Contains functions used to do authentication. |
10 | * |
11 | * $Id$ |
12 | */ |
13 | |
9be8198d |
14 | function is_logged_in() { |
2d367c68 |
15 | |
e110c214 |
16 | if ( session_is_registered('user_is_logged_in') ) { |
17 | return; |
4d2c9f70 |
18 | } else { |
9be8198d |
19 | include_once( '../functions/display_messages.php' ); |
20 | logout_error( _("You must be logged in to access this page.") ); |
4d2c9f70 |
21 | exit; |
e110c214 |
22 | } |
e110c214 |
23 | } |
3c13b9fb |
24 | |
9be8198d |
25 | ?> |