Lines Matching full:if
30 // if available load a preload config file
32 if (file_exists($preload)) include($preload);
35 if (!defined('DOKU_INC')) define('DOKU_INC', fullpath(__DIR__ . '/../') . '/');
38 if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/');
41 if (!defined('DOKU_CONF')) define('DOKU_CONF', DOKU_INC . 'conf/');
44 if (!defined('DOKU_E_LEVEL') && file_exists(DOKU_CONF . 'report_e_all')) {
47 if (!defined('DOKU_E_LEVEL')) {
81 if (empty($config_cascade['main'][$config_group])) continue;
83 if (file_exists($config_file)) {
102 if (empty($config_cascade['license'][$config_group])) continue;
104 if (file_exists($config_file)) {
110 if ($conf === []) {
126 if (!defined('DOKU_REL')) define('DOKU_REL', getBaseURL(false));
127 if (!defined('DOKU_URL')) define('DOKU_URL', getBaseURL(true));
128 if (!defined('DOKU_BASE')) {
129 if ($conf['canonical']) {
137 if (!defined('NL')) define('NL', "\n");
138 if (!defined('DOKU_LF')) define('DOKU_LF', "\n");
139 if (!defined('DOKU_TAB')) define('DOKU_TAB', "\t");
142 if (!defined('DOKU_COOKIE')) {
149 if (!defined('DOKU_SCRIPT')) define('DOKU_SCRIPT', 'doku.php');
151 if (!defined('DOKU_TPL')) {
159 if (!defined('DOKU_TPLINC')) {
176 // enable gzip compression if supported
180 if (
192 if (!headers_sent() && !defined('NOSESSION')) {
193 if (!defined('DOKU_SESSION_NAME')) define('DOKU_SESSION_NAME', "DokuWiki");
194 if (!defined('DOKU_SESSION_LIFETIME')) define('DOKU_SESSION_LIFETIME', 0);
195 if (!defined('DOKU_SESSION_PATH')) {
199 if (!defined('DOKU_SESSION_DOMAIN')) define('DOKU_SESSION_DOMAIN', '');
205 if (isset($_SESSION[DOKU_COOKIE]['msg'])) {
213 if (isset($_REQUEST['purge']) && !empty($_SERVER['HTTP_REFERER'])) unset($_REQUEST['purge']);
218 if (empty($plugin_controller_class)) $plugin_controller_class = PluginController::class;
223 // disable gzip if not available
226 if ($conf['compression'] == 'bz2' && !DOKU_HAS_BZIP) {
229 if ($conf['compression'] == 'gz' && !DOKU_HAS_GZIP) {
245 if (!defined('NOSESSION')) {
277 …if (isset($_COOKIE[DOKU_SESSION_NAME]) && !preg_match('/^[-,a-zA-Z0-9]{22,256}$/', $_COOKIE[DOKU_S…
309 if (empty($conf[$c])) {
322 if ($conf['changelog_old'] == '') {
344 if (file_exists($config_file . 'en/lang.php')) {
349 if ($langCode && $langCode != 'en') {
350 if (file_exists(DOKU_INC . "inc/lang/$langCode/lang.php")) {
354 if (file_exists($config_file . "$langCode/lang.php")) {
362 * Checks the existence of certain files and creates them if missing.
371 if (!file_exists($file)) {
373 if ($fh) {
375 if ($conf['fperm']) chmod($file, $conf['fperm']);
399 if (!file_exists($p)) {
401 if (!file_exists($p)) {
407 if (!@is_writable($p)) {
412 if (@is_dir($p) && !file_exists("$p/.")) {
423 * setting the values only if needed.
437 // get system umask, fallback to 0 if none available
439 if (!$umask) $umask = 0000;
442 // and set the fperm param if it's not what we want
444 if ($auto_fmode != $conf['fmode']) $conf['fperm'] = $conf['fmode'];
447 // and set the dperm param if it's not what we want.
449 if ($auto_dmode != $conf['dmode']) $conf['dperm'] = $conf['dmode'];
472 if (!empty($conf['basedir'])) {
499 if (!$abs) return $dir;
501 …//use config if available, trim any slash from end of baseurl to avoid multiple consecutive slashe…
502 if (!empty($conf['baseurl'])) return rtrim($conf['baseurl'], '/') . $dir;
510 if (!Ip::isSsl()) {
512 if ($port == '80') {
517 if ($port == '443') {
522 if ($port !== '') $port = ':' . $port;
546 * print a nice message even if no styles are loaded yet.
565 if (defined('DOKU_UNITTEST')) {
593 if ($path[0] == '/') {
597 if (preg_match('!^([a-zA-z]:)(.*)!', $path, $match)) {
607 // if the given path wasn't absolute already, prepend the script path and retry
608 if (!$root) {
611 if ($run == 0) { // avoid endless recursion when base isn't absolute for some reason
622 if ($p === '' || $p === '.') continue;
623 if ($p === '..') {
632 if ($exists && !defined('DOKU_UNITTEST') && !file_exists($finalpath)) {