Lines Matching +full:style +full:. +full:local +full:. +full:ini

30 $preload = fullpath(__DIR__) . '/preload.php';
34 if (!defined('DOKU_INC')) define('DOKU_INC', fullpath(__DIR__ . '/../') . '/');
37 if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/');
40 if (!defined('DOKU_CONF')) define('DOKU_CONF', DOKU_INC . 'conf/');
43 if (!defined('DOKU_E_LEVEL') && file_exists(DOKU_CONF . 'report_e_all')) {
67 // always include 'inc/config_cascade.php'
68 // previously in preload.php set fields of $config_cascade will be merged with the defaults
69 include(DOKU_INC . 'inc/config_cascade.php');
76 foreach (['default', 'local', 'protected'] as $config_group) {
90 foreach (['default', 'local'] as $config_group) {
99 // set timezone (as in pre 5.3.0 days)
121 define('DOKU_COOKIE', 'DW' . md5(DOKU_REL . (($conf['securecookie']) ? $serverPort : '')));
126 if (!defined('DOKU_SCRIPT')) define('DOKU_SCRIPT', 'doku.php');
133 define('DOKU_TPL', DOKU_BASE . 'lib/tpl/' . $conf['template'] . '/');
141 define('DOKU_TPLINC', DOKU_INC . 'lib/tpl/' . $conf['template'] . '/');
145 @ini_set('arg_separator.output', '&');
148 @ini_set('zlib.output_compression', 'off');
151 @ini_set('pcre.backtrack_limit', '20971520');
162 // See https://bugs.dokuwiki.org/index.php?do=details&task_id=2576
201 // setup plugin controller class (can be overwritten in preload.php)
206 require_once(DOKU_INC . 'inc/load.php');
232 $local = $conf['lang'];
233 Event::createAndTrigger('INIT_LANG_LOAD', $local, 'init_lang', true);
252 * @link http://stackoverflow.com/a/33024310/172068
253 * @link http://php.net/manual/en/session.configuration.php#ini.session.sid-length
299 $path = empty($conf[$c]) ? $conf['savedir'] . '/' . $p : $conf[$c];
303 nice_die("The $c ('$p') at $path is not found, isn't accessible or writable.
304 You should check your config and permission settings.
305 Or maybe you want to <a href=\"install.php\">run the
312 $conf['changelog'] ?? $conf['savedir'] . '/changes.log'
318 $conf['changelog'] = $conf['metadir'] . '/_dokuwiki.changes';
319 $conf['media_changelog'] = $conf['metadir'] . '/_media.changes';
334 require(DOKU_INC . 'inc/lang/en/lang.php');
336 if (file_exists($config_file . 'en/lang.php')) {
337 include($config_file . 'en/lang.php');
342 if (file_exists(DOKU_INC . "inc/lang/$langCode/lang.php")) {
343 require(DOKU_INC . "inc/lang/$langCode/lang.php");
346 if (file_exists($config_file . "$langCode/lang.php")) {
347 include($config_file . "$langCode/lang.php");
354 * Checks the existence of certain files and creates them if missing.
360 $files = [$conf['indexdir'] . '/page.idx'];
369 nice_die("$file is not writable. Check your permissions settings!");
378 * This tries the given path first, then checks in DOKU_INC.
379 * Check for accessibility on directories as well.
381 * @author Andreas Gohr <andi@splitbrain.org>
392 $p = fullpath(DOKU_INC . $path);
404 if (@is_dir($p) && !file_exists("$p/.")) {
414 * file with chmod. Considers the influence of the system's umask
415 * setting the values only if needed.
439 // and set the dperm param if it's not what we want.
450 * !! initialized.
452 * @author Andreas Gohr <andi@splitbrain.org>
466 } elseif (substr($_SERVER['SCRIPT_NAME'], -4) == '.php') {
468 } elseif (substr($_SERVER['PHP_SELF'], -4) == '.php') {
472 '/^' . preg_quote($_SERVER['DOCUMENT_ROOT'], '/') . '/',
476 $dir = dirname('/' . $dir);
488 $dir = preg_replace('!lib/plugins/.*$!', '', $dir);
494 if (!empty($conf['baseurl'])) return rtrim($conf['baseurl'], '/') . $dir;
500 && preg_match('/' . $conf['trustedproxy'] . '/', $_SERVER['REMOTE_ADDR'])
506 $parsed_host = parse_url('http://' . $cur_host);
510 $parsed_host = parse_url('http://' . $_SERVER['SERVER_NAME']);
530 if ($port !== '') $port = ':' . $port;
532 return $proto . $host . $port . $dir;
538 * Apache leaves ,$_SERVER['HTTPS'] empty when not available, IIS sets it to 'off'.
550 && preg_match('/' . $conf['trustedproxy'] . '/', $_SERVER['REMOTE_ADDR'])
573 * print a nice message even if no styles are loaded yet.
583 <body style="font-family: Arial, sans-serif">
584 <div style="width:60%; margin: auto; background-color: #fcc;
586 <h1 style="font-size: 120%">DokuWiki Setup Error</h1>
593 throw new RuntimeException('nice_die: ' . $msg);
604 * @author Andreas Gohr <andi@splitbrain.org>
606 * @link http://php.net/manual/en/function.realpath.php#75992
624 if (preg_match('!^([a-zA-z]:)(.*)!', $path, $match)) {
625 $root = $match[1] . '/';
627 } elseif (preg_match('!^(\\\\\\\\[^\\\\/]+\\\\[^\\\\/]+[\\\\/])(.*)!', $path, $match)) {
637 $path = $base . '/' . $path;
649 if ($p === '' || $p === '.') continue;
650 if ($p === '..') {
656 $finalpath = $root . implode('/', $newpath);