Source for file auth.php

Documentation is available at auth.php

  1. <?php
  2.  
  3. class no_odindata_quickform_auth extends no_odindata_quickform__base {
  4. var $user;
  5. var $_midgard;
  6. var $_poweruser;
  7. function no_odindata_quickform_auth() {
  8. /* Initialize Base class */
  9. parent::no_odindata_quickform__base();
  10. $this->_midgard = mgd_get_midgard();
  11. $this->user = mgd_get_person($this->_midgard->user);
  12. if ($this->user === false) {
  13. debug_add ("User in \$midgard was not found: " . mgd_errstr());
  14. $this->user = null;
  15. $this->_poweruser = false;
  16. } else {
  17. $this->_poweruser = $this->user->parameter("Interface","Power_User") != "NO" ? true : false;
  18. }
  19. }
  20. function check_access ($domain) {
  21. return true;
  22. }
  23. function _check($ok, $msg) {
  24. if (! $ok) {
  25. $GLOBALS["midcom"]->generate_error($this->_l10n->get($msg), MIDCOM_ERRFORBIDDEN);
  26. }
  27. }
  28. }
  29.  
  30. ?>

Documentation generated on Mon, 21 Nov 2005 18:12:18 +0100 by phpDocumentor 1.3.0RC3