Lines Matching refs:conf

75 global $conf;
76 $conf = []; variable
124 if ($conf['canonical']) {
139 define('DOKU_COOKIE', 'DW' . md5(DOKU_REL . (($conf['securecookie']) ? $serverPort : '')));
151 define('DOKU_TPL', DOKU_BASE . 'lib/tpl/' . $conf['template'] . '/');
159 define('DOKU_TPLINC', DOKU_INC . 'lib/tpl/' . $conf['template'] . '/');
173 $conf['gzip_output'] &= (strpos($httpAcceptEncoding, 'gzip') !== false);
176 $conf['gzip_output'] &&
191 $cookieDir = empty($conf['cookiedir']) ? DOKU_REL : $conf['cookiedir'];
221 if ($conf['compression'] == 'bz2' && !DOKU_HAS_BZIP) {
222 $conf['compression'] = 'gz';
224 if ($conf['compression'] == 'gz' && !DOKU_HAS_GZIP) {
225 $conf['compression'] = 0;
235 $local = $conf['lang'];
260 global $conf;
266 'secure' => ($conf['securecookie'] && \dokuwiki\Ip::isSsl()),
285 global $conf;
302 $path = empty($conf[$c]) ? $conf['savedir'] . '/' . $p : $conf[$c];
303 $conf[$c] = init_path($path);
304 if (empty($conf[$c])) {
314 $conf['changelog_old'] = init_path(
315 $conf['changelog'] ?? $conf['savedir'] . '/changes.log'
317 if ($conf['changelog_old'] == '') {
318 unset($conf['changelog_old']);
321 $conf['changelog'] = $conf['metadir'] . '/_dokuwiki.changes';
322 $conf['media_changelog'] = $conf['metadir'] . '/_media.changes';
361 global $conf;
363 $files = [$conf['indexdir'] . '/page.idx'];
370 if ($conf['fperm']) chmod($file, $conf['fperm']);
422 global $conf;
425 unset($conf['dmask']);
426 unset($conf['fmask']);
427 unset($conf['umask']);
429 $conf['fperm'] = false;
430 $conf['dperm'] = false;
439 if ($auto_fmode != $conf['fmode']) $conf['fperm'] = $conf['fmode'];
444 if ($auto_dmode != $conf['dmode']) $conf['dperm'] = $conf['dmode'];
463 global $conf;
465 $abs ??= $conf['canonical'];
467 if (!empty($conf['basedir'])) {
468 $dir = $conf['basedir'];
497 if (!empty($conf['baseurl'])) return rtrim($conf['baseurl'], '/') . $dir;