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