sample-config.php 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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 https://www.pmwiki.org/wiki/Cookbook
  5. ## for more details on the customizations that can be added to PmWiki.
  6. ## $WikiTitle is the name that appears in the browser's title bar.
  7. $WikiTitle = 'PmWiki';
  8. ## $ScriptUrl is the URL for accessing wiki pages with a browser.
  9. ## $PubDirUrl is the URL for the pub directory.
  10. # $ScriptUrl = 'https://www.mydomain.com/path/to/pmwiki.php';
  11. # $PubDirUrl = 'https://www.mydomain.com/path/to/pub';
  12. ## If you want to use URLs of the form .../pmwiki.php/Group/PageName
  13. ## instead of .../pmwiki.php?p=Group.PageName, try setting
  14. ## $EnablePathInfo below. Note that this doesn't work in all environments,
  15. ## it depends on your webserver and PHP configuration. You might also
  16. ## want to check https://www.pmwiki.org/wiki/Cookbook/CleanUrls more
  17. ## details about this setting and other ways to create nicer-looking urls.
  18. # $EnablePathInfo = 1;
  19. ## $PageLogoUrl is the URL for a logo image -- you can change this
  20. ## to your own logo if you wish.
  21. # $PageLogoUrl = "$PubDirUrl/skins/pmwiki/pmwiki-32.gif";
  22. ## If you want to have a custom skin, then set $Skin to the name
  23. ## of the directory (in pub/skins/) that contains your skin files.
  24. ## See PmWiki.Skins and Cookbook.Skins.
  25. # $Skin = 'pmwiki-responsive';
  26. ## You'll probably want to set an administrative password that you
  27. ## can use to get into password-protected pages. Also, by default
  28. ## the "attr" passwords for the PmWiki and Main groups are locked, so
  29. ## an admin password is a good way to unlock those. See PmWiki.Passwords
  30. ## and PmWiki.PasswordsAdmin.
  31. # $DefaultPasswords['admin'] = pmcrypt('secret');
  32. ## Unicode (UTF-8) allows the display of all languages and all alphabets.
  33. ## Highly recommended for new wikis.
  34. include_once("scripts/xlpage-utf-8.php");
  35. ## If you're running a publicly available site and allow anyone to
  36. ## edit without requiring a password, you probably want to put some
  37. ## blocklists in place to avoid wikispam. See PmWiki.Blocklist.
  38. # $EnableBlocklist = 1; # enable manual blocklists
  39. # $EnableBlocklist = 10; # enable automatic blocklists
  40. ## PmWiki comes with graphical user interface buttons for editing;
  41. ## to enable these buttons, set $EnableGUIButtons to 1.
  42. # $EnableGUIButtons = 1;
  43. ## To enable markup syntax from the Creole common wiki markup language
  44. ## (http://www.wikicreole.org/), include it here:
  45. # include_once("scripts/creole.php");
  46. ## Some sites may want leading spaces on markup lines to indicate
  47. ## "preformatted text blocks", set $EnableWSPre=1 if you want to do
  48. ## this. Setting it to a higher number increases the number of
  49. ## space characters required on a line to count as "preformatted text".
  50. # $EnableWSPre = 1; # lines beginning with space are preformatted (default)
  51. # $EnableWSPre = 4; # lines with 4 or more spaces are preformatted
  52. # $EnableWSPre = 0; # disabled
  53. ## If you want uploads enabled on your system, set $EnableUpload=1.
  54. ## You'll also need to set a default upload password, or else set
  55. ## passwords on individual groups and pages. For more information
  56. ## see PmWiki.UploadsAdmin.
  57. # $EnableUpload = 1;
  58. # $DefaultPasswords['upload'] = pmcrypt('secret');
  59. $UploadPermAdd = 0; # Recommended for most new installations
  60. ## Setting $EnableDiag turns on the ?action=diag and ?action=phpinfo
  61. ## actions, which often helps others to remotely troubleshoot
  62. ## various configuration and execution problems.
  63. # $EnableDiag = 1; # enable remote diagnostics
  64. ## By default, PmWiki doesn't allow browsers to cache pages. Setting
  65. ## $EnableIMSCaching=1; will re-enable browser caches in a somewhat
  66. ## smart manner. Note that you may want to have caching disabled while
  67. ## adjusting configuration files or layout templates.
  68. # $EnableIMSCaching = 1; # allow browser caching
  69. ## Set $SpaceWikiWords if you want WikiWords to automatically
  70. ## have spaces before each sequence of capital letters.
  71. # $SpaceWikiWords = 1; # turn on WikiWord spacing
  72. ## Set $EnableWikiWords if you want to allow WikiWord links.
  73. ## For more options with WikiWords, see scripts/wikiwords.php .
  74. # $EnableWikiWords = 1; # enable WikiWord links
  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 prevented from seeing the existence
  79. ## of read-protected pages in search results and page listings,
  80. ## but this can be slow as PmWiki has to check the permissions
  81. ## of each page. Setting $EnablePageListProtect to zero will
  82. ## speed things up considerably, but it will also mean that
  83. ## viewers may learn of the existence of read-protected pages.
  84. ## (It does not enable them to access the contents of the pages.)
  85. # $EnablePageListProtect = 0;
  86. ## The refcount.php script enables ?action=refcount, which helps to
  87. ## find missing and orphaned pages. See PmWiki.RefCount.
  88. # if ($action == 'refcount') include_once("scripts/refcount.php");
  89. ## The feeds.php script enables ?action=rss, ?action=atom, ?action=rdf,
  90. ## and ?action=dc, for generation of syndication feeds in various formats.
  91. # if ($action == 'rss') include_once("scripts/feeds.php"); # RSS 2.0
  92. # if ($action == 'atom') include_once("scripts/feeds.php"); # Atom 1.0
  93. # if ($action == 'dc') include_once("scripts/feeds.php"); # Dublin Core
  94. # if ($action == 'rdf') include_once("scripts/feeds.php"); # RSS 1.0
  95. ## By default, pages in the Category group are manually created.
  96. ## Uncomment the following line to have blank category pages
  97. ## automatically created whenever a link to a non-existent
  98. ## category page is saved. (The page is created only if
  99. ## the author has edit permissions to the Category group.)
  100. # $AutoCreate['/^Category\\./'] = array('ctime' => $Now);
  101. ## PmWiki allows a great deal of flexibility for creating custom markup.
  102. ## To add support for '*bold*' and '~italic~' markup (the single quotes
  103. ## are part of the markup), uncomment the following lines.
  104. ## (See PmWiki.CustomMarkup and the Cookbook for details and examples.)
  105. # Markup("'~", "<'''''", "/'~(.*?)~'/", "<i>$1</i>"); # '~italic~'
  106. # Markup("'*", "<'''''", "/'\\*(.*?)\\*'/", "<b>$1</b>"); # '*bold*'
  107. ## If you want to have to approve links to external sites before they
  108. ## are turned into links, uncomment the line below. See PmWiki.UrlApprovals.
  109. ## Also, setting $UnapprovedLinkCountMax limits the number of unapproved
  110. ## links that are allowed in a page (useful to control wikispam).
  111. # $UnapprovedLinkCountMax = 10;
  112. # include_once("scripts/urlapprove.php");
  113. ## The following lines make additional editing buttons appear in the
  114. ## edit page for subheadings, lists, tables, etc.
  115. # $GUIButtons['h2'] = array(400, '\\n!! ', '\\n', '$[Heading]',
  116. # '$GUIButtonDirUrlFmt/h2.gif"$[Heading]"');
  117. # $GUIButtons['h3'] = array(402, '\\n!!! ', '\\n', '$[Subheading]',
  118. # '$GUIButtonDirUrlFmt/h3.gif"$[Subheading]"');
  119. # $GUIButtons['indent'] = array(500, '\\n->', '\\n', '$[Indented text]',
  120. # '$GUIButtonDirUrlFmt/indent.gif"$[Indented text]"');
  121. # $GUIButtons['outdent'] = array(510, '\\n-<', '\\n', '$[Hanging indent]',
  122. # '$GUIButtonDirUrlFmt/outdent.gif"$[Hanging indent]"');
  123. # $GUIButtons['ol'] = array(520, '\\n# ', '\\n', '$[Ordered list]',
  124. # '$GUIButtonDirUrlFmt/ol.gif"$[Ordered (numbered) list]"');
  125. # $GUIButtons['ul'] = array(530, '\\n* ', '\\n', '$[Unordered list]',
  126. # '$GUIButtonDirUrlFmt/ul.gif"$[Unordered (bullet) list]"');
  127. # $GUIButtons['hr'] = array(540, '\\n----\\n', '', '',
  128. # '$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"');
  129. # $GUIButtons['table'] = array(600,
  130. # '||border=1 width=80%\\n||!Hdr ||!Hdr ||!Hdr ||\\n|| || || ||\\n|| || || ||\\n', '', '',
  131. # '$GUIButtonDirUrlFmt/table.gif"$[Table]"');