3c13b9fb |
1 | <?php |
2 | |
3 | /** |
4 | ** auth.php |
5 | ** |
6 | ** Contains functions used to do authentication. |
7 | ** |
245a6892 |
8 | ** $Id$ |
3c13b9fb |
9 | **/ |
10 | |
f435778e |
11 | if (defined ('auth_php')) |
12 | return; |
6ee631f7 |
13 | define ('auth_php', true); |
14 | |
3c13b9fb |
15 | function is_logged_in () { |
1026ec43 |
16 | global $squirrelmail_language; |
17 | |
f435778e |
18 | if (session_is_registered('user_is_logged_in')) |
19 | return; |
1026ec43 |
20 | |
21 | set_up_language($squirrelmail_language, true); |
22 | |
f435778e |
23 | echo "<html><body bgcolor=\"ffffff\">\n"; |
24 | echo "<br><br>"; |
25 | echo "<center>"; |
26 | echo "<b>"._("You must be logged in to access this page.")."</b><br>"; |
a3ba65d4 |
27 | echo "<a href=\"../src/login.php\" target=\"_top\">"._("Go to the login page")."</a>\n"; |
f435778e |
28 | echo "</center>"; |
29 | echo "</body></html>\n"; |
30 | exit; |
3c13b9fb |
31 | } |
32 | |
33 | ?> |