'SQL', 'dbtype' => 'dba', // For SQL based backends, specify the database as a DSN // The most general form of a DSN looks like: // // phptype(dbsyntax)://username:password@protocol+hostspec/database // // For a MySQL database, the following should work: // // mysql://user:password@host/databasename // // FIXME: My version Pear::DB seems to be broken enough that there is // no way to connect to a mysql server over a socket right now. //'dsn' => 'mysql://guest@:/var/lib/mysql/mysql.sock/test', //'dsn' => 'mysql://guest@localhost/test', 'dsn' => 'pgsql://localhost/test', // Used by all DB types: // prefix for filenames or table names /* * currently you MUST EDIT THE SQL file too (in the schemas/ directory * because we aren't doing on the fly sql generation during the * installation. */ //'prefix' => 'phpwiki_', // Used by 'dba' 'directory' => "/tmp", 'dba_handler' => 'gdbm', // Either of 'gdbm' or 'db2' work great for me. //'dba_handler' => 'db2', //'dba_handler' => 'db3', // doesn't work at all for me.... 'timeout' => 20, //'timeout' => 5 ); ///////////////////////////////////////////////////////////////////// // // The next section controls how many old revisions of each page // are kept in the database. // // There are two basic classes of revisions: major and minor. // Which class a revision belongs in is determined by whether the // author checked the "this is a minor revision" checkbox when they // saved the page. // // There is, additionally, a third class of revisions: author revisions. // The most recent non-mergable revision from each distinct author is // and author revision. // // The expiry parameters for each of those three classes of revisions // can be adjusted seperately. For each class there are five // parameters (usually, only two or three of the five are actually set) // which control how long those revisions are kept in the database. // // max_keep: If set, this specifies an absolute maximum for the number // of archived revisions of that class. This is meant to be // used as a safety cap when a non-zero min_age is specified. // It should be set relatively high, and it's purpose is to // prevent malicious or accidental database overflow due // to someone causing an unreasonable number of edits in a short // period of time. // // min_age: Revisions younger than this (based upon the supplanted date) // will be kept unless max_keep is exceeded. The age should // be specified in days. It should be a non-negative, // real number, // // min_keep: At least this many revisions will be kept. // // keep: No more than this many revisions will be kept. // // max_age: No revision older than this age will be kept. // // Supplanted date: Revisions are timestamped at the instant that they cease // being the current revision. Revision age is computed using this timestamp, // not the edit time of the page. // // Merging: When a minor revision is deleted, if the preceding revision is by // the same author, the minor revision is merged with the preceding revision // before it is deleted. Essentially: this replaces the content (and supplanted // timestamp) of the previous revision with the content after the merged minor // edit, the rest of the page metadata for the preceding version (summary, mtime, ...) // is not changed. // // Keep up to 8 major edits, but keep them no longer than a month. $ExpireParams['major'] = array('max_age' => 32, 'keep' => 8); // Keep up to 4 minor edits, but keep them no longer than a week. $ExpireParams['minor'] = array('max_age' => 7, 'keep' => 4); // Keep the latest contributions of the last 8 authors up to a year. // Additionally, (in the case of a particularly active page) try to keep the // latest contributions of all authors in the last week (even if there are // more than eight of them,) but in no case keep more than twenty unique // author revisions. $ExpireParams['author'] = array('max_age' => 365, 'keep' => 8, 'min_age' => 7, 'max_keep' => 20); ///////////////////////////////////////////////////////////////////// // // 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". // // If you set $LANG to the empty string, your systems default // language (as determined by the applicable environment variables) // will be used. // // 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 // // Note that if you use the stock phpwiki style sheet, 'phpwiki.css', // you should make sure that it's companion 'phpwiki-heavy.css' // is installed in the same directory that the base style file is. 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 // FIXME: delete // 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. //define('WIKI_PGSRC', '../../../Logs/Hamwiki/hamwiki-20010830.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") // (?