Lines Matching refs:conf

40 if (!defined('DOKU_CONF')) define('DOKU_CONF', DOKU_INC . 'conf/');
72 global $conf;
73 $conf = [];
106 if ($conf['canonical']) {
121 define('DOKU_COOKIE', 'DW' . md5(DOKU_REL . (($conf['securecookie']) ? $serverPort : '')));
133 define('DOKU_TPL', DOKU_BASE . 'lib/tpl/' . $conf['template'] . '/');
141 define('DOKU_TPLINC', DOKU_INC . 'lib/tpl/' . $conf['template'] . '/');
155 $conf['gzip_output'] &= (strpos($httpAcceptEncoding, 'gzip') !== false);
158 $conf['gzip_output'] &&
173 $cookieDir = empty($conf['cookiedir']) ? DOKU_REL : $conf['cookiedir'];
214 if ($conf['compression'] == 'bz2' && !DOKU_HAS_BZIP) {
215 $conf['compression'] = 'gz';
217 if ($conf['compression'] == 'gz' && !DOKU_HAS_GZIP) {
218 $conf['compression'] = 0;
232 $local = $conf['lang'];
257 global $conf;
263 'secure' => ($conf['securecookie'] && is_ssl()),
282 global $conf;
299 $path = empty($conf[$c]) ? $conf['savedir'] . '/' . $p : $conf[$c];
300 $conf[$c] = init_path($path);
301 if (empty($conf[$c])) {
311 $conf['changelog_old'] = init_path(
312 $conf['changelog'] ?? $conf['savedir'] . '/changes.log'
314 if ($conf['changelog_old'] == '') {
315 unset($conf['changelog_old']);
318 $conf['changelog'] = $conf['metadir'] . '/_dokuwiki.changes';
319 $conf['media_changelog'] = $conf['metadir'] . '/_media.changes';
358 global $conf;
360 $files = [$conf['indexdir'] . '/page.idx'];
367 if ($conf['fperm']) chmod($file, $conf['fperm']);
419 global $conf;
422 unset($conf['dmask']);
423 unset($conf['fmask']);
424 unset($conf['umask']);
426 $conf['fperm'] = false;
427 $conf['dperm'] = false;
436 if ($auto_fmode != $conf['fmode']) $conf['fperm'] = $conf['fmode'];
441 if ($auto_dmode != $conf['dmode']) $conf['dperm'] = $conf['dmode'];
454 * @param null|bool $abs Return an absolute URL? (null defaults to $conf['canonical'])
460 global $conf;
462 $abs ??= $conf['canonical'];
464 if (!empty($conf['basedir'])) {
465 $dir = $conf['basedir'];
494 if (!empty($conf['baseurl'])) return rtrim($conf['baseurl'], '/') . $dir;
499 (!empty($conf['trustedproxy'])) && isset($_SERVER['HTTP_X_FORWARDED_HOST'])
500 && preg_match('/' . $conf['trustedproxy'] . '/', $_SERVER['REMOTE_ADDR'])
545 global $conf;
549 (!empty($conf['trustedproxy'])) && isset($_SERVER['HTTP_X_FORWARDED_PROTO'])
550 && preg_match('/' . $conf['trustedproxy'] . '/', $_SERVER['REMOTE_ADDR'])