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