/dokuwiki/inc/ |
D | TaskRunner.php | 104 $fn = ($media_changes ? $conf['media_changelog'] : $conf['changelog']); 111 file_exists($fn) && 112 (@filemtime($fn . '.trimmed') + 86400) < time() && 113 !file_exists($fn . '_tmp') 115 @touch($fn . '.trimmed'); 116 io_lock($fn); 117 $lines = file($fn); 120 io_unlock($fn); 125 io_saveFile($fn . '_tmp', ''); // presave tmp as 2nd lock 147 @unlink($fn . '_tmp'); [all …]
|
D | pageutils.php | 349 $fn = $conf['datadir'] . '/' . utf8_encodeFN($id) . '.txt'; 351 $fn = $conf['olddir'] . '/' . utf8_encodeFN($id) . '.' . $rev . '.txt'; 354 if (file_exists($fn . '.gz')) { 355 $fn .= '.gz'; 356 } elseif (file_exists($fn . '.bz2')) { 357 $fn .= '.bz2'; 360 $fn .= '.' . $conf['compression']; 368 $cache[$id][$rev] = $fn; 369 return $fn; 402 $fn = $conf['metadir'] . '/' . utf8_encodeFN($id) . $ext; [all …]
|
D | indexer.php | 263 $fn = $conf['indexdir'] . '/' . $idx . $suffix . '.idx'; 264 if (!file_exists($fn)) return []; 265 return file($fn);
|
D | media.php | 460 $fn = mediaFN($id); 465 static fn($q) => preg_quote($q, "/"), 471 if (!preg_match('/\.(' . $regex . ')$/i', $fn)) { 476 $overwrite = file_exists($fn); 494 $data[1] = $fn; 530 * @param string $fn 537 function media_upload_finish($fn_tmp, $fn, $id, $imime, $overwrite, $move = 'move_uploaded_file') argument 543 $old = @filemtime($fn); 544 if (!file_exists(mediaFN($id, $old)) && file_exists($fn)) { 552 $filesize_old = file_exists($fn) ? filesize($fn) : 0; [all …]
|
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));
|
D | changelog.php | 367 $fn = (($flags & RECENTS_MEDIA_CHANGES) ? mediaFN($recent['id']) : wikiFN($recent['id'])); 368 if (!file_exists($fn)) return false;
|
D | fetch.functions.php | 125 static fn($match) => rawurlencode($match[0]),
|
D | template.php | 943 $fn = $INFO['filepath']; 946 $fn = str_replace($conf['olddir'] . '/', '', $fn); 948 $fn = str_replace($conf['datadir'] . '/', '', $fn); 951 $fn = utf8_decodeFN($fn); 957 $out = '<bdi>' . $fn . '</bdi>';
|
D | Ip.php | 271 $ips = array_filter($ips, static fn($ip) => filter_var($ip, FILTER_VALIDATE_IP));
|
D | Logger.php | 198 $loglines = array_map(static fn($line) => ' ' . $line, $details);
|
/dokuwiki/lib/scripts/ |
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);
|
D | tree.js | 1 jQuery.fn.dw_tree = function(overrides) {
|
D | qsearch.js | 9 jQuery.fn.dw_qsearch = function (overrides) {
|
/dokuwiki/lib/tpl/dokuwiki/css/ |
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/lib/plugins/extension/ |
D | remote.php | 37 static fn($extension) => new ExtensionApiResponse($extension), 65 static fn($extension) => new ExtensionApiResponse($extension), 125 static fn($status) => (
|
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/ |
D | Indexer.php | 1001 $fn = $conf['indexdir'] . '/' . $idx . $suffix . '.idx'; 1002 if (!file_exists($fn)) return []; 1003 return file($fn, FILE_IGNORE_NEW_LINES); 1019 $fn = $conf['indexdir'] . '/' . $idx . $suffix; 1020 $fh = @fopen($fn . '.tmp', 'w'); 1027 chmod($fn . '.tmp', $conf['fperm']); 1028 io_rename($fn . '.tmp', $fn . '.idx'); 1045 $fn = $conf['indexdir'] . '/' . $idx . $suffix . '.idx'; 1046 if (!file_exists($fn)) return ''; 1047 $fh = @fopen($fn, 'r'); [all …]
|
/dokuwiki/inc/Ui/ |
D | Search.php | 218 'and' => array_map(static fn($term) => trim($term, '*'), $this->parsedQuery['and']), 219 'not' => array_map(static fn($term) => trim($term, '*'), $this->parsedQuery['not']), 223 … 'and' => array_map(static fn($term) => trim($term, '*') . '*', $this->parsedQuery['and']), 224 … 'not' => array_map(static fn($term) => trim($term, '*') . '*', $this->parsedQuery['not']), 228 … 'and' => array_map(static fn($term) => '*' . trim($term, '*'), $this->parsedQuery['and']), 229 … 'not' => array_map(static fn($term) => '*' . trim($term, '*'), $this->parsedQuery['not']), 233 … 'and' => array_map(static fn($term) => '*' . trim($term, '*') . '*', $this->parsedQuery['and']), 234 … 'not' => array_map(static fn($term) => '*' . trim($term, '*') . '*', $this->parsedQuery['not']),
|
D | PageRevisions.php | 114 … echo $this->navigation($first, $hasNext, static fn($n) => ['do' => 'revisions', 'first' => $n]);
|
D | MediaRevisions.php | 118 static fn($n) => media_managerURL(['first' => $n], '&', false, true)
|
/dokuwiki/inc/Menu/ |
D | AbstractMenu.php | 49 fn($item) => $item instanceof AbstractItem && $item->visibleInContext($this->context)
|
/dokuwiki/inc/TreeBuilder/ |
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/ |
D | Conversion.php | 86 static fn($c) => Unicode::toUtf8([ord($c)]),
|
/dokuwiki/inc/Form/ |
D | DropdownElement.php | 192 static fn($html, OptGroup $optGroup) => $html . $optGroup->toHTML(),
|
/dokuwiki/lib/plugins/usermanager/ |
D | admin.php | 126 $fn = $INPUT->param('fn'); 128 if (is_array($fn)) { 129 $cmd = key($fn); 130 $param = is_array($fn[$cmd]) ? key($fn[$cmd]) : null; 132 $cmd = $fn;
|