]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - wiki_config.php3
This commit was generated by cvs2svn to compensate for changes in r2,
[SourceForge/phpwiki.git] / wiki_config.php3
1 <?
2    /*
3       Constants and settings. Edit the values below for
4       your site. You need two image files, a banner and 
5       a signature. The dbm file MUST be writable by the
6       web server or this won't work. If you configure your
7       server to allow index.php3 as an index file, you 
8       can just give the URL without the script name.
9    */
10
11    // You should set the $ServerAddress as below, and comment out
12    // the if/else below.
13    //$ServerAddress = "http://wcsb.org:8080/~swain/php/wiki/";
14
15    if (preg_match("#(.*?)([^/]*$)#", $REQUEST_URI, $matches)) {
16       $ServerAddress = "http://$SERVER_NAME:$SERVER_PORT" . $matches[1];
17    } else {
18       $ServerAddress = "http://$SERVER_NAME:$SERVER_PORT$REQUEST_URI";
19    }
20
21    $ScriptName = "index.php3";
22    $WikiDataBase = "/tmp/wikidb"; // must be server-writable!
23    $ArchiveDataBase = "/tmp/wikiarchive"; // see above!
24    $SignatureImg = "$ServerAddress/signature.png";
25    $logo = "wikibase.png";
26
27    // you shouldn't have to edit anyting below this line
28
29    $ScriptUrl = $ServerAddress . $ScriptName;
30    $LogoImage = "<img src='${ServerAddress}$logo' border='0'>";
31    $LogoImage = "<a href='$ScriptUrl'>$LogoImage</a>";
32
33    $FieldSeparator = "\263";
34
35    // Apache won't show REMOTE_HOST unless the admin configured it
36    // properly. We'll be nice and see if it's there.
37    empty($REMOTE_HOST) ?
38       ($remoteuser = $REMOTE_ADDR) : ($remoteuser = $REMOTE_HOST);
39
40
41    // number of user-defined external links, i.e. "[1]"
42    define("NUM_LINKS", 4);
43
44    // try this many times if the dbm is unavailable
45    define("MAX_DBM_ATTEMPTS", 20);
46
47    // constants used for HTML output. List tags like UL and 
48    // OL have a depth of one, PRE has a depth of 0.
49    define("ZERO_DEPTH", 0);
50    define("SINGLE_DEPTH", 1);
51
52
53 ?>