Lines Matching refs:auth

22     protected $auth = null;        // auth object  variable in admin_plugin_usermanager
40 global $auth;
44 if (!isset($auth)) {
46 } elseif (!$auth->canDo('getUsers')) {
50 $this->auth = & $auth;
68 if (!is_null($this->auth))
116 if (is_null($this->auth)) return false;
163 …$this->users_total = $this->auth->canDo('getUserCount') ? $this->auth->getUserCount($this->filter)…
193 if (is_null($this->auth)) {
198 $user_list = $this->auth->retrieveUsers($this->start, $this->pagesize, $this->filter);
201 $delete_disable = $this->auth->canDo('delUser') ? '' : 'disabled="disabled"';
203 $editable = $this->auth->canDo('UserMod');
219 $this->auth->getUserCount()
226 $allUserTotal = $this->auth->getUserCount();
322 if ($this->auth->canDo('addUser')) {
333 if ($this->edit_user && $this->auth->canDo('UserMod')) {
344 if ($this->auth->canDo('addUser')) {
360 global $auth;
361 if(!$auth || !$auth->canDo('getUsers') ) {
407 $this->auth->canDo("modLogin"),
416 $this->auth->canDo("modPass"),
425 $this->auth->canDo("modPass"),
434 $this->auth->canDo("modName"),
443 $this->auth->canDo("modMail"),
452 $this->auth->canDo("modGroups"),
457 if ($this->auth->canDo("modPass")) {
640 if (!$this->auth->canDo('addUser')) return false;
645 if ($this->auth->canDo('modPass')) {
669 if ($this->auth->canDo('modName')) {
683 if ($this->auth->canDo('modMail')) {
697 if ($ok = $this->auth->triggerUserMod('create', array($user, $pass, $name, $mail, $grps))) {
721 if (!$this->auth->canDo('delUser')) return false;
732 $count = $this->auth->triggerUserMod('delete', array($selected));
757 if (!$this->auth->canDo('UserMod')) return false;
758 $user = $this->auth->cleanUser(preg_replace('/.*[:\/]/', '', $param));
759 $userdata = $this->auth->getUserData($user);
783 if (!$this->auth->canDo('UserMod')) return false;
786 $olduser = $this->auth->cleanUser(preg_replace('/.*[:\/]/', '', $INPUT->str('userid_old')));
787 $oldinfo = $this->auth->getUserData($olduser);
795 if (!$this->auth->canDo('modLogin')) { // sanity check, shouldn't be possible
801 if ($this->auth->getUserData($newuser)) {
808 if ($this->auth->canDo('modPass')) {
823 if (!empty($newname) && $this->auth->canDo('modName') && $newname != $oldinfo['name']) {
826 if (!empty($newmail) && $this->auth->canDo('modMail') && $newmail != $oldinfo['mail']) {
829 if (!empty($newgrps) && $this->auth->canDo('modGroups') && $newgrps != $oldinfo['grps']) {
833 if ($ok = $this->auth->triggerUserMod('modify', array($olduser, $changes))) {
914 global $auth;
918 $user[0] = ($clean) ? $auth->cleanUser($INPUT->str('userid')) : $INPUT->str('userid');
926 if ($clean) $user[4] = array_map(array($auth,'cleanGroup'), $user[4]);
1024 $user_list = $this->auth->retrieveUsers(0, 0, $this->filter);
1066 if (!$this->auth->canDo('addUser')) return false;
1163 if (!($this->auth->canDo('modName') xor empty($name))) {
1168 if ($this->auth->canDo('modMail')) {
1194 if (!$this->auth->triggerUserMod('create', $user)) {