| /dokuwiki/inc/ |
| H A D | TaskRunner.php | 107 $fn = ($media_changes ? $conf['media_changelog'] : $conf['changelog']); 114 file_exists($fn) && 115 (@filemtime($fn . '.trimmed') + 86400) < time() && 116 !file_exists($fn . '_tmp') 118 @touch($fn . '.trimmed'); 119 io_lock($fn); 120 $lines = file($fn); 123 io_unlock($fn); 128 io_saveFile($fn . '_tmp', ''); // presave tmp as 2nd lock 150 @unlink($fn . '_tmp'); [all …]
|
| H A D | pageutils.php | 350 $fn = $conf['datadir'] . '/' . utf8_encodeFN($id) . '.txt'; 352 $fn = $conf['olddir'] . '/' . utf8_encodeFN($id) . '.' . $rev . '.txt'; 355 if (file_exists($fn . '.gz')) { 356 $fn .= '.gz'; 357 } elseif (file_exists($fn . '.bz2')) { 358 $fn .= '.bz2'; 361 $fn .= '.' . $conf['compression']; 369 $cache[$id][$rev] = $fn; 370 return $fn; 403 $fn = $conf['metadir'] . '/' . utf8_encodeFN($id) . $ext; [all …]
|
| H A D | media.php | 463 $fn = mediaFN($id); 468 static fn($q) => preg_quote($q, "/"), 474 if (!preg_match('/\.(' . $regex . ')$/i', $fn)) { 479 $overwrite = file_exists($fn); 497 $data[1] = $fn; 533 * @param string $fn 540 function media_upload_finish($fn_tmp, $fn, $id, $imime, $overwrite, $move = 'move_uploaded_file') argument 546 $old = @filemtime($fn); 547 if (!file_exists(mediaFN($id, $old)) && file_exists($fn)) { 555 $filesize_old = file_exists($fn) ? filesize($fn) : 0; [all …]
|
| H A D | confutils.php | 301 * @param callback $fn the function used to process the configuration file into an array 310 function retrieveConfig($type, $fn, $params = null, $combine = 'array_merge') argument 322 $config = call_user_func_array($fn, array_merge([$file], $params));
|
| H A D | deprecated.php | 261 $fn = $conf['indexdir'] . '/' . $idx . $suffix . '.idx'; 262 if (!file_exists($fn)) return []; 263 return file($fn);
|
| H A D | MailUtils.php | 159 static fn(array $matches): string => sprintf("=%02X", ord($matches[0])),
|
| H A D | changelog.php | 367 $fn = (($flags & RECENTS_MEDIA_CHANGES) ? mediaFN($recent['id']) : wikiFN($recent['id'])); 368 if (!file_exists($fn)) return false;
|
| H A D | fetch.functions.php | 125 static fn($match) => rawurlencode($match[0]),
|
| /dokuwiki/lib/scripts/ |
| H A D | behaviour.js | 8 jQuery.fn.dw_hide = function(fn, noaria) { argument 10 return this.slideUp('fast', fn); 20 jQuery.fn.dw_show = function(fn, noaria) { argument 22 return this.slideDown('fast', fn); 32 jQuery.fn.dw_toggle = function(state, fn, noaria) { argument 38 $this[state ? "dw_show" : "dw_hide" ](fn, noaria);
|
| H A D | tree.js | 1 jQuery.fn.dw_tree = function(overrides) {
|
| /dokuwiki/lib/tpl/dokuwiki/css/ |
| H A D | _footnotes.css | 24 .dokuwiki div.footnotes div.fn { 26 .dokuwiki div.footnotes div.fn div.content { 29 .dokuwiki div.footnotes div.fn sup a.fn_bot {
|
| /dokuwiki/inc/Search/Query/ |
| H A D | NamespacePredicate.php | 38 fn($id) => str_starts_with($id, $this->prefix), 51 fn($id) => !str_starts_with($id, $this->prefix),
|
| /dokuwiki/lib/plugins/extension/ |
| H A D | remote.php | 37 static fn($extension) => new ExtensionApiResponse($extension), 65 static fn($extension) => new ExtensionApiResponse($extension), 125 static fn($status) => (
|
| H A D | Notice.php | 117 implode(', ', array_map(static fn(Extension $dep) => $dep->getId(true), $missing)) 137 implode(', ', array_map(static fn(Extension $dep) => $dep->getId(true), $found))
|
| /dokuwiki/inc/Search/ |
| H A D | Indexer.php | 100 static fn($v) => $v !== '' && (!$existsFilter || page_exists($v, '', false)) 320 $fn = $conf['indexdir'] . '/metadata.idx'; 321 if (!file_exists($fn)) return []; 322 $keys = file($fn, FILE_IGNORE_NEW_LINES); 336 $fn = $conf['indexdir'] . '/metadata.idx'; 337 $existing = file_exists($fn) ? file($fn, FILE_IGNORE_NEW_LINES) : []; 349 io_saveFile($fn, implode("\n", $existing) . "\n");
|
| H A D | LegacyIndexer.php | 223 implode(':', array_filter($keyline, fn($v) => $v !== '')) 286 …$filtered = array_filter($freqs, fn($page) => page_exists($page, '', false), ARRAY_FILTER_USE_KEY);
|
| /dokuwiki/_test/tests/Parsing/Lexer/ |
| H A D | LexerTest.php | 188 $caught = array_values(array_filter($handler->recorded, fn($c) => $c[0] === 'caught')); 210 $caught = array_values(array_filter($handler->recorded, fn($c) => $c[0] === 'caught')); 232 $caught = array_values(array_filter($handler->recorded, fn($c) => $c[0] === 'caught')); 254 $caught = array_values(array_filter($handler->recorded, fn($c) => $c[0] === 'caught')); 276 $caught = array_values(array_filter($handler->recorded, fn($c) => $c[0] === 'caught')); 299 $caught = array_values(array_filter($handler->recorded, fn($c) => $c[0] === 'caught'));
|
| /dokuwiki/inc/Ui/ |
| H A D | Search.php | 219 'and' => array_map(static fn($term) => trim($term, '*'), $this->parsedQuery['and']), 220 'not' => array_map(static fn($term) => trim($term, '*'), $this->parsedQuery['not']), 224 … 'and' => array_map(static fn($term) => trim($term, '*') . '*', $this->parsedQuery['and']), 225 … 'not' => array_map(static fn($term) => trim($term, '*') . '*', $this->parsedQuery['not']), 229 … 'and' => array_map(static fn($term) => '*' . trim($term, '*'), $this->parsedQuery['and']), 230 … 'not' => array_map(static fn($term) => '*' . trim($term, '*'), $this->parsedQuery['not']), 234 … 'and' => array_map(static fn($term) => '*' . trim($term, '*') . '*', $this->parsedQuery['and']), 235 … 'not' => array_map(static fn($term) => '*' . trim($term, '*') . '*', $this->parsedQuery['not']),
|
| H A D | MediaRevisions.php | 120 static fn($n) => media_managerURL(['first' => $n], '&', false, true)
|
| H A D | PageRevisions.php | 116 … echo $this->navigation($first, $hasNext, static fn($n) => ['do' => 'revisions', 'first' => $n]);
|
| /dokuwiki/inc/Menu/ |
| H A D | AbstractMenu.php | 49 fn($item) => $item instanceof AbstractItem && $item->visibleInContext($this->context)
|
| /dokuwiki/inc/Parsing/ParserMode/ |
| H A D | AbstractFormatting.php | 30 static fn($mode) => $mode !== $self
|
| /dokuwiki/inc/TreeBuilder/ |
| H A D | AbstractBuilder.php | 165 return array_filter($this->getAll(), fn($page) => !$page->getChildren()); 176 return array_filter($this->getAll(), fn($page) => (bool) $page->getChildren());
|
| /dokuwiki/inc/Utf8/ |
| H A D | Conversion.php | 86 static fn($c) => Unicode::toUtf8([ord($c[0])]),
|
| /dokuwiki/inc/Form/ |
| H A D | DropdownElement.php | 192 static fn($html, OptGroup $optGroup) => $html . $optGroup->toHTML(),
|