X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fpmwiki.config.php;h=d3ca4208f8391dd00683b889b9ad4036e50e4875;hb=c6db254ad9c105effd68a66e0ddc2e6538b33cd2;hp=e3d611ba57fb174e59b6a673bf35b215486b2a67;hpb=7da8ef908e09ae0738f26838656abcb3f4c8d2ad;p=platal.git diff --git a/plugins/pmwiki.config.php b/plugins/pmwiki.config.php index e3d611b..d3ca420 100644 --- a/plugins/pmwiki.config.php +++ b/plugins/pmwiki.config.php @@ -1,54 +1,24 @@ baseurl; -$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 clear. - Les différentes restrictions possibles sont : - - Le : à la fin de chaque mot clef est important. Tu peux également combiner plusieurs mots clefs avec and: - ou des espaces (qui remplace le ou logique)
")); - -include_once($globals->spoolroot."/plugins/pmwiki.platalAuth.php"); -include_once($globals->spoolroot."/plugins/pmwiki.platalSkin.php"); -@include_once("$FarmD/cookbook/e-protect.php"); +$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 -$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:'; +$ScriptUrl = '.'; #\ +$UploadUrlFmt = './uploads'; # } works thanks to the in skin +$PubDirUrl = './wiki'; #/ -$EnableGUIButtons = 1; -$EnableUpload = 1; -$LinkWikiWords = 0; # disable WikiWord links -$EnableIMSCaching = 1; # allow browser caching +$WorkDir = '../spool/wiki.d'; +$WikiDir = new PageStore('$FarmD/'.$WorkDir.'/$FullName'); +$InterMapFiles[] = $globals->spoolroot.'plugins/pmwiki.intermap.txt'; + +$Skin = 'empty'; -## 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; +@include_once("$FarmD/cookbook/e-protect.php"); + +// Theme-ing {{{ ## The following lines make additional editing buttons appear in the ## edit page for subheadings, lists, tables, etc. @@ -70,6 +40,48 @@ $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(); +// set default author +$Author = $_SESSION['forlife'].'|'.$_SESSION['prenom'].' '.$_SESSION['nom']; + +$InputTags['e_form'] = array( + ':html' => "
"); + +// set profiles to point to plat/al fiche +Markup('[[~platal', '<[[~', '/\[\[~([^|\]]*)\|([^\]]*)\]\]/e', + 'PreserveText("=", \'$2\', "")'); + +// prevent restorelinks before block apply (otherwise [[Sécurité]] will give +// .../Se9'>Sécurité +Markup('restorelinks','<%%',"//", ''); + +## [[#anchor]] in standard XHTML +Markup('[[#','<[[','/(?>\\[\\[#([A-Za-z][-.:\\w]*))\\]\\]/e', + "Keep(\"\",'L')"); + +Markup('tablebicol', '$2'); + +function doBicol($column=false) +{ + global $TableRowIndexMax, $TableRowAttrFmt, $TableCellAttrFmt; + $TableRowAttrFmt = "class='pair_pmwiki_\$TableRowCount'"; + if ($column) { + $TableCellAttrFmt = "class='$column'"; + } +} + +// }}} + +$AuthFunction = 'ReadPage'; + +$HandleAuth['diff'] = 'edit'; +$HandleAuth['source'] = 'edit'; + ?>