'dba', //'dbtype' => 'dbm', //'dbtype' => 'mysql', //'dbtype' => 'pgsql', //'dbtype' => 'msql', //'dbtype' => 'file', // Used by all DB types: 'database' => 'wiki', 'prefix' => '', // 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 - default language "C": English // other languages available: Dutch "nl", Spanish "es", German "de", // and Swedish "sv" $LANG = "C"; // 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 date() function // FIXME: these should have different defaults depending on locale. $datetimeformat = "F j, Y"; // may contain time of day $dateformat = "F j, 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) // (These filenames will be passed through gettext() before use.) $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") // (?