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/');
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/');
18 $config_cascade = 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'),
25 'default' => array(DOKU_CONF
.'acronyms.conf'),
26 'local' => array(DOKU_CONF
.'acronyms.local.conf'),
29 'default' => array(DOKU_CONF
.'entities.conf'),
30 'local' => array(DOKU_CONF
.'entities.local.conf'),
33 'default' => array(DOKU_CONF
.'interwiki.conf'),
34 'local' => array(DOKU_CONF
.'interwiki.local.conf'),
37 'default' => array(DOKU_CONF
.'license.php'),
38 'local' => array(DOKU_CONF
.'license.local.php'),
41 'default' => array(DOKU_CONF
.'mediameta.php'),
42 'local' => array(DOKU_CONF
.'mediameta.local.php'),
45 'default' => array(DOKU_CONF
.'mime.conf'),
46 'local' => array(DOKU_CONF
.'mime.local.conf'),
49 'default' => array(DOKU_CONF
.'scheme.conf'),
50 'local' => array(DOKU_CONF
.'scheme.local.conf'),
53 'default' => array(DOKU_CONF
.'smileys.conf'),
54 'local' => array(DOKU_CONF
.'smileys.local.conf'),
57 'default' => array(DOKU_CONF
.'wordblock.conf'),
58 'local' => array(DOKU_CONF
.'wordblock.local.conf'),
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'),
70 DOKU_CONF
.'plugins.required.php',
71 DOKU_CONF
.'plugins.protected.php',
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'