squirrelmail/functions/auth.php
Tyler Akins 0d0de5d238 * Got bored and copied all the validate.php and define() stuff to 1.1
* Cleaned up some code
* Fixed some typos
* Added a few files (documentation, translations)
* EAGERLY awaiting 1.1 to come out
* Made all global stuff "global $varname" so the new define() method we use
  will work properly (methinks)
2001-04-19 17:58:10 +00:00

29 lines
603 B
PHP

<?php
/**
** auth.php
**
** Contains functions used to do authentication.
**
** $Id$
**/
if (defined ('auth_php'))
return;
define ('auth_php', true);
function is_logged_in () {
if (session_is_registered('user_is_logged_in'))
return;
echo "<html><body bgcolor=\"ffffff\">\n";
echo "<br><br>";
echo "<center>";
echo "<b>"._("You must be logged in to access this page.")."</b><br>";
echo "<a href=\"../src/login.php\">"._("Go to the login page")."</a>\n";
echo "</center>";
echo "</body></html>\n";
exit;
}
?>