File: wiki

package info (click to toggle)
phpwiki 1.3.12p3-5etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 16,956 kB
  • ctags: 21,608
  • sloc: php: 82,335; xml: 3,840; sh: 1,522; sql: 1,198; perl: 625; makefile: 562; awk: 28
file content (37 lines) | stat: -rwxr-xr-x 1,031 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php // -*-php-*-
/* 
PrettyWiki startup script.
Sample to override the default wiki (Theme, Language, DB, ...).
Also For Wiki farms.
Simplifies USE_PATH_INFO paths:
  "/<home>/wiki/HomePage" instead of "/<home>/wiki/index.php/HomePage"
The simpliest version is 
   <?php include "index.php"; include "lib/main.php"; ?>

Note: This needs a webserver handler to PHP like this on Apache:

<Files "wiki">
  SetHandler application/x-httpd-php
  <defined APACHE2>
    AcceptPathInfo on
  </defined>
</Files> 
*/
define('VIRTUAL_PATH', $_SERVER['SCRIPT_NAME']);

// Override the default configuration for CONSTANTS before index.php
$LANG='de'; $LC_ALL='de_DE';
define('THEME', 'default');
define('WIKI_NAME', "WikiDemo:$LANG:" . THEME);

// Load the default configuration.
include "index.php";

// Override the default configuration for VARIABLES after index.php:
// E.g. Use another DB:
//$DBParams['dbtype'] = 'SQL';
//$DBParams['dsn'] = 'mysql://<user>:<pass>@localhost/<username>_wiki';

// Start the wiki
include "lib/main.php";
?>