Documentation is available at auth.php
- <?php
- class no_odindata_quickform_auth extends no_odindata_quickform__base {
- var $user;
- var $_midgard;
- var $_poweruser;
- function no_odindata_quickform_auth() {
- /* Initialize Base class */
- parent::no_odindata_quickform__base();
- $this->_midgard = mgd_get_midgard();
- $this->user = mgd_get_person($this->_midgard->user);
- if ($this->user === false) {
- debug_add ("User in \$midgard was not found: " . mgd_errstr());
- $this->user = null;
- $this->_poweruser = false;
- } else {
- $this->_poweruser = $this->user->parameter("Interface","Power_User") != "NO" ? true : false;
- }
- }
- function check_access ($domain) {
- return true;
- }
- function _check($ok, $msg) {
- if (! $ok) {
- $GLOBALS["midcom"]->generate_error($this->_l10n->get($msg), MIDCOM_ERRFORBIDDEN);
- }
- }
- }
- ?>
Documentation generated on Mon, 21 Nov 2005 18:12:18 +0100 by phpDocumentor 1.3.0RC3