Lines Matching refs:if
3 if(!defined('DOKU_INC')) die();
35 if(!@is_readable($config_cascade['plainauth.users']['default'])) {
38 if(@is_writable($config_cascade['plainauth.users']['default'])) {
57 * Checks if the given user exists and the given
67 if($userinfo === false) return false;
88 if($this->users === null) $this->_loadUserData();
116 * Returns false if the user already exists, null when an error
117 * occurred and true if everything went well.
120 * function if grps are not specified (default behaviour).
137 if($this->getUserData($user) !== false) {
144 // set default group if no groups specified
145 if(!is_array($grps)) $grps = array($conf['defaultgroup']);
150 if(!io_saveFile($config_cascade['plainauth.users']['default'], $userline, true)) {
172 if(($userinfo = $this->getUserData($user)) === false) {
176 if(!is_array($changes) || !count($changes)) return true;
181 if($field == 'user') {
185 if($field == 'pass') $value = auth_cryptPassword($value);
191 …if(!io_replaceInFile($config_cascade['plainauth.users']['default'], '/^'.$user.':/', $userline, tr…
212 if(!is_array($users) || empty($users)) return 0;
214 if($this->users === null) $this->_loadUserData();
218 if(isset($this->users[$user])) $deleted[] = preg_quote($user, '/');
221 if(empty($deleted)) return 0;
224 if (!io_deleteFromFile($config_cascade['plainauth.users']['default'], $pattern, true)) {
246 if($this->users === null) $this->_loadUserData();
248 if(!count($filter)) return count($this->users);
272 if($this->users === null) $this->_loadUserData();
282 if($this->_filter($user, $info)) {
283 if($i >= $start) {
286 if(($limit > 0) && ($count >= $limit)) break;
329 if(!file_exists($config_cascade['plainauth.users']['default'])) return;
335 if(empty($line)) continue;
354 if ($this->_pregsplit_safe){
362 if ($line[$i]=='\\'){
365 if ($i>=$len) break;
366 } else if ($line[$i]==':'){
379 * return true if $user + $info match $filter criteria, false otherwise
389 if($item == 'user') {
390 if(!preg_match($pattern, $user)) return false;
391 } else if($item == 'grps') {
392 if(!count(preg_grep($pattern, $info['grps']))) return false;
394 if(!preg_match($pattern, $info[$item])) return false;