/plugin/shibbolethauth/files/ |
H A D | shibboleth.class.php | 162 $grps = array(); 190 if (empty($grps[0])) { 191 $grps[0] = $list->listAddress; 289 $grps = array(); 316 if (empty($grps[0])) { 317 $grps[0] = $list->listAddress; 356 if(!empty($grps[0])){ 357 foreach($grps as $group){ 375 foreach ($grps as $grp){ 430 if (!is_array($grps)) $grps = array($conf['defaultgroup']); [all …]
|
/plugin/sympaauth/files/ |
H A D | sympa.class.php | 125 $grps = array(); 133 if (empty($grps[0])) { 134 $grps[0] = $list->listAddress; 136 array_unshift($grps,$list->listAddress); 140 array_unshift($grps,$listrequest); 144 array_unshift($grps,$listeditor); 150 …(empty($grps[0]) ? $grps[0] = $this->sympaDefaultGroup : array_unshift($grps,$this->sympaDefaultGr…
|
/plugin/structpublish/helper/ |
H A D | db.php | 111 $grps = $args[2] ?? ($USERINFO['grps'] ?? []); 116 $grps 125 * @param string[] $grps Groups the user has, current user's groups if empty user 129 public static function userHasRole($pid, $userId = '', $grps = [], $roles = []) 136 $grps = $USERINFO['grps'] ?? []; 147 $grps 154 if (auth_isMember(implode(',', $users), $userId, $grps)) { 91 userHasRole($pid, $userId = '', $grps = [], $roles = []) global() argument
|
/plugin/forceuserchange/ |
H A D | action.php | 91 $grps = $this->get_user_groups($user); 92 $has_group = array_search($this->getConf('groupname'), $grps) !== false; 112 $grps = $this->get_user_groups($user); 113 $key = array_search($this->getConf('groupname'), $grps); 116 array_splice($grps, $key, 1); 117 $auth->triggerUserMod('modify', array($user, array('grps'=>$grps))); 121 $grps[] = $this->getConf('groupname'); 122 $auth->triggerUserMod('modify', array($user, array('grps'=>$grps)));
|
/plugin/oauthgeneric/ |
H A D | action.php | 32 $grpdots = sexplode('[]', $this->getConf('json-grps'), 2); 36 $grps = DotAccess::get($result, $grpdots[0], []); 39 if(is_array($grps) && $grpdots[1]) { 40 $grps = array_map(function($grp) use ($grpdots) { 42 }, $grps); 49 if (!is_array($grps)) { 50 $grps = explode(',', $grps); 51 $grps = array_map('trim', $grps); [all...] |
/plugin/isauth/ |
H A D | syntax.php | 98 // grps hold current user groups and userid 99 global $grps; 110 $grps=array(); 113 foreach($INFO['userinfo']['grps'] as $val) { 114 $grps[]="@" . $val; 119 $grps[]=$_SERVER['REMOTE_USER']; 137 if ($not==0 && in_array($val,$grps)) { 142 if ($not==1 && !in_array($val,$grps)) {
|
/plugin/authgooglesheets/ |
H A D | auth.php | 72 * @param array|null $grps 75 public function createUser($user, $pwd, $name, $mail, $grps = null) argument 93 if (!is_array($grps)) $grps = array($conf['defaultgroup']); 94 $userData['grps'] = implode(',', $grps);
|
H A D | helper.php | 92 $grps = $row[$this->columnMap['grps']] ?? ''; 94 $grps = array_map('trim', explode(',', $grps)); 99 'grps' => $grps,
|
/plugin/grouphome/ |
H A D | action.php | 37 $grps = (array) $INFO['userinfo']['grps']; 38 if (!count($grps)) return; 42 foreach ($grps as $grp) {
|
/plugin/authowncloud/ |
H A D | auth.php | 85 $grps = $this->getUserGroups($user); 86 return array('name'=>$name,'mail'=>$mail,'grps'=>$grps); 104 * @param array $grps 107 public function createUser($user, $pwd, $name, $mail, $grps = null) { argument 114 if(!is_array($grps)) $grps = array($conf['defaultgroup']); 115 foreach($grps as $grp){
|
/plugin/virtualgroup/ |
H A D | action.php | 39 if (!isset($USERINFO['grps'])) $USERINFO['grps'] = []; 40 $grps = array_unique(array_merge($USERINFO['grps'], $virtualgroups)); 41 $USERINFO['grps'] = $grps; 42 $_SESSION[DOKU_COOKIE]['auth']['info']['grps'] = $grps;
|
H A D | admin.php | 264 echo ' <th class="grp">' . hsc($this->getLang('grps')) . '</th>'; 346 $form->addTextInput('groups', $this->getLang('grps'))->attr('placeholder', $this->getLang('grpsSample')); 365 $form->addTextInput('groups', $this->getLang('grps'))->attr('placeholder', $this->getLang('grpsSample'));
|
/plugin/authremoteuser/ |
H A D | auth.php | 125 * @param array $grps list of groups the user is in 128 protected function _createUserLine($user, $pass, $name, $mail, $grps) { argument 129 $groups = join(',', $grps); 154 * @param array $grps 157 public function createUser($user, $pwd, $name, $mail, $grps = null) { argument 168 if(!is_array($grps)) $grps = array($conf['defaultgroup']); 171 $userline = $this->_createUserLine($user, $pass, $name, $mail, $grps);
|
/plugin/authvk/ |
H A D | auth.php | 126 * @param array $grps list of groups the user is in 129 protected function _createUserLine($user, $pass, $name, $mail, $grps) { argument 130 $groups = join(',', $grps); 155 * @param array $grps 158 public function createUser($user, $pwd, $name, $mail, $grps = null) { argument 171 if(!is_array($grps)) $grps = array($conf['defaultgroup']); 174 $userline = $this->_createUserLine($user, $pass, $name, $mail, $grps);
|
/plugin/authyubikey/ |
H A D | auth.php.org | 80 * grps array list of groups the user is in 101 * @param array $grps list of groups the user is in 104 protected function _createUserLine($user, $pass, $name, $mail, $grps) { 105 $groups = join(',', $grps); 120 * function if grps are not specified (default behaviour). 129 * @param array $grps 132 public function createUser($user, $pwd, $name, $mail, $grps = null) { 145 if(!is_array($grps)) $grps = array($conf['defaultgroup']); 155 $this->users[$user] = compact('pass', 'name', 'mail', 'grps'); 347 $this->users[$row[0]]['grps'] = $groups; [all …]
|
/plugin/bez/mdl/ |
H A D | Model.php | 117 if ($userd !== false && is_array($userd['grps'])) { 118 $grps = $userd['grps']; 119 if (in_array('admin', $grps ) || in_array('bez_admin', $grps )) { 121 } elseif (in_array('bez_leader', $grps )) {
|
/plugin/authimap2/ |
H A D | auth.php | 129 * @param array $grps list of groups the user is in 132 protected function _createUserLine($user, $pass, $name, $mail, $grps) { argument 133 $groups = join(',', $grps); 156 * @param null|array $grps 159 public function createUser($user, $pass, $name, $mail, $grps = null) { argument 172 if(!is_array($grps)) $grps = array($conf['defaultgroup']); 175 $userline = $this->_createUserLine($user, $pass, $name, $mail, $grps);
|
/plugin/listeabo/ |
H A D | action.php | 72 //if (in_array('admin',$INFO['userinfo']['grps'])) $admin = trim($_REQUEST['admin']); 73 //if (in_array('admin',$INFO['userinfo']['grps'])) $user = trim($_REQUEST['user']); 170 //if (in_array('admin',$INFO['userinfo']['grps'])) {
|
/plugin/authldaplocal/ |
H A D | auth.php | 319 * @param array $grps list of groups the user is in 322 protected function _createUserLine($user, $pass, $name, $mail, $grps) { argument 323 $groups = join(',', $grps); 344 * @param array $grps 347 public function createUser($user, $pwd, $name, $mail, $grps = null) { argument 367 if(is_array($grps)) { 368 $grps = array_merge($grps, $info['grps']); 370 $grps = $info['grps']; 374 if(!is_array($grps) or !$grps) $grps = array($conf['defaultgroup']); 377 $userline = $this->_createUserLine($user, $pass, $name, $mail, $grps);
|
/plugin/condition/ |
H A D | base_tester.php.orig.php | 93 $grps = isset($INFO['userinfo']) ? $INFO['userinfo']['grps'] : array(); 94 if(!$b['test'] || ($b['test'] == '')) return (count($grps) != 0); 99 if(!$b['value'] || ($b['value'] == '')) return (count($grps) == 0); 100 return in_array($b['value'], $grps); break; 104 if(!$b['value'] || ($b['value'] == '')) return (count($grps) != 0); 105 return !in_array($b['value'], $grps); break;
|
/plugin/authsmartcard/ |
H A D | auth.php | 189 * @param null|array $grps 192 public function createUser($user, $pass, $name, $mail, $grps = null) { argument 193 return parent::createUser($user, $pass, $name, $mail, $grps);
|
/plugin/genericsso/ |
H A D | auth.php | 190 $this->_setSession($attrs['id'], $data['grps'], $attrs['email'], $attrs['fullname']); 223 private function _setSession(string $user, array $grps = null, string $mail = null, string $name = null): void { 229 $USERINFO['grps'] = array_filter((array)$grps); 306 'grps' => explode(',', $row[4]) 313 $data = ['name' => $user, 'mail' => $user, 'grps' => []]; 318 $data = ['name' => $attrs['fullname'], 'mail' => $attrs['email'], 'grps' => []]; 321 $grps = array_key_exists($user, $this->_users) ? $this->_users[$user]['grps'] : []; 322 $data['grps'] 107 setSession($user, $grps = null, $mail = null, $name = null) global() argument [all...] |
/plugin/mailto/ |
H A D | action.php | 66 foreach ((array)explode(',', $this->getConf('mailto_acl_grps')) as $grps) { 67 if (in_array($grps, $USERINFO['grps']))
|
/plugin/freechat/ |
H A D | syntax.php | 88 if (($this->getConf('admin_group') != '') && isset($USERINFO['grps'])) { 91 if (in_array(trim($item),$USERINFO['grps'])) {
|
/plugin/authsqlite/ |
H A D | auth.php | 243 * @param array $grps array of groups the user should become member of 250 protected function _addUser($user, $pwd, $name, $mail, $grps) { argument 251 if($this->dbcon && is_array($grps)) { 266 foreach($grps as $group) {
|