auth.php 353 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. ** auth.php
  4. **
  5. ** Contains functions used to do authentication.
  6. **
  7. ** $Id$
  8. **/
  9. $auth_php = true;
  10. function is_logged_in () {
  11. if (!session_is_registered("user_is_logged_in")) {
  12. echo _("You must login first.");
  13. echo "</body></html>\n\n";
  14. exit;
  15. } else {
  16. return true;
  17. }
  18. }
  19. ?>