force 'base href=...../~x......' once for good.
[platal.git] / plugins / pmwiki.config.php
1 <?php if (!defined('PmWiki')) exit();
2
3 $ScriptUrl = $globals->baseurl;
4 $UploadUrlFmt = $ScriptUrl."/uploads";
5 $WorkDir = $globals->wiki->workdir;
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>only_public:</strong> (pour les gens non connectés et non identifiés)</li>
24 <li><strong>logged:</strong> (pour ceux qui ont rentré leur mot de passe ou qui ont un cookie permanent)</li>
25 <li><strong>identified:</strong> (exige une identification par mot de passe)</li>
26 <li><strong>has_perms:</strong> (pour les administrateurs de la page)</li>
27 </ul>
28 Le <strong>:</strong> à la fin de chaque mot clef est important. Tu peux également combiner plusieurs mots clefs avec <strong>and:</strong>
29 ou des espaces (qui remplace le <em>ou</em> logique)<br/>"));
30
31 include_once($globals->spoolroot."/plugins/pmwiki.platalAuth.php");
32 include_once($globals->spoolroot."/plugins/pmwiki.platalSkin.php");
33 @include_once("$FarmD/cookbook/e-protect.php");
34
35 $DefaultPasswords['read'] = 'has_perms: and: identified:';
36 $DefaultPasswords['edit'] = 'has_perms: and: identified:';
37 $DefaultPasswords['attr'] = 'has_perms: and: identified:';
38 $DefaultPasswords['admin'] = 'has_perms: and: identified:';
39 $DefaultPasswords['upload'] = 'has_perms: and: identified:';
40
41 $EnableGUIButtons = 1;
42 $EnableUpload = 1;
43 $LinkWikiWords = 0; # disable WikiWord links
44 $EnableIMSCaching = 1; # allow browser caching
45
46 ## If you want to have to approve links to external sites before they
47 ## are turned into links, uncomment the line below. See PmWiki.UrlApprovals.
48 ## Also, setting $UnapprovedLinkCountMax limits the number of unapproved
49 ## links that are allowed in a page (useful to control wikispam).
50 # include_once('scripts/urlapprove.php');
51 # $UnapprovedLinkCountMax = 10;
52
53 ## The following lines make additional editing buttons appear in the
54 ## edit page for subheadings, lists, tables, etc.
55 $GUIButtons['h2'] = array(400, '\\n!! ', '\\n', '$[Heading]',
56 '$GUIButtonDirUrlFmt/h2.gif"$[Heading]"');
57 $GUIButtons['h3'] = array(402, '\\n!!! ', '\\n', '$[Subheading]',
58 '$GUIButtonDirUrlFmt/h3.gif"$[Subheading]"');
59 $GUIButtons['indent'] = array(500, '\\n->', '\\n', '$[Indented text]',
60 '$GUIButtonDirUrlFmt/indent.gif"$[Indented text]"');
61 $GUIButtons['outdent'] = array(510, '\\n-<', '\\n', '$[Hanging indent]',
62 '$GUIButtonDirUrlFmt/outdent.gif"$[Hanging indent]"');
63 $GUIButtons['ol'] = array(520, '\\n# ', '\\n', '$[Ordered list]',
64 '$GUIButtonDirUrlFmt/ol.gif"$[Ordered (numbered) list]"');
65 $GUIButtons['ul'] = array(530, '\\n* ', '\\n', '$[Unordered list]',
66 '$GUIButtonDirUrlFmt/ul.gif"$[Unordered (bullet) list]"');
67 $GUIButtons['hr'] = array(540, '\\n----\\n', '', '',
68 '$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"');
69 $GUIButtons['table'] = array(600,
70 '||border=1 width=80%\\n||!Hdr ||!Hdr ||!Hdr ||\\n|| || || ||\\n|| || || ||\\n', '', '',
71 '$GUIButtonDirUrlFmt/table.gif"$[Table]"');
72
73 if (function_exists('more_wiki_config'))
74 more_wiki_config();
75 ?>