]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - wiki
Tested with CGI version.
[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 //  "/<home>/wiki/HomePage" instead of "/<home>/wiki/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 // Several VARIABLES or CONSTANTS as default wiki overrides before index.php
15 define('WIKI_NAME', "WikiDemo:$LANG:" . THEME);
16 $LANG='de'; $LC_ALL='de_DE';
17 // define('THEME', 'Portland');
18
19 // Load the default configuration.
20 include "index.php";
21
22 // More VARIABLES as default wiki overrides after index.php:
23 // Try another DB than the version in index.php like this:
24 //$DBParams['dbtype'] = 'SQL';
25 //$DBParams['dsn'] = 'mysql://<user>:<pass>@localhost/<username>_wiki';
26
27 // Start the wiki
28 include "lib/main.php";
29 ?>