Lines Matching defs:who

32     protected $who = '';
88 $who = trim($INPUT->str('acl_w'));
89 if ($INPUT->str('acl_t') == '__g__' && $who) {
90 $this->who = '@' . ltrim($auth->cleanGroup($who), '@');
91 } elseif ($INPUT->str('acl_t') == '__u__' && $who) {
92 $this->who = ltrim($who, '@');
93 if ($this->who != '%USER%' && $this->who != '%GROUP%') { #keep wildcard as is
94 $this->who = $auth->cleanUser($this->who);
101 $this->who = $INPUT->str('acl_t');
102 } elseif ($who) {
103 $this->who = $who;
121 if ($cmd == 'save' && $scope && $this->who && $INPUT->has('acl')) {
123 $this->deleteACL($scope, $this->who);
124 $this->addOrUpdateACL($scope, $this->who, $INPUT->int('acl'));
125 } elseif ($cmd == 'del' && $scope && $this->who) {
127 $this->deleteACL($scope, $this->who);
134 foreach ($names as $who)
135 unset($acl[$where][$who]);
149 foreach ($opt as $who => $perm) {
150 if ($who[0] == '@') {
151 if ($who != '@ALL') {
152 $who = '@' . ltrim($auth->cleanGroup($who), '@');
154 } elseif ($who != '%USER%' && $who != '%GROUP%') { #keep wildcard as is
155 $who = $auth->cleanUser($who);
157 $who = auth_nameencode($who, true);
158 $lines[] = "$where\t$who\t$perm\n";
220 if ($this->who) $opts['acl_w'] = $this->who;
342 * Display the current ACL for selected where/who combination with
358 ($inl) ? '' : hsc(ltrim($this->who, '@'))
384 if ($this->who) {
442 $who = $this->who;
456 // prepare who to check
457 if ($who[0] == '@') {
459 $groups = [ltrim($who, '@')];
461 $user = $who;
492 printf($this->getLang('p_user_ns'), hsc($who), hsc($ns), implode(', ', $names));
494 printf($this->getLang('p_user_id'), hsc($who), hsc($ID), implode(', ', $names));
497 printf($this->getLang('p_group_ns'), hsc(ltrim($who, '@')), hsc($ns), implode(', ', $names));
499 printf($this->getLang('p_group_id'), hsc(ltrim($who, '@')), hsc($ID), implode(', ', $names));
646 echo '<input type="hidden" name="acl_w" value="' . hsc($this->who) . '" />';
654 echo '<th>' . $this->getLang('who') . '</th>';
659 foreach ($set as $who => $perm) {
672 if ($who[0] == '@') {
673 echo '<span class="aclgroup">' . hsc($who) . '</span>';
675 echo '<span class="acluser">' . hsc($who) . '</span>';
680 echo $this->makeCheckboxes($perm, $ispage, 'acl[' . $where . '][' . $who . ']');
684 echo '<input type="checkbox" name="del[' . hsc($where) . '][]" value="' . hsc($who) . '" />';
719 if (isset($this->acl[$check][$this->who])) {
720 return $this->acl[$check][$this->who];
819 $this->who &&
820 !in_array($this->who, $this->usersgroups) &&
821 !in_array($this->who, $this->specials)
823 if ($this->who[0] == '@') {
838 if ($ug == $this->who) {
856 if ($ug == $this->who) {