3c13b9fb |
1 | <?php |
2 | |
35586184 |
3 | /** |
4 | * auth.php |
5 | * |
6 | * Copyright (c) 1999-2001 The Squirrelmail Development Team |
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 | |
14 | /*****************************************************************/ |
15 | /*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!! ***/ |
16 | /*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION. ***/ |
17 | /*** + Base level indent should begin at left margin, as ***/ |
18 | /*** the require_once below. ***/ |
19 | /*** + All identation should consist of four space blocks ***/ |
20 | /*** + Tab characters are evil. ***/ |
21 | /*** + all comments should use "slash-star ... star-slash" ***/ |
22 | /*** style -- no pound characters, no slash-slash style ***/ |
23 | /*** + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD ***/ |
24 | /*** ALWAYS USE { AND } CHARACTERS!!! ***/ |
25 | /*** + Please use ' instead of ", when possible. Note " ***/ |
26 | /*** should always be used in _( ) function calls. ***/ |
27 | /*** Thank you for your help making the SM code more readable. ***/ |
28 | /*****************************************************************/ |
29 | |
30 | require_once( '../functions/page_header.php' ); |
1026ec43 |
31 | |
2d367c68 |
32 | function is_logged_in () { |
33 | global $squirrelmail_language; |
34 | |
35 | if ( session_is_registered('user_is_logged_in') ) |
36 | return; |
37 | |
38 | set_up_language($squirrelmail_language, true); |
39 | |
2ba13803 |
40 | displayHtmlHeader( 'SquirrelMail', '', FALSE ); |
41 | |
42 | echo "<body bgcolor=\"ffffff\">\n" . |
43 | '<br><br><center><b>'. |
44 | _("You must be logged in to access this page.").'</b><br><br>'. |
2d367c68 |
45 | "<a href=\"../src/login.php\" target=\"_top\">"._("Go to the login page")."</a>\n". |
46 | "</center></body></html>\n"; |
47 | exit; |
48 | } |
3c13b9fb |
49 | |
50 | ?> |