'dba', //'dbtype' => 'dbm', //'dbtype' => 'mysql', //'dbtype' => 'pgsql', //'dbtype' => 'msql', //'dbtype' => 'file', // Used by all DB types: 'database' => 'wiki', 'prefix' => 'phpwiki_', // prefix for filenames or table names // Used by 'dbm', 'dba', 'file' 'directory' => "/tmp", // 'dbm' and 'dba create files named "$directory/${database}{$prefix}*". // 'file' creates files named "$directory/${database}/{$prefix}*/*". // The sql types use tables named "{$prefix}*" // Used by 'dbm', 'dba' 'timeout' => 20, // Used by *sql as neccesary to log in to server: 'server' => 'localhost', 'port' => '', 'socket' => '', 'user' => 'guest', 'password' => '' ); ///////////////////////////////////////////////////////////////////// // // Part Three: // Page appearance and layout // ///////////////////////////////////////////////////////////////////// // Select your language/locale - default language "C": English // other languages available: Dutch "nl", Spanish "es", German "de", // Swedish "sv", and Italian, "it". // // Note that on some systems, apprently using these short forms for // the locale won't work. On my home system 'LANG=de' won't result // in german pages. Somehow the system must recognize the locale // as a valid locale before gettext() will work, i.e., use 'de_DE', // 'nl_NL'. $LANG='C'; //$LANG='nl_NL'; // Setting the LANG environment variable (accomplished above) may or // may not be sufficient to cause PhpWiki to produce dates in your // native language. (It depends on the configuration of the operating // system on your http server.) The problem is that, e.g. 'de' is // often not a valid locale. // // A standard locale name is typically of the form // language[_territory][.codeset][@modifier], where language is // an ISO 639 language code, territory is an ISO 3166 country code, // and codeset is a character set or encoding identifier like // ISO-8859-1 or UTF-8. // // You can tailor the locale used for time and date formatting by setting // the LC_TIME environment variable. You'll have to experiment to find // the correct setting: //putenv('LC_TIME=de_DE'); // If you specify a relative URL for the CSS and images, // the are interpreted relative to DATA_PATH (see below). // (The default value of DATA_PATH is the directory in which // index.php (this file) resides.) // CSS location define("CSS_URL", "phpwiki.css"); // logo image (path relative to index.php) $logo = "images/wikibase.png"; // Signature image which is shown after saving an edited page // If this is left blank (or unset), the signature will be omitted. //$SignatureImg = "images/signature.png"; // Date & time formats used to display modification times, etc. // Formats are given as format strings to PHP strftime() function // See http://www.php.net/manual/en/function.strftime.php for details. $datetimeformat = "%B %e, %Y"; // may contain time of day $dateformat = "%B %e, %Y"; // must not contain time // this defines how many page names to list when displaying // the MostPopular pages; the default is to show the 20 most popular pages define("MOST_POPULAR_LIST_LENGTH", 20); // this defines how many page names to list when displaying related pages define("NUM_RELATED_PAGES", 5); // Template files (filenames are relative to script position) // However, if a LANG is set, they we be searched for in a locale // specific location first. $templates = array("BROWSE" => "templates/browse.html", "EDITPAGE" => "templates/editpage.html", "MESSAGE" => "templates/message.html"); /* WIKI_PGSRC -- specifies the source for the initial page contents * of the Wiki. The setting of WIKI_PGSRC only has effect when * the wiki is accessed for the first time (or after clearing the * database.) WIKI_PGSRC can either name a directory or a zip file. * In either case WIKI_PGSRC is scanned for files --- one file per page. */ define('WIKI_PGSRC', "pgsrc"); // Default (old) behavior. //define('WIKI_PGSRC', 'wiki.zip'); // New style. // DEFAULT_WIKI_PGSRC is only used when the language is *not* // the default (English) and when reading from a directory: // in that case some English pages are inserted into the wiki as well // DEFAULT_WIKI_PGSRC defines where the English pages reside // FIXME: is this really needed? Can't we just copy // these pages into the localized pgsrc? define('DEFAULT_WIKI_PGSRC', "pgsrc"); // These are the pages which will get loaded from DEFAULT_WIKI_PGSRC. $GenericPages = array("ReleaseNotes", "SteveWainstead", "TestPage"); ///////////////////////////////////////////////////////////////////// // // Part four: // Mark-up options. // ///////////////////////////////////////////////////////////////////// // allowed protocols for links - be careful not to allow "javascript:" // URL of these types will be automatically linked. // within a named link [name|uri] one more protocol is defined: phpwiki $AllowedProtocols = "http|https|mailto|ftp|news|gopher"; // URLs ending with the following extension should be inlined as images $InlineImages = "png|jpg|gif"; // Perl regexp for WikiNames ("bumpy words") // (?