X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fauth.php;h=309a47c944e8ceaec8f6f1dfe6737dec1ad9c064;hb=65a5bae684ea2124d134d4ef3afd9aa408a0dca1;hp=daacc762332834791c17be2ec0d23f0b59d1ea8d;hpb=a3ba65d4bbfb6301a120fc2979a0216654ebaff7;p=squirrelmail.git diff --git a/functions/auth.php b/functions/auth.php index daacc762..309a47c9 100644 --- a/functions/auth.php +++ b/functions/auth.php @@ -1,29 +1,39 @@ \n"; - echo "

"; - echo "
"; - echo ""._("You must be logged in to access this page.")."
"; - echo ""._("Go to the login page")."\n"; - echo "
"; - echo "\n"; - exit; - } + * auth.php + * + * Copyright (c) 1999-2002 The SquirrelMail Project Team + * Licensed under the GNU GPL. For full terms see the file COPYING. + * + * Contains functions used to do authentication. + * + * $Id$ + */ + +require_once( '../functions/page_header.php' ); + +function is_logged_in () { + global $squirrelmail_language, $frame_top; + + if ( session_is_registered('user_is_logged_in') ) { + return; + } + + if (!isset($frame_top)) { + $frame_top = '_top'; + } + + set_up_language($squirrelmail_language, true); + + displayHtmlHeader( 'SquirrelMail', '', FALSE ); + + echo "\n" . + '

' . + _("You must be logged in to access this page.").'

' . + ""._("Go to the login page")."\n" . + "
\n"; + exit; +} ?>