auth.php 344 B

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