* Updated RFC docs
[squirrelmail.git] / functions / auth.php
CommitLineData
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;
13 define ('auth_php', true);
3c13b9fb 14
15 function is_logged_in () {
f435778e 16 if (session_is_registered('user_is_logged_in'))
17 return;
18
19 echo "<html><body bgcolor=\"ffffff\">\n";
20 echo "<br><br>";
21 echo "<center>";
22 echo "<b>"._("You must be logged in to access this page.")."</b><br>";
23 echo "<a href=\"../src/login.php\">"._("Go to the login page")."</a>\n";
24 echo "</center>";
25 echo "</body></html>\n";
26 exit;
3c13b9fb 27 }
28
29?>