sample-config.php 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?php if (!defined('PmWiki')) exit();
  2. ## This is a sample config.php file. To use this file, copy it to
  3. ## local/config.php, then edit it for whatever customizations you want.
  4. ## Also, be sure to take a look at http://www.pmichaud.com/wiki/Cookbook
  5. ## for more details on the types of customizations that can be added
  6. ## to PmWiki.
  7. ## $WikiTitle is the name that appears in the browser's title bar.
  8. $WikiTitle = 'PmWiki';
  9. ## $ScriptUrl is your preferred URL for accessing wiki pages
  10. ## $PubDirUrl is the URL for the pub directory.
  11. # $ScriptUrl = 'http://www.mydomain.com/path/to/pmwiki.php';
  12. # $PubDirUrl = 'http://www.mydomain.com/path/to/pub';
  13. ## If you want to use URLs of the form .../pmwiki.php/Group/PageName
  14. ## instead of .../pmwiki.php?p=Group.PageName, try setting
  15. ## $EnablePathInfo below. Note that this doesn't work in all environments,
  16. ## it depends on your webserver and PHP configuration. You might also
  17. ## want to check http://www.pmwiki.org/wiki/Cookbook/CleanUrls more
  18. ## details about this setting and other ways to create nicer-looking urls.
  19. # $EnablePathInfo = 1;
  20. ## $PageLogoUrl is the URL for a logo image -- you can change this
  21. ## to your own logo if you wish.
  22. # $PageLogoUrl = "$PubDirUrl/skins/pmwiki/pmwiki-32.gif";
  23. ## If you want to have a custom skin, then set $Skin to the name
  24. ## of the directory (in pub/skins/) that contains your skin files.
  25. ## See PmWiki.Skins and Cookbook.Skins.
  26. # $Skin = 'pmwiki';
  27. ## You'll probably want to set an administrative password that you
  28. ## can use to get into password-protected pages. Also, by default
  29. ## the "attr" passwords for the PmWiki and Main groups are locked, so
  30. ## an admin password is a good way to unlock those. See PmWiki.Passwords
  31. ## and PmWiki.PasswordsAdmin.
  32. # $DefaultPasswords['admin'] = crypt('secret');
  33. ## PmWiki comes with graphical user interface buttons for editing;
  34. ## to enable these buttons, set $EnableGUIButtons to 1.
  35. # $EnableGUIButtons = 1;
  36. ## If you want uploads enabled on your system, set $EnableUpload=1.
  37. ## You'll also need to set a default upload password, or else set
  38. ## passwords on individual groups and pages. For more information
  39. ## see PmWiki.UploadsAdmin.
  40. # $EnableUpload = 1;
  41. # $DefaultPasswords['upload'] = crypt('secret');
  42. ## Setting $EnableDiag turns on the ?action=diag and ?action=phpinfo
  43. ## actions, which often helps the PmWiki authors to troubleshoot
  44. ## various configuration and execution problems.
  45. # $EnableDiag = 1; # enable remote diagnostics
  46. ## By default, PmWiki doesn't allow browsers to cache pages. Setting
  47. ## $EnableIMSCaching=1; will re-enable browser caches in a somewhat
  48. ## smart manner. Note that you may want to have caching disabled while
  49. ## adjusting configuration files or layout templates.
  50. # $EnableIMSCaching = 1; # allow browser caching
  51. ## Set $SpaceWikiWords if you want WikiWords to automatically
  52. ## have spaces before each sequence of capital letters.
  53. # $SpaceWikiWords = 1; # turn on WikiWord spacing
  54. ## Set $LinkWikiWords if you want to allow WikiWord links.
  55. # $LinkWikiWords = 1; # enable WikiWord links
  56. ## If you want only the first occurrence of a WikiWord to be converted
  57. ## to a link, set $WikiWordCountMax=1.
  58. # $WikiWordCountMax = 1; # converts only first WikiWord
  59. # $WikiWordCountMax = 0; # another way to disable WikiWords
  60. ## The $WikiWordCount array can be used to control the number of times
  61. ## a WikiWord is converted to a link. This is useful for disabling
  62. ## or limiting specific WikiWords.
  63. # $WikiWordCount['PhD'] = 0; # disables 'PhD'
  64. # $WikiWordCount['PmWiki'] = 1; # convert only first 'PmWiki'
  65. ## By default, PmWiki is configured such that only the first occurrence
  66. ## of 'PmWiki' in a page is treated as a WikiWord. If you want to
  67. ## restore 'PmWiki' to be treated like other WikiWords, uncomment the
  68. ## line below.
  69. # unset($WikiWordCount['PmWiki']);
  70. ## If you want to disable WikiWords matching a pattern, you can use
  71. ## something like the following. Note that the first argument has to
  72. ## be different for each call to Markup(). The example below disables
  73. ## WikiWord links like COM1, COM2, COM1234, etc.
  74. # Markup('COM\d+', '<wikilink', '/\\bCOM\\d+/', "Keep('$0')");
  75. ## $DiffKeepDays specifies the minimum number of days to keep a page's
  76. ## revision history. The default is 3650 (approximately 10 years).
  77. # $DiffKeepDays=30; # keep page history at least 30 days
  78. ## By default, viewers are able to see the names (but not the
  79. ## contents) of read-protected pages in search results and
  80. ## page listings. Set $EnablePageListProtect to keep read-protected
  81. ## pages from appearing in search results.
  82. # $EnablePageListProtect = 1;
  83. ## The refcount.php script enables ?action=refcount, which helps to
  84. ## find missing and orphaned pages. See PmWiki.RefCount.
  85. # if ($action == 'refcount') include_once('scripts/refcount.php');
  86. ## The feeds.php script enables ?action=rss, ?action=atom, ?action=rdf,
  87. ## and ?action=dc, for generation of syndication feeds in various formats.
  88. # if ($action == 'rss') include_once('scripts/feeds.php'); # RSS 2.0
  89. # if ($action == 'atom') include_once('scripts/feeds.php'); # Atom 1.0
  90. # if ($action == 'dc') include_once('scripts/feeds.php'); # Dublin Core
  91. # if ($action == 'rdf') include_once('scripts/feeds.php'); # RSS 1.0
  92. ## PmWiki allows a great deal of flexibility for creating custom markup.
  93. ## To add support for '*bold*' and '~italic~' markup (the single quotes
  94. ## are part of the markup), uncomment the following lines.
  95. ## (See PmWiki.CustomMarkup and the Cookbook for details and examples.)
  96. # Markup("'~", "inline", "/'~(.*?)~'/", "<i>$1</i>"); # '~italic~'
  97. # Markup("'*", "inline", "/'\\*(.*?)\\*'/", "<b>$1</b>"); # '*bold*'
  98. ## If you want to have to approve links to external sites before they
  99. ## are turned into links, uncomment the line below. See PmWiki.UrlApprovals.
  100. ## Also, setting $UnapprovedLinkCountMax limits the number of unapproved
  101. ## links that are allowed in a page (useful to control wikispam).
  102. # include_once('scripts/urlapprove.php');
  103. # $UnapprovedLinkCountMax = 10;
  104. ## The following lines make additional editing buttons appear in the
  105. ## edit page for subheadings, lists, tables, etc.
  106. # $GUIButtons['h2'] = array(400, '\\n!! ', '\\n', '$[Heading]',
  107. # '$GUIButtonDirUrlFmt/h2.gif"$[Heading]"');
  108. # $GUIButtons['h3'] = array(402, '\\n!!! ', '\\n', '$[Subheading]',
  109. # '$GUIButtonDirUrlFmt/h3.gif"$[Subheading]"');
  110. # $GUIButtons['indent'] = array(500, '\\n->', '\\n', '$[Indented text]',
  111. # '$GUIButtonDirUrlFmt/indent.gif"$[Indented text]"');
  112. # $GUIButtons['outdent'] = array(510, '\\n-<', '\\n', '$[Hanging indent]',
  113. # '$GUIButtonDirUrlFmt/outdent.gif"$[Hanging indent]"');
  114. # $GUIButtons['ol'] = array(520, '\\n# ', '\\n', '$[Ordered list]',
  115. # '$GUIButtonDirUrlFmt/ol.gif"$[Ordered (numbered) list]"');
  116. # $GUIButtons['ul'] = array(530, '\\n* ', '\\n', '$[Unordered list]',
  117. # '$GUIButtonDirUrlFmt/ul.gif"$[Unordered (bullet) list]"');
  118. # $GUIButtons['hr'] = array(540, '\\n----\\n', '', '',
  119. # '$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"');
  120. # $GUIButtons['table'] = array(600,
  121. # '||border=1 width=80%\\n||!Hdr ||!Hdr ||!Hdr ||\\n|| || || ||\\n|| || || ||\\n', '', '',
  122. # '$GUIButtonDirUrlFmt/table.gif"$[Table]"');