Fix & in URLs to & for correctness of HTML, also 100% to "100%" in
[squirrelmail.git] / functions / auth.php
CommitLineData
3c13b9fb 1<?php
2
35586184 3/**
4 * auth.php
5 *
15e6162e 6 * Copyright (c) 1999-2002 The SquirrelMail Project Team
35586184 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 */
13
35586184 14require_once( '../functions/page_header.php' );
1026ec43 15
e110c214 16function is_logged_in () {
88cb1b4d 17 global $squirrelmail_language, $frame_top, $base_uri;
2d367c68 18
e110c214 19 if ( session_is_registered('user_is_logged_in') ) {
20 return;
21 }
2d367c68 22
88cb1b4d 23 if (!isset($frame_top) || $frame_top == '' ) {
d03f3582 24 $frame_top = '_top';
25 }
26
e110c214 27 set_up_language($squirrelmail_language, true);
2d367c68 28
e110c214 29 displayHtmlHeader( 'SquirrelMail', '', FALSE );
2ba13803 30
e110c214 31 echo "<body bgcolor=\"ffffff\">\n" .
32 '<br><br><center><b>' .
33 _("You must be logged in to access this page.").'</b><br><br>' .
88cb1b4d 34 "<a href=\"$base_uri/src/login.php\" target=\"$frame_top\">"._("Go to the login page")."</a>\n" .
e110c214 35 "</center></body></html>\n";
36 exit;
37}
3c13b9fb 38
80e86e94 39?>