in skin $PubDirUrl = './wiki'; #/ $WorkDir = '../spool/wiki.d'; $WikiDir = new PageStore('$FarmD/'.$WorkDir.'/$FullName'); $InterMapFiles[] = $globals->spoolroot.'/configs/pmwiki.intermap.txt'; $Skin = 'empty'; @include_once("$FarmD/cookbook/e-protect.php"); include_once($FarmD.'/scripts/xlpage-utf-8.php'); $pagename = ResolvePageName($pagename); 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 {{{ ## The following lines make additional editing buttons appear in the ## edit page for subheadings, lists, tables, etc. $GUIButtons['h2'] = array(400, '\\n!! ', '\\n', '$[Heading]', '$GUIButtonDirUrlFmt/h2.gif"$[Heading]"'); $GUIButtons['h3'] = array(402, '\\n!!! ', '\\n', '$[Subheading]', '$GUIButtonDirUrlFmt/h3.gif"$[Subheading]"'); $GUIButtons['indent'] = array(500, '\\n->', '\\n', '$[Indented text]', '$GUIButtonDirUrlFmt/indent.gif"$[Indented text]"'); $GUIButtons['outdent'] = array(510, '\\n-<', '\\n', '$[Hanging indent]', '$GUIButtonDirUrlFmt/outdent.gif"$[Hanging indent]"'); $GUIButtons['ol'] = array(520, '\\n# ', '\\n', '$[Ordered list]', '$GUIButtonDirUrlFmt/ol.gif"$[Ordered (numbered) list]"'); $GUIButtons['ul'] = array(530, '\\n* ', '\\n', '$[Unordered list]', '$GUIButtonDirUrlFmt/ul.gif"$[Unordered (bullet) 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', '', '', '$GUIButtonDirUrlFmt/table.gif"$[Table]"'); // set default author $Author = $_SESSION['hruid'].'|'.$_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','<%%',"//", ''); ## [[#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'"; } } function doPlatalLink($link, $text) { if (strlen(trim($text)) == 0) { $profile = Profile::get($link); if (!$profile) { return '##Utilisateur inconnu##' . $text . '##'; } $text = $profile->fullName(); } return '' . $text . ''; } // }}} $AuthFunction = 'ReadPage'; $HandleAuth['diff'] = 'edit'; $HandleAuth['source'] = 'edit'; // vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: ?>