version=pmwiki-2.2.4 ordered=1 urlencoded=1 agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729) author=DaveG charset=ISO-8859-1 csum=Added not on character encoding. ctime=1181405966 host=173.71.104.159 name=PmWiki.SampleConfigFile rev=4 targets=Cookbook.ISO8859MakePageNamePatterns text=Sample config.php file from PmWiki 2.2.0%0a%0a'' '''NOTE: ''' The encoding type used when [@config.php@] is saved has an effect if you will be converting between character encodings on your wiki. Refer to [[Cookbook/ISO8859MakePageNamePatterns#page-encoding | page encoding]] for more details. If you are not using international characters then you do not need to be concerned about this.''%0a%0a[@%0a%3c?php if (!defined('PmWiki')) exit();%0a## This is a sample config.php file. To use this file, copy it to%0a## local/config.php, then edit it for whatever customizations you want.%0a## Also, be sure to take a look at http://www.pmichaud.com/wiki/Cookbook%0a## for more details on the types of customizations that can be added%0a## to PmWiki. %0a%0a## $WikiTitle is the name that appears in the browser's title bar.%0a$WikiTitle = 'PmWiki';%0a%0a## $ScriptUrl is your preferred URL for accessing wiki pages%0a## $PubDirUrl is the URL for the pub directory.%0a# $ScriptUrl = 'http://www.mydomain.com/path/to/pmwiki.php';%0a# $PubDirUrl = 'http://www.mydomain.com/path/to/pub';%0a%0a## If you want to use URLs of the form .../pmwiki.php/Group/PageName%0a## instead of .../pmwiki.php?p=Group.PageName, try setting%0a## $EnablePathInfo below. Note that this doesn't work in all environments,%0a## it depends on your webserver and PHP configuration. You might also %0a## want to check http://www.pmwiki.org/wiki/Cookbook/CleanUrls more%0a## details about this setting and other ways to create nicer-looking urls.%0a# $EnablePathInfo = 1;%0a%0a## $PageLogoUrl is the URL for a logo image -- you can change this%0a## to your own logo if you wish.%0a# $PageLogoUrl = "$PubDirUrl/skins/pmwiki/pmwiki-32.gif";%0a%0a## If you want to have a custom skin, then set $Skin to the name%0a## of the directory (in pub/skins/) that contains your skin files.%0a## See PmWiki.Skins and Cookbook.Skins.%0a# $Skin = 'pmwiki';%0a%0a## You'll probably want to set an administrative password that you%0a## can use to get into password-protected pages. Also, by default %0a## the "attr" passwords for the PmWiki and Main groups are locked, so%0a## an admin password is a good way to unlock those. See PmWiki.Passwords%0a## and PmWiki.PasswordsAdmin.%0a# $DefaultPasswords['admin'] = crypt('secret');%0a%0a## If you're running a publicly available site and allow anyone to%0a## edit without requiring a password, you probably want to put some%0a## blocklists in place to avoid wikispam. See PmWiki.Blocklist.%0a# $EnableBlocklist = 1; # enable manual blocklists%0a# $EnableBlocklist = 10; # enable automatic blocklists%0a%0a## PmWiki comes with graphical user interface buttons for editing;%0a## to enable these buttons, set $EnableGUIButtons to 1. %0a# $EnableGUIButtons = 1;%0a%0a## To enable markup syntax from the Creole common wiki markup language%0a## (http://www.wikicreole.org/), include it here:%0a# include_once('scripts/creole.php');%0a%0a## Some sites may want leading spaces on markup lines to indicate%0a## "preformatted text blocks", set $EnableWSPre=1 if you want to do%0a## this. Setting it to a higher number increases the number of%0a## space characters required on a line to count as "preformatted text".%0a# $EnableWSPre = 0; # PmWiki 2.2.0 default (disabled)%0a# $EnableWSPre = 1; # lines beginning with space are preformatted%0a# $EnableWSPre = 4; # lines with 4 spaces are preformatted%0a%0a## If you want uploads enabled on your system, set $EnableUpload=1.%0a## You'll also need to set a default upload password, or else set%0a## passwords on individual groups and pages. For more information%0a## see PmWiki.UploadsAdmin.%0a# $EnableUpload = 1; %0a# $DefaultPasswords['upload'] = crypt('secret');%0a%0a## Setting $EnableDiag turns on the ?action=diag and ?action=phpinfo%0a## actions, which often helps others to remotely troubleshoot %0a## various configuration and execution problems.%0a# $EnableDiag = 1; # enable remote diagnostics%0a%0a## By default, PmWiki doesn't allow browsers to cache pages. Setting%0a## $EnableIMSCaching=1; will re-enable browser caches in a somewhat%0a## smart manner. Note that you may want to have caching disabled while%0a## adjusting configuration files or layout templates.%0a# $EnableIMSCaching = 1; # allow browser caching%0a%0a## Set $SpaceWikiWords if you want WikiWords to automatically %0a## have spaces before each sequence of capital letters.%0a# $SpaceWikiWords = 1; # turn on WikiWord spacing%0a%0a## Set $EnableWikiWords if you want to allow WikiWord links.%0a## For more options with WikiWords, see scripts/wikiwords.php .%0a# $EnableWikiWords = 1; # enable WikiWord links%0a%0a## $DiffKeepDays specifies the minimum number of days to keep a page's%0a## revision history. The default is 3650 (approximately 10 years).%0a# $DiffKeepDays=30; # keep page history at least 30 days%0a%0a## By default, viewers are prevented from seeing the existence%0a## of read-protected pages in search results and page listings,%0a## but this can be slow as PmWiki has to check the permissions%0a## of each page. Setting $EnablePageListProtect to zero will%0a## speed things up considerably, but it will also mean that%0a## viewers may learn of the existence of read-protected pages.%0a## (It does not enable them to access the contents of the%0a## pages.)%0a# $EnablePageListProtect = 0;%0a%0a## The refcount.php script enables ?action=refcount, which helps to%0a## find missing and orphaned pages. See PmWiki.RefCount.%0a# if ($action == 'refcount') include_once('scripts/refcount.php');%0a%0a## The feeds.php script enables ?action=rss, ?action=atom, ?action=rdf,%0a## and ?action=dc, for generation of syndication feeds in various formats.%0a# if ($action == 'rss') include_once('scripts/feeds.php'); # RSS 2.0%0a# if ($action == 'atom') include_once('scripts/feeds.php'); # Atom 1.0%0a# if ($action == 'dc') include_once('scripts/feeds.php'); # Dublin Core%0a# if ($action == 'rdf') include_once('scripts/feeds.php'); # RSS 1.0%0a%0a## In the 2.2.0-beta series, {$var} page variables are absolute by%0a## default, but a future version will make them relative. This setting%0a## sets them out as relative to begin with. (If you're starting a new%0a## site, it's probably best to leave this setting alone.)%0a$EnableRelativePageVars = 1;%0a%0a## By default, pages in the Category group are manually created.%0a## Uncomment the following line to have blank category pages%0a## automatically created whenever a link to a non-existent%0a## category page is saved. (The page is created only if%0a## the author has edit permissions to the Category group.)%0a# $AutoCreate['/^Category\\./'] = array('ctime' => $Now);%0a%0a## PmWiki allows a great deal of flexibility for creating custom markup.%0a## To add support for '*bold*' and '~italic~' markup (the single quotes%0a## are part of the markup), uncomment the following lines. %0a## (See PmWiki.CustomMarkup and the Cookbook for details and examples.)%0a# Markup("'~", "inline", "/'~(.*?)~'/", "%3ci>$1%3c/i>"); # '~italic~'%0a# Markup("'*", "inline", "/'\\*(.*?)\\*'/", "%3cb>$1%3c/b>"); # '*bold*'%0a%0a## If you want to have to approve links to external sites before they%0a## are turned into links, uncomment the line below. See PmWiki.UrlApprovals.%0a## Also, setting $UnapprovedLinkCountMax limits the number of unapproved%0a## links that are allowed in a page (useful to control wikispam).%0a# include_once('scripts/urlapprove.php');%0a# $UnapprovedLinkCountMax = 10;%0a%0a## The following lines make additional editing buttons appear in the%0a## edit page for subheadings, lists, tables, etc.%0a# $GUIButtons['h2'] = array(400, '\\n!! ', '\\n', '$[Heading]',%0a# '$GUIButtonDirUrlFmt/h2.gif"$[Heading]"');%0a# $GUIButtons['h3'] = array(402, '\\n!!! ', '\\n', '$[Subheading]',%0a# '$GUIButtonDirUrlFmt/h3.gif"$[Subheading]"');%0a# $GUIButtons['indent'] = array(500, '\\n->', '\\n', '$[Indented text]',%0a# '$GUIButtonDirUrlFmt/indent.gif"$[Indented text]"');%0a# $GUIButtons['outdent'] = array(510, '\\n-%3c', '\\n', '$[Hanging indent]',%0a# '$GUIButtonDirUrlFmt/outdent.gif"$[Hanging indent]"');%0a# $GUIButtons['ol'] = array(520, '\\n# ', '\\n', '$[Ordered list]',%0a# '$GUIButtonDirUrlFmt/ol.gif"$[Ordered (numbered) list]"');%0a# $GUIButtons['ul'] = array(530, '\\n* ', '\\n', '$[Unordered list]',%0a# '$GUIButtonDirUrlFmt/ul.gif"$[Unordered (bullet) list]"');%0a# $GUIButtons['hr'] = array(540, '\\n----\\n', '', '',%0a# '$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"');%0a# $GUIButtons['table'] = array(600,%0a# '||border=1 width=80%25\\n||!Hdr ||!Hdr ||!Hdr ||\\n|| || || ||\\n|| || || ||\\n', '', '', %0a# '$GUIButtonDirUrlFmt/table.gif"$[Table]"');%0a@] time=1247964641