Lines Matching refs:conf
76 global $conf;
77 $conf = []; variable
110 if ($conf === []) {
129 if ($conf['canonical']) {
144 define('DOKU_COOKIE', 'DW' . md5(DOKU_REL . (($conf['securecookie']) ? $serverPort : '')));
156 define('DOKU_TPL', DOKU_BASE . 'lib/tpl/' . $conf['template'] . '/');
164 define('DOKU_TPLINC', DOKU_INC . 'lib/tpl/' . $conf['template'] . '/');
178 $conf['gzip_output'] &= (strpos($httpAcceptEncoding, 'gzip') !== false);
181 $conf['gzip_output'] &&
196 $cookieDir = empty($conf['cookiedir']) ? DOKU_REL : $conf['cookiedir'];
226 if ($conf['compression'] == 'bz2' && !DOKU_HAS_BZIP) {
227 $conf['compression'] = 'gz';
229 if ($conf['compression'] == 'gz' && !DOKU_HAS_GZIP) {
230 $conf['compression'] = 0;
240 $local = $conf['lang'];
265 global $conf;
271 'secure' => ($conf['securecookie'] && Ip::isSsl()),
290 global $conf;
307 $path = empty($conf[$c]) ? $conf['savedir'] . '/' . $p : $conf[$c];
308 $conf[$c] = init_path($path);
309 if (empty($conf[$c])) {
319 $conf['changelog_old'] = init_path(
320 $conf['changelog'] ?? $conf['savedir'] . '/changes.log'
322 if ($conf['changelog_old'] == '') {
323 unset($conf['changelog_old']);
326 $conf['changelog'] = $conf['metadir'] . '/_dokuwiki.changes';
327 $conf['media_changelog'] = $conf['metadir'] . '/_media.changes';
366 global $conf;
368 $files = [$conf['indexdir'] . '/page.idx'];
375 if ($conf['fperm']) chmod($file, $conf['fperm']);
427 global $conf;
430 unset($conf['dmask']);
431 unset($conf['fmask']);
432 unset($conf['umask']);
434 $conf['fperm'] = false;
435 $conf['dperm'] = false;
444 if ($auto_fmode != $conf['fmode']) $conf['fperm'] = $conf['fmode'];
449 if ($auto_dmode != $conf['dmode']) $conf['dperm'] = $conf['dmode'];
468 global $conf;
470 $abs ??= $conf['canonical'];
472 if (!empty($conf['basedir'])) {
473 $dir = $conf['basedir'];
502 if (!empty($conf['baseurl'])) return rtrim($conf['baseurl'], '/') . $dir;