1 |
<?php |
2 |
if (!file_exists(dirname(__FILE__)."/BoWikiConfig.ini.php")) |
3 |
die("<b>You have to configure the Software first. Please read the README for Install notes in the extensions directory.</b>"); |
4 |
$bo_config=parse_ini_file(dirname(__FILE__)."/BoWikiConfig.ini.php", TRUE); |
5 |
|
6 |
foreach($bo_config["php"] as $bovar=>$boval){ |
7 |
ini_set($bovar, $boval); |
8 |
} |
9 |
|
10 |
// some variables we use |
11 |
foreach($bo_config["special"] as $bovar=>$boval){ |
12 |
if (!defined($bovar)){ |
13 |
define("$bovar", $boval); |
14 |
} |
15 |
} |
16 |
|
17 |
|
18 |
// setting includes |
19 |
foreach($bo_config["extensions"] as $bovar=>$boval){ |
20 |
if (!defined($bovar)){ |
21 |
$well_defined=include_once($boval); |
22 |
if ($well_defined){ |
23 |
define("$bovar", $boval); |
24 |
} |
25 |
} |
26 |
} |
27 |
|
28 |
// required packages. |
29 |
foreach($bo_config["req_modules"] as $bovar=>$boval){ |
30 |
if (!defined($bovar)){ |
31 |
define("$bovar", $boval); |
32 |
require_once($boval); |
33 |
} |
34 |
} |
35 |
#$wgExtraNamespaces = |
36 |
# array(150 => "Ontology" |
37 |
# ); |
38 |
|
39 |
?> |