X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fpmwiki.config.php;h=d3ca4208f8391dd00683b889b9ad4036e50e4875;hb=c6db254ad9c105effd68a66e0ddc2e6538b33cd2;hp=00b9d9dd185a6a571d2113414f2af37feaac1700;hpb=8ac323defbbd60733f978c563b335677a79a988c;p=platal.git
diff --git a/plugins/pmwiki.config.php b/plugins/pmwiki.config.php
index 00b9d9d..d3ca420 100644
--- a/plugins/pmwiki.config.php
+++ b/plugins/pmwiki.config.php
@@ -1,37 +1,24 @@
baseurl;
-$UploadUrlFmt = $ScriptUrl."/uploads";
-$WorkDir = '../spool/wiki.d';
-$WikiDir = new PageStore('$FarmD/../spool/wiki.d/$FullName');
-$PubDirUrl = $globals->baseurl.'/wiki';
-$InterMapFiles[] = $globals->spoolroot.'plugins/pmwiki.intermap.txt';
-
-$EnablePathInfo = 1;
+$EnablePathInfo = 1; # in fact works with apache rewrite, name is misleading
+$EnableGUIButtons = 1;
+$EnableUpload = 1;
+$LinkWikiWords = 0; # disable WikiWord links
+$EnableIMSCaching = 1; # allow browser caching
-$Skin = 'empty';
+$ScriptUrl = '.'; #\
+$UploadUrlFmt = './uploads'; # } works thanks to the in skin
+$PubDirUrl = './wiki'; #/
-include_once($globals->spoolroot."/plugins/pmwiki.platalAuth.php");
-include_once($globals->spoolroot."/plugins/pmwiki.platalSkin.php");
-@include_once("$FarmD/cookbook/e-protect.php");
+$WorkDir = '../spool/wiki.d';
+$WikiDir = new PageStore('$FarmD/'.$WorkDir.'/$FullName');
+$InterMapFiles[] = $globals->spoolroot.'plugins/pmwiki.intermap.txt';
-$DefaultPasswords['read'] = 'has_perms: and: identified:';
-$DefaultPasswords['edit'] = 'has_perms: and: identified:';
-$DefaultPasswords['attr'] = 'has_perms: and: identified:';
-$DefaultPasswords['admin'] = 'has_perms: and: identified:';
-$DefaultPasswords['upload'] = 'has_perms: and: identified:';
+$Skin = 'empty';
-$EnableGUIButtons = 1;
-$EnableUpload = 1;
-$LinkWikiWords = 0; # disable WikiWord links
-$EnableIMSCaching = 1; # allow browser caching
+@include_once("$FarmD/cookbook/e-protect.php");
-## If you want to have to approve links to external sites before they
-## are turned into links, uncomment the line below. See PmWiki.UrlApprovals.
-## Also, setting $UnapprovedLinkCountMax limits the number of unapproved
-## links that are allowed in a page (useful to control wikispam).
-# include_once('scripts/urlapprove.php');
-# $UnapprovedLinkCountMax = 10;
+// Theme-ing {{{
## The following lines make additional editing buttons appear in the
## edit page for subheadings, lists, tables, etc.
@@ -52,4 +39,49 @@ $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]"');
+
+// set default author
+$Author = $_SESSION['forlife'].'|'.$_SESSION['prenom'].' '.$_SESSION['nom'];
+
+$InputTags['e_form'] = array(
+ ':html' => "