Lines Matching full:if
32 if (!class_exists('PDO')) {
38 if (!$this->getConf('dsn')) {
126 if ($userdata === false) {
132 if ($this->checkConfig(['check-pass'])) {
136 if ($result === false) return false;
141 if (isset($userdata['hash'])) {
168 if ($data == false) return false;
170 if (isset($data['hash'])) unset($data['hash']);
171 if (isset($data['clean'])) unset($data['clean']);
173 if ($requireGroups) {
175 if ($data['grps'] === false) return false;
184 * Returns false if the user already exists, null when an error
185 * occurred and true if everything went well.
203 if (($info = $this->getUserData($user, false)) !== false) {
209 if ($grps == null) $grps = [];
220 if ($ok === false) goto FAIL;
222 if ($userdata === false) goto FAIL;
227 if (!isset($allgroups[$group])) {
229 if ($ok === false) goto FAIL;
237 if ($ok === false) goto FAIL;
268 if (isset($changes['user'])) {
269 if ($this->getUserData($changes['user'], false)) goto FAIL;
274 if ($ok === false) goto FAIL;
278 if (isset($changes['pass'])) {
284 if ($ok === false) goto FAIL;
288 if (isset($changes['mail']) || isset($changes['name'])) {
290 if (isset($changes['mail'])) $params['mail'] = $changes['mail'];
291 if (isset($changes['name'])) $params['name'] = $changes['name'];
294 if ($ok === false) goto FAIL;
298 if (isset($changes['grps'])) {
303 if (!in_array($group, $changes['grps']) && isset($allgroups[$group])) {
305 if ($ok === false) goto FAIL;
312 if (!isset($allgroups[$group])) {
314 if ($ok === false) goto FAIL;
319 if ($added > 0) $allgroups = $this->selectGroups();
323 if (!in_array($group, $oldgroups)) {
325 if ($ok === false) goto FAIL;
354 if ($this->deleteUser($user)) $count++;
371 if ($limit < 0) $limit = 10000; // we don't support no limit
372 if (is_null($filter)) $filter = [];
374 if (isset($filter['grps'])) $filter['group'] = $filter['grps'];
376 if (!isset($filter[$key])) {
387 if (!$result) return [];
389 if (is_array($result)) {
391 if (!isset($row['user'])) {
411 if (is_null($filter)) $filter = [];
413 if (isset($filter['grps'])) $filter['group'] = $filter['grps'];
415 if (!isset($filter[$key])) {
423 if (!$result || !isset($result[0]['count'])) {
441 if ($result === false) return false;
457 if ($groups === false) return [];
459 if (!$limit) {
477 if (!$result) return false;
479 if (count($result) > 1) {
487 if (!isset($data['user'])) {
491 … if (!isset($data['hash']) && !isset($data['clear']) && !$this->checkConfig(['check-pass'])) {
495 if (!isset($data['name'])) {
499 if (!isset($data['mail'])) {
504 if (!$dataok) return false;
519 if ($userdata === false) goto FAIL;
524 if (isset($allgroups[$group])) {
530 if ($ok === false) goto FAIL;
551 if ($result === false) return false;
554 if (is_array($result)) {
556 if (!isset($row['group'])) {
578 if ($this->groupcache) return $this->groupcache;
582 if ($result === false) return false;
585 if (is_array($result)) {
587 if (!isset($row['group'])) {
624 if ($result === false) return false;
640 if ($result === false) return false;
654 if (empty($sql)) {
666 if (is_array($value)) continue;
667 if (is_object($value)) continue;
668 if ($key[0] != ':') $key = ":$key"; // prefix with colon if needed
669 if (strpos($sql, (string) $key) === false) continue; // skip if parameter is missing
671 if (is_int($value)) {
684 if (str_starts_with(strtolower($currentsql), 'select')) {
690 if ($semi_pos) {
721 if (!$this->getConf('debug')) return;
722 if (is_a($message, 'Exception')) {
725 if (!$line) $line = $message->getLine();
730 if (defined('DOKU_UNITTEST')) {
738 * Check if the given config strings are set
752 // check if sql is set
753 if (!$sql) return false;
754 // check if needed params are there
756 if (strpos($sql, ":$param") === false) return false;
774 if (is_int($val)) {
785 if ($htmlescape) $sql = hsc($sql);