3 PrettyWiki startup script.
4 Sample to override the default wiki (Theme, Language, DB, ...).
6 Simplifies USE_PATH_INFO paths:
7 "/<home>/wiki/HomePage" instead of "/<home>/wiki/index.php/HomePage"
8 The simpliest version is
9 <?php include "index.php"; include "lib/main.php"; ?>
11 Note: This needs a webserver handler to PHP like this on Apache:
14 SetHandler application/x-httpd-php
20 define('VIRTUAL_PATH', $_SERVER['SCRIPT_NAME']);
22 // Override the default configuration for CONSTANTS before index.php
23 $LANG='de'; $LC_ALL='de_DE';
24 define('THEME', 'default');
25 define('WIKI_NAME', "WikiDemo:$LANG:" . THEME);
27 // Load the default configuration.
30 // Override the default configuration for VARIABLES after index.php:
31 // E.g. Use another DB:
32 //$DBParams['dbtype'] = 'SQL';
33 //$DBParams['dsn'] = 'mysql://<user>:<pass>@localhost/<username>_wiki';
36 include "lib/main.php";