xref: /dokuwiki/inc/config_cascade.php (revision 24870174d2ee45460ba6bcfe5f5a0ae94715efd7)
1e6a6dbfeSAndreas Gohr<?php
2e6a6dbfeSAndreas Gohr/**
3e6a6dbfeSAndreas Gohr * The default config cascade
4e6a6dbfeSAndreas Gohr *
5e6a6dbfeSAndreas Gohr * This array configures the default locations of various files in the
6e6a6dbfeSAndreas Gohr * DokuWiki directory hierarchy. It can be overriden in inc/preload.php
7e6a6dbfeSAndreas Gohr */
8cca94fbcSRoland Hager$config_cascade = array_merge(
9*24870174SAndreas Gohr    [
10*24870174SAndreas Gohr        'main' => [
11*24870174SAndreas Gohr            'default' => [DOKU_CONF . 'dokuwiki.php'],
12*24870174SAndreas Gohr            'local' => [DOKU_CONF . 'local.php'],
13*24870174SAndreas Gohr            'protected' => [DOKU_CONF . 'local.protected.php']
14*24870174SAndreas Gohr        ],
15*24870174SAndreas Gohr        'acronyms' => [
16*24870174SAndreas Gohr            'default' => [DOKU_CONF . 'acronyms.conf'],
17*24870174SAndreas Gohr            'local' => [DOKU_CONF . 'acronyms.local.conf']
18*24870174SAndreas Gohr        ],
19*24870174SAndreas Gohr        'entities' => [
20*24870174SAndreas Gohr            'default' => [DOKU_CONF . 'entities.conf'],
21*24870174SAndreas Gohr            'local' => [DOKU_CONF . 'entities.local.conf']
22*24870174SAndreas Gohr        ],
23*24870174SAndreas Gohr        'interwiki' => [
24*24870174SAndreas Gohr            'default' => [DOKU_CONF . 'interwiki.conf'],
25*24870174SAndreas Gohr            'local' => [DOKU_CONF . 'interwiki.local.conf']
26*24870174SAndreas Gohr        ],
27*24870174SAndreas Gohr        'license' => [
28*24870174SAndreas Gohr            'default' => [DOKU_CONF . 'license.php'],
29*24870174SAndreas Gohr            'local' => [DOKU_CONF . 'license.local.php']
30*24870174SAndreas Gohr        ],
31*24870174SAndreas Gohr        'manifest' => [
32*24870174SAndreas Gohr            'default' => [DOKU_CONF . 'manifest.json'],
33*24870174SAndreas Gohr            'local' => [DOKU_CONF . 'manifest.local.json']
34*24870174SAndreas Gohr        ],
35*24870174SAndreas Gohr        'mediameta' => [
36*24870174SAndreas Gohr            'default' => [DOKU_CONF . 'mediameta.php'],
37*24870174SAndreas Gohr            'local' => [DOKU_CONF . 'mediameta.local.php']
38*24870174SAndreas Gohr        ],
39*24870174SAndreas Gohr        'mime' => [
40*24870174SAndreas Gohr            'default' => [DOKU_CONF . 'mime.conf'],
41*24870174SAndreas Gohr            'local' => [DOKU_CONF . 'mime.local.conf']
42*24870174SAndreas Gohr        ],
43*24870174SAndreas Gohr        'scheme' => [
44*24870174SAndreas Gohr            'default' => [DOKU_CONF . 'scheme.conf'],
45*24870174SAndreas Gohr            'local' => [DOKU_CONF . 'scheme.local.conf']
46*24870174SAndreas Gohr        ],
47*24870174SAndreas Gohr        'smileys' => [
48*24870174SAndreas Gohr            'default' => [DOKU_CONF . 'smileys.conf'],
49*24870174SAndreas Gohr            'local' => [DOKU_CONF . 'smileys.local.conf']
50*24870174SAndreas Gohr        ],
51*24870174SAndreas Gohr        'wordblock' => [
52*24870174SAndreas Gohr            'default' => [DOKU_CONF . 'wordblock.conf'],
53*24870174SAndreas Gohr            'local' => [DOKU_CONF . 'wordblock.local.conf']
54*24870174SAndreas Gohr        ],
55*24870174SAndreas Gohr        'userstyle' => [
56*24870174SAndreas Gohr            'screen' => [DOKU_CONF . 'userstyle.css', DOKU_CONF . 'userstyle.less'],
57*24870174SAndreas Gohr            'print' => [DOKU_CONF . 'userprint.css', DOKU_CONF . 'userprint.less'],
58*24870174SAndreas Gohr            'feed' => [DOKU_CONF . 'userfeed.css', DOKU_CONF . 'userfeed.less'],
59*24870174SAndreas Gohr            'all' => [DOKU_CONF . 'userall.css', DOKU_CONF . 'userall.less']
60*24870174SAndreas Gohr        ],
61*24870174SAndreas Gohr        'userscript' => [
62*24870174SAndreas Gohr            'default' => [DOKU_CONF . 'userscript.js']
63*24870174SAndreas Gohr        ],
64*24870174SAndreas Gohr        'styleini' => [
65*24870174SAndreas Gohr            'default' => [DOKU_INC . 'lib/tpl/%TEMPLATE%/' . 'style.ini'],
66*24870174SAndreas Gohr            'local' => [DOKU_CONF . 'tpl/%TEMPLATE%/' . 'style.ini']
67*24870174SAndreas Gohr        ],
68*24870174SAndreas Gohr        'acl' => [
69*24870174SAndreas Gohr            'default' => DOKU_CONF . 'acl.auth.php'
70*24870174SAndreas Gohr        ],
71*24870174SAndreas Gohr        'plainauth.users' => [
72e6a6dbfeSAndreas Gohr            'default' => DOKU_CONF . 'users.auth.php',
73*24870174SAndreas Gohr            'protected' => ''
74*24870174SAndreas Gohr        ],
75*24870174SAndreas Gohr        'plugins' => [
76*24870174SAndreas Gohr            'default' => [DOKU_CONF . 'plugins.php'],
77*24870174SAndreas Gohr            'local' => [DOKU_CONF . 'plugins.local.php'],
78*24870174SAndreas Gohr            'protected' => [DOKU_CONF . 'plugins.required.php', DOKU_CONF . 'plugins.protected.php']
79*24870174SAndreas Gohr        ],
80*24870174SAndreas Gohr        'lang' => [
81*24870174SAndreas Gohr            'core' => [DOKU_CONF . 'lang/'],
82*24870174SAndreas Gohr            'plugin' => [DOKU_CONF . 'plugin_lang/'],
83*24870174SAndreas Gohr            'template' => [DOKU_CONF . 'template_lang/']
84*24870174SAndreas Gohr        ]
85*24870174SAndreas Gohr    ],
86cca94fbcSRoland Hager    $config_cascade
87e6a6dbfeSAndreas Gohr);
88e6a6dbfeSAndreas Gohr
89