Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 38) sorted by relevance

12

/dokuwiki/inc/
DTaskRunner.php104 $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 …]
Dpageutils.php349 $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 …]
Dindexer.php263 $fn = $conf['indexdir'] . '/' . $idx . $suffix . '.idx';
264 if (!file_exists($fn)) return [];
265 return file($fn);
Dmedia.php460 $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 …]
Dconfutils.php301 * @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));
Dchangelog.php367 $fn = (($flags & RECENTS_MEDIA_CHANGES) ? mediaFN($recent['id']) : wikiFN($recent['id']));
368 if (!file_exists($fn)) return false;
Dfetch.functions.php125 static fn($match) => rawurlencode($match[0]),
Dtemplate.php943 $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>';
DIp.php271 $ips = array_filter($ips, static fn($ip) => filter_var($ip, FILTER_VALIDATE_IP));
DLogger.php198 $loglines = array_map(static fn($line) => ' ' . $line, $details);
/dokuwiki/lib/scripts/
Dbehaviour.js8 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);
Dtree.js1 jQuery.fn.dw_tree = function(overrides) {
Dqsearch.js9 jQuery.fn.dw_qsearch = function (overrides) {
/dokuwiki/lib/tpl/dokuwiki/css/
D_footnotes.css24 .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/
Dremote.php37 static fn($extension) => new ExtensionApiResponse($extension),
65 static fn($extension) => new ExtensionApiResponse($extension),
125 static fn($status) => (
DNotice.php117 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/
DIndexer.php1001 $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/
DSearch.php218 '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']),
DPageRevisions.php114 … echo $this->navigation($first, $hasNext, static fn($n) => ['do' => 'revisions', 'first' => $n]);
DMediaRevisions.php118 static fn($n) => media_managerURL(['first' => $n], '&', false, true)
/dokuwiki/inc/Menu/
DAbstractMenu.php49 fn($item) => $item instanceof AbstractItem && $item->visibleInContext($this->context)
/dokuwiki/inc/TreeBuilder/
DAbstractBuilder.php165 return array_filter($this->getAll(), fn($page) => !$page->getChildren());
176 return array_filter($this->getAll(), fn($page) => (bool) $page->getChildren());
/dokuwiki/inc/Utf8/
DConversion.php86 static fn($c) => Unicode::toUtf8([ord($c)]),
/dokuwiki/inc/Form/
DDropdownElement.php192 static fn($html, OptGroup $optGroup) => $html . $optGroup->toHTML(),
/dokuwiki/lib/plugins/usermanager/
Dadmin.php126 $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;

12