X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fpmwiki.config.php;h=d3ca4208f8391dd00683b889b9ad4036e50e4875;hb=ffdefc6ac34ff49a7b2d3fdf5922d4f6db307d4c;hp=aeb0efdfadf2d24bad18758e878e892537c7f242;hpb=b6f31bab934ac883fafc839faf784f5c08db72c3;p=platal.git
diff --git a/plugins/pmwiki.config.php b/plugins/pmwiki.config.php
index aeb0efd..d3ca420 100644
--- a/plugins/pmwiki.config.php
+++ b/plugins/pmwiki.config.php
@@ -1,158 +1,87 @@
baseurl;
-$UploadUrlFmt = $ScriptUrl."/uploads";
-$WorkDir = '../spool/wiki.d';
-$WikiDir = new PageStore('$FarmD/../spool/wiki.d/$FullName');
-$PubDirUrl = $globals->baseurl.'/pubwiki';
-$InterMapFiles[] = $globals->spoolroot.'plugins/pmwiki.intermap.txt';
-
-## If you want to use URLs of the form .../pmwiki.php/Group/PageName
-## instead of .../pmwiki.php?p=Group.PageName, try setting
-## $EnablePathInfo below. Note that this doesn't work in all environments,
-## it depends on your webserver and PHP configuration. You might also
-## want to check http://www.pmwiki.org/wiki/Cookbook/CleanUrls more
-## details about this setting and other ways to create nicer-looking urls.
-$EnablePathInfo = 1;
-
-## $PageLogoUrl is the URL for a logo image -- you can change this
-## to your own logo if you wish.
-# $PageLogoUrl = "$PubDirUrl/skins/pmwiki/pmwiki-32.gif";
-XLSDV('en', array(
- 'e_cols' => '90'));
-
-## If you want to have a custom skin, then set $Skin to the name
-## of the directory (in pub/skins/) that contains your skin files.
-## See PmWiki.Skins and Cookbook.Skins.
-$Skin = 'empty';
-
-include_once($globals->spoolroot."/plugins/pmwiki.platalAuth.php");
-include_once($globals->spoolroot."/plugins/pmwiki.platalSkin.php");
-@include_once("$FarmD/cookbook/e-protect.php");
-
-## You'll probably want to set an administrative password that you
-## can use to get into password-protected pages. Also, by default
-## the "attr" passwords for the PmWiki and Main groups are locked, so
-## an admin password is a good way to unlock those. See PmWiki.Passwords
-## and PmWiki.PasswordsAdmin.
-$DefaultPasswords['read'] = 'has_perms: and: identified:';
-$DefaultPasswords['edit'] = 'has_perms: and: identified:';
-$DefaultPasswords['attr'] = 'has_perms: and: identified:';
-$DefaultPasswords['admin'] = 'has_perms: and: identified:';
-
-## PmWiki comes with graphical user interface buttons for editing;
-## to enable these buttons, set $EnableGUIButtons to 1.
+$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
+
+$ScriptUrl = '.'; #\
+$UploadUrlFmt = './uploads'; # } works thanks to the in skin
+$PubDirUrl = './wiki'; #/
+
+$WorkDir = '../spool/wiki.d';
+$WikiDir = new PageStore('$FarmD/'.$WorkDir.'/$FullName');
+$InterMapFiles[] = $globals->spoolroot.'plugins/pmwiki.intermap.txt';
-## If you want uploads enabled on your system, set $EnableUpload=1.
-## You'll also need to set a default upload password, or else set
-## passwords on individual groups and pages. For more information
-## see PmWiki.UploadsAdmin.
-$EnableUpload = 1;
-# $DefaultPasswords['upload'] = crypt('secret');
-
-## Set $LinkWikiWords to zero if you don't want WikiWord links (i.e.,
-## all links are made using [[...]].
-$LinkWikiWords = 0; # disable WikiWord links
-
-## Setting $EnableDiag turns on the ?action=diag and ?action=phpinfo
-## actions, which often helps the PmWiki authors to troubleshoot
-## various configuration and execution problems.
-# $EnableDiag = 1; # enable remote diagnostics
-
-## By default, PmWiki doesn't allow browsers to cache pages. Setting
-## $EnableIMSCaching=1; will re-enable browser caches in a somewhat
-## smart manner. Note that you may want to have caching disabled while
-## adjusting configuration files or layout templates.
-# $EnableIMSCaching = 1; # allow browser caching
-
-## Set $SpaceWikiWords if you want WikiWords to automatically
-## have spaces before each sequence of capital letters.
-# $SpaceWikiWords = 1; # turn on WikiWord spacing
-
-## If you want only the first occurrence of a WikiWord to be converted
-## to a link, set $WikiWordCountMax=1.
-# $WikiWordCountMax = 1; # converts only first WikiWord
-# $WikiWordCountMax = 0; # another way to disable WikiWords
-
-## The $WikiWordCount array can be used to control the number of times
-## a WikiWord is converted to a link. This is useful for disabling
-## or limiting specific WikiWords.
-# $WikiWordCount['PhD'] = 0; # disables 'PhD'
-# $WikiWordCount['PmWiki'] = 1; # convert only first 'PmWiki'
-
-## By default, PmWiki is configured such that only the first occurrence
-## of 'PmWiki' in a page is treated as a WikiWord. If you want to
-## restore 'PmWiki' to be treated like other WikiWords, uncomment the
-## line below.
-# unset($WikiWordCount['PmWiki']);
-
-## If you want to disable WikiWords matching a pattern, you can use
-## something like the following. Note that the first argument has to
-## be different for each call to Markup(). The example below disables
-## WikiWord links like COM1, COM2, COM1234, etc.
-# Markup('COM\d+', '$1"); # '~italic~'
-# Markup("'*", "inline", "/'\\*(.*?)\\*'/", "$1"); # '*bold*'
-
-## 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;
+$Skin = 'empty';
+
+@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.
- $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]"');
-
+$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['forlife'].'|'.$_SESSION['prenom'].' '.$_SESSION['nom'];
+
+$InputTags['e_form'] = array(
+ ':html' => "