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