]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - wiki
Allow bold, italics or underlined for numbers
[SourceForge/phpwiki.git] / wiki
1 <?php
2 /* 
3 PrettyWiki startup script.
4 Sample to override the default wiki (Theme, Language, DB, ...).
5 Also For Wiki farms.
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"; ?>
10
11 Note: This needs a webserver handler to PHP like this on Apache:
12
13 <Files "wiki">
14   SetHandler application/x-httpd-php
15   <defined APACHE2>
16     AcceptPathInfo on
17   </defined>
18 </Files> 
19 */
20 define('VIRTUAL_PATH', $_SERVER['SCRIPT_NAME']);
21
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);
26
27 // Load the default configuration.
28 include "index.php";
29
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';
34
35 // Start the wiki
36 include "lib/main.php";