* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
wiki_apply_perms('admin');
if (wiki_set_perms($n, $p, $perms[1])) {
$perms = wiki_get_perms($n);
wiki_apply_perms('admin');
if (wiki_set_perms($n, $p, $perms[1])) {
$perms = wiki_get_perms($n);
wiki_apply_perms('admin');
if (wiki_set_perms($n, $perms[0], $p)) {
$perms = wiki_get_perms($n);
wiki_apply_perms('admin');
if (wiki_set_perms($n, $perms[0], $p)) {
$perms = wiki_get_perms($n);
// the pmwiki skin we are using (almost empty) has these keywords:
$i = strpos($wikiAll, "<!--/HeaderText-->");
$j = strpos($wikiAll, "<!--/PageLeftFmt-->", $i);
// the pmwiki skin we are using (almost empty) has these keywords:
$i = strpos($wikiAll, "<!--/HeaderText-->");
$j = strpos($wikiAll, "<!--/PageLeftFmt-->", $i);
if ($feed) {
$wikiAll = str_replace('dc:contributor', 'author', $wikiAll);
$wikiAll = preg_replace('!<author>.*?\..*?\.(\d{4})\|(.*?)</author>!u', '<author>$2 (X$1)</author>', $wikiAll);
if ($feed) {
$wikiAll = str_replace('dc:contributor', 'author', $wikiAll);
$wikiAll = preg_replace('!<author>.*?\..*?\.(\d{4})\|(.*?)</author>!u', '<author>$2 (X$1)</author>', $wikiAll);
$url = '/' . str_replace('.', '/', $n) . '?action=rss';
if (S::logged()) {
$url .= '&user=' . S::v('forlife') . '&hash=' . S::v('core_rss_hash');
$url = '/' . str_replace('.', '/', $n) . '?action=rss';
if (S::logged()) {
$url .= '&user=' . S::v('forlife') . '&hash=' . S::v('core_rss_hash');