fix wiki error with too many accents
[platal.git] / plugins / pmwiki.config.php
index 3f561c6..d7d6742 100644 (file)
@@ -1,16 +1,33 @@
 <?php if (!defined('PmWiki')) exit();
 
-$ScriptUrl       = $globals->baseurl;
+$ScriptUrl       = $globals->relurl;
 $UploadUrlFmt    = $ScriptUrl."/uploads";
 $WorkDir         = $globals->wiki->workdir;
 $WikiDir         = new PageStore('$FarmD/'.$WorkDir.'/$FullName');
 $PubDirUrl       = $globals->baseurl.'/wiki';
 $InterMapFiles[] = $globals->spoolroot.'plugins/pmwiki.intermap.txt';
 
+# Authorize group name to start with a number (for promo groups)
+$GroupPattern = '[[:upper:]0-9][\\w]*(?:-\\w+)*';
+
 $EnablePathInfo = 1;
 
 $Skin = 'empty';
 
+XLSDV('en', array('EnterAttributes' =>
+    "Entre ici les différents droit pour la page. Les champs laissés en blanc ne seront pas modifiés.
+    Pour enlever une restriction ou une autorisation entre <strong>clear</strong>.
+    Les différentes restrictions possibles sont :
+    <ul>
+        <li><strong>public:</strong> (pour tout le monde)</li>
+        <li><strong>only_public:</strong> (pour les gens non connectés et non identifiés)</li>
+        <li><strong>logged:</strong> (pour ceux qui ont rentré leur mot de passe ou qui ont un cookie permanent)</li>
+        <li><strong>identified:</strong> (exige une identification par mot de passe)</li>
+        <li><strong>has_perms:</strong> (pour les administrateurs de la page)</li>
+    </ul>
+    Le <strong>:</strong> à la fin de chaque mot clef est important. Tu peux également combiner plusieurs mots clefs avec <strong>and:</strong>
+    ou des espaces (qui remplace le <em>ou</em> logique)<br/>"));
+    
 include_once($globals->spoolroot."/plugins/pmwiki.platalAuth.php");
 include_once($globals->spoolroot."/plugins/pmwiki.platalSkin.php");
 @include_once("$FarmD/cookbook/e-protect.php");
@@ -52,4 +69,7 @@ $GUIButtons['hr'] = array(540, '\\n----\\n', '', '',
 $GUIButtons['table'] = array(600,
                    '||border=1 width=80%\\n||!Hdr ||!Hdr ||!Hdr ||\\n||     ||     ||     ||\\n||     ||     ||     ||\\n', '', '', 
                  '$GUIButtonDirUrlFmt/table.gif"$[Table]"');
+
+if (function_exists('more_wiki_config'))
+    more_wiki_config();
 ?>