check_logfiles: 3.7.5.1
[omd.git] / packages / dokuwiki / preload.php
blobd9c5d0a1d2d16e68390a973c6ad30a1361cfa28e
1 <?php
3 if(substr($_SERVER["SCRIPT_FILENAME"], 0, 4) == '/omd') {
4 $site_parts = array_slice(explode('/' ,dirname($_SERVER["SCRIPT_FILENAME"])), 0, 4);
5 $site = $site_parts[count($site_parts)-1];
6 define('DOKU_CONF', '/omd/sites/'.$site.'/etc/dokuwiki/');
7 define('DOKU_PLUGIN', '/omd/sites/'.$site.'/var/dokuwiki/lib/plugins/');
8 unset($site_parts);
9 unset($site);
10 } else {
11 $site=getenv('OMD_SITE');
12 define('DOKU_CONF', '/omd/sites/'.$site.'/etc/dokuwiki/');
13 define('DOKU_INC', '/omd/sites/'.$site.'/var/dokuwiki/');
14 define('DOKU_PLUGIN', '/omd/sites/'.$site.'/var/dokuwiki/lib/plugins/');
15 unset($site);
18 $config_cascade = array(
19 'main' => array(
20 'default' => array(DOKU_CONF.'dokuwiki.php'),
21 'local' => file_exists(DOKU_CONF.'cookie_auth.php') ? array(DOKU_CONF.'local.php', DOKU_CONF.'cookie_auth.php') : array(DOKU_CONF.'local.php'),
22 'protected' => array(DOKU_CONF.'local.protected.php'),
24 'acronyms' => array(
25 'default' => array(DOKU_CONF.'acronyms.conf'),
26 'local' => array(DOKU_CONF.'acronyms.local.conf'),
28 'entities' => array(
29 'default' => array(DOKU_CONF.'entities.conf'),
30 'local' => array(DOKU_CONF.'entities.local.conf'),
32 'interwiki' => array(
33 'default' => array(DOKU_CONF.'interwiki.conf'),
34 'local' => array(DOKU_CONF.'interwiki.local.conf'),
36 'license' => array(
37 'default' => array(DOKU_CONF.'license.php'),
38 'local' => array(DOKU_CONF.'license.local.php'),
40 'mediameta' => array(
41 'default' => array(DOKU_CONF.'mediameta.php'),
42 'local' => array(DOKU_CONF.'mediameta.local.php'),
44 'mime' => array(
45 'default' => array(DOKU_CONF.'mime.conf'),
46 'local' => array(DOKU_CONF.'mime.local.conf'),
48 'scheme' => array(
49 'default' => array(DOKU_CONF.'scheme.conf'),
50 'local' => array(DOKU_CONF.'scheme.local.conf'),
52 'smileys' => array(
53 'default' => array(DOKU_CONF.'smileys.conf'),
54 'local' => array(DOKU_CONF.'smileys.local.conf'),
56 'wordblock' => array(
57 'default' => array(DOKU_CONF.'wordblock.conf'),
58 'local' => array(DOKU_CONF.'wordblock.local.conf'),
60 'acl' => array(
61 'default' => DOKU_CONF.'acl.auth.php',
63 'plainauth.users' => array(
64 'default' => DOKU_CONF.'users.auth.php',
66 'plugins' => array( // needed since Angua
67 'default' => array(DOKU_CONF.'plugins.php'),
68 'local' => array(DOKU_CONF.'plugins.local.php'),
69 'protected' => array(
70 DOKU_CONF.'plugins.required.php',
71 DOKU_CONF.'plugins.protected.php',
74 'userstyle' => array(
75 'screen' => DOKU_CONF.'userstyle.css',
76 'print' => DOKU_CONF.'userprint.css',
77 'feed' => DOKU_CONF.'userfeed.css',
78 'all' => DOKU_CONF.'userall.css',
80 'userscript' => array(
81 'default' => DOKU_CONF.'userscript.js'