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