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.
11 // You should set the $ServerAddress as below, and comment out
13 //$ServerAddress = "http://wcsb.org:8080/~swain/php/wiki/";
15 if (preg_match("#(.*?)([^/]*$)#", $REQUEST_URI, $matches)) {
16 $ServerAddress = "http://$SERVER_NAME:$SERVER_PORT" . $matches[1];
18 $ServerAddress = "http://$SERVER_NAME:$SERVER_PORT$REQUEST_URI";
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";
27 // you shouldn't have to edit anyting below this line
29 $ScriptUrl = $ServerAddress . $ScriptName;
30 $LogoImage = "<img src='${ServerAddress}$logo' border='0'>";
31 $LogoImage = "<a href='$ScriptUrl'>$LogoImage</a>";
33 $FieldSeparator = "\263";
35 // Apache won't show REMOTE_HOST unless the admin configured it
36 // properly. We'll be nice and see if it's there.
38 ($remoteuser = $REMOTE_ADDR) : ($remoteuser = $REMOTE_HOST);
41 // number of user-defined external links, i.e. "[1]"
42 define("NUM_LINKS", 4);
44 // try this many times if the dbm is unavailable
45 define("MAX_DBM_ATTEMPTS", 20);
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);