X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fwiki%2Ffarmconfig.php;h=b867000c080063a4aa4d9f008fc3aee9250da1be;hb=179afa7fa79902e11498314d37fe4dbf452b3617;hp=827029fa3900f14de39b40074c3c0da8bbe93284;hpb=a7de4ef724d1a3b0bf978a50ce7cc9d23412c7a0;p=platal.git diff --git a/include/wiki/farmconfig.php b/include/wiki/farmconfig.php index 827029f..b867000 100644 --- a/include/wiki/farmconfig.php +++ b/include/wiki/farmconfig.php @@ -18,6 +18,17 @@ $InterMapFiles[] = $globals->spoolroot.'/configs/pmwiki.intermap.txt'; $Skin = 'empty'; @include_once("$FarmD/cookbook/e-protect.php"); +include_once($FarmD.'/scripts/xlpage-utf-8.php'); +ResolvePageName(); + +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 {{{ @@ -38,22 +49,26 @@ $GUIButtons['ul'] = array(530, '\\n* ', '\\n', '$[Unordered list]', $GUIButtons['hr'] = array(540, '\\n----\\n', '', '', '$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"'); $GUIButtons['table'] = array(600, - '||border=1 width=80%\\n||!Hdr ||!Hdr ||!Hdr ||\\n|| || || ||\\n|| || || ||\\n', '', '', + '||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' => "
"
"); // set profiles to point to plat/al fiche Markup('[[~platal', '<[[~', '/\[\[~([^|\]]*)(?:\|([^\]]*))?\]\]/e', 'PreserveText("=", doPlatalLink("$1", "$2"), "")'); +// 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','<%%',"//", ''); @@ -61,9 +76,9 @@ Markup('restorelinks','<%%',"//", ''); ## [[#anchor]] in standard XHTML Markup('[[#','<[[','/(?>\\[\\[#([A-Za-z][-.:\\w]*))\\]\\]/e', "Keep(\"\",'L')"); - + Markup('tablebicol', '