X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fwiki%2Ffarmconfig.php;h=d62c5c79299d4399f9546bcf49c04c94c3482b96;hb=a2b461cee28a1cfef200039caec99158a6b906f3;hp=115d3c3ae396e72a20e79a63d592ce623707ca44;hpb=0fb07071cd99f867b48a527c90996601a079fff8;p=platal.git diff --git a/include/wiki/farmconfig.php b/include/wiki/farmconfig.php index 115d3c3..d62c5c7 100644 --- a/include/wiki/farmconfig.php +++ b/include/wiki/farmconfig.php @@ -18,6 +18,16 @@ $InterMapFiles[] = $globals->spoolroot.'/configs/pmwiki.intermap.txt'; $Skin = 'empty'; @include_once("$FarmD/cookbook/e-protect.php"); +include_once($FarmD.'/scripts/xlpage-utf-8.php'); + +if ($action == 'rss' || $action == 'atom' || $action == 'rdf' || $action == 'dc') { + $FmtPV['$MarkupExcerpt'] = '$page["text"]'; + $FeedFmt[$action]['item']['title'] = '[$Group] {$Title}'; + $FeedFmt[$action]['item']['description'] = '$LastModifiedSummary'; + $FeedFmt[$action]['feed']['title'] = 'Polytechnique.org :: Wiki :: $FullName'; + $pagelist = null; + include_once("$FarmD/scripts/feeds.php"); +} // Theme-ing {{{ @@ -54,8 +64,12 @@ $InputTags['e_form'] = array( Markup('[[~platal', '<[[~', '/\[\[~([^|\]]*)(?:\|([^\]]*))?\]\]/e', 'PreserveText("=", doPlatalLink("$1", "$2"), "")'); -// prevent restorelinks before block apply (otherwise [[Sécurité]] will give -// .../Se9'>Sécurité +// Preserve javascript +Markup('[[javascript', '<[[javascript:', '/\[\[javascript:([^\|]*)\|([^\]]*)?\]\]/e', + 'PreserveText("=", \'\', "") . "$2" . PreserveText("=", "", "")'); + +// prevent restorelinks before block apply (otherwise [[Sécurité]] will give +// .../Se9'>Sécurité Markup('restorelinks','<%%',"//", ''); ## [[#anchor]] in standard XHTML @@ -102,4 +116,5 @@ $AuthFunction = 'ReadPage'; $HandleAuth['diff'] = 'edit'; $HandleAuth['source'] = 'edit'; +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>