** -> *
[squirrelmail.git] / functions / auth.php
CommitLineData
3c13b9fb 1<?php
2
7350889b 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 */
3c13b9fb 13
2ba13803 14 require_once( '../functions/page_header.php' );
1026ec43 15
2d367c68 16 function is_logged_in () {
17 global $squirrelmail_language;
18
19 if ( session_is_registered('user_is_logged_in') )
20 return;
21
22 set_up_language($squirrelmail_language, true);
23
2ba13803 24 displayHtmlHeader( 'SquirrelMail', '', FALSE );
25
26 echo "<body bgcolor=\"ffffff\">\n" .
27 '<br><br><center><b>'.
28 _("You must be logged in to access this page.").'</b><br><br>'.
2d367c68 29 "<a href=\"../src/login.php\" target=\"_top\">"._("Go to the login page")."</a>\n".
30 "</center></body></html>\n";
31 exit;
32 }
3c13b9fb 33
34?>