some foo to 'foo'
[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 $auth_php = true;
12
13 function is_logged_in () {
14 if (!session_is_registered('user_is_logged_in')) {
15 echo _("You must login first.");
16 echo "</body></html>\n\n";
17 exit;
18 } else {
19 return true;
20 }
21 }
22
23 ?>