auth.php 811 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * auth.php
  4. *
  5. * Copyright (c) 1999-2002 The SquirrelMail Project Team
  6. * Licensed under the GNU GPL. For full terms see the file COPYING.
  7. *
  8. * Contains functions used to do authentication.
  9. *
  10. * $Id$
  11. */
  12. require_once( '../functions/page_header.php' );
  13. function is_logged_in () {
  14. global $squirrelmail_language;
  15. if ( session_is_registered('user_is_logged_in') ) {
  16. return;
  17. }
  18. set_up_language($squirrelmail_language, true);
  19. displayHtmlHeader( 'SquirrelMail', '', FALSE );
  20. echo "<body bgcolor=\"ffffff\">\n" .
  21. '<br><br><center><b>' .
  22. _("You must be logged in to access this page.").'</b><br><br>' .
  23. "<a href=\"../src/login.php\" target=\"_top\">"._("Go to the login page")."</a>\n" .
  24. "</center></body></html>\n";
  25. exit;
  26. }
  27. ?>