| /dokuwiki/inc/Search/Query/ |
| H A D | QueryParser.php | 136 foreach ($tokens as $token) { 137 if ($token === '(') { 141 } elseif ($token === '-(') { 145 } elseif ($token === ')') { 150 } elseif ($token === 'and') { 152 } elseif ($token === 'or') { 155 } elseif (preg_match('/^(?:\^|-ns:)(.+)$/u', $token, $matches)) { 158 } elseif (preg_match('/^(?:@|ns:)(.+)$/u', $token, $matches)) { 161 } elseif (preg_match('/^-(.+)$/', $token, $matches)) { 166 $parsed .= $this->termParser($token); [all …]
|
| H A D | QueryEvaluator.php | 66 foreach ($this->rpn as $token) { 67 switch (substr($token, 0, 3)) { 71 $word = substr($token, 3); 79 $phrase = substr($token, 3); 89 $ns = cleanID(substr($token, 3)) . ':';
|
| /dokuwiki/_test/tests/inc/ |
| H A D | JWTTest.php | 21 $token = $jwt->getToken(); 25 $jwt = JWT::validate($token); 32 $this->assertEquals($token, $jwt->getToken()); 38 $this->assertNotEquals($token, $jwt->getToken()); 52 $token = $jwt->getToken(); 58 JWT::validate($token); 64 $token = $jwt->getToken(); 70 JWT::validate($token);
|
| /dokuwiki/inc/Remote/OpenApiDoc/ |
| H A D | ClassResolver.php | 110 foreach ($tokens as $token) { 111 if (!is_array($token)) { 123 $tokenname = token_name($token[0]); 125 if ($token[0] === T_CLASS) { 129 if ($token[0] === T_USE) { 134 if ($token[0] === T_AS) { 140 switch ($token[0]) { 144 $currentUse[$record] .= $token[1];
|
| /dokuwiki/inc/Search/Collection/ |
| H A D | DirectCollection.php | 62 $token = $tokens[0] ?? ''; variable in dokuwiki\\Search\\Collection\\DirectCollection 64 $tokenIndex->changeRow($entityId, $token); 106 foreach ($tokenIndex as $entityId => $token) { 107 if ($token === '') continue; 122 $token = $tokens[0] ?? ''; 123 return [$token => 1];
|
| H A D | AbstractCollection.php | 369 foreach ($counted as $token => $freq) { 370 $group = $this->splitByLength ? Tokenizer::tokenLength($token) : 0; 371 $groups[$group][$token] = $freq; 379 foreach ($tokenFreqs as $token => $freq) { 380 $tokenId = $tokenIndex->getRowID((string)$token);
|
| /dokuwiki/inc/Action/ |
| H A D | Resendpwd.php | 80 $token = preg_replace('/[^a-f0-9]+/', '', $INPUT->str('pwauth')); 82 if ($token) { 85 $tfile = $conf['cachedir'] . '/' . $token[0] . '/' . $token . '.pwauth'; 156 $token = md5(auth_randombytes(16)); // random secret 157 $tfile = $conf['cachedir'] . '/' . $token[0] . '/' . $token . '.pwauth'; 158 $url = wl('', ['do' => 'resendpwd', 'pwauth' => $token], true, '&');
|
| H A D | Authtoken.php | 30 $token = JWT::fromUser($INPUT->server->str('REMOTE_USER')); 31 $token->save();
|
| /dokuwiki/_test/tests/Search/Collection/ |
| H A D | MockDirectCollection.php | 13 public function __construct($entity = 'entity', $token = 'token') argument 15 parent::__construct($entity, $token);
|
| H A D | MockLookupCollection.php | 13 …public function __construct($entity = 'entity', $token = 'token', $freq = 'freq', $reverse = 'reve… argument 15 parent::__construct($entity, $token, $freq, $reverse);
|
| H A D | MockFrequencyCollection.php | 13 …public function __construct($entity = 'entity', $token = 'token', $freq = 'freq', $reverse = 'reve… argument 15 parent::__construct($entity, $token, $freq, $reverse, true);
|
| /dokuwiki/inc/Ui/ |
| H A D | UserResendPwd.php | 27 $token = preg_replace('/[^a-f0-9]+/', '', $INPUT->str('pwauth')); 33 if (!$conf['autopasswd'] && $token) { 34 $form = $this->formSetNewPassword($token); 50 protected function formSetNewPassword($token) argument 58 $form->setHiddenField('token', $token);
|
| H A D | UserProfile.php | 172 $token = JWT::fromUser($user); 179 …$form->addHTML('<p><code style="display: block; word-break: break-word">' . $token->getToken() . '…
|
| /dokuwiki/inc/ |
| H A D | JWT.php | 45 public static function validate($token) argument 47 [$header, $payload, $signature] = sexplode('.', $token, 3, ''); 84 if (file_get_contents($file) !== $token) { 110 $token = new self($user, time()); 111 $token->save(); 112 return $token;
|
| H A D | auth.php | 216 [$type, $token] = sexplode(' ', $headers['authorization'], 2); 217 if ($type !== 'Bearer') $token = ''; // not the token we want 222 $token = $headers['x-dokuwiki-token']; 225 if (empty($token)) return false; 229 $authtoken = JWT::validate($token); 245 $_SESSION[DOKU_COOKIE]['auth']['token'] = $token; 1244 $token = preg_replace('/[^a-f0-9]+/', '', $INPUT->str('pwauth')); 1246 if ($token) { 1249 $tfile = $conf['cachedir'] . '/' . $token[0] . '/' . $token . '.pwauth'; 1320 $token = md5(auth_randombytes(16)); // random secret [all …]
|
| H A D | common.php | 128 * @param null|string $token security token or null to read it from request variable 131 function checkSecurityToken($token = null) argument 137 if (is_null($token)) $token = $INPUT->str('sectok'); 138 if (getSecurityToken() != $token) {
|
| H A D | infoutils.php | 637 if (preg_match('/(notify|pass|auth|secret|ftp|userinfo|token|buid|mail|proxy)/i', $key)) {
|
| H A D | media.php | 1806 $token = $id; 1807 if ($w) $token .= '.' . $w; 1808 if ($h) $token .= '.' . $h; 1810 return substr(PassHash::hmac('md5', $token, auth_cookiesalt()), 0, 6);
|
| /dokuwiki/_test/tests/lib/exe/ |
| H A D | fetch_statuscodes_external.test.php | 34 return '/lib/exe/fetch.php?'.$w.$h.'{%token%}media='.rawurlencode($this->media); 39 return $request->get(array(), str_replace('{%token%}', $token, $this->getUri()));
|
| H A D | fetch_imagetoken.test.php | 38 function fetchResponse($token){ argument 40 return $request->get(array(),str_replace('{%token%}',$token,$this->getUri())); 100 foreach(array($any_token, $no_token) as $token) { 101 $response = $this->fetchResponse($token);
|
| /dokuwiki/inc/Search/ |
| H A D | Tokenizer.php | 141 * @param string $token 146 public static function tokenLength(string $token): int argument 148 $length = strlen($token); 150 if (preg_match_all('/[\xE2-\xEF]/', $token, $leadbytes)) {
|
| H A D | LegacyIndexer.php | 273 foreach ($tokens as $token) { 274 if (!Tokenizer::isValidSearchTerm($token)) continue; 275 $term = $search->addTerm($token); 276 $termMap[$token] = $term;
|
| /dokuwiki/vendor/splitbrain/php-jsstrip/ |
| H A D | composer.lock | 270 "phpunit/php-token-stream": "^3.1.3 || ^4.0", 488 "name": "phpunit/php-token-stream", 492 "url": "https://github.com/sebastianbergmann/php-token-stream.git", 497 …"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/a853a0e183b9db7eed… 530 "homepage": "https://github.com/sebastianbergmann/php-token-stream/", 535 "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", 536 "source": "https://github.com/sebastianbergmann/php-token-stream/tree/master"
|
| /dokuwiki/vendor/splitbrain/slika/ |
| H A D | composer.lock | 278 "phpunit/php-token-stream": "^3.1.3 || ^4.0", 496 "name": "phpunit/php-token-stream", 500 "url": "https://github.com/sebastianbergmann/php-token-stream.git", 505 …"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/a853a0e183b9db7eed… 538 "homepage": "https://github.com/sebastianbergmann/php-token-stream/", 543 "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", 544 "source": "https://github.com/sebastianbergmann/php-token-stream/tree/master"
|
| /dokuwiki/vendor/splitbrain/lesserphp/src/ |
| H A D | Parser.php | 1478 foreach ($look as $token) { 1479 $pos = strpos($text, $token); 1481 if (!isset($min) || $pos < $min[1]) $min = [$token, $pos];
|