/[gfo]/bowiki/bodoconfig.php
ViewVC logotype

Contents of /bowiki/bodoconfig.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri May 11 14:34:02 2007 UTC (17 years, 6 months ago) by punkrock
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +10 -5 lines
added the feature to change the tag for the Ontological-Tag Name

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 ?>

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26