auth.php 898 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. ** auth.php
  4. **
  5. ** Copyright (c) 1999-2001 The Squirrelmail Development 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. set_up_language($squirrelmail_language, true);
  18. displayHtmlHeader( 'SquirrelMail', '', FALSE );
  19. echo "<body bgcolor=\"ffffff\">\n" .
  20. '<br><br><center><b>'.
  21. _("You must be logged in to access this page.").'</b><br><br>'.
  22. "<a href=\"../src/login.php\" target=\"_top\">"._("Go to the login page")."</a>\n".
  23. "</center></body></html>\n";
  24. exit;
  25. }
  26. ?>