893946b1e205ed8d127724cb80f0c9f7618bcea5
[platal.git] / plugins / pmwiki.config.php
1 <?php if (!defined('PmWiki')) exit();
2
3 $ScriptUrl = $globals->baseurl;
4 $UploadUrlFmt = $ScriptUrl."/uploads";
5 $WorkDir = '../spool/wiki.d';
6 $WikiDir = new PageStore('$FarmD/'.$WorkDir.'/$FullName');
7 $PubDirUrl = $globals->baseurl.'/wiki';
8 $InterMapFiles[] = $globals->spoolroot.'plugins/pmwiki.intermap.txt';
9
10 # Authorize group name to start with a number (for promo groups)
11 $GroupPattern = '[[:upper:]0-9][\\w]*(?:-\\w+)*';
12
13 $EnablePathInfo = 1;
14
15 $Skin = 'empty';
16
17 XLSDV('en', array('EnterAttributes' =>
18 "Entre ici les différents droit pour la page. Les champs laissés en blanc ne seront pas modifiés.
19 Pour enlever une restriction ou une autorisation entre <strong>clear</strong>.
20 Les différentes restrictions possibles sont :
21 <ul>
22 <li><strong>public:</strong> (pour tout le monde)</li>
23 <li><strong>logged:</strong> (pour ceux qui ont rentré leur mot de passe ou qui ont un cookie permanent)</li>
24 <li><strong>identified:</strong> (exige une identification par mot de passe)</li>
25 <li><strong>has_perms:</strong> (pour les administrateurs de la page)</li>
26 </ul>
27 Le <strong>:</strong> à la fin de chaque mot clef est important. Tu peux également combiner plusieurs mots clefs avec <strong>and:</strong>
28 ou des espaces (qui remplace le <em>ou</em> logique)<br/>"));
29
30 include_once($globals->spoolroot."/plugins/pmwiki.platalAuth.php");
31 include_once($globals->spoolroot."/plugins/pmwiki.platalSkin.php");
32 @include_once("$FarmD/cookbook/e-protect.php");
33
34 $DefaultPasswords['read'] = 'has_perms: and: identified:';
35 $DefaultPasswords['edit'] = 'has_perms: and: identified:';
36 $DefaultPasswords['attr'] = 'has_perms: and: identified:';
37 $DefaultPasswords['admin'] = 'has_perms: and: identified:';
38 $DefaultPasswords['upload'] = 'has_perms: and: identified:';
39
40 $EnableGUIButtons = 1;
41 $EnableUpload = 1;
42 $LinkWikiWords = 0; # disable WikiWord links
43 $EnableIMSCaching = 1; # allow browser caching
44
45 ## The following lines make additional editing buttons appear in the
46 ## edit page for subheadings, lists, tables, etc.
47 $GUIButtons['h2'] = array(400, '\\n!! ', '\\n', '$[Heading]',
48 '$GUIButtonDirUrlFmt/h2.gif"$[Heading]"');
49 $GUIButtons['h3'] = array(402, '\\n!!! ', '\\n', '$[Subheading]',
50 '$GUIButtonDirUrlFmt/h3.gif"$[Subheading]"');
51 $GUIButtons['indent'] = array(500, '\\n->', '\\n', '$[Indented text]',
52 '$GUIButtonDirUrlFmt/indent.gif"$[Indented text]"');
53 $GUIButtons['outdent'] = array(510, '\\n-<', '\\n', '$[Hanging indent]',
54 '$GUIButtonDirUrlFmt/outdent.gif"$[Hanging indent]"');
55 $GUIButtons['ol'] = array(520, '\\n# ', '\\n', '$[Ordered list]',
56 '$GUIButtonDirUrlFmt/ol.gif"$[Ordered (numbered) list]"');
57 $GUIButtons['ul'] = array(530, '\\n* ', '\\n', '$[Unordered list]',
58 '$GUIButtonDirUrlFmt/ul.gif"$[Unordered (bullet) list]"');
59 $GUIButtons['hr'] = array(540, '\\n----\\n', '', '',
60 '$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"');
61 $GUIButtons['table'] = array(600,
62 '||border=1 width=80%\\n||!Hdr ||!Hdr ||!Hdr ||\\n|| || || ||\\n|| || || ||\\n', '', '',
63 '$GUIButtonDirUrlFmt/table.gif"$[Table]"');
64
65 ?>