auth.php 490 B

12345678910111213141516171819202122232425
  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. function is_logged_in() {
  13. if ( session_is_registered('user_is_logged_in') ) {
  14. return;
  15. } else {
  16. include_once( '../functions/display_messages.php' );
  17. logout_error( _("You must be logged in to access this page.") );
  18. exit;
  19. }
  20. }
  21. ?>