]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - wiki
First (unfinished) UserAuth version, storing prefs in page meta-data.
[SourceForge/phpwiki.git] / wiki
1 <?php // -*-php-*-
2 // Sample to override the default wiki (Theme, Language, DB, ...)
3 //
4 // Also simplifies USE_PATH_INFO paths:
5 //  "/<my>/wiki/HomePage" instead of "/<mywiki>/index.php/HomePage"
6 // The simpliest version is 
7 //   <?php include "index.php"; include "lib/main.php"; ?>
8 //
9 // Note: This needs a webserver handler to PHP like this on Apache:
10 // <Files "wiki">
11 //  SetHandler application/x-httpd-php
12 // </Files> 
13
14 $LANG='de_DE';
15 define('THEME', 'Portland');
16
17 // CONSTANTS as default wiki overrides before index.php
18 define('WIKI_NAME', "WikiDemo:$LANG:" . THEME);
19
20 // Load the default configuration.
21 include "index.php";
22
23 // VARIABLES as default wiki overrides after index.php:
24 putenv("LC_TIME=$LANG");
25
26 // Try another DB than the version in index.php like this:
27 //$DBParams['dbtype'] = 'SQL';
28 //$DBParams['dsn'] = 'mysql://<user>:<pass>@localhost/<username>_wiki';
29
30 // Start the wiki:
31 include "lib/main.php";
32 ?>