]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - wiki
wiki: sample index.php override for simplier installation and
[SourceForge/phpwiki.git] / wiki
1 <?php // -*-php-*-
2 // Sample to override the default wiki (theme, language, db, ...)
3 // Also simplifies USE_PATH_INFO paths:
4 //  "/<my>/wiki/HomePage" instead of "/<mywiki>/index.php/HomePage"
5 // The simpliest version is 
6 //   include "index.php"; include "lib/main.php";
7
8 $LANG='de_DE';
9 define('THEME', 'Portland');
10
11 // CONSTANTS as default wiki overrides before index.php
12 //define('WIKI_NAME', "WikiDemo:$LANG:" . THEME);
13
14 // Load the default configuration.
15 include "index.php";
16
17 // VARIABLES as default wiki overrides after index.php:
18 putenv("LC_TIME=$LANG");
19 // Try another DB
20 $DBParams['dbtype'] = 'SQL';
21 $DBParams['dsn'] = 'mysql://<user>:<pass>@localhost/<username>_wiki';
22
23 // Start the wiki.
24 include "lib/main.php";
25 ?>