wiki => smarty
[platal.git] / plugins / pmwiki.config.php
CommitLineData
121cdae0 1<?php if (!defined('PmWiki')) exit();
2
8ac323de 3$ScriptUrl = $globals->baseurl;
4$UploadUrlFmt = $ScriptUrl."/uploads";
2907d401 5$WorkDir = $globals->wiki->workdir;
6$WikiDir = new PageStore('$FarmD/'.$WorkDir.'/$FullName');
8ac323de 7$PubDirUrl = $globals->baseurl.'/wiki';
121cdae0 8$InterMapFiles[] = $globals->spoolroot.'plugins/pmwiki.intermap.txt';
9
121cdae0 10$EnablePathInfo = 1;
11
121cdae0 12$Skin = 'empty';
13
b6f31bab 14include_once($globals->spoolroot."/plugins/pmwiki.platalAuth.php");
15include_once($globals->spoolroot."/plugins/pmwiki.platalSkin.php");
121cdae0 16@include_once("$FarmD/cookbook/e-protect.php");
17
8ac323de 18$DefaultPasswords['read'] = 'has_perms: and: identified:';
19$DefaultPasswords['edit'] = 'has_perms: and: identified:';
20$DefaultPasswords['attr'] = 'has_perms: and: identified:';
21$DefaultPasswords['admin'] = 'has_perms: and: identified:';
d0adba41 22$DefaultPasswords['upload'] = 'has_perms: and: identified:';
121cdae0 23
121cdae0 24$EnableGUIButtons = 1;
121cdae0 25$EnableUpload = 1;
121cdae0 26$LinkWikiWords = 0; # disable WikiWord links
8ac323de 27$EnableIMSCaching = 1; # allow browser caching
121cdae0 28
29## If you want to have to approve links to external sites before they
30## are turned into links, uncomment the line below. See PmWiki.UrlApprovals.
31## Also, setting $UnapprovedLinkCountMax limits the number of unapproved
32## links that are allowed in a page (useful to control wikispam).
33# include_once('scripts/urlapprove.php');
34# $UnapprovedLinkCountMax = 10;
35
36## The following lines make additional editing buttons appear in the
37## edit page for subheadings, lists, tables, etc.
8ac323de 38$GUIButtons['h2'] = array(400, '\\n!! ', '\\n', '$[Heading]',
39 '$GUIButtonDirUrlFmt/h2.gif"$[Heading]"');
40$GUIButtons['h3'] = array(402, '\\n!!! ', '\\n', '$[Subheading]',
41 '$GUIButtonDirUrlFmt/h3.gif"$[Subheading]"');
42$GUIButtons['indent'] = array(500, '\\n->', '\\n', '$[Indented text]',
43 '$GUIButtonDirUrlFmt/indent.gif"$[Indented text]"');
44$GUIButtons['outdent'] = array(510, '\\n-<', '\\n', '$[Hanging indent]',
45 '$GUIButtonDirUrlFmt/outdent.gif"$[Hanging indent]"');
46$GUIButtons['ol'] = array(520, '\\n# ', '\\n', '$[Ordered list]',
47 '$GUIButtonDirUrlFmt/ol.gif"$[Ordered (numbered) list]"');
48$GUIButtons['ul'] = array(530, '\\n* ', '\\n', '$[Unordered list]',
49 '$GUIButtonDirUrlFmt/ul.gif"$[Unordered (bullet) list]"');
50$GUIButtons['hr'] = array(540, '\\n----\\n', '', '',
51 '$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"');
52$GUIButtons['table'] = array(600,
53 '||border=1 width=80%\\n||!Hdr ||!Hdr ||!Hdr ||\\n|| || || ||\\n|| || || ||\\n', '', '',
54 '$GUIButtonDirUrlFmt/table.gif"$[Table]"');
55?>