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