| 1 | <?php if (!defined('PmWiki')) exit(); |
| 2 | |
| 3 | $ScriptUrl = $globals->baseurl; |
| 4 | $UploadUrlFmt = $ScriptUrl."/uploads"; |
| 5 | $WorkDir = $globals->wiki->workdir; |
| 6 | $WikiDir = new PageStore('$FarmD/'.$WorkDir.'/$FullName'); |
| 7 | $PubDirUrl = $globals->baseurl.'/wiki'; |
| 8 | $InterMapFiles[] = $globals->spoolroot.'plugins/pmwiki.intermap.txt'; |
| 9 | |
| 10 | $EnablePathInfo = 1; |
| 11 | |
| 12 | $Skin = 'empty'; |
| 13 | |
| 14 | include_once($globals->spoolroot."/plugins/pmwiki.platalAuth.php"); |
| 15 | include_once($globals->spoolroot."/plugins/pmwiki.platalSkin.php"); |
| 16 | @include_once("$FarmD/cookbook/e-protect.php"); |
| 17 | |
| 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:'; |
| 22 | $DefaultPasswords['upload'] = 'has_perms: and: identified:'; |
| 23 | |
| 24 | $EnableGUIButtons = 1; |
| 25 | $EnableUpload = 1; |
| 26 | $LinkWikiWords = 0; # disable WikiWord links |
| 27 | $EnableIMSCaching = 1; # allow browser caching |
| 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. |
| 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 | ?> |