├── version
├── logo.png
├── docs
├── RestApi
│ ├── img
│ │ ├── favicon.ico
│ │ ├── glyphicons-halflings.png
│ │ └── glyphicons-halflings-white.png
│ ├── fonts
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ └── glyphicons-halflings-regular.woff2
│ ├── api_project.json
│ ├── api_project.js
│ ├── vendor
│ │ ├── prettify
│ │ │ ├── prettify.css
│ │ │ ├── lang-rd.js
│ │ │ ├── lang-latex.js
│ │ │ ├── lang-tex.js
│ │ │ ├── lang-go.js
│ │ │ ├── lang-proto.js
│ │ │ ├── lang-ll.js
│ │ │ ├── lang-llvm.js
│ │ │ ├── lang-yaml.js
│ │ │ ├── lang-yml.js
│ │ │ ├── lang-cbm.js
│ │ │ ├── lang-basic.js
│ │ │ ├── lang-wiki.js
│ │ │ ├── lang-lua.js
│ │ │ ├── lang-erl.js
│ │ │ ├── lang-erlang.js
│ │ │ ├── lang-hs.js
│ │ │ ├── lang-tcl.js
│ │ │ ├── lang-pascal.js
│ │ │ ├── lang-r.js
│ │ │ ├── lang-s.js
│ │ │ ├── lang-Splus.js
│ │ │ ├── lang-cl.js
│ │ │ ├── lang-el.js
│ │ │ ├── lang-lsp.js
│ │ │ ├── lang-rkt.js
│ │ │ ├── lang-scm.js
│ │ │ ├── lang-ss.js
│ │ │ ├── lang-lisp.js
│ │ │ ├── lang-lgt.js
│ │ │ ├── lang-logtalk.js
│ │ │ ├── lang-clj.js
│ │ │ ├── lang-mumps.js
│ │ │ ├── lang-css.js
│ │ │ ├── lang-scala.js
│ │ │ ├── lang-aea.js
│ │ │ ├── lang-agc.js
│ │ │ ├── lang-apollo.js
│ │ │ ├── lang-dart.js
│ │ │ ├── lang-fs.js
│ │ │ ├── lang-ml.js
│ │ │ ├── lang-swift.js
│ │ │ ├── lang-vhd.js
│ │ │ ├── lang-vhdl.js
│ │ │ ├── lang-n.js
│ │ │ ├── lang-nemerle.js
│ │ │ ├── lang-rust.js
│ │ │ ├── lang-sql.js
│ │ │ ├── lang-vb.js
│ │ │ ├── lang-vbs.js
│ │ │ ├── lang-ls.js
│ │ │ ├── lang-lasso.js
│ │ │ └── lang-lassoscript.js
│ │ ├── path-to-regexp
│ │ │ └── LICENSE
│ │ ├── prettify.css
│ │ └── polyfill.js
│ └── locales
│ │ ├── zh.js
│ │ ├── zh_cn.js
│ │ ├── tr.js
│ │ ├── pl.js
│ │ ├── ca.js
│ │ ├── vi.js
│ │ ├── cs.js
│ │ ├── ro.js
│ │ ├── de.js
│ │ ├── pt_br.js
│ │ ├── ru.js
│ │ ├── es.js
│ │ ├── nl.js
│ │ ├── fr.js
│ │ ├── it.js
│ │ └── locale.js
├── ModuleApi
│ ├── images
│ │ ├── favicon.ico
│ │ ├── iviewer
│ │ │ ├── grab.cur
│ │ │ ├── hand.cur
│ │ │ ├── iviewer.zoom_in.png
│ │ │ ├── iviewer.zoom_fit.png
│ │ │ ├── iviewer.zoom_out.png
│ │ │ ├── iviewer.zoom_zero.png
│ │ │ ├── iviewer.rotate_left.png
│ │ │ └── iviewer.rotate_right.png
│ │ ├── hierarchy-item.png
│ │ ├── apple-touch-icon.png
│ │ ├── icon-class-13x13.png
│ │ ├── icon-trait-13x13.png
│ │ ├── icon-interface-13x13.png
│ │ ├── apple-touch-icon-72x72.png
│ │ └── apple-touch-icon-114x114.png
│ ├── font
│ │ ├── FontAwesome.otf
│ │ ├── fontawesome-webfont.eot
│ │ ├── fontawesome-webfont.ttf
│ │ └── fontawesome-webfont.woff
│ ├── css
│ │ ├── phpdocumentor-clean-icons
│ │ │ ├── fonts
│ │ │ │ ├── phpdocumentor-clean-icons.eot
│ │ │ │ ├── phpdocumentor-clean-icons.ttf
│ │ │ │ ├── phpdocumentor-clean-icons.woff
│ │ │ │ └── phpdocumentor-clean-icons.svg
│ │ │ ├── Read Me.txt
│ │ │ ├── lte-ie7.js
│ │ │ └── style.css
│ │ └── jquery.iviewer.css
│ ├── .htaccess
│ ├── js
│ │ ├── jquery.smooth-scroll.js
│ │ └── html5.js
│ └── files
│ │ ├── modules
│ │ ├── page-logout.php.txt
│ │ ├── feature-redirect.php.txt
│ │ ├── action-raw.php.txt
│ │ ├── action-hash.php.txt
│ │ ├── action-random.php.txt
│ │ ├── api-status.php.txt
│ │ ├── page-user-list.php.txt
│ │ ├── action-protect.php.txt
│ │ └── page-debug-info.php.txt
│ │ ├── settings.fragment.php.txt
│ │ ├── pack.php.txt
│ │ └── download.php.txt
├── README.md
├── 08-Making-A-Release.md
├── 01-Welcome.md
├── 03-Screenshots.md
├── 04-Getting-Started.md
├── 02-Features.md
├── theme.css
├── 05-Getting-A-Copy.md
└── 06-Configuration.md
├── .gitmodules
├── apidoc.json
├── .travis.yml
├── package.json
├── modules
├── page-logout.php
├── feature-redirect.php
├── action-raw.php
├── action-hash.php
├── action-random.php
├── api-status.php
├── feature-interwiki-links.php
├── page-user-list.php
├── action-protect.php
└── page-debug-info.php
├── settings.fragment.php
├── pack.php
├── download.php
├── README.md
└── .gitignore
/version:
--------------------------------------------------------------------------------
1 | v0.18-dev
2 |
--------------------------------------------------------------------------------
/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/logo.png
--------------------------------------------------------------------------------
/docs/RestApi/img/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/RestApi/img/favicon.ico
--------------------------------------------------------------------------------
/docs/ModuleApi/images/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/favicon.ico
--------------------------------------------------------------------------------
/docs/ModuleApi/font/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/font/FontAwesome.otf
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "lantern-build-engine"]
2 | path = lantern-build-engine
3 | url = https://gitlab.com/sbrl/lantern-build-engine.git
4 |
--------------------------------------------------------------------------------
/docs/ModuleApi/images/iviewer/grab.cur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/iviewer/grab.cur
--------------------------------------------------------------------------------
/docs/ModuleApi/images/iviewer/hand.cur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/iviewer/hand.cur
--------------------------------------------------------------------------------
/docs/ModuleApi/images/hierarchy-item.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/hierarchy-item.png
--------------------------------------------------------------------------------
/docs/RestApi/img/glyphicons-halflings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/RestApi/img/glyphicons-halflings.png
--------------------------------------------------------------------------------
/docs/ModuleApi/font/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/font/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/docs/ModuleApi/font/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/font/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/docs/ModuleApi/font/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/font/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/docs/ModuleApi/images/apple-touch-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/apple-touch-icon.png
--------------------------------------------------------------------------------
/docs/ModuleApi/images/icon-class-13x13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/icon-class-13x13.png
--------------------------------------------------------------------------------
/docs/ModuleApi/images/icon-trait-13x13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/icon-trait-13x13.png
--------------------------------------------------------------------------------
/docs/ModuleApi/images/icon-interface-13x13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/icon-interface-13x13.png
--------------------------------------------------------------------------------
/docs/ModuleApi/images/apple-touch-icon-72x72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/apple-touch-icon-72x72.png
--------------------------------------------------------------------------------
/docs/ModuleApi/images/iviewer/iviewer.zoom_in.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/iviewer/iviewer.zoom_in.png
--------------------------------------------------------------------------------
/docs/RestApi/img/glyphicons-halflings-white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/RestApi/img/glyphicons-halflings-white.png
--------------------------------------------------------------------------------
/docs/ModuleApi/images/apple-touch-icon-114x114.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/apple-touch-icon-114x114.png
--------------------------------------------------------------------------------
/docs/ModuleApi/images/iviewer/iviewer.zoom_fit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/iviewer/iviewer.zoom_fit.png
--------------------------------------------------------------------------------
/docs/ModuleApi/images/iviewer/iviewer.zoom_out.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/iviewer/iviewer.zoom_out.png
--------------------------------------------------------------------------------
/docs/ModuleApi/images/iviewer/iviewer.zoom_zero.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/iviewer/iviewer.zoom_zero.png
--------------------------------------------------------------------------------
/docs/RestApi/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/RestApi/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/docs/RestApi/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/RestApi/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/docs/ModuleApi/images/iviewer/iviewer.rotate_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/iviewer/iviewer.rotate_left.png
--------------------------------------------------------------------------------
/docs/ModuleApi/images/iviewer/iviewer.rotate_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/images/iviewer/iviewer.rotate_right.png
--------------------------------------------------------------------------------
/docs/RestApi/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/RestApi/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/docs/RestApi/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/RestApi/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/apidoc.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Pepperminty Wiki",
3 | "version": "0.17.1",
4 | "description": "A wiki in a box. This is the API documentation.",
5 | "title": "Pepperminty Wiki (0.13-dev)"
6 | }
7 |
--------------------------------------------------------------------------------
/docs/ModuleApi/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.eot
--------------------------------------------------------------------------------
/docs/ModuleApi/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.ttf
--------------------------------------------------------------------------------
/docs/ModuleApi/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SQL-enwiki/Pepperminty-Wiki/master/docs/ModuleApi/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.woff
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: php
2 |
3 | php:
4 | - 7.0
5 | - 7.1
6 | - nightly
7 |
8 | before_script:
9 | - php build.php
10 | - ls modules/*.php | xargs -n 1 php -l
11 |
12 | script: php -l build/index.php
13 |
--------------------------------------------------------------------------------
/docs/ModuleApi/.htaccess:
--------------------------------------------------------------------------------
1 | # Fixes a vulnerability in CentOS: http://stackoverflow.com/questions/20533279/prevent-php-from-parsing-non-php-files-such-as-somefile-php-txt
2 |
3 | RemoveHandler .php
4 | ForceType text/plain
5 |
--------------------------------------------------------------------------------
/docs/ModuleApi/css/phpdocumentor-clean-icons/Read Me.txt:
--------------------------------------------------------------------------------
1 | To modify your generated font, use the *dev.svg* file, located in the *fonts* folder in this package. You can import this dev.svg file to the IcoMoon app. All the tags (class names) and the Unicode points of your glyphs are saved in this file.
2 |
3 | See the documentation for more info on how to use this package: http://icomoon.io/#docs/font-face
--------------------------------------------------------------------------------
/docs/RestApi/api_project.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Pepperminty Wiki",
3 | "version": "0.17.1",
4 | "description": "A wiki in a box. This is the API documentation.",
5 | "title": "Pepperminty Wiki (0.13-dev)",
6 | "sampleUrl": false,
7 | "defaultVersion": "0.0.0",
8 | "apidoc": "0.3.0",
9 | "generator": {
10 | "name": "apidoc",
11 | "time": "2018-12-12T23:30:07.606Z",
12 | "url": "http://apidocjs.com",
13 | "version": "0.17.7"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/docs/RestApi/api_project.js:
--------------------------------------------------------------------------------
1 | define({
2 | "name": "Pepperminty Wiki",
3 | "version": "0.17.1",
4 | "description": "A wiki in a box. This is the API documentation.",
5 | "title": "Pepperminty Wiki (0.13-dev)",
6 | "sampleUrl": false,
7 | "defaultVersion": "0.0.0",
8 | "apidoc": "0.3.0",
9 | "generator": {
10 | "name": "apidoc",
11 | "time": "2018-12-12T23:30:07.606Z",
12 | "url": "http://apidocjs.com",
13 | "version": "0.17.7"
14 | }
15 | });
16 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/prettify.css:
--------------------------------------------------------------------------------
1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
--------------------------------------------------------------------------------
/docs/README.md:
--------------------------------------------------------------------------------
1 | # Documentation
2 |
3 | * [Pepperminty Wiki](01-Welcome.md)
4 | * [Features](02-Features.md)
5 | * [Screenshots](03-Screenshots.md)
6 | * [Demo](https://starbeamrainbowlabs.com/labs/peppermint/build/)
7 | * [Getting Started](04-Getting-Started.md)
8 | * [Getting a Copy](05-Getting-A-Copy.md)
9 | * [Configuration](06-Configuration.md)
10 | * [Writing Modules](07-Writing-Modules.md)
11 | * References
12 | * [Configuration Settings](https://starbeamrainbowlabs.com/labs/peppermint/peppermint-config-info.php)
13 | * [HTTP API](https://starbeamrainbowlabs.com/labs/peppermint/docs/RestApi/)
14 | * [PHP Module API](https://starbeamrainbowlabs.com/labs/peppermint/docs/ModuleApi/)
15 | * [Making a Release](08-Making-A-Release.md)
16 |
--------------------------------------------------------------------------------
/docs/08-Making-A-Release.md:
--------------------------------------------------------------------------------
1 | # Making a Release
2 | This page contains a few notes about making a release of Pepperminty Wiki. These notes are intended to remind me of things I need to do, but you may find them useful.
3 |
4 | The following things need to be done to prepare for a release:
5 |
6 | - Check for outstanding issues
7 | - Check the changelog
8 | - Make sure that the README is up to date
9 | - Make sure that Pepperminty Wiki actually works
10 | - Bump the version:
11 | - In the `version` file
12 | - In the changelog
13 | - In `apidoc.json` (TODO: Automate this?)
14 | - In the README.md (TODO: Automate this?)
15 | - (Stable releases only) Pull down changes to update online downloader at starbeamrainbowlabs.com/labs/peppermint/download.php
16 | - Update wikimatrix
17 | - Write & publish the release
18 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "pepperminty-wiki",
3 | "version": "0.17.1",
4 | "description": "A wiki in a box",
5 | "main": "index.js",
6 | "directories": {
7 | "doc": "docs"
8 | },
9 | "scripts": {
10 | "test": "echo \"Error: no test specified\" && exit 1"
11 | },
12 | "repository": {
13 | "type": "git",
14 | "url": "git+https://github.com/sbrl/Pepperminty-Wiki.git"
15 | },
16 | "author": "Starbeamrainbowlabs",
17 | "license": "MPL-2.0",
18 | "bugs": {
19 | "url": "https://github.com/sbrl/Pepperminty-Wiki/issues"
20 | },
21 | "homepage": "https://github.com/sbrl/Pepperminty-Wiki#readme",
22 | "devDependencies": {
23 | "apidoc": "^0.17.7",
24 | "docpress": "^0.7.4"
25 | },
26 | "docpress": {
27 | "github": "sbrl/Pepperminty-Wiki",
28 | "markdown": {
29 | "xhtmlOut": true
30 | },
31 | "css": [
32 | "docs/theme.css"
33 | ]
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/docs/ModuleApi/css/phpdocumentor-clean-icons/lte-ie7.js:
--------------------------------------------------------------------------------
1 | /* Load this script using conditional IE comments if you need to support IE 7 and IE 6. */
2 |
3 | window.onload = function() {
4 | function addIcon(el, entity) {
5 | var html = el.innerHTML;
6 | el.innerHTML = '' + entity + '' + html;
7 | }
8 | var icons = {
9 | 'icon-trait' : '',
10 | 'icon-interface' : '',
11 | 'icon-class' : ''
12 | },
13 | els = document.getElementsByTagName('*'),
14 | i, attr, html, c, el;
15 | for (i = 0; ; i += 1) {
16 | el = els[i];
17 | if(!el) {
18 | break;
19 | }
20 | attr = el.getAttribute('data-icon');
21 | if (attr) {
22 | addIcon(el, attr);
23 | }
24 | c = el.className;
25 | c = c.match(/icon-[^\s'"]+/);
26 | if (c && icons[c[0]]) {
27 | addIcon(el, icons[c[0]]);
28 | }
29 | }
30 | };
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-rd.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2012 Jeffrey Arnold
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\r\n]*/,null,"%"]],[["lit",/^\\(?:cr|l?dots|R|tab)\b/],["kwd",/^\\[a-zA-Z@]+/],["kwd",/^#(?:ifn?def|endif)/],["pln",/^\\[{}]/],["pun",/^[{}()\[\]]+/]]),["Rd","rd"]);
18 |
--------------------------------------------------------------------------------
/docs/01-Welcome.md:
--------------------------------------------------------------------------------
1 | # Welcome to Pepperminty Wiki!
2 |
3 | > A Wiki in a box
4 |
5 | Pepperminty Wiki is a complete wiki engine contained in a single file, inspired by @am2064's [Minty Wiki](https://github.com/am2064/Minty-Wiki). It's open source too (under MPL-2.0), so contributions are welcome!
6 |
7 | Developed by Starbeamrainbowlabs (though contributions from others are welcome!), Pepperminty Wiki has a variety of useful (and cool!) features - such as file upload, a dynamic help page, page revision history, page tags, and more! Other amazing features are in the works too (like a theme gallery, auto update, and user watchlists), so check the release notes to see what's been added recently.
8 |
9 | _This documentation is brand-new, and still a work-in-progress. If you spot any issues, please let me know by [opening an issue](https://github.com/sbrl/Pepperminty-Wiki/issues/new) :-)_
10 |
11 | 
12 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-latex.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2011 Martin S.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\r\n]*/,null,"%"]],[["kwd",/^\\[a-zA-Z@]+/],["kwd",/^\\./],["typ",/^[$&]/],["lit",/[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],["pun",/^[{}()\[\]=]+/]]),["latex","tex"]);
18 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-tex.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2011 Martin S.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\r\n]*/,null,"%"]],[["kwd",/^\\[a-zA-Z@]+/],["kwd",/^\\./],["typ",/^[$&]/],["lit",/[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],["pun",/^[{}()\[\]=]+/]]),["latex","tex"]);
18 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-go.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2010 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["pln",/^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])+(?:\'|$)|`[^`]*(?:`|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\r\n]*|\/\*[\s\S]*?\*\/)/],["pln",/^(?:[^\/\"\'`]|\/(?![\/\*]))+/i]]),["go"]);
18 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-proto.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2006 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]);
18 |
--------------------------------------------------------------------------------
/docs/03-Screenshots.md:
--------------------------------------------------------------------------------
1 | # Screenshots
2 | This is just a small sample of what Pepperminty Wiki can do. Go to the [Getting Started](04-Getting-Started.md) to spin up your own instance, or head directly to [the downloader](https://starbeamrainbowlabs.com/labs/peppermint/download.php) to grab a copy now!
3 |
4 | #### Example Main Page
5 | Showcases threaded page comments too!
6 |
7 | 
8 |
9 | #### All Pages List
10 | 
11 |
12 | #### Page Editor
13 | 
14 |
15 | #### Search Results
16 | 
17 |
18 | #### Recent Changes
19 | Changes are split by date. Multiple changes can be shown under a single date heading, it's just not shown here :-)
20 |
21 | 
22 |
23 | #### User Management Table
24 | The user management table, which is only accessible to moderators.
25 |
26 | 
27 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-ll.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2013 Nikhil Dabas
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^!?\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["com",/^;[^\r\n]*/,null,";"]],[["pln",/^[%@!](?:[-a-zA-Z$._][-a-zA-Z$._0-9]*|\d+)/],["kwd",/^[A-Za-z_][0-9A-Za-z_]*/,null],["lit",/^\d+\.\d+/],["lit",/^(?:\d+|0[xX][a-fA-F0-9]+)/],["pun",/^[()\[\]{},=*<>:]|\.\.\.$/]]),["llvm","ll"]);
18 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-llvm.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2013 Nikhil Dabas
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^!?\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["com",/^;[^\r\n]*/,null,";"]],[["pln",/^[%@!](?:[-a-zA-Z$._][-a-zA-Z$._0-9]*|\d+)/],["kwd",/^[A-Za-z_][0-9A-Za-z_]*/,null],["lit",/^\d+\.\d+/],["lit",/^(?:\d+|0[xX][a-fA-F0-9]+)/],["pun",/^[()\[\]{},=*<>:]|\.\.\.$/]]),["llvm","ll"]);
18 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-yaml.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2015 ribrdb @ code.google.com
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:|>?]+/,null,":|>?"],["dec",/^%(?:YAML|TAG)[^#\r\n]+/,null,"%"],["typ",/^[&]\S+/,null,"&"],["typ",/^!\S*/,null,"!"],["str",/^"(?:[^\\"]|\\.)*(?:"|$)/,null,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,null,"'"],["com",/^#[^\r\n]*/,null,"#"],["pln",/^\s+/,null," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\r\n]|$)/],["pun",/^-/],["kwd",/^[\w-]+:[ \r\n]/],["pln",
18 | /^\w+/]]),["yaml","yml"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-yml.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2015 ribrdb @ code.google.com
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:|>?]+/,null,":|>?"],["dec",/^%(?:YAML|TAG)[^#\r\n]+/,null,"%"],["typ",/^[&]\S+/,null,"&"],["typ",/^!\S*/,null,"!"],["str",/^"(?:[^\\"]|\\.)*(?:"|$)/,null,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,null,"'"],["com",/^#[^\r\n]*/,null,"#"],["pln",/^\s+/,null," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\r\n]|$)/],["pun",/^-/],["kwd",/^[\w-]+:[ \r\n]/],["pln",
18 | /^\w+/]]),["yaml","yml"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/zh.js:
--------------------------------------------------------------------------------
1 | define({
2 | zh: {
3 | 'Allowed values:' : '允許值:',
4 | 'Compare all with predecessor': '預先比較所有',
5 | 'compare changes to:' : '比較變更:',
6 | 'compared to' : '對比',
7 | 'Default value:' : '默認值:',
8 | 'Description' : '描述',
9 | 'Field' : '字段',
10 | 'General' : '概括',
11 | 'Generated with' : '生成工具',
12 | 'Name' : '名稱',
13 | 'No response values.' : '無對應資料.',
14 | 'optional' : '選項',
15 | 'Parameter' : '參數',
16 | 'Permission:' : '允許:',
17 | 'Response' : '回應',
18 | 'Send' : '發送',
19 | 'Send a Sample Request' : '發送試用需求',
20 | 'show up to version:' : '顯示到版本:',
21 | 'Size range:' : '尺寸範圍:',
22 | 'Type' : '類型',
23 | 'url' : '網址'
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/zh_cn.js:
--------------------------------------------------------------------------------
1 | define({
2 | 'zh_cn': {
3 | 'Allowed values:' : '允许值:',
4 | 'Compare all with predecessor': '与所有较早的比较',
5 | 'compare changes to:' : '将当前版本与指定版本比较:',
6 | 'compared to' : '相比于',
7 | 'Default value:' : '默认值:',
8 | 'Description' : '描述',
9 | 'Field' : '字段',
10 | 'General' : '概要',
11 | 'Generated with' : '基于',
12 | 'Name' : '名称',
13 | 'No response values.' : '无返回值.',
14 | 'optional' : '可选',
15 | 'Parameter' : '参数',
16 | 'Permission:' : '权限:',
17 | 'Response' : '返回',
18 | 'Send' : '发送',
19 | 'Send a Sample Request' : '发送示例请求',
20 | 'show up to version:' : '显示到指定版本:',
21 | 'Size range:' : '取值范围:',
22 | 'Type' : '类型',
23 | 'url' : '网址'
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-cbm.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2013 Peter Kofler
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:"(?:[^\\"\r\n]|\\.)*(?:"|$))/,null,'"'],["pln",/^\s+/,null," \r\n\t\u00a0"]],[["com",/^REM[^\r\n]*/,null],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,null],["pln",/^[A-Z][A-Z0-9]?(?:\$|%)?/i,null],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+\-]?\d+)?/i,
18 | null,"0123456789"],["pun",/^.[^\s\w\.$%"]*/,null]]),["basic","cbm"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-basic.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2013 Peter Kofler
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:"(?:[^\\"\r\n]|\\.)*(?:"|$))/,null,'"'],["pln",/^\s+/,null," \r\n\t\u00a0"]],[["com",/^REM[^\r\n]*/,null],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,null],["pln",/^[A-Z][A-Z0-9]?(?:\$|%)?/i,null],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+\-]?\d+)?/i,
18 | null,"0123456789"],["pun",/^.[^\s\w\.$%"]*/,null]]),["basic","cbm"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/path-to-regexp/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-wiki.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2009 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t \xA0a-gi-z0-9]+/,null,"\t \u00a0abcdefgijklmnopqrstuvwxyz0123456789"],["pun",/^[=*~\^\[\]]+/,null,"=*~^[]"]],[["lang-wiki.meta",/(?:^^|\r\n?|\n)(#[a-z]+)\b/],["lit",/^(?:[A-Z][a-z][a-z0-9]+[A-Z][a-z][a-zA-Z0-9]+)\b/],["lang-",/^\{\{\{([\s\S]+?)\}\}\}/],["lang-",/^`([^\r\n`]+)`/],["str",/^https?:\/\/[^\/?#\s]*(?:\/[^?#\s]*)?(?:\?[^#\s]*)?(?:#\S*)?/i],["pln",/^(?:\r\n|[\s\S])[^#=*~^A-Zh\{`\[\r\n]*/]]),["wiki"]);
18 | PR.registerLangHandler(PR.createSimpleLexer([["kwd",/^#[a-z]+/i,null,"#"]],[]),["wiki.meta"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-lua.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2008 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])*(?:\'|$))/,null,"\"'"]],[["com",/^--(?:\[(=*)\[[\s\S]*?(?:\]\1\]|$)|[^\r\n]*)/],["str",/^\[(=*)\[[\s\S]*?(?:\]\1\]|$)/],["kwd",/^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,null],["lit",/^[+-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i],
18 | ["pln",/^[a-z_]\w*/i],["pun",/^[^\w\t\n\r \xA0][^\w\t\n\r \xA0\"\'\-\+=]*/]]),["lua"]);
19 |
--------------------------------------------------------------------------------
/docs/ModuleApi/js/jquery.smooth-scroll.js:
--------------------------------------------------------------------------------
1 | $(document).ready(function() {
2 | function filterPath(string) {
3 | return string
4 | .replace(/^\//,'')
5 | .replace(/(index|default).[a-zA-Z]{3,4}$/,'')
6 | .replace(/\/$/,'');
7 | }
8 | var locationPath = filterPath(location.pathname);
9 |
10 | $('a[href*=#]').each(function() {
11 | var thisPath = filterPath(this.pathname) || locationPath;
12 | if ( locationPath == thisPath
13 | && (location.hostname == this.hostname || !this.hostname)
14 | && this.hash.replace(/#/,'') ) {
15 | var $target = $(this.hash), target = this.hash;
16 | if (target) {
17 | $(this).click(function(event) {
18 | if (!$(this.hash).offset()) {
19 | return;
20 | }
21 |
22 | event.preventDefault();
23 | position = $(this.hash).offset().top;
24 |
25 | $('html,body').animate({scrollTop: position}, 400, function() {
26 | location.hash = target;
27 | });
28 | });
29 | }
30 | }
31 | });
32 | });
33 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-erl.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2013 Andrew Allen
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\x0B\x0C\r ]+/,null,"\t\n\x0B\f\r "],["str",/^\"(?:[^\"\\\n\x0C\r]|\\[\s\S])*(?:\"|$)/,null,'"'],["lit",/^[a-z][a-zA-Z0-9_]*/],["lit",/^\'(?:[^\'\\\n\x0C\r]|\\[^&])+\'?/,null,"'"],["lit",/^\?[^ \t\n({]+/,null,"?"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+\-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\n]*/],["kwd",/^(?:module|attributes|do|let|in|letrec|apply|call|primop|case|of|end|when|fun|try|catch|receive|after|char|integer|float,atom,string,var)\b/],
18 | ["kwd",/^-[a-z_]+/],["typ",/^[A-Z_][a-zA-Z0-9_]*/],["pun",/^[.,;]/]]),["erlang","erl"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-erlang.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2013 Andrew Allen
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\x0B\x0C\r ]+/,null,"\t\n\x0B\f\r "],["str",/^\"(?:[^\"\\\n\x0C\r]|\\[\s\S])*(?:\"|$)/,null,'"'],["lit",/^[a-z][a-zA-Z0-9_]*/],["lit",/^\'(?:[^\'\\\n\x0C\r]|\\[^&])+\'?/,null,"'"],["lit",/^\?[^ \t\n({]+/,null,"?"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+\-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\n]*/],["kwd",/^(?:module|attributes|do|let|in|letrec|apply|call|primop|case|of|end|when|fun|try|catch|receive|after|char|integer|float,atom,string,var)\b/],
18 | ["kwd",/^-[a-z_]+/],["typ",/^[A-Z_][a-zA-Z0-9_]*/],["pun",/^[.,;]/]]),["erlang","erl"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-hs.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2009 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\x0B\x0C\r ]+/,null,"\t\n\x0B\f\r "],["str",/^\"(?:[^\"\\\n\x0C\r]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\'(?:[^\'\\\n\x0C\r]|\\[^&])\'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+\-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:(?:--+(?:[^\r\n\x0C]*)?)|(?:\{-(?:[^-]|-+[^-\}])*-\}))/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^a-zA-Z0-9\']|$)/,
18 | null],["pln",/^(?:[A-Z][\w\']*\.)*[a-zA-Z][\w\']*/],["pun",/^[^\t\n\x0B\x0C\r a-zA-Z0-9\'\"]+/]]),["hs"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/tr.js:
--------------------------------------------------------------------------------
1 | define({
2 | tr: {
3 | 'Allowed values:' : 'İzin verilen değerler:',
4 | 'Compare all with predecessor': 'Tümünü öncekiler ile karşılaştır',
5 | 'compare changes to:' : 'değişiklikleri karşılaştır:',
6 | 'compared to' : 'karşılaştır',
7 | 'Default value:' : 'Varsayılan değer:',
8 | 'Description' : 'Açıklama',
9 | 'Field' : 'Alan',
10 | 'General' : 'Genel',
11 | 'Generated with' : 'Oluşturan',
12 | 'Name' : 'İsim',
13 | 'No response values.' : 'Dönüş verisi yok.',
14 | 'optional' : 'opsiyonel',
15 | 'Parameter' : 'Parametre',
16 | 'Permission:' : 'İzin:',
17 | 'Response' : 'Dönüş',
18 | 'Send' : 'Gönder',
19 | 'Send a Sample Request' : 'Örnek istek gönder',
20 | 'show up to version:' : 'bu versiyona kadar göster:',
21 | 'Size range:' : 'Boyut aralığı:',
22 | 'Type' : 'Tip',
23 | 'url' : 'url'
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/pl.js:
--------------------------------------------------------------------------------
1 | define({
2 | pl: {
3 | 'Allowed values:' : 'Dozwolone wartości:',
4 | 'Compare all with predecessor': 'Porównaj z poprzednimi wersjami',
5 | 'compare changes to:' : 'porównaj zmiany do:',
6 | 'compared to' : 'porównaj do:',
7 | 'Default value:' : 'Wartość domyślna:',
8 | 'Description' : 'Opis',
9 | 'Field' : 'Pole',
10 | 'General' : 'Generalnie',
11 | 'Generated with' : 'Wygenerowano z',
12 | 'Name' : 'Nazwa',
13 | 'No response values.' : 'Brak odpowiedzi.',
14 | 'optional' : 'opcjonalny',
15 | 'Parameter' : 'Parametr',
16 | 'Permission:' : 'Uprawnienia:',
17 | 'Response' : 'Odpowiedź',
18 | 'Send' : 'Wyślij',
19 | 'Send a Sample Request' : 'Wyślij przykładowe żądanie',
20 | 'show up to version:' : 'pokaż do wersji:',
21 | 'Size range:' : 'Zakres rozmiaru:',
22 | 'Type' : 'Typ',
23 | 'url' : 'url'
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/ca.js:
--------------------------------------------------------------------------------
1 | define({
2 | ca: {
3 | 'Allowed values:' : 'Valors permesos:',
4 | 'Compare all with predecessor': 'Comparar tot amb versió anterior',
5 | 'compare changes to:' : 'comparar canvis amb:',
6 | 'compared to' : 'comparat amb',
7 | 'Default value:' : 'Valor per defecte:',
8 | 'Description' : 'Descripció',
9 | 'Field' : 'Camp',
10 | 'General' : 'General',
11 | 'Generated with' : 'Generat amb',
12 | 'Name' : 'Nom',
13 | 'No response values.' : 'Sense valors en la resposta.',
14 | 'optional' : 'opcional',
15 | 'Parameter' : 'Paràmetre',
16 | 'Permission:' : 'Permisos:',
17 | 'Response' : 'Resposta',
18 | 'Send' : 'Enviar',
19 | 'Send a Sample Request' : 'Enviar una petició d\'exemple',
20 | 'show up to version:' : 'mostrar versió:',
21 | 'Size range:' : 'Tamany de rang:',
22 | 'Type' : 'Tipus',
23 | 'url' : 'url'
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/vi.js:
--------------------------------------------------------------------------------
1 | define({
2 | vi: {
3 | 'Allowed values:' : 'Giá trị chấp nhận:',
4 | 'Compare all with predecessor': 'So sánh với tất cả phiên bản trước',
5 | 'compare changes to:' : 'so sánh sự thay đổi với:',
6 | 'compared to' : 'so sánh với',
7 | 'Default value:' : 'Giá trị mặc định:',
8 | 'Description' : 'Chú thích',
9 | 'Field' : 'Trường dữ liệu',
10 | 'General' : 'Tổng quan',
11 | 'Generated with' : 'Được tạo bởi',
12 | 'Name' : 'Tên',
13 | 'No response values.' : 'Không có kết quả trả về.',
14 | 'optional' : 'Tùy chọn',
15 | 'Parameter' : 'Tham số',
16 | 'Permission:' : 'Quyền hạn:',
17 | 'Response' : 'Kết quả',
18 | 'Send' : 'Gửi',
19 | 'Send a Sample Request' : 'Gửi một yêu cầu mẫu',
20 | 'show up to version:' : 'hiển thị phiên bản:',
21 | 'Size range:' : 'Kích cỡ:',
22 | 'Type' : 'Kiểu',
23 | 'url' : 'liên kết'
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/cs.js:
--------------------------------------------------------------------------------
1 | define({
2 | cs: {
3 | 'Allowed values:' : 'Povolené hodnoty:',
4 | 'Compare all with predecessor': 'Porovnat vše s předchozími verzemi',
5 | 'compare changes to:' : 'porovnat změny s:',
6 | 'compared to' : 'porovnat s',
7 | 'Default value:' : 'Výchozí hodnota:',
8 | 'Description' : 'Popis',
9 | 'Field' : 'Pole',
10 | 'General' : 'Obecné',
11 | 'Generated with' : 'Vygenerováno pomocí',
12 | 'Name' : 'Název',
13 | 'No response values.' : 'Nebyly vráceny žádné hodnoty.',
14 | 'optional' : 'volitelné',
15 | 'Parameter' : 'Parametr',
16 | 'Permission:' : 'Oprávnění:',
17 | 'Response' : 'Odpověď',
18 | 'Send' : 'Odeslat',
19 | 'Send a Sample Request' : 'Odeslat ukázkový požadavek',
20 | 'show up to version:' : 'zobrazit po verzi:',
21 | 'Size range:' : 'Rozsah velikosti:',
22 | 'Type' : 'Typ',
23 | 'url' : 'url'
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/ro.js:
--------------------------------------------------------------------------------
1 | define({
2 | ro: {
3 | 'Allowed values:' : 'Valori permise:',
4 | 'Compare all with predecessor': 'Compară toate cu versiunea precedentă',
5 | 'compare changes to:' : 'compară cu versiunea:',
6 | 'compared to' : 'comparat cu',
7 | 'Default value:' : 'Valoare implicită:',
8 | 'Description' : 'Descriere',
9 | 'Field' : 'Câmp',
10 | 'General' : 'General',
11 | 'Generated with' : 'Generat cu',
12 | 'Name' : 'Nume',
13 | 'No response values.' : 'Nici o valoare returnată.',
14 | 'optional' : 'opțional',
15 | 'Parameter' : 'Parametru',
16 | 'Permission:' : 'Permisiune:',
17 | 'Response' : 'Răspuns',
18 | 'Send' : 'Trimite',
19 | 'Send a Sample Request' : 'Trimite o cerere de probă',
20 | 'show up to version:' : 'arată până la versiunea:',
21 | 'Size range:' : 'Interval permis:',
22 | 'Type' : 'Tip',
23 | 'url' : 'url'
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-tcl.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2012 Pyrios
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\{+/,null,"{"],["clo",/^\}+/,null,"}"],["com",/^#[^\r\n]*/,null,"#"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:after|append|apply|array|break|case|catch|continue|error|eval|exec|exit|expr|for|foreach|if|incr|info|proc|return|set|switch|trace|uplevel|upvar|while)\b/,null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],
18 | ["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),["tcl"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/de.js:
--------------------------------------------------------------------------------
1 | define({
2 | de: {
3 | 'Allowed values:' : 'Erlaubte Werte:',
4 | 'Compare all with predecessor': 'Vergleiche alle mit ihren Vorgängern',
5 | 'compare changes to:' : 'vergleiche Änderungen mit:',
6 | 'compared to' : 'verglichen mit',
7 | 'Default value:' : 'Standardwert:',
8 | 'Description' : 'Beschreibung',
9 | 'Field' : 'Feld',
10 | 'General' : 'Allgemein',
11 | 'Generated with' : 'Erstellt mit',
12 | 'Name' : 'Name',
13 | 'No response values.' : 'Keine Rückgabewerte.',
14 | 'optional' : 'optional',
15 | 'Parameter' : 'Parameter',
16 | 'Permission:' : 'Berechtigung:',
17 | 'Response' : 'Antwort',
18 | 'Send' : 'Senden',
19 | 'Send a Sample Request' : 'Eine Beispielanfrage senden',
20 | 'show up to version:' : 'zeige bis zur Version:',
21 | 'Size range:' : 'Größenbereich:',
22 | 'Type' : 'Typ',
23 | 'url' : 'url'
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/pt_br.js:
--------------------------------------------------------------------------------
1 | define({
2 | 'pt_br': {
3 | 'Allowed values:' : 'Valores permitidos:',
4 | 'Compare all with predecessor': 'Compare todos com antecessores',
5 | 'compare changes to:' : 'comparar alterações com:',
6 | 'compared to' : 'comparado com',
7 | 'Default value:' : 'Valor padrão:',
8 | 'Description' : 'Descrição',
9 | 'Field' : 'Campo',
10 | 'General' : 'Geral',
11 | 'Generated with' : 'Gerado com',
12 | 'Name' : 'Nome',
13 | 'No response values.' : 'Sem valores de resposta.',
14 | 'optional' : 'opcional',
15 | 'Parameter' : 'Parâmetro',
16 | 'Permission:' : 'Permissão:',
17 | 'Response' : 'Resposta',
18 | 'Send' : 'Enviar',
19 | 'Send a Sample Request' : 'Enviar um Exemplo de Pedido',
20 | 'show up to version:' : 'aparecer para a versão:',
21 | 'Size range:' : 'Faixa de tamanho:',
22 | 'Type' : 'Tipo',
23 | 'url' : 'url'
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/ru.js:
--------------------------------------------------------------------------------
1 | define({
2 | ru: {
3 | 'Allowed values:' : 'Допустимые значения:',
4 | 'Compare all with predecessor': 'Сравнить с предыдущей версией',
5 | 'compare changes to:' : 'сравнить с:',
6 | 'compared to' : 'в сравнении с',
7 | 'Default value:' : 'По умолчанию:',
8 | 'Description' : 'Описание',
9 | 'Field' : 'Название',
10 | 'General' : 'Общая информация',
11 | 'Generated with' : 'Сгенерировано с помощью',
12 | 'Name' : 'Название',
13 | 'No response values.' : 'Нет значений для ответа.',
14 | 'optional' : 'необязательный',
15 | 'Parameter' : 'Параметр',
16 | 'Permission:' : 'Разрешено:',
17 | 'Response' : 'Ответ',
18 | 'Send' : 'Отправить',
19 | 'Send a Sample Request' : 'Отправить тестовый запрос',
20 | 'show up to version:' : 'показать версию:',
21 | 'Size range:' : 'Ограничения:',
22 | 'Type' : 'Тип',
23 | 'url' : 'URL'
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/es.js:
--------------------------------------------------------------------------------
1 | define({
2 | es: {
3 | 'Allowed values:' : 'Valores permitidos:',
4 | 'Compare all with predecessor': 'Comparar todo con versión anterior',
5 | 'compare changes to:' : 'comparar cambios con:',
6 | 'compared to' : 'comparado con',
7 | 'Default value:' : 'Valor por defecto:',
8 | 'Description' : 'Descripción',
9 | 'Field' : 'Campo',
10 | 'General' : 'General',
11 | 'Generated with' : 'Generado con',
12 | 'Name' : 'Nombre',
13 | 'No response values.' : 'Sin valores en la respuesta.',
14 | 'optional' : 'opcional',
15 | 'Parameter' : 'Parámetro',
16 | 'Permission:' : 'Permisos:',
17 | 'Response' : 'Respuesta',
18 | 'Send' : 'Enviar',
19 | 'Send a Sample Request' : 'Enviar una petición de ejemplo',
20 | 'show up to version:' : 'mostrar a versión:',
21 | 'Size range:' : 'Tamaño de rango:',
22 | 'Type' : 'Tipo',
23 | 'url' : 'url'
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/nl.js:
--------------------------------------------------------------------------------
1 | define({
2 | nl: {
3 | 'Allowed values:' : 'Toegestane waarden:',
4 | 'Compare all with predecessor': 'Vergelijk alle met voorgaande versie',
5 | 'compare changes to:' : 'vergelijk veranderingen met:',
6 | 'compared to' : 'vergelijk met',
7 | 'Default value:' : 'Standaard waarde:',
8 | 'Description' : 'Omschrijving',
9 | 'Field' : 'Veld',
10 | 'General' : 'Algemeen',
11 | 'Generated with' : 'Gegenereerd met',
12 | 'Name' : 'Naam',
13 | 'No response values.' : 'Geen response waardes.',
14 | 'optional' : 'optioneel',
15 | 'Parameter' : 'Parameter',
16 | 'Permission:' : 'Permissie:',
17 | 'Response' : 'Antwoorden',
18 | 'Send' : 'Sturen',
19 | 'Send a Sample Request' : 'Stuur een sample aanvragen',
20 | 'show up to version:' : 'toon tot en met versie:',
21 | 'Size range:' : 'Maatbereik:',
22 | 'Type' : 'Type',
23 | 'url' : 'url'
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/fr.js:
--------------------------------------------------------------------------------
1 | define({
2 | fr: {
3 | 'Allowed values:' : 'Valeurs autorisées :',
4 | 'Compare all with predecessor': 'Tout comparer avec ...',
5 | 'compare changes to:' : 'comparer les changements à :',
6 | 'compared to' : 'comparer à',
7 | 'Default value:' : 'Valeur par défaut :',
8 | 'Description' : 'Description',
9 | 'Field' : 'Champ',
10 | 'General' : 'Général',
11 | 'Generated with' : 'Généré avec',
12 | 'Name' : 'Nom',
13 | 'No response values.' : 'Aucune valeur de réponse.',
14 | 'optional' : 'optionnel',
15 | 'Parameter' : 'Paramètre',
16 | 'Permission:' : 'Permission :',
17 | 'Response' : 'Réponse',
18 | 'Send' : 'Envoyer',
19 | 'Send a Sample Request' : 'Envoyer une requête représentative',
20 | 'show up to version:' : 'Montrer à partir de la version :',
21 | 'Size range:' : 'Ordre de grandeur :',
22 | 'Type' : 'Type',
23 | 'url' : 'url'
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/it.js:
--------------------------------------------------------------------------------
1 | define({
2 | it: {
3 | 'Allowed values:' : 'Valori permessi:',
4 | 'Compare all with predecessor': 'Confronta tutto con versioni precedenti',
5 | 'compare changes to:' : 'confronta modifiche con:',
6 | 'compared to' : 'confrontato con',
7 | 'Default value:' : 'Valore predefinito:',
8 | 'Description' : 'Descrizione',
9 | 'Field' : 'Campo',
10 | 'General' : 'Generale',
11 | 'Generated with' : 'Creato con',
12 | 'Name' : 'Nome',
13 | 'No response values.' : 'Nessun valore di risposta.',
14 | 'optional' : 'opzionale',
15 | 'Parameter' : 'Parametro',
16 | 'Permission:' : 'Permessi:',
17 | 'Response' : 'Risposta',
18 | 'Send' : 'Invia',
19 | 'Send a Sample Request' : 'Invia una richiesta di esempio',
20 | 'show up to version:' : 'mostra alla versione:',
21 | 'Size range:' : 'Intervallo dimensione:',
22 | 'Type' : 'Tipo',
23 | 'url' : 'url'
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-pascal.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2013 Peter Kofler
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$))/,null,"'"],["pln",/^\s+/,null," \r\n\t\u00a0"]],[["com",/^\(\*[\s\S]*?(?:\*\)|$)|^\{[\s\S]*?(?:\}|$)/,null],["kwd",/^(?:ABSOLUTE|AND|ARRAY|ASM|ASSEMBLER|BEGIN|CASE|CONST|CONSTRUCTOR|DESTRUCTOR|DIV|DO|DOWNTO|ELSE|END|EXTERNAL|FOR|FORWARD|FUNCTION|GOTO|IF|IMPLEMENTATION|IN|INLINE|INTERFACE|INTERRUPT|LABEL|MOD|NOT|OBJECT|OF|OR|PACKED|PROCEDURE|PROGRAM|RECORD|REPEAT|SET|SHL|SHR|THEN|TO|TYPE|UNIT|UNTIL|USES|VAR|VIRTUAL|WHILE|WITH|XOR)\b/i,
18 | null],["lit",/^(?:true|false|self|nil)/i,null],["pln",/^[a-z][a-z0-9]*/i,null],["lit",/^(?:\$[a-f0-9]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+\-]?\d+)?)/i,null,"0123456789"],["pun",/^.[^\s\w\.$@\'\/]*/,null]]),["pascal"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-r.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2012 Jeffrey B. Arnold
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![A-Za-z0-9_.])/],["lit",/^0[xX][a-fA-F0-9]+([pP][0-9]+)?[Li]?/],["lit",/^[+-]?([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|[0-9]+))(?![A-Za-z0-9_.])/],
18 | ["pun",/^(?:<-|->>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|\*|\+|\^|\/|!|%.*?%|=|~|\$|@|:{1,3}|[\[\](){};,?])/],["pln",/^(?:[A-Za-z]+[A-Za-z0-9_.]*|\.[a-zA-Z_][0-9a-zA-Z\._]*)(?![A-Za-z0-9_.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-s.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2012 Jeffrey B. Arnold
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![A-Za-z0-9_.])/],["lit",/^0[xX][a-fA-F0-9]+([pP][0-9]+)?[Li]?/],["lit",/^[+-]?([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|[0-9]+))(?![A-Za-z0-9_.])/],
18 | ["pun",/^(?:<-|->>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|\*|\+|\^|\/|!|%.*?%|=|~|\$|@|:{1,3}|[\[\](){};,?])/],["pln",/^(?:[A-Za-z]+[A-Za-z0-9_.]*|\.[a-zA-Z_][0-9a-zA-Z\._]*)(?![A-Za-z0-9_.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-Splus.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2012 Jeffrey B. Arnold
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![A-Za-z0-9_.])/],["lit",/^0[xX][a-fA-F0-9]+([pP][0-9]+)?[Li]?/],["lit",/^[+-]?([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|[0-9]+))(?![A-Za-z0-9_.])/],
18 | ["pun",/^(?:<-|->>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|\*|\+|\^|\/|!|%.*?%|=|~|\$|@|:{1,3}|[\[\](){};,?])/],["pln",/^(?:[A-Za-z]+[A-Za-z0-9_.]*|\.[a-zA-Z_][0-9a-zA-Z\._]*)(?![A-Za-z0-9_.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]);
19 |
--------------------------------------------------------------------------------
/docs/04-Getting-Started.md:
--------------------------------------------------------------------------------
1 | # Getting Started
2 |
3 | ## System Requirements
4 | - PHP-enabled web-server (must be PHP 7+)
5 | - PHP session support (for logging in, see [here](https://php.net/manual/en/session.installation.php) for more information)
6 | - The following PHP extensions:
7 | - `mbstring` (for utf8 string handling - currently **required**)
8 | - `imagick` (for preview generation)
9 | - `fileinfo` (for proper mime type checking of uploaded files)
10 | - `zip` (for compressing exports)
11 | - `intl` (for Unicode text normalization when searching and in the id index)
12 | - Write access to Pepperminty Wiki's own folder (only for editing)
13 | - Recommended: Block access to `peppermint.json`, where it stores it's settings
14 |
15 | ## Setup Instructions
16 | 1. Once you've ensured your web server meets the requirements, obtain a copy of Pepperminty Wiki (see _[Getting a copy](05-Getting-A-Copy.md)_).
17 | 2. Put the `index.php` file on your web server.
18 | 3. Navigate to Pepperminty Wiki in your web browser. If you uploaded the `index.php` to `wiki/` on your web server `bobsrockets.com`, then you should navigate to `bobsrockets.com/wiki/`.
19 | 4. See the [Configuring](#configuring) section for information on how to customise your installation, including the default login credentials.
20 | 5. Ensure you configure your web server to block access to `peppermint.json`, as this contains all your account details (including your hashed password!)
21 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-cl.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2008 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,null,"("],["clo",/^\)+/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,
18 | null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),"cl el lisp lsp scm ss rkt".split(" "));
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-el.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2008 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,null,"("],["clo",/^\)+/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,
18 | null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),"cl el lisp lsp scm ss rkt".split(" "));
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-lsp.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2008 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,null,"("],["clo",/^\)+/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,
18 | null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),"cl el lisp lsp scm ss rkt".split(" "));
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-rkt.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2008 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,null,"("],["clo",/^\)+/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,
18 | null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),"cl el lisp lsp scm ss rkt".split(" "));
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-scm.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2008 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,null,"("],["clo",/^\)+/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,
18 | null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),"cl el lisp lsp scm ss rkt".split(" "));
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-ss.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2008 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,null,"("],["clo",/^\)+/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,
18 | null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),"cl el lisp lsp scm ss rkt".split(" "));
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-lisp.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2008 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,null,"("],["clo",/^\)+/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,
18 | null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),"cl el lisp lsp scm ss rkt".split(" "));
19 |
--------------------------------------------------------------------------------
/docs/RestApi/locales/locale.js:
--------------------------------------------------------------------------------
1 | define([
2 | './locales/ca.js',
3 | './locales/cs.js',
4 | './locales/de.js',
5 | './locales/es.js',
6 | './locales/fr.js',
7 | './locales/it.js',
8 | './locales/nl.js',
9 | './locales/pl.js',
10 | './locales/pt_br.js',
11 | './locales/ro.js',
12 | './locales/ru.js',
13 | './locales/tr.js',
14 | './locales/vi.js',
15 | './locales/zh.js',
16 | './locales/zh_cn.js'
17 | ], function() {
18 | var langId = (navigator.language || navigator.userLanguage).toLowerCase().replace('-', '_');
19 | var language = langId.substr(0, 2);
20 | var locales = {};
21 |
22 | for (index in arguments) {
23 | for (property in arguments[index])
24 | locales[property] = arguments[index][property];
25 | }
26 | if ( ! locales['en'])
27 | locales['en'] = {};
28 |
29 | if ( ! locales[langId] && ! locales[language])
30 | language = 'en';
31 |
32 | var locale = (locales[langId] ? locales[langId] : locales[language]);
33 |
34 | function __(text) {
35 | var index = locale[text];
36 | if (index === undefined)
37 | return text;
38 | return index;
39 | };
40 |
41 | function setLanguage(language) {
42 | locale = locales[language];
43 | }
44 |
45 | return {
46 | __ : __,
47 | locales : locales,
48 | locale : locale,
49 | setLanguage: setLanguage
50 | };
51 | });
52 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-lgt.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2014 Paulo Moura
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^\"(?:[^\"\\\n\x0C\r]|\\[\s\S])*(?:\"|$)/,null,'"'],["lit",/^[a-z][a-zA-Z0-9_]*/],["lit",/^\'(?:[^\'\\\n\x0C\r]|\\[^&])+\'?/,null,"'"],["lit",/^(?:0'.|0b[0-1]+|0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+\-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\r\n]*/,null,"%"],["com",/^\/\*[\s\S]*?\*\//],["kwd",/^\s*:-\s(c(a(lls|tegory)|oinductive)|p(ublic|r(ot(ocol|ected)|ivate))|e(l(if|se)|n(coding|sure_loaded)|xport)|i(f|n(clude|itialization|fo))|alias|d(ynamic|iscontiguous)|m(eta_(non_terminal|predicate)|od(e|ule)|ultifile)|reexport|s(et_(logtalk|prolog)_flag|ynchronized)|o(bject|p)|use(s|_module))/],
18 | ["kwd",/^\s*:-\s(e(lse|nd(if|_(category|object|protocol)))|built_in|dynamic|synchronized|threaded)/],["typ",/^[A-Z_][a-zA-Z0-9_]*/],["pun",/^[.,;{}:^<>=\\/+*?#!-]/]]),["logtalk","lgt"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-logtalk.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2014 Paulo Moura
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^\"(?:[^\"\\\n\x0C\r]|\\[\s\S])*(?:\"|$)/,null,'"'],["lit",/^[a-z][a-zA-Z0-9_]*/],["lit",/^\'(?:[^\'\\\n\x0C\r]|\\[^&])+\'?/,null,"'"],["lit",/^(?:0'.|0b[0-1]+|0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+\-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\r\n]*/,null,"%"],["com",/^\/\*[\s\S]*?\*\//],["kwd",/^\s*:-\s(c(a(lls|tegory)|oinductive)|p(ublic|r(ot(ocol|ected)|ivate))|e(l(if|se)|n(coding|sure_loaded)|xport)|i(f|n(clude|itialization|fo))|alias|d(ynamic|iscontiguous)|m(eta_(non_terminal|predicate)|od(e|ule)|ultifile)|reexport|s(et_(logtalk|prolog)_flag|ynchronized)|o(bject|p)|use(s|_module))/],
18 | ["kwd",/^\s*:-\s(e(lse|nd(if|_(category|object|protocol)))|built_in|dynamic|synchronized|threaded)/],["typ",/^[A-Z_][a-zA-Z0-9_]*/],["pun",/^[.,;{}:^<>=\\/+*?#!-]/]]),["logtalk","lgt"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-clj.js:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2011 Google Inc.
3 |
4 | Licensed under the Apache License, Version 2.0 (the "License");
5 | you may not use this file except in compliance with the License.
6 | You may obtain a copy of the License at
7 |
8 | http://www.apache.org/licenses/LICENSE-2.0
9 |
10 | Unless required by applicable law or agreed to in writing, software
11 | distributed under the License is distributed on an "AS IS" BASIS,
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | See the License for the specific language governing permissions and
14 | limitations under the License.
15 | */
16 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^[\(\{\[]+/,null,"([{"],["clo",/^[\)\}\]]+/,null,")]}"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/,
17 | null],["typ",/^:[0-9a-zA-Z\-]+/]]),["clj"]);
18 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-mumps.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2011 Kitware Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"]|\\.)*")/,null,'"']],[["com",/^;[^\r\n]*/,null,";"],["dec",/^(?:\$(?:D|DEVICE|EC|ECODE|ES|ESTACK|ET|ETRAP|H|HOROLOG|I|IO|J|JOB|K|KEY|P|PRINCIPAL|Q|QUIT|ST|STACK|S|STORAGE|SY|SYSTEM|T|TEST|TL|TLEVEL|TR|TRESTART|X|Y|Z[A-Z]*|A|ASCII|C|CHAR|D|DATA|E|EXTRACT|F|FIND|FN|FNUMBER|G|GET|J|JUSTIFY|L|LENGTH|NA|NAME|O|ORDER|P|PIECE|QL|QLENGTH|QS|QSUBSCRIPT|Q|QUERY|R|RANDOM|RE|REVERSE|S|SELECT|ST|STACK|T|TEXT|TR|TRANSLATE|NaN))\b/i,
18 | null],["kwd",/^(?:[^\$]B|BREAK|C|CLOSE|D|DO|E|ELSE|F|FOR|G|GOTO|H|HALT|H|HANG|I|IF|J|JOB|K|KILL|L|LOCK|M|MERGE|N|NEW|O|OPEN|Q|QUIT|R|READ|S|SET|TC|TCOMMIT|TRE|TRESTART|TRO|TROLLBACK|TS|TSTART|U|USE|V|VIEW|W|WRITE|X|XECUTE)\b/i,null],["lit",/^[+-]?(?:(?:\.\d+|\d+(?:\.\d*)?)(?:E[+\-]?\d+)?)/i],["pln",/^[a-z][a-zA-Z0-9]*/i],["pun",/^[^\w\t\n\r\xA0\"\$;%\^]|_/]]),["mumps"]);
19 |
--------------------------------------------------------------------------------
/docs/ModuleApi/css/phpdocumentor-clean-icons/style.css:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: 'phpdocumentor-clean-icons';
3 | src:url('fonts/phpdocumentor-clean-icons.eot');
4 | src:url('fonts/phpdocumentor-clean-icons.eot?#iefix') format('embedded-opentype'),
5 | url('fonts/phpdocumentor-clean-icons.woff') format('woff'),
6 | url('fonts/phpdocumentor-clean-icons.ttf') format('truetype'),
7 | url('fonts/phpdocumentor-clean-icons.svg#phpdocumentor-clean-icons') format('svg');
8 | font-weight: normal;
9 | font-style: normal;
10 | }
11 |
12 | /* Use the following CSS code if you want to use data attributes for inserting your icons */
13 | [data-icon]:before {
14 | font-family: 'phpdocumentor-clean-icons';
15 | content: attr(data-icon);
16 | speak: none;
17 | font-weight: normal;
18 | font-variant: normal;
19 | text-transform: none;
20 | line-height: 1;
21 | -webkit-font-smoothing: antialiased;
22 | }
23 |
24 | /* Use the following CSS code if you want to have a class per icon */
25 | /*
26 | Instead of a list of all class selectors,
27 | you can use the generic selector below, but it's slower:
28 | [class*="icon-"] {
29 | */
30 | .icon-trait, .icon-interface, .icon-class {
31 | font-family: 'phpdocumentor-clean-icons';
32 | speak: none;
33 | font-style: normal;
34 | font-weight: normal;
35 | font-variant: normal;
36 | text-transform: none;
37 | line-height: 1;
38 | -webkit-font-smoothing: antialiased;
39 | }
40 | .icon-trait:before {
41 | content: "\e000";
42 | }
43 | .icon-interface:before {
44 | content: "\e001";
45 | }
46 | .icon-class:before {
47 | content: "\e002";
48 | }
49 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-css.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2009 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[["str",/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],["str",/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']+)\)/i],["kwd",/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],
18 | ["com",/^(?:\x3c!--|--\x3e)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#(?:[0-9a-f]{3}){1,2}\b/i],["pln",/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],["pun",/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^\)\"\']+/]]),["css-str"]);
19 |
--------------------------------------------------------------------------------
/docs/ModuleApi/css/jquery.iviewer.css:
--------------------------------------------------------------------------------
1 | .viewer {
2 | -ms-touch-action: none;
3 | }
4 |
5 | .iviewer_common {
6 | position:absolute;
7 | bottom:10px;
8 | border: 1px solid #000;
9 | height: 28px;
10 | z-index: 5000;
11 | }
12 |
13 | .iviewer_cursor {
14 | cursor: url(../images/iviewer/hand.cur) 6 8, pointer;
15 | }
16 |
17 | .iviewer_drag_cursor {
18 | cursor: url(../images/iviewer/grab.cur) 6 8, pointer;
19 | }
20 |
21 | .iviewer_button {
22 | width: 28px;
23 | cursor: pointer;
24 | background-position: center center;
25 | background-repeat: no-repeat;
26 | }
27 |
28 | .iviewer_zoom_in {
29 | left: 20px;
30 | background: url(../images/iviewer/iviewer.zoom_in.png);
31 | }
32 |
33 | .iviewer_zoom_out {
34 | left: 55px;
35 | background: url(../images/iviewer/iviewer.zoom_out.png);
36 | }
37 |
38 | .iviewer_zoom_zero {
39 | left: 90px;
40 | background: url(../images/iviewer/iviewer.zoom_zero.png);
41 | }
42 |
43 | .iviewer_zoom_fit {
44 | left: 125px;
45 | background: url(../images/iviewer/iviewer.zoom_fit.png);
46 | }
47 |
48 | .iviewer_zoom_status {
49 | left: 160px;
50 | font: 1em/28px Sans;
51 | color: #000;
52 | background-color: #fff;
53 | text-align: center;
54 | width: 60px;
55 | }
56 |
57 | .iviewer_rotate_left {
58 | left: 227px;
59 | background: #fff url(../images/iviewer/iviewer.rotate_left.png) center center no-repeat;
60 | }
61 |
62 | .iviewer_rotate_right {
63 | left: 262px;
64 | background: #fff url(../images/iviewer/iviewer.rotate_right.png) center center no-repeat;
65 | }
66 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-scala.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2010 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:(?:""(?:""?(?!")|[^\\"]|\\.)*"{0,3})|(?:[^"\r\n\\]|\\.)*"?))/,null,'"'],["lit",/^`(?:[^\r\n\\`]|\\.)*`?/,null,"`"],["pun",/^[!#%&()*+,\-:;<=>?@\[\\\]^{|}~]+/,null,"!#%&()*+,-:;<=>?@[\\]^{|}~"]],[["str",/^'(?:[^\r\n\\']|\\(?:'|[^\r\n']+))'/],["lit",/^'[a-zA-Z_$][\w$]*(?!['$\w])/],["kwd",/^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/],
18 | ["lit",/^(?:true|false|null|this)\b/],["lit",/^(?:(?:0(?:[0-7]+|X[0-9A-F]+))L?|(?:(?:0|[1-9][0-9]*)(?:(?:\.[0-9]+)?(?:E[+\-]?[0-9]+)?F?|L?))|\\.[0-9]+(?:E[+\-]?[0-9]+)?F?)/i],["typ",/^[$_]*[A-Z][_$A-Z0-9]*[a-z][\w$]*/],["pln",/^[$a-zA-Z_][\w$]*/],["com",/^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],["pun",/^(?:\.+|\/)/]]),["scala"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-aea.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2009 Onno Hommes.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\r\n]*/,null,"#"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/,
18 | null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[SE]?BANK\=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[!-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),["apollo","agc","aea"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-agc.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2009 Onno Hommes.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\r\n]*/,null,"#"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/,
18 | null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[SE]?BANK\=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[!-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),["apollo","agc","aea"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-apollo.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2009 Onno Hommes.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\r\n]*/,null,"#"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/,
18 | null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[SE]?BANK\=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[!-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),["apollo","agc","aea"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-dart.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2013 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"]],[["com",/^#!(?:.*)/],["kwd",/^\b(?:import|library|part of|part|as|show|hide)\b/i],["com",/^\/\/(?:.*)/],["com",/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],["kwd",/^\b(?:class|interface)\b/i],["kwd",/^\b(?:assert|async|await|break|case|catch|continue|default|do|else|finally|for|if|in|is|new|return|super|switch|sync|this|throw|try|while)\b/i],["kwd",/^\b(?:abstract|const|extends|factory|final|get|implements|native|operator|set|static|typedef|var)\b/i],
18 | ["typ",/^\b(?:bool|double|Dynamic|int|num|Object|String|void)\b/i],["kwd",/^\b(?:false|null|true)\b/i],["str",/^r?[\']{3}[\s|\S]*?[^\\][\']{3}/],["str",/^r?[\"]{3}[\s|\S]*?[^\\][\"]{3}/],["str",/^r?\'(\'|(?:[^\n\r\f])*?[^\\]\')/],["str",/^r?\"(\"|(?:[^\n\r\f])*?[^\\]\")/],["typ",/^[A-Z]\w*/],["pln",/^[a-z_$][a-z0-9_]*/i],["pun",/^[~!%^&*+=|?:<>/-]/],["lit",/^\b0x[0-9a-f]+/i],["lit",/^\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i],["lit",
19 | /^\b\.\d+(?:e[+-]?\d+)?/i],["pun",/^[(){}\[\],.;]/]]),["dart"]);
20 |
--------------------------------------------------------------------------------
/modules/page-logout.php:
--------------------------------------------------------------------------------
1 | "Logout",
4 | "version" => "0.6.1",
5 | "author" => "Starbeamrainbowlabs",
6 | "description" => "Adds an action to let users user out. For security reasons it is wise to add this module since logging in automatically opens a session that is valid for 30 days.",
7 | "id" => "page-logout",
8 | "code" => function() {
9 |
10 | /**
11 | * @api {post} ?action=logout Logout
12 | * @apiDescription Logout. Make sure that your bot requests this URL when it is finished - this call not only clears your cookies but also clears the server's session file as well. Note that you can request this when you are already logged out and it will completely wipe your session on the server.
13 | * @apiName Logout
14 | * @apiGroup Authorisation
15 | * @apiPermission Anonymous
16 | */
17 |
18 | /*
19 | * ██ ██████ ██████ ██████ ██ ██ ████████
20 | * ██ ██ ██ ██ ██ ██ ██ ██ ██
21 | * ██ ██ ██ ██ ███ ██ ██ ██ ██ ██
22 | * ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
23 | * ███████ ██████ ██████ ██████ ██████ ██
24 | */
25 | add_action("logout", function() {
26 | global $env;
27 | $env->is_logged_in = false;
28 | unset($env->user);
29 | unset($env->user_data);
30 | //clear the session variables
31 | $_SESSION = [];
32 | session_destroy();
33 |
34 | exit(page_renderer::render_main("Logout Successful", "
"));
36 | });
37 | }
38 | ]);
39 |
40 | ?>
41 |
42 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-fs.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2008 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["com",/^#(?:if[\t\n\r \xA0]+(?:[a-z_$][\w\']*|``[^\r\n\t`]*(?:``|$))|else|endif|light)/i,null,"#"],["str",/^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])(?:\'|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\r\n]*|\(\*[\s\S]*?\*\))/],["kwd",/^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/],
18 | ["lit",/^[+\-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i],["pln",/^(?:[a-z_][\w']*[!?#]?|``[^\r\n\t`]*(?:``|$))/i],["pun",/^[^\t\n\r \xA0\"\'\w]+/]]),["fs","ml"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-ml.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2008 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["com",/^#(?:if[\t\n\r \xA0]+(?:[a-z_$][\w\']*|``[^\r\n\t`]*(?:``|$))|else|endif|light)/i,null,"#"],["str",/^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])(?:\'|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\r\n]*|\(\*[\s\S]*?\*\))/],["kwd",/^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/],
18 | ["lit",/^[+\-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i],["pln",/^(?:[a-z_][\w']*[!?#]?|``[^\r\n\t`]*(?:``|$))/i],["pun",/^[^\t\n\r \xA0\"\'\w]+/]]),["fs","ml"]);
19 |
--------------------------------------------------------------------------------
/modules/feature-redirect.php:
--------------------------------------------------------------------------------
1 | "Redirect pages",
4 | "version" => "0.3.1",
5 | "author" => "Starbeamrainbowlabs",
6 | "description" => "Adds support for redirect pages. Uses the same syntax that Mediawiki does.",
7 | "id" => "feature-redirect",
8 | "code" => function() {
9 | global $settings;
10 |
11 | register_save_preprocessor("update_redirect_metadata");
12 |
13 | // Register a help section
14 | add_help_section("25-redirect", "Redirect Pages", "
$settings->sitename supports redirect pages. To create a redirect page, enter something like # REDIRECT [[pagename]] on the first line of the redirect page's content. This must appear as the first line of the page, with no whitespace before it. You can include content beneath the redirect if you want, too (such as a reason for redirecting the page).
");
15 | }
16 | ]);
17 |
18 | /**
19 | * Updates the metadata associated with redirects in the pageindex entry
20 | * specified utilising the provided page content.
21 | * @param object $index_entry The page index entry object to update.
22 | * @param string $pagedata The page content to operate on.
23 | */
24 | function update_redirect_metadata(&$index_entry, &$pagedata) {
25 | $matches = [];
26 | if(preg_match("/^# ?REDIRECT ?\[\[([^\]]+)\]\]/i", $pagedata, $matches) === 1)
27 | {
28 | //error_log("matches: " . var_export($matches, true));
29 | // We have found a redirect page!
30 | // Update the metadata to reflect this.
31 | $index_entry->redirect = true;
32 | $index_entry->redirect_target = $matches[1];
33 | }
34 | else
35 | {
36 | // This page isn't a redirect. Unset the metadata just in case.
37 | if(isset($index_entry->redirect))
38 | unset($index_entry->redirect);
39 | if(isset($index_entry->redirect_target))
40 | unset($index_entry->redirect_target);
41 | }
42 | }
43 |
44 | ?>
45 |
--------------------------------------------------------------------------------
/docs/ModuleApi/files/modules/feature-redirect.php.txt:
--------------------------------------------------------------------------------
1 | "Redirect pages",
4 | "version" => "0.3.1",
5 | "author" => "Starbeamrainbowlabs",
6 | "description" => "Adds support for redirect pages. Uses the same syntax that Mediawiki does.",
7 | "id" => "feature-redirect",
8 | "code" => function() {
9 | global $settings;
10 |
11 | register_save_preprocessor("update_redirect_metadata");
12 |
13 | // Register a help section
14 | add_help_section("25-redirect", "Redirect Pages", "
$settings->sitename supports redirect pages. To create a redirect page, enter something like # REDIRECT [[pagename]] on the first line of the redirect page's content. This must appear as the first line of the page, with no whitespace before it. You can include content beneath the redirect if you want, too (such as a reason for redirecting the page).
");
15 | }
16 | ]);
17 |
18 | /**
19 | * Updates the metadata associated with redirects in the pageindex entry
20 | * specified utilising the provided page content.
21 | * @param object $index_entry The page index entry object to update.
22 | * @param string $pagedata The page content to operate on.
23 | */
24 | function update_redirect_metadata(&$index_entry, &$pagedata) {
25 | $matches = [];
26 | if(preg_match("/^# ?REDIRECT ?\[\[([^\]]+)\]\]/i", $pagedata, $matches) === 1)
27 | {
28 | //error_log("matches: " . var_export($matches, true));
29 | // We have found a redirect page!
30 | // Update the metadata to reflect this.
31 | $index_entry->redirect = true;
32 | $index_entry->redirect_target = $matches[1];
33 | }
34 | else
35 | {
36 | // This page isn't a redirect. Unset the metadata just in case.
37 | if(isset($index_entry->redirect))
38 | unset($index_entry->redirect);
39 | if(isset($index_entry->redirect_target))
40 | unset($index_entry->redirect_target);
41 | }
42 | }
43 |
44 | ?>
45 |
46 |
--------------------------------------------------------------------------------
/modules/action-raw.php:
--------------------------------------------------------------------------------
1 | "Raw page source",
4 | "version" => "0.7",
5 | "author" => "Starbeamrainbowlabs",
6 | "description" => "Adds a 'raw' action that shows you the raw source of a page.",
7 | "id" => "action-raw",
8 | "code" => function() {
9 | global $settings;
10 | /**
11 | * @api {get} ?action=raw&page={pageName} Get the raw source code of a page
12 | * @apiName RawSource
13 | * @apiGroup Page
14 | * @apiPermission Anonymous
15 | *
16 | * @apiParam {string} page The page to return the source of.
17 | */
18 |
19 | /*
20 | * ██████ █████ ██ ██
21 | * ██ ██ ██ ██ ██ ██
22 | * ██████ ███████ ██ █ ██
23 | * ██ ██ ██ ██ ██ ███ ██
24 | * ██ ██ ██ ██ ███ ███
25 | */
26 | add_action("raw", function() {
27 | global $pageindex, $env;
28 |
29 | if(empty($pageindex->{$env->page})) {
30 | http_response_code(404);
31 | exit("Error: The page with the name $env->page could not be found.\n");
32 | }
33 |
34 | header("content-type: text/markdown");
35 | header("content-length: " . filesize($env->page_filename));
36 | exit(file_get_contents($env->page_filename));
37 | });
38 |
39 | add_help_section("800-raw-page-content", "Viewing Raw Page Content", "
Although you can use the edit page to view a page's source, you can also ask $settings->sitename to send you the raw page source and nothing else. This feature is intented for those who want to automate their interaction with $settings->sitename.
40 |
To use this feature, navigate to the page for which you want to see the source, and then alter the action parameter in the url's query string to be raw. If the action parameter doesn't exist, add it. Note that when used on an file's page this action will return the source of the description and not the file itself.
");
41 | }
42 | ]);
43 |
44 | ?>
45 |
--------------------------------------------------------------------------------
/docs/02-Features.md:
--------------------------------------------------------------------------------
1 | # Features
2 | Pepperminty Wiki has actually acquired a rather extensive feature set.
3 |
4 | - Configurable settings
5 | - Via `peppermint.json`
6 | - GUI available for moderators
7 | - User login system
8 | - Graphical user management table for moderators
9 | - Page creation
10 | - Subpages fully supported
11 | - Markdown-powered syntax
12 | - Powered by [Parsedown Extra](https://github.com/erusev/parsedown-extra/), with additional extras
13 | - Short syntax for:
14 | - Referencing uploaded files
15 | - Internal Links - links to non-existent pages show up in red
16 | - Templating support
17 | - Additional syntax for resizing and floating images (see inbuilt help page)
18 | - File galleries
19 | - Client-side mathematical expression parsing, courtesy of [MathJax](https://www.mathjax.org/) [optional]
20 | - Full page revision history (comparison / manipulation coming soon)
21 | - Optional time-delayed search indexing
22 | - Simple edit conflict detection
23 | - Edit previewing (since v0.14, thanks to @ikisler)
24 | - Printable page view
25 | - Customisable theme
26 | - ~~Basic 'search' bar~~ A full-text search engine!
27 | - Dynamic server-side suggestions (since v0.13!)
28 | - Sidebar with a tree of all the current pages [optional]
29 | - Page tags
30 | - Page lists
31 | - List of all pages
32 | - List of all tags
33 | - List of pages with a given tag
34 | - List of recent changes
35 | - Inbuilt help page
36 | - Dynamic - modules can add their own sections to it
37 | - File upload and preview
38 | - Simple syntax for including media in a page (explanation on help page)
39 | - Page protection
40 | - Simple user settings page
41 | - Set email address
42 | - Change password
43 | - Threaded page comments (since v0.14)
44 | - Statistics system - can be extended by modules (since v0.15)
45 | - Customisable module based system
46 | - Allows you to add or remove features at will
47 |
--------------------------------------------------------------------------------
/docs/ModuleApi/files/modules/action-raw.php.txt:
--------------------------------------------------------------------------------
1 | "Raw page source",
4 | "version" => "0.7",
5 | "author" => "Starbeamrainbowlabs",
6 | "description" => "Adds a 'raw' action that shows you the raw source of a page.",
7 | "id" => "action-raw",
8 | "code" => function() {
9 | global $settings;
10 | /**
11 | * @api {get} ?action=raw&page={pageName} Get the raw source code of a page
12 | * @apiName RawSource
13 | * @apiGroup Page
14 | * @apiPermission Anonymous
15 | *
16 | * @apiParam {string} page The page to return the source of.
17 | */
18 |
19 | /*
20 | * ██████ █████ ██ ██
21 | * ██ ██ ██ ██ ██ ██
22 | * ██████ ███████ ██ █ ██
23 | * ██ ██ ██ ██ ██ ███ ██
24 | * ██ ██ ██ ██ ███ ███
25 | */
26 | add_action("raw", function() {
27 | global $pageindex, $env;
28 |
29 | if(empty($pageindex->{$env->page})) {
30 | http_response_code(404);
31 | exit("Error: The page with the name $env->page could not be found.\n");
32 | }
33 |
34 | header("content-type: text/markdown");
35 | header("content-length: " . filesize($env->page_filename));
36 | exit(file_get_contents($env->page_filename));
37 | });
38 |
39 | add_help_section("800-raw-page-content", "Viewing Raw Page Content", "
Although you can use the edit page to view a page's source, you can also ask $settings->sitename to send you the raw page source and nothing else. This feature is intented for those who want to automate their interaction with $settings->sitename.
40 |
To use this feature, navigate to the page for which you want to see the source, and then alter the action parameter in the url's query string to be raw. If the action parameter doesn't exist, add it. Note that when used on an file's page this action will return the source of the description and not the file itself.
");
41 | }
42 | ]);
43 |
44 | ?>
45 |
46 |
--------------------------------------------------------------------------------
/modules/action-hash.php:
--------------------------------------------------------------------------------
1 | "Password hashing action",
4 | "version" => "0.7",
5 | "author" => "Starbeamrainbowlabs",
6 | "description" => "Adds a utility action (that anyone can use) called hash that hashes a given string. Useful when changing a user's password.",
7 | "id" => "action-hash",
8 | "code" => function() {
9 | /**
10 | * @api {get} ?action=hash&string={text} Hash a password
11 | * @apiName Hash
12 | * @apiGroup Utility
13 | * @apiPermission Anonymous
14 | *
15 | * @apiParam {string} string The string to hash.
16 | * @apiParam {boolean} raw Whether to return the hashed password as a raw string instead of as part of an HTML page.
17 | *
18 | * @apiError ParamNotFound The string parameter was not specified.
19 | */
20 |
21 | /*
22 | * ██ ██ █████ ███████ ██ ██
23 | * ██ ██ ██ ██ ██ ██ ██
24 | * ███████ ███████ ███████ ███████
25 | * ██ ██ ██ ██ ██ ██ ██
26 | * ██ ██ ██ ██ ███████ ██ ██
27 | */
28 | add_action("hash", function() {
29 | global $settings;
30 |
31 | if(!isset($_GET["string"]))
32 | {
33 | http_response_code(422);
34 | exit(page_renderer::render_main("Missing parameter", "
The GET parameter string must be specified.
35 |
It is strongly recommended that you utilise this page via a private or incognito window in order to prevent your password from appearing in your browser history.
"));
45 | }
46 | });
47 | }
48 | ]);
49 |
50 | ?>
51 |
--------------------------------------------------------------------------------
/docs/ModuleApi/files/modules/action-hash.php.txt:
--------------------------------------------------------------------------------
1 | "Password hashing action",
4 | "version" => "0.7",
5 | "author" => "Starbeamrainbowlabs",
6 | "description" => "Adds a utility action (that anyone can use) called hash that hashes a given string. Useful when changing a user's password.",
7 | "id" => "action-hash",
8 | "code" => function() {
9 | /**
10 | * @api {get} ?action=hash&string={text} Hash a password
11 | * @apiName Hash
12 | * @apiGroup Utility
13 | * @apiPermission Anonymous
14 | *
15 | * @apiParam {string} string The string to hash.
16 | * @apiParam {boolean} raw Whether to return the hashed password as a raw string instead of as part of an HTML page.
17 | *
18 | * @apiError ParamNotFound The string parameter was not specified.
19 | */
20 |
21 | /*
22 | * ██ ██ █████ ███████ ██ ██
23 | * ██ ██ ██ ██ ██ ██ ██
24 | * ███████ ███████ ███████ ███████
25 | * ██ ██ ██ ██ ██ ██ ██
26 | * ██ ██ ██ ██ ███████ ██ ██
27 | */
28 | add_action("hash", function() {
29 | global $settings;
30 |
31 | if(!isset($_GET["string"]))
32 | {
33 | http_response_code(422);
34 | exit(page_renderer::render_main("Missing parameter", "
The GET parameter string must be specified.
35 |
It is strongly recommended that you utilise this page via a private or incognito window in order to prevent your password from appearing in your browser history.
"));
45 | }
46 | });
47 | }
48 | ]);
49 |
50 | ?>
51 |
52 |
--------------------------------------------------------------------------------
/modules/action-random.php:
--------------------------------------------------------------------------------
1 | "Random Page",
4 | "version" => "0.3",
5 | "author" => "Starbeamrainbowlabs",
6 | "description" => "Adds an action called 'random' that redirects you to a random page.",
7 | "id" => "action-random",
8 | "code" => function() {
9 | global $settings;
10 | /**
11 | * @api {get} ?action=random[&mode={modeName}] Redirects to a random page
12 | * @apiName Random
13 | * @apiGroup Page
14 | * @apiPermission Anonymous
15 | *
16 | * @apiParam {string} mode The view mode to redirect to. This parameter is basically just passed through to the direct. It works in the same way as the mode parameter on the view action does.
17 | */
18 |
19 | add_action("random", function() {
20 | global $pageindex;
21 |
22 | $mode = preg_replace("/[^a-z-_]/i", "", $_GET["mode"] ?? "");
23 |
24 | $pageNames = array_keys(get_object_vars($pageindex));
25 |
26 | // Filter out pages we shouldn't send the user to
27 | $pageNames = array_values(array_filter($pageNames, function($pagename) {
28 | global $settings, $pageindex;
29 | if($settings->random_page_exclude_redirects &&
30 | isset($pageindex->$pagename->redirect) &&
31 | $pageindex->$pagename->redirect === true)
32 | return false;
33 | return preg_match($settings->random_page_exclude, $pagename) === 0 ? true : false;
34 | }));
35 |
36 | $randomPageName = $pageNames[array_rand($pageNames)];
37 |
38 | http_response_code(307);
39 | $redirect_url = "?page=" . rawurlencode($randomPageName);
40 | if(!empty($mode)) $redirect_url .= "&mode=$mode";
41 | header("location: $redirect_url");
42 | });
43 |
44 | add_help_section("26-random-redirect", "Jumping to a random page", "
$settings->sitename has a function that can send you to a random page. To use it, click here. $settings->admindetails_name ($settings->sitename's adminstrator) may have added it to one of the menus.
$settings->sitename has a status page that returns some basic information about the current state of the wiki in JSON. It can be used as a connection tester - as the Pepperminty Wiki Android app does.
");
46 | }
47 | ]);
48 |
49 | ?>
50 |
--------------------------------------------------------------------------------
/docs/ModuleApi/files/modules/action-random.php.txt:
--------------------------------------------------------------------------------
1 | "Random Page",
4 | "version" => "0.3",
5 | "author" => "Starbeamrainbowlabs",
6 | "description" => "Adds an action called 'random' that redirects you to a random page.",
7 | "id" => "action-random",
8 | "code" => function() {
9 | global $settings;
10 | /**
11 | * @api {get} ?action=random[&mode={modeName}] Redirects to a random page
12 | * @apiName Random
13 | * @apiGroup Page
14 | * @apiPermission Anonymous
15 | *
16 | * @apiParam {string} mode The view mode to redirect to. This parameter is basically just passed through to the direct. It works in the same way as the mode parameter on the view action does.
17 | */
18 |
19 | add_action("random", function() {
20 | global $pageindex;
21 |
22 | $mode = preg_replace("/[^a-z-_]/i", "", $_GET["mode"] ?? "");
23 |
24 | $pageNames = array_keys(get_object_vars($pageindex));
25 |
26 | // Filter out pages we shouldn't send the user to
27 | $pageNames = array_values(array_filter($pageNames, function($pagename) {
28 | global $settings, $pageindex;
29 | if($settings->random_page_exclude_redirects &&
30 | isset($pageindex->$pagename->redirect) &&
31 | $pageindex->$pagename->redirect === true)
32 | return false;
33 | return preg_match($settings->random_page_exclude, $pagename) === 0 ? true : false;
34 | }));
35 |
36 | $randomPageName = $pageNames[array_rand($pageNames)];
37 |
38 | http_response_code(307);
39 | $redirect_url = "?page=" . rawurlencode($randomPageName);
40 | if(!empty($mode)) $redirect_url .= "&mode=$mode";
41 | header("location: $redirect_url");
42 | });
43 |
44 | add_help_section("26-random-redirect", "Jumping to a random page", "
$settings->sitename has a function that can send you to a random page. To use it, click here. $settings->admindetails_name ($settings->sitename's adminstrator) may have added it to one of the menus.
$settings->sitename has a status page that returns some basic information about the current state of the wiki in JSON. It can be used as a connection tester - as the Pepperminty Wiki Android app does.
");
46 | }
47 | ]);
48 |
49 | ?>
50 |
51 |
--------------------------------------------------------------------------------
/modules/feature-interwiki-links.php:
--------------------------------------------------------------------------------
1 | "Interwiki links",
4 | "version" => "0.1",
5 | "author" => "Starbeamrainbowlabs",
6 | "description" => "Adds interwiki link support. Point the se",
7 | "id" => "feature-interwiki-links",
8 | "code" => function() {
9 | global $settings;
10 | if(!empty($settings->interwiki_index_location)) {
11 | // Generate the interwiki index cache file if it doesn't exist already
12 | // NOTE: If you want to update the cache file, just delete it & it'll get regenerated automagically :-)
13 | if(!file_exists($paths->interwiki_index))
14 | interwiki_index_update();
15 | else
16 | $env->interwiki_index = json_decode(file_get_contents($paths->interwiki_index));
17 | }
18 | }
19 | ]);
20 |
21 | /**
22 | * Updates the interwiki index cache file.
23 | */
24 | function interwiki_index_update() {
25 | $env->interwiki_index = new stdClass();
26 | $interwiki_csv_handle = fopen($settings->interwiki_index_location, "r");
27 | if($interwiki_csv_handle === false)
28 | throw new Exception("Error: Failed to read interwiki index from '{$settings->interwiki_index_location}'.");
29 |
30 | fgetcsv($interwiki_csv_handle); // Discard the header line
31 | while(($interwiki_data = fgetcsv($interwiki_csv_handle))) {
32 | $interwiki_def = new stdClass();
33 | $interwiki_def->name = $interwiki_data[0];
34 | $interwiki_def->prefix = $interwiki_data[1];
35 | $interwiki_def->root_url = $interwiki_data[2];
36 |
37 | $env->interwiki_index->$prefix = $interwiki_def;
38 | }
39 |
40 | file_put_contents($paths->interwiki_index, json_encode($env->interwiki_index, JSON_PRETTY_PRINT));
41 | }
42 |
43 | function interwiki_pagename_resolve($interwiki_pagename) {
44 | // If it's not an interwiki link, then don't bother confusing ourselves
45 | if(strpos($interwiki_pagename, ":") === false)
46 | return null;
47 |
48 | $parts = explode(":", $interwiki_pagename, 2);
49 | $prefix = $parts[0];
50 | $pagename = $parts[1];
51 |
52 |
53 | }
54 |
55 | ?>
56 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-swift.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2015 Google Inc.
4 | Licensed under the Apache License, Version 2.0 (the "License");
5 | you may not use this file except in compliance with the License.
6 | You may obtain a copy of the License at
7 |
8 | http://www.apache.org/licenses/LICENSE-2.0
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.
14 | */
15 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[ \n\r\t\v\f\0]+/,null," \n\r\t\v\f\x00"],["str",/^"(?:[^"\\]|(?:\\.)|(?:\\\((?:[^"\\)]|\\.)*\)))*"/,null,'"']],[["lit",/^(?:(?:0x[\da-fA-F][\da-fA-F_]*\.[\da-fA-F][\da-fA-F_]*[pP]?)|(?:\d[\d_]*\.\d[\d_]*[eE]?))[+-]?\d[\d_]*/,null],["lit",/^-?(?:(?:0(?:(?:b[01][01_]*)|(?:o[0-7][0-7_]*)|(?:x[\da-fA-F][\da-fA-F_]*)))|(?:\d[\d_]*))/,null],["lit",/^(?:true|false|nil)\b/,null],["kwd",/^\b(?:__COLUMN__|__FILE__|__FUNCTION__|__LINE__|#available|#else|#elseif|#endif|#if|#line|arch|arm|arm64|associativity|as|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|dynamicType|else|enum|fallthrough|final|for|func|get|import|indirect|infix|init|inout|internal|i386|if|in|iOS|iOSApplicationExtension|is|lazy|left|let|mutating|none|nonmutating|operator|optional|OSX|OSXApplicationExtension|override|postfix|precedence|prefix|private|protocol|Protocol|public|required|rethrows|return|right|safe|self|set|static|struct|subscript|super|switch|throw|try|Type|typealias|unowned|unsafe|var|weak|watchOS|while|willSet|x86_64)\b/,
16 | null],["com",/^\/\/.*?[\n\r]/,null],["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null],["pun",/^<<=|<=|<<|>>=|>=|>>|===|==|\.\.\.|&&=|\.\.<|!==|!=|&=|~=|~|\(|\)|\[|\]|{|}|@|#|;|\.|,|:|\|\|=|\?\?|\|\||&&|&\*|&\+|&-|&=|\+=|-=|\/=|\*=|\^=|%=|\|=|->|`|==|\+\+|--|\/|\+|!|\*|%|<|>|&|\||\^|\?|=|-|_/,null],["typ",/^\b(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null]]),["swift"]);
17 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-vhd.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2010 benoit@ryder.fr
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"]],[["str",/^(?:[BOX]?"(?:[^\"]|"")*"|'.')/i],["com",/^--[^\r\n]*/],["kwd",/^(?:abs|access|after|alias|all|and|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|mod|nand|new|next|nor|not|null|of|on|open|or|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|rem|report|return|rol|ror|select|severity|shared|signal|sla|sll|sra|srl|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with|xnor|xor)(?=[^\w-]|$)/i,
18 | null],["typ",/^(?:bit|bit_vector|character|boolean|integer|real|time|string|severity_level|positive|natural|signed|unsigned|line|text|std_u?logic(?:_vector)?)(?=[^\w-]|$)/i,null],["typ",/^\'(?:ACTIVE|ASCENDING|BASE|DELAYED|DRIVING|DRIVING_VALUE|EVENT|HIGH|IMAGE|INSTANCE_NAME|LAST_ACTIVE|LAST_EVENT|LAST_VALUE|LEFT|LEFTOF|LENGTH|LOW|PATH_NAME|POS|PRED|QUIET|RANGE|REVERSE_RANGE|RIGHT|RIGHTOF|SIMPLE_NAME|STABLE|SUCC|TRANSACTION|VAL|VALUE)(?=[^\w-]|$)/i,null],["lit",/^\d+(?:_\d+)*(?:#[\w\\.]+#(?:[+\-]?\d+(?:_\d+)*)?|(?:\.\d+(?:_\d+)*)?(?:E[+\-]?\d+(?:_\d+)*)?)/i],
19 | ["pln",/^(?:[a-z]\w*|\\[^\\]*\\)/i],["pun",/^[^\w\t\n\r \xA0\"\'][^\w\t\n\r \xA0\-\"\']*/]]),["vhdl","vhd"]);
20 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-vhdl.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2010 benoit@ryder.fr
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"]],[["str",/^(?:[BOX]?"(?:[^\"]|"")*"|'.')/i],["com",/^--[^\r\n]*/],["kwd",/^(?:abs|access|after|alias|all|and|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|mod|nand|new|next|nor|not|null|of|on|open|or|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|rem|report|return|rol|ror|select|severity|shared|signal|sla|sll|sra|srl|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with|xnor|xor)(?=[^\w-]|$)/i,
18 | null],["typ",/^(?:bit|bit_vector|character|boolean|integer|real|time|string|severity_level|positive|natural|signed|unsigned|line|text|std_u?logic(?:_vector)?)(?=[^\w-]|$)/i,null],["typ",/^\'(?:ACTIVE|ASCENDING|BASE|DELAYED|DRIVING|DRIVING_VALUE|EVENT|HIGH|IMAGE|INSTANCE_NAME|LAST_ACTIVE|LAST_EVENT|LAST_VALUE|LEFT|LEFTOF|LENGTH|LOW|PATH_NAME|POS|PRED|QUIET|RANGE|REVERSE_RANGE|RIGHT|RIGHTOF|SIMPLE_NAME|STABLE|SUCC|TRANSACTION|VAL|VALUE)(?=[^\w-]|$)/i,null],["lit",/^\d+(?:_\d+)*(?:#[\w\\.]+#(?:[+\-]?\d+(?:_\d+)*)?|(?:\.\d+(?:_\d+)*)?(?:E[+\-]?\d+(?:_\d+)*)?)/i],
19 | ["pln",/^(?:[a-z]\w*|\\[^\\]*\\)/i],["pun",/^[^\w\t\n\r \xA0\"\'][^\w\t\n\r \xA0\-\"\']*/]]),["vhdl","vhd"]);
20 |
--------------------------------------------------------------------------------
/docs/theme.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --primary-colour: #ff1b1b;
3 | --primary-colour-soft: hsla(0, 93%, 68%, 0.58);
4 | }
5 |
6 | .body {
7 | --background-colour-a: hsla(3, 100%, 70%, 0.3);
8 | --background-colour-b: hsla(3, 100%, 80%, 0.3);
9 | --background-size: 5em;
10 |
11 | background: repeating-linear-gradient(-55deg,
12 | var(--background-colour-a), var(--background-colour-a) var(--background-size),
13 | var(--background-colour-b) var(--background-size), var(--background-colour-b) calc(var(--background-size) * 2));
14 | }
15 |
16 | .menu {
17 | background-color: hsla(0, 100%, 100%, 0.5);
18 | }
19 | /* Title */
20 | .toc-menu .-level-1:first-child {
21 | background: url(https://sbrl.github.io/Pepperminty-Wiki/logo.svg) no-repeat top center/10em;
22 | margin-top: 0;
23 | padding-top: 10em;
24 | font-weight: bolder;
25 | font-size: 1.25em;
26 | text-align: center;
27 | }
28 |
29 | /* Blockquote */
30 | .markdown-body blockquote {
31 | border-left: 0.25em solid var(--primary-colour-soft);
32 | }
33 |
34 | /* Bottom menu thingy */
35 | .-menu-visible .menu-toggle, .menu-toggle {
36 | background: linear-gradient(to bottom, transparent, white);
37 | }
38 |
39 | .toc-menu .link.-active, .toc-menu .hlink.-active {
40 | box-shadow: inset -0.25em 0 var(--primary-colour);
41 | }
42 |
43 | /* Headings */
44 | .markdown-body h1 {
45 | padding-bottom: 0.25em;
46 | border-bottom: 0.1em solid var(--primary-colour);
47 | }
48 | .markdown-body h2 {
49 | padding-bottom: 0.1em;
50 | border-bottom: 0.08em solid var(--primary-colour);
51 | }
52 |
53 | /* Code Blocks */
54 | .markdown-body pre {
55 | border: 0.1em dashed var(--primary-colour-soft);
56 | background: hsla(0, 100%, 100%, 0.5);
57 | }
58 | .markdown-body > :not(pre) code {
59 | background: hsla(0, 100%, 100%, 0.7);
60 | }
61 |
62 | /* Page Footer */
63 | .footer-nav {
64 | border: 0;
65 | background: linear-gradient(to bottom, transparent, white);
66 | }
67 | .footer-nav.-expanded {
68 | border: 0;
69 | background: none;
70 | }
71 | .footer-nav.-expanded::before {
72 | transition: all 0.25s;
73 | background: var(--primary-colour-soft);
74 | }
75 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-n.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2011 Zimin A.V.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*\'|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"],["pln",/^\s+/,null," \r\n\t\u00a0"]],[["str",/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null],["str",/^<#(?:[^#>])*(?:#>|$)/,null],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null],["com",/^\/\/[^\r\n]*/,
18 | null],["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/,
19 | null],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,null],["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^@[A-Z]+[a-z][A-Za-z_$@0-9]*/,null],["pln",/^'?[A-Za-z_$][a-z_$@0-9]*/i,null],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],["pun",/^.[^\s\w\.$@\'\"\`\/\#]*/,null]]),["n","nemerle"]);
20 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-nemerle.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2011 Zimin A.V.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*\'|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"],["pln",/^\s+/,null," \r\n\t\u00a0"]],[["str",/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null],["str",/^<#(?:[^#>])*(?:#>|$)/,null],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null],["com",/^\/\/[^\r\n]*/,
18 | null],["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/,
19 | null],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,null],["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^@[A-Z]+[a-z][A-Za-z_$@0-9]*/,null],["pln",/^'?[A-Za-z_$][a-z_$@0-9]*/i,null],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],["pun",/^.[^\s\w\.$@\'\"\`\/\#]*/,null]]),["n","nemerle"]);
20 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify.css:
--------------------------------------------------------------------------------
1 | /* Pretty printing styles. Used with prettify.js. */
2 | /* Vim sunburst theme by David Leibovic */
3 |
4 | pre .str, code .str { color: #65B042; } /* string - green */
5 | pre .kwd, code .kwd { color: #E28964; } /* keyword - dark pink */
6 | pre .com, code .com { color: #AEAEAE; font-style: italic; } /* comment - gray */
7 | pre .typ, code .typ { color: #89bdff; } /* type - light blue */
8 | pre .lit, code .lit { color: #3387CC; } /* literal - blue */
9 | pre .pun, code .pun { color: #fff; } /* punctuation - white */
10 | pre .pln, code .pln { color: #fff; } /* plaintext - white */
11 | pre .tag, code .tag { color: #89bdff; } /* html/xml tag - light blue */
12 | pre .atn, code .atn { color: #bdb76b; } /* html/xml attribute name - khaki */
13 | pre .atv, code .atv { color: #65B042; } /* html/xml attribute value - green */
14 | pre .dec, code .dec { color: #3387CC; } /* decimal - blue */
15 |
16 | pre.prettyprint, code.prettyprint {
17 | background-color: #000;
18 | -moz-border-radius: 8px;
19 | -webkit-border-radius: 8px;
20 | -o-border-radius: 8px;
21 | -ms-border-radius: 8px;
22 | -khtml-border-radius: 8px;
23 | border-radius: 8px;
24 | }
25 |
26 | pre.prettyprint {
27 | width: 95%;
28 | margin: 1em auto;
29 | padding: 1em;
30 | white-space: pre-wrap;
31 | }
32 |
33 |
34 | /* Specify class=linenums on a pre to get line numbering */
35 | ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE; } /* IE indents via margin-left */
36 | li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
37 | /* Alternate shading for lines */
38 | li.L1,li.L3,li.L5,li.L7,li.L9 { }
39 |
40 | @media print {
41 | pre .str, code .str { color: #060; }
42 | pre .kwd, code .kwd { color: #006; font-weight: bold; }
43 | pre .com, code .com { color: #600; font-style: italic; }
44 | pre .typ, code .typ { color: #404; font-weight: bold; }
45 | pre .lit, code .lit { color: #044; }
46 | pre .pun, code .pun { color: #440; }
47 | pre .pln, code .pln { color: #000; }
48 | pre .tag, code .tag { color: #006; font-weight: bold; }
49 | pre .atn, code .atn { color: #404; }
50 | pre .atv, code .atv { color: #060; }
51 | }
52 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-rust.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2015 Chris Morgan
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([],[["pln",/^[\t\n\r \xA0]+/],["com",/^\/\/.*/],["com",/^\/\*[\s\S]*?(?:\*\/|$)/],["str",/^b"(?:[^\\]|\\(?:.|x[\da-fA-F]{2}))*?"/],["str",/^"(?:[^\\]|\\(?:.|x[\da-fA-F]{2}|u\{\[\da-fA-F]{1,6}\}))*?"/],["str",/^b?r(#*)\"[\s\S]*?\"\1/],["str",/^b'([^\\]|\\(.|x[\da-fA-F]{2}))'/],["str",/^'([^\\]|\\(.|x[\da-fA-F]{2}|u\{[\da-fA-F]{1,6}\}))'/],["tag",/^'\w+?\b/],["kwd",/^(?:match|if|else|as|break|box|continue|extern|fn|for|in|if|impl|let|loop|pub|return|super|unsafe|where|while|use|mod|trait|struct|enum|type|move|mut|ref|static|const|crate)\b/],
18 | ["kwd",/^(?:alignof|become|do|offsetof|priv|pure|sizeof|typeof|unsized|yield|abstract|virtual|final|override|macro)\b/],["typ",/^(?:[iu](8|16|32|64|size)|char|bool|f32|f64|str|Self)\b/],["typ",/^(?:Copy|Send|Sized|Sync|Drop|Fn|FnMut|FnOnce|Box|ToOwned|Clone|PartialEq|PartialOrd|Eq|Ord|AsRef|AsMut|Into|From|Default|Iterator|Extend|IntoIterator|DoubleEndedIterator|ExactSizeIterator|Option|Some|None|Result|Ok|Err|SliceConcatExt|String|ToString|Vec)\b/],["lit",/^(self|true|false|null)\b/],
19 | ["lit",/^\d[0-9_]*(?:[iu](?:size|8|16|32|64))?/],["lit",/^0x[a-fA-F0-9_]+(?:[iu](?:size|8|16|32|64))?/],["lit",/^0o[0-7_]+(?:[iu](?:size|8|16|32|64))?/],["lit",/^0b[01_]+(?:[iu](?:size|8|16|32|64))?/],["lit",/^\d[0-9_]*\.(?![^\s\d.])/],["lit",/^\d[0-9_]*(?:\.\d[0-9_]*)(?:[eE][+-]?[0-9_]+)?(?:f32|f64)?/],["lit",/^\d[0-9_]*(?:\.\d[0-9_]*)?(?:[eE][+-]?[0-9_]+)(?:f32|f64)?/],["lit",/^\d[0-9_]*(?:\.\d[0-9_]*)?(?:[eE][+-]?[0-9_]+)?(?:f32|f64)/],
20 | ["atn",/^[a-z_]\w*!/i],["pln",/^[a-z_]\w*/i],["atv",/^#!?\[[\s\S]*?\]/],["pun",/^[+\-/*=^&|!<>%[\](){}?:.,;]/],["pln",/./]]),["rust"]);
21 |
--------------------------------------------------------------------------------
/modules/page-user-list.php:
--------------------------------------------------------------------------------
1 | "User list",
4 | "version" => "0.1",
5 | "author" => "Starbeamrainbowlabs",
6 | "description" => "Adds a 'user-list' action that generates a list of users. Supports json output with 'format=json' in the queyr string.",
7 | "id" => "page-user-list",
8 | "code" => function() {
9 | global $settings;
10 | /**
11 | * @api {get} ?action=user-list[format=json] List all users
12 | * @apiName UserList
13 | * @apiGroup Utility
14 | * @apiPermission Anonymous
15 | */
16 |
17 | /*
18 | * ██ ██ ███████ ███████ ██████ ██ ██ ███████ ████████
19 | * ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
20 | * ██ ██ ███████ █████ ██████ █████ ██ ██ ███████ ██
21 | * ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
22 | * ██████ ███████ ███████ ██ ██ ███████ ██ ███████ ██
23 | */
24 | add_action("user-list", function() {
25 | global $env, $settings;
26 |
27 | $userList = array_keys(get_object_vars($settings->users));
28 | if(!empty($_GET["format"]) && $_GET["format"] === "json")
29 | {
30 | header("content-type: application/json");
31 | exit(json_encode($userList));
32 | }
33 |
34 | $content = "
Although you can use the edit page to view a page's source, you can also ask $settings->sitename to send you the raw page source and nothing else. This feature is intented for those who want to automate their interaction with $settings->sitename.
44 |
To use this feature, navigate to the page for which you want to see the source, and then alter the action parameter in the url's query string to be raw. If the action parameter doesn't exist, add it. Note that when used on an file's page this action will return the source of the description and not the file itself.
Although you can use the edit page to view a page's source, you can also ask $settings->sitename to send you the raw page source and nothing else. This feature is intented for those who want to automate their interaction with $settings->sitename.
44 |
To use this feature, navigate to the page for which you want to see the source, and then alter the action parameter in the url's query string to be raw. If the action parameter doesn't exist, add it. Note that when used on an file's page this action will return the source of the description and not the file itself.
You are not allowed to protect pages because you are not logged in as a mod or admin. Please try logging out if you are logged in and then try logging in as an administrator.
"));
57 | }
58 | });
59 | }
60 | ]);
61 |
62 | ?>
63 |
--------------------------------------------------------------------------------
/docs/ModuleApi/files/modules/action-protect.php.txt:
--------------------------------------------------------------------------------
1 | "Page protection",
4 | "version" => "0.2",
5 | "author" => "Starbeamrainbowlabs",
6 | "description" => "Exposes Pepperminty Wiki's new page protection mechanism and makes the protect button in the 'More...' menu on the top bar work.",
7 | "id" => "action-protect",
8 | "code" => function() {
9 | /**
10 | * @api {get} ?action=protect&page={pageName} Toggle the protection of a page.
11 | * @apiName Protect
12 | * @apiGroup Page
13 | * @apiPermission Moderator
14 | *
15 | * @apiParam {string} page The page name to toggle the protection of.
16 | */
17 |
18 | /*
19 | * ██████ ██████ ██████ ████████ ███████ ██████ ████████
20 | * ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
21 | * ██████ ██████ ██ ██ ██ █████ ██ ██
22 | * ██ ██ ██ ██ ██ ██ ██ ██ ██
23 | * ██ ██ ██ ██████ ██ ███████ ██████ ██
24 | */
25 | add_action("protect", function() {
26 | global $env, $pageindex, $paths, $settings;
27 |
28 | // Make sure that the user is logged in as an admin / mod.
29 | if($env->is_admin)
30 | {
31 | // They check out ok, toggle the page's protection.
32 | $page = $env->page;
33 |
34 | if(!isset($pageindex->$page->protect))
35 | {
36 | $pageindex->$page->protect = true;
37 | }
38 | else if($pageindex->$page->protect === true)
39 | {
40 | $pageindex->$page->protect = false;
41 | }
42 | else if($pageindex->$page->protect === false)
43 | {
44 | $pageindex->$page->protect = true;
45 | }
46 |
47 | // Save the pageindex
48 | file_put_contents($paths->pageindex, json_encode($pageindex, JSON_PRETTY_PRINT));
49 |
50 | $state = ($pageindex->$page->protect ? "enabled" : "disabled");
51 | $title = "Page protection $state.";
52 | exit(page_renderer::render_main($title, "
You are not allowed to protect pages because you are not logged in as a mod or admin. Please try logging out if you are logged in and then try logging in as an administrator.
"));
57 | }
58 | });
59 | }
60 | ]);
61 |
62 | ?>
63 |
64 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-sql.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2008 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^\"\\]|\\.)*"|'(?:[^\'\\]|\\.)*')/,null,"\"'"]],[["com",/^(?:--[^\r\n]*|\/\*[\s\S]*?(?:\*\/|$))/],["kwd",/^(?:ADD|ALL|ALTER|AND|ANY|APPLY|AS|ASC|AUTHORIZATION|BACKUP|BEGIN|BETWEEN|BREAK|BROWSE|BULK|BY|CASCADE|CASE|CHECK|CHECKPOINT|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMN|COMMIT|COMPUTE|CONNECT|CONSTRAINT|CONTAINS|CONTAINSTABLE|CONTINUE|CONVERT|CREATE|CROSS|CURRENT|CURRENT_DATE|CURRENT_TIME|CURRENT_TIMESTAMP|CURRENT_USER|CURSOR|DATABASE|DBCC|DEALLOCATE|DECLARE|DEFAULT|DELETE|DENY|DESC|DISK|DISTINCT|DISTRIBUTED|DOUBLE|DROP|DUMMY|DUMP|ELSE|END|ERRLVL|ESCAPE|EXCEPT|EXEC|EXECUTE|EXISTS|EXIT|FETCH|FILE|FILLFACTOR|FOLLOWING|FOR|FOREIGN|FREETEXT|FREETEXTTABLE|FROM|FULL|FUNCTION|GOTO|GRANT|GROUP|HAVING|HOLDLOCK|IDENTITY|IDENTITYCOL|IDENTITY_INSERT|IF|IN|INDEX|INNER|INSERT|INTERSECT|INTO|IS|JOIN|KEY|KILL|LEFT|LIKE|LINENO|LOAD|MATCH|MATCHED|MERGE|NATURAL|NATIONAL|NOCHECK|NONCLUSTERED|NOCYCLE|NOT|NULL|NULLIF|OF|OFF|OFFSETS|ON|OPEN|OPENDATASOURCE|OPENQUERY|OPENROWSET|OPENXML|OPTION|OR|ORDER|OUTER|OVER|PARTITION|PERCENT|PIVOT|PLAN|PRECEDING|PRECISION|PRIMARY|PRINT|PROC|PROCEDURE|PUBLIC|RAISERROR|READ|READTEXT|RECONFIGURE|REFERENCES|REPLICATION|RESTORE|RESTRICT|RETURN|REVOKE|RIGHT|ROLLBACK|ROWCOUNT|ROWGUIDCOL|ROWS?|RULE|SAVE|SCHEMA|SELECT|SESSION_USER|SET|SETUSER|SHUTDOWN|SOME|START|STATISTICS|SYSTEM_USER|TABLE|TEXTSIZE|THEN|TO|TOP|TRAN|TRANSACTION|TRIGGER|TRUNCATE|TSEQUAL|UNBOUNDED|UNION|UNIQUE|UNPIVOT|UPDATE|UPDATETEXT|USE|USER|USING|VALUES|VARYING|VIEW|WAITFOR|WHEN|WHERE|WHILE|WITH|WITHIN|WRITETEXT|XML)(?=[^\w-]|$)/i,
18 | null],["lit",/^[+-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i],["pln",/^[a-z_][\w-]*/i],["pun",/^[^\w\t\n\r \xA0\"\'][^\w\t\n\r \xA0+\-\"\']*/]]),["sql"]);
19 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-vb.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2009 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0\u2028\u2029]+/,null,"\t\n\r \u00a0\u2028\u2029"],["str",/^(?:[\"\u201C\u201D](?:[^\"\u201C\u201D]|[\"\u201C\u201D]{2})(?:[\"\u201C\u201D]c|$)|[\"\u201C\u201D](?:[^\"\u201C\u201D]|[\"\u201C\u201D]{2})*(?:[\"\u201C\u201D]|$))/i,null,'"\u201c\u201d'],["com",/^[\'\u2018\u2019](?:_(?:\r\n?|[^\r]?)|[^\r\n_\u2028\u2029])*/,null,"'\u2018\u2019"]],[["kwd",/^(?:AddHandler|AddressOf|Alias|And|AndAlso|Ansi|As|Assembly|Auto|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|CBool|CByte|CChar|CDate|CDbl|CDec|Char|CInt|Class|CLng|CObj|Const|CShort|CSng|CStr|CType|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else|ElseIf|End|EndIf|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get|GetType|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|Let|Lib|Like|Long|Loop|Me|Mod|Module|MustInherit|MustOverride|MyBase|MyClass|Namespace|New|Next|Not|NotInheritable|NotOverridable|Object|On|Option|Optional|Or|OrElse|Overloads|Overridable|Overrides|ParamArray|Preserve|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|Select|Set|Shadows|Shared|Short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TypeOf|Unicode|Until|Variant|Wend|When|While|With|WithEvents|WriteOnly|Xor|EndIf|GoSub|Let|Variant|Wend)\b/i,
18 | null],["com",/^REM\b[^\r\n\u2028\u2029]*/i],["lit",/^(?:True\b|False\b|Nothing\b|\d+(?:E[+\-]?\d+[FRD]?|[FRDSIL])?|(?:&H[0-9A-F]+|&O[0-7]+)[SIL]?|\d*\.\d+(?:E[+\-]?\d+)?[FRD]?|#\s+(?:\d+[\-\/]\d+[\-\/]\d+(?:\s+\d+:\d+(?::\d+)?(\s*(?:AM|PM))?)?|\d+:\d+(?::\d+)?(\s*(?:AM|PM))?)\s+#)/i],["pln",/^(?:(?:[a-z]|_\w)\w*(?:\[[%&@!#]+\])?|\[(?:[a-z]|_\w)\w*\])/i],["pun",/^[^\w\t\n\r \"\'\[\]\xA0\u2018\u2019\u201C\u201D\u2028\u2029]+/],["pun",/^(?:\[|\])/]]),["vb",
19 | "vbs"]);
20 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-vbs.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2009 Google Inc.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0\u2028\u2029]+/,null,"\t\n\r \u00a0\u2028\u2029"],["str",/^(?:[\"\u201C\u201D](?:[^\"\u201C\u201D]|[\"\u201C\u201D]{2})(?:[\"\u201C\u201D]c|$)|[\"\u201C\u201D](?:[^\"\u201C\u201D]|[\"\u201C\u201D]{2})*(?:[\"\u201C\u201D]|$))/i,null,'"\u201c\u201d'],["com",/^[\'\u2018\u2019](?:_(?:\r\n?|[^\r]?)|[^\r\n_\u2028\u2029])*/,null,"'\u2018\u2019"]],[["kwd",/^(?:AddHandler|AddressOf|Alias|And|AndAlso|Ansi|As|Assembly|Auto|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|CBool|CByte|CChar|CDate|CDbl|CDec|Char|CInt|Class|CLng|CObj|Const|CShort|CSng|CStr|CType|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else|ElseIf|End|EndIf|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get|GetType|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|Let|Lib|Like|Long|Loop|Me|Mod|Module|MustInherit|MustOverride|MyBase|MyClass|Namespace|New|Next|Not|NotInheritable|NotOverridable|Object|On|Option|Optional|Or|OrElse|Overloads|Overridable|Overrides|ParamArray|Preserve|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|Select|Set|Shadows|Shared|Short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TypeOf|Unicode|Until|Variant|Wend|When|While|With|WithEvents|WriteOnly|Xor|EndIf|GoSub|Let|Variant|Wend)\b/i,
18 | null],["com",/^REM\b[^\r\n\u2028\u2029]*/i],["lit",/^(?:True\b|False\b|Nothing\b|\d+(?:E[+\-]?\d+[FRD]?|[FRDSIL])?|(?:&H[0-9A-F]+|&O[0-7]+)[SIL]?|\d*\.\d+(?:E[+\-]?\d+)?[FRD]?|#\s+(?:\d+[\-\/]\d+[\-\/]\d+(?:\s+\d+:\d+(?::\d+)?(\s*(?:AM|PM))?)?|\d+:\d+(?::\d+)?(\s*(?:AM|PM))?)\s+#)/i],["pln",/^(?:(?:[a-z]|_\w)\w*(?:\[[%&@!#]+\])?|\[(?:[a-z]|_\w)\w*\])/i],["pun",/^[^\w\t\n\r \"\'\[\]\xA0\u2018\u2019\u201C\u201D\u2028\u2029]+/],["pun",/^(?:\[|\])/]]),["vb",
19 | "vbs"]);
20 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-ls.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2013 Eric Knibbe
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/,null,"'"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\`[^\`]*(?:\`|$)/,null,"`"],["lit",/^0x[\da-f]+|\d+/i,null,"0123456789"],["atn",/^#\d+|[#$][a-z_][\w.]*|#![ \S]+lasso9\b/i,null,"#$"]],[["tag",/^[[\]]|<\?(?:lasso(?:script)?|=)|\?>|noprocess\b|no_square_brackets\b/i],["com",/^\/\/[^\r\n]*|\/\*[\s\S]*?\*\//],
18 | ["atn",/^-(?!infinity)[a-z_][\w.]*|\.\s*'[a-z_][\w.]*'/i],["lit",/^\d*\.\d+(?:e[-+]?\d+)?|infinity\b|NaN\b/i],["atv",/^::\s*[a-z_][\w.]*/i],["lit",/^(?:true|false|none|minimal|full|all|void|and|or|not|bw|nbw|ew|new|cn|ncn|lt|lte|gt|gte|eq|neq|rx|nrx|ft)\b/i],["kwd",/^(?:error_code|error_msg|error_pop|error_push|error_reset|cache|database_names|database_schemanames|database_tablenames|define_tag|define_type|email_batch|encode_set|html_comment|handle|handle_error|header|if|inline|iterate|ljax_target|link|link_currentaction|link_currentgroup|link_currentrecord|link_detail|link_firstgroup|link_firstrecord|link_lastgroup|link_lastrecord|link_nextgroup|link_nextrecord|link_prevgroup|link_prevrecord|log|loop|namespace_using|output_none|portal|private|protect|records|referer|referrer|repeating|resultset|rows|search_args|search_arguments|select|sort_args|sort_arguments|thread_atomic|value_list|while|abort|case|else|if_empty|if_false|if_null|if_true|loop_abort|loop_continue|loop_count|params|params_up|return|return_value|run_children|soap_definetag|soap_lastrequest|soap_lastresponse|tag_name|ascending|average|by|define|descending|do|equals|frozen|group|handle_failure|import|in|into|join|let|match|max|min|on|order|parent|protected|provide|public|require|returnhome|skip|split_thread|sum|take|thread|to|trait|type|where|with|yield|yieldhome)\b/i],
19 | ["typ",/^(?:array|date|decimal|duration|integer|map|pair|string|tag|xml|null|boolean|bytes|keyword|list|locale|queue|set|stack|staticarray|local|var|variable|global|data|self|inherited|currentcapture|givenblock)\b|^\.\.?/i],["pln",/^[a-z_][\w.]*(?:=\s*(?=\())?/i],["pun",/^:=|[-+*\/%=<>&|!?\\]/]]),["lasso","ls","lassoscript"]);
20 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-lasso.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2013 Eric Knibbe
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/,null,"'"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\`[^\`]*(?:\`|$)/,null,"`"],["lit",/^0x[\da-f]+|\d+/i,null,"0123456789"],["atn",/^#\d+|[#$][a-z_][\w.]*|#![ \S]+lasso9\b/i,null,"#$"]],[["tag",/^[[\]]|<\?(?:lasso(?:script)?|=)|\?>|noprocess\b|no_square_brackets\b/i],["com",/^\/\/[^\r\n]*|\/\*[\s\S]*?\*\//],
18 | ["atn",/^-(?!infinity)[a-z_][\w.]*|\.\s*'[a-z_][\w.]*'/i],["lit",/^\d*\.\d+(?:e[-+]?\d+)?|infinity\b|NaN\b/i],["atv",/^::\s*[a-z_][\w.]*/i],["lit",/^(?:true|false|none|minimal|full|all|void|and|or|not|bw|nbw|ew|new|cn|ncn|lt|lte|gt|gte|eq|neq|rx|nrx|ft)\b/i],["kwd",/^(?:error_code|error_msg|error_pop|error_push|error_reset|cache|database_names|database_schemanames|database_tablenames|define_tag|define_type|email_batch|encode_set|html_comment|handle|handle_error|header|if|inline|iterate|ljax_target|link|link_currentaction|link_currentgroup|link_currentrecord|link_detail|link_firstgroup|link_firstrecord|link_lastgroup|link_lastrecord|link_nextgroup|link_nextrecord|link_prevgroup|link_prevrecord|log|loop|namespace_using|output_none|portal|private|protect|records|referer|referrer|repeating|resultset|rows|search_args|search_arguments|select|sort_args|sort_arguments|thread_atomic|value_list|while|abort|case|else|if_empty|if_false|if_null|if_true|loop_abort|loop_continue|loop_count|params|params_up|return|return_value|run_children|soap_definetag|soap_lastrequest|soap_lastresponse|tag_name|ascending|average|by|define|descending|do|equals|frozen|group|handle_failure|import|in|into|join|let|match|max|min|on|order|parent|protected|provide|public|require|returnhome|skip|split_thread|sum|take|thread|to|trait|type|where|with|yield|yieldhome)\b/i],
19 | ["typ",/^(?:array|date|decimal|duration|integer|map|pair|string|tag|xml|null|boolean|bytes|keyword|list|locale|queue|set|stack|staticarray|local|var|variable|global|data|self|inherited|currentcapture|givenblock)\b|^\.\.?/i],["pln",/^[a-z_][\w.]*(?:=\s*(?=\())?/i],["pun",/^:=|[-+*\/%=<>&|!?\\]/]]),["lasso","ls","lassoscript"]);
20 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/prettify/lang-lassoscript.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Copyright (C) 2013 Eric Knibbe
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | */
17 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/,null,"'"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\`[^\`]*(?:\`|$)/,null,"`"],["lit",/^0x[\da-f]+|\d+/i,null,"0123456789"],["atn",/^#\d+|[#$][a-z_][\w.]*|#![ \S]+lasso9\b/i,null,"#$"]],[["tag",/^[[\]]|<\?(?:lasso(?:script)?|=)|\?>|noprocess\b|no_square_brackets\b/i],["com",/^\/\/[^\r\n]*|\/\*[\s\S]*?\*\//],
18 | ["atn",/^-(?!infinity)[a-z_][\w.]*|\.\s*'[a-z_][\w.]*'/i],["lit",/^\d*\.\d+(?:e[-+]?\d+)?|infinity\b|NaN\b/i],["atv",/^::\s*[a-z_][\w.]*/i],["lit",/^(?:true|false|none|minimal|full|all|void|and|or|not|bw|nbw|ew|new|cn|ncn|lt|lte|gt|gte|eq|neq|rx|nrx|ft)\b/i],["kwd",/^(?:error_code|error_msg|error_pop|error_push|error_reset|cache|database_names|database_schemanames|database_tablenames|define_tag|define_type|email_batch|encode_set|html_comment|handle|handle_error|header|if|inline|iterate|ljax_target|link|link_currentaction|link_currentgroup|link_currentrecord|link_detail|link_firstgroup|link_firstrecord|link_lastgroup|link_lastrecord|link_nextgroup|link_nextrecord|link_prevgroup|link_prevrecord|log|loop|namespace_using|output_none|portal|private|protect|records|referer|referrer|repeating|resultset|rows|search_args|search_arguments|select|sort_args|sort_arguments|thread_atomic|value_list|while|abort|case|else|if_empty|if_false|if_null|if_true|loop_abort|loop_continue|loop_count|params|params_up|return|return_value|run_children|soap_definetag|soap_lastrequest|soap_lastresponse|tag_name|ascending|average|by|define|descending|do|equals|frozen|group|handle_failure|import|in|into|join|let|match|max|min|on|order|parent|protected|provide|public|require|returnhome|skip|split_thread|sum|take|thread|to|trait|type|where|with|yield|yieldhome)\b/i],
19 | ["typ",/^(?:array|date|decimal|duration|integer|map|pair|string|tag|xml|null|boolean|bytes|keyword|list|locale|queue|set|stack|staticarray|local|var|variable|global|data|self|inherited|currentcapture|givenblock)\b|^\.\.?/i],["pln",/^[a-z_][\w.]*(?:=\s*(?=\())?/i],["pun",/^:=|[-+*\/%=<>&|!?\\]/]]),["lasso","ls","lassoscript"]);
20 |
--------------------------------------------------------------------------------
/settings.fragment.php:
--------------------------------------------------------------------------------
1 |
13 | * Rendering: MathJax (https://www.mathjax.org/)
14 | * Bug reports:
15 | * #2 - Incorrect closing tag - nibreh
16 | * #8 - Rogue tag - nibreh
17 | */
18 | $guiConfig = <<<'GUICONFIG'
19 | {guiconfig}
20 | GUICONFIG;
21 |
22 | $settingsFilename = "peppermint.json";
23 |
24 | if(file_exists("$settingsFilename.compromised")) {
25 | http_response_code(500);
26 | header("content-type: text/plain");
27 | exit("Error: $settingsFilename.compromised exists on disk, so it's likely you need to block access to 'peppermint.json' from the internet. If you've done this already, please delete $settingsFilename.compromised and reload this page.");
28 | }
29 |
30 | $guiConfig = json_decode($guiConfig);
31 | $settings = new stdClass();
32 | if(!file_exists($settingsFilename))
33 | {
34 | // Copy the default settings over to the main settings array
35 | foreach ($guiConfig as $key => $value)
36 | $settings->$key = $value->default;
37 | // Generate a random secret
38 | $settings->secret = bin2hex(random_bytes(16));
39 | file_put_contents("peppermint.json", json_encode($settings, JSON_PRETTY_PRINT));
40 | }
41 | else
42 | $settings = json_decode(file_get_contents("peppermint.json"));
43 |
44 | if($settings === null)
45 | {
46 | header("content-type: text/plain");
47 | exit("Error: Failed to decode the settings file! Does it contain a syntax error?");
48 | }
49 |
50 | // Fill in any missing properties
51 | $settingsUpgraded = false;
52 | foreach($guiConfig as $key => $propertyData)
53 | {
54 | if(!isset($settings->$key))
55 | {
56 | $settings->$key = $propertyData->default;
57 | $settingsUpgraded = true;
58 | }
59 | }
60 | if($settingsUpgraded)
61 | file_put_contents("peppermint.json", json_encode($settings, JSON_PRETTY_PRINT));
62 |
63 | // Insert the default CSS if requested
64 | $defaultCSS = <<sessionprefix == "auto")
73 | $settings->sessionprefix = "pepperminty-wiki-" . preg_replace('/[^a-z0-9\-_]/', "-", strtolower($settings->sitename));
74 | ?>
75 |
--------------------------------------------------------------------------------
/docs/ModuleApi/files/settings.fragment.php.txt:
--------------------------------------------------------------------------------
1 |
13 | * Rendering: MathJax (https://www.mathjax.org/)
14 | * Bug reports:
15 | * #2 - Incorrect closing tag - nibreh
16 | * #8 - Rogue tag - nibreh
17 | */
18 | $guiConfig = <<<'GUICONFIG'
19 | {guiconfig}
20 | GUICONFIG;
21 |
22 | $settingsFilename = "peppermint.json";
23 |
24 | if(file_exists("$settingsFilename.compromised")) {
25 | http_response_code(500);
26 | header("content-type: text/plain");
27 | exit("Error: $settingsFilename.compromised exists on disk, so it's likely you need to block access to 'peppermint.json' from the internet. If you've done this already, please delete $settingsFilename.compromised and reload this page.");
28 | }
29 |
30 | $guiConfig = json_decode($guiConfig);
31 | $settings = new stdClass();
32 | if(!file_exists($settingsFilename))
33 | {
34 | // Copy the default settings over to the main settings array
35 | foreach ($guiConfig as $key => $value)
36 | $settings->$key = $value->default;
37 | // Generate a random secret
38 | $settings->secret = bin2hex(random_bytes(16));
39 | file_put_contents("peppermint.json", json_encode($settings, JSON_PRETTY_PRINT));
40 | }
41 | else
42 | $settings = json_decode(file_get_contents("peppermint.json"));
43 |
44 | if($settings === null)
45 | {
46 | header("content-type: text/plain");
47 | exit("Error: Failed to decode the settings file! Does it contain a syntax error?");
48 | }
49 |
50 | // Fill in any missing properties
51 | $settingsUpgraded = false;
52 | foreach($guiConfig as $key => $propertyData)
53 | {
54 | if(!isset($settings->$key))
55 | {
56 | $settings->$key = $propertyData->default;
57 | $settingsUpgraded = true;
58 | }
59 | }
60 | if($settingsUpgraded)
61 | file_put_contents("peppermint.json", json_encode($settings, JSON_PRETTY_PRINT));
62 |
63 | // Insert the default CSS if requested
64 | $defaultCSS = <<sessionprefix == "auto")
73 | $settings->sessionprefix = "pepperminty-wiki-" . preg_replace('/[^a-z0-9\-_]/', "-", strtolower($settings->sitename));
74 | ?>
75 |
76 |
--------------------------------------------------------------------------------
/pack.php:
--------------------------------------------------------------------------------
1 | optional &&
15 | (
16 | isset($argv) &&
17 | strrpos(implode(" ", $argv), $module->id) === false &&
18 | !in_array("all", $argv)
19 | )
20 | )
21 | continue;
22 | $module_list[] = $module->id;
23 | }
24 |
25 | if(isset($_GET["modules"]))
26 | {
27 | $module_list = explode(",", $_GET["modules"]);
28 | }
29 |
30 | if(php_sapi_name() != "cli")
31 | {
32 | header("content-type: text/php");
33 | header("content-disposition: attachment; filename=\"index.php\"");
34 | }
35 |
36 | if(php_sapi_name() == "cli") echo("Reading in core files...");
37 |
38 | $core = file_get_contents("core.php");
39 | $settings = file_get_contents("settings.fragment.php");
40 | $settings = str_replace([ "" ], "", $settings);
41 | $core = str_replace([
42 | "//{settings}",
43 | "{version}",
44 | "{commit}",
45 | "{guiconfig}",
46 | "{default-css}"
47 | ], [
48 | $settings,
49 | trim(file_get_contents("version")),
50 | exec("git rev-parse HEAD"),
51 | trim(file_get_contents("peppermint.guiconfig.json")),
52 | trim(file_get_contents("theme_default.css"))
53 | ], $core);
54 |
55 | $result = $core;
56 |
57 | foreach($module_list as $module_id)
58 | {
59 | if($module_id == "") continue;
60 |
61 | if(php_sapi_name() == "cli") echo("Adding $module_id\n");
62 |
63 | $module_filepath = "modules/" . preg_replace("[^a-zA-Z0-9\-]", "", $module_id) . ".php";
64 |
65 | //echo("id: $module_id | filepath: $module_filepath\n");
66 |
67 | if(!file_exists($module_filepath))
68 | {
69 | http_response_code(400);
70 | exit("Failed to load module with name: $module_filepath");
71 | }
72 |
73 | $modulecode = file_get_contents($module_filepath);
74 | $modulecode = str_replace([ "" ], "", $modulecode);
75 | $result = str_replace(
76 | "// %next_module% //",
77 | "$modulecode\n// %next_module% //",
78 | $result);
79 | }
80 |
81 | if(php_sapi_name() == "cli")
82 | {
83 | if(file_exists("build/index.php"))
84 | {
85 | echo("index.php already exists in the build folder, exiting\n");
86 | exit(1);
87 | }
88 | else
89 | {
90 | echo("Done. Saving to disk...");
91 | file_put_contents("build/index.php", $result);
92 | echo("complete!\n");
93 | echo("*** Build completed! ***\n");
94 | }
95 | }
96 | else
97 | {
98 | exit($result);
99 | }
100 |
101 | ?>
102 |
--------------------------------------------------------------------------------
/docs/ModuleApi/files/pack.php.txt:
--------------------------------------------------------------------------------
1 | optional &&
15 | (
16 | isset($argv) &&
17 | strrpos(implode(" ", $argv), $module->id) === false &&
18 | !in_array("all", $argv)
19 | )
20 | )
21 | continue;
22 | $module_list[] = $module->id;
23 | }
24 |
25 | if(isset($_GET["modules"]))
26 | {
27 | $module_list = explode(",", $_GET["modules"]);
28 | }
29 |
30 | if(php_sapi_name() != "cli")
31 | {
32 | header("content-type: text/php");
33 | header("content-disposition: attachment; filename=\"index.php\"");
34 | }
35 |
36 | if(php_sapi_name() == "cli") echo("Reading in core files...");
37 |
38 | $core = file_get_contents("core.php");
39 | $settings = file_get_contents("settings.fragment.php");
40 | $settings = str_replace([ "" ], "", $settings);
41 | $core = str_replace([
42 | "//{settings}",
43 | "{version}",
44 | "{commit}",
45 | "{guiconfig}",
46 | "{default-css}"
47 | ], [
48 | $settings,
49 | trim(file_get_contents("version")),
50 | exec("git rev-parse HEAD"),
51 | trim(file_get_contents("peppermint.guiconfig.json")),
52 | trim(file_get_contents("theme_default.css"))
53 | ], $core);
54 |
55 | $result = $core;
56 |
57 | foreach($module_list as $module_id)
58 | {
59 | if($module_id == "") continue;
60 |
61 | if(php_sapi_name() == "cli") echo("Adding $module_id\n");
62 |
63 | $module_filepath = "modules/" . preg_replace("[^a-zA-Z0-9\-]", "", $module_id) . ".php";
64 |
65 | //echo("id: $module_id | filepath: $module_filepath\n");
66 |
67 | if(!file_exists($module_filepath))
68 | {
69 | http_response_code(400);
70 | exit("Failed to load module with name: $module_filepath");
71 | }
72 |
73 | $modulecode = file_get_contents($module_filepath);
74 | $modulecode = str_replace([ "" ], "", $modulecode);
75 | $result = str_replace(
76 | "// %next_module% //",
77 | "$modulecode\n// %next_module% //",
78 | $result);
79 | }
80 |
81 | if(php_sapi_name() == "cli")
82 | {
83 | if(file_exists("build/index.php"))
84 | {
85 | echo("index.php already exists in the build folder, exiting\n");
86 | exit(1);
87 | }
88 | else
89 | {
90 | echo("Done. Saving to disk...");
91 | file_put_contents("build/index.php", $result);
92 | echo("complete!\n");
93 | echo("*** Build completed! ***\n");
94 | }
95 | }
96 | else
97 | {
98 | exit($result);
99 | }
100 |
101 | ?>
102 |
103 |
--------------------------------------------------------------------------------
/docs/05-Getting-A-Copy.md:
--------------------------------------------------------------------------------
1 | # Getting a Copy
2 | Setting up your own copy of Pepperminty Wiki is easy. Since Pepperminty Wiki works on a module based system, all you need to do is choose the modules you want installed, and then configure your new installation so that it fits your needs. There are several ways to do this:
3 |
4 | ## Method 1: The latest pre-built stable release
5 | If you want a pre-built stable version, then you can use the latest release. It has a changelog that tells you what has changed since the last release, along with a pre-built version with all the latest modules.
6 |
7 | **Link:** [Latest Release](https://github.com/sbrl/Pepperminty-Wiki/releases/latest)
8 |
9 | ## Method 2: The pre-built version from the repository
10 | If you're feeling lazy, you can grab the bleeding-edge version from this repository, which comes with all the latest modules. You can get it [here](https://raw.githubusercontent.com/sbrl/Pepperminty-Wiki/master/build/index.php).
11 |
12 | **Link:** [index.php](https://raw.githubusercontent.com/sbrl/Pepperminty-Wiki/master/build/index.php)
13 |
14 | ## Method 3: Using the online downloader
15 | Pepperminty Wiki has a downloader that you can use to select the modules you want to include in your install. The online downloader will give you the latest stable release. You can find it here.
16 |
17 | **Link:** [Online Downloader](https://starbeamrainbowlabs.com/labs/peppermint/download.php)
18 |
19 | ## Method 3.5: Using the downloader offline
20 | You can also you the downloader offline. Simply clone this repository to your web server and then point your web browser at `your.server.com/path/to/pepperminty/wiki/download.php`.
21 |
22 | ## Method 4: Building from source
23 | Pepperminty Wiki can also be built from source (and I do this all the time when testing). Start by cloning the repository. Then go into the `modules` folder and append `.disabled` to the names of any modules you don't want to be included (e.g. `modules/page-edit.php` would become `modules/page-edit.php.disabled`). Then follow the instructions below. The resulting file will be located at `build/index.php`.
24 |
25 | Run the following commands from the root of the repository in order, adjusting them for your specific platform if required:
26 |
27 | ```bash
28 | rm build/index.php
29 | php build.php
30 | ```
31 |
32 | These commands are also in `build.sh`. If you have bash installed (i.e. Linux and macOS users), you can run that instead like this:
33 |
34 | ```bash
35 | ./build.sh build
36 | ```
37 |
38 | The extra `build` is because the build script can do other things. Omit the `build` for a full list of tricks it has up its sleeve :D
39 |
40 | Here's an explanation of what each command does:
41 |
42 | 1. Deletes the old `index.php` in the build folder that comes with the repository
43 | 2. Rebuilds the module index that the build scripts uses to determine what modules it should include when building, and then actually builds Pepperminty Wiki. Outputs to `index.php`.
44 |
--------------------------------------------------------------------------------
/download.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Pepperminty Wiki Download
6 |
7 |
8 |
Pepperminty Wiki Downloader
9 |
10 |
11 |
Module selector
12 |
Choose the modules that you want to include in your installation of Pepperminty Wiki .
As a moderator, $settings->sitename gives you the ability to generate a report on $settings->sitename's installation of Pepperminty Wiki for debugging purposes.
71 |
To generate such a report, visit the debug action or click here.
As a moderator, $settings->sitename gives you the ability to generate a report on $settings->sitename's installation of Pepperminty Wiki for debugging purposes.
71 |
To generate such a report, visit the debug action or click here.
");
72 | }
73 | }
74 | ]);
75 |
76 | ?>
77 |
78 |
--------------------------------------------------------------------------------
/docs/RestApi/vendor/polyfill.js:
--------------------------------------------------------------------------------
1 | // From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys
2 | if (!Object.keys) {
3 | Object.keys = (function () {
4 | 'use strict';
5 | var hasOwnProperty = Object.prototype.hasOwnProperty,
6 | hasDontEnumBug = !({toString: null}).propertyIsEnumerable('toString'),
7 | dontEnums = [
8 | 'toString',
9 | 'toLocaleString',
10 | 'valueOf',
11 | 'hasOwnProperty',
12 | 'isPrototypeOf',
13 | 'propertyIsEnumerable',
14 | 'constructor'
15 | ],
16 | dontEnumsLength = dontEnums.length;
17 |
18 | return function (obj) {
19 | if (typeof obj !== 'object' && (typeof obj !== 'function' || obj === null)) {
20 | throw new TypeError('Object.keys called on non-object');
21 | }
22 |
23 | var result = [], prop, i;
24 |
25 | for (prop in obj) {
26 | if (hasOwnProperty.call(obj, prop)) {
27 | result.push(prop);
28 | }
29 | }
30 |
31 | if (hasDontEnumBug) {
32 | for (i = 0; i < dontEnumsLength; i++) {
33 | if (hasOwnProperty.call(obj, dontEnums[i])) {
34 | result.push(dontEnums[i]);
35 | }
36 | }
37 | }
38 | return result;
39 | };
40 | }());
41 | }
42 |
43 | //Production steps of ECMA-262, Edition 5, 15.4.4.18
44 | //Reference: http://es5.github.com/#x15.4.4.18
45 | if (!Array.prototype.forEach) {
46 | Array.prototype.forEach = function (callback, thisArg) {
47 | var T, k;
48 |
49 | if (this == null) {
50 | throw new TypeError(' this is null or not defined');
51 | }
52 |
53 | // 1. Let O be the result of calling ToObject passing the |this| value as the argument.
54 | var O = Object(this);
55 |
56 | // 2. Let lenValue be the result of calling the Get internal method of O with the argument "length".
57 | // 3. Let len be ToUint32(lenValue).
58 | var len = O.length >>> 0;
59 |
60 | // 4. If IsCallable(callback) is false, throw a TypeError exception.
61 | // See: http://es5.github.com/#x9.11
62 | if (typeof callback !== "function") {
63 | throw new TypeError(callback + " is not a function");
64 | }
65 |
66 | // 5. If thisArg was supplied, let T be thisArg; else let T be undefined.
67 | if (arguments.length > 1) {
68 | T = thisArg;
69 | }
70 |
71 | // 6. Let k be 0
72 | k = 0;
73 |
74 | // 7. Repeat, while k < len
75 | while (k < len) {
76 | var kValue;
77 |
78 | // a. Let Pk be ToString(k).
79 | // This is implicit for LHS operands of the in operator
80 | // b. Let kPresent be the result of calling the HasProperty internal method of O with argument Pk.
81 | // This step can be combined with c
82 | // c. If kPresent is true, then
83 | if (k in O) {
84 | // i. Let kValue be the result of calling the Get internal method of O with argument Pk.
85 | kValue = O[k];
86 |
87 | // ii. Call the Call internal method of callback with T as the this value and
88 | // argument list containing kValue, k, and O.
89 | callback.call(T, kValue, k, O);
90 | }
91 | // d. Increase k by 1.
92 | k++;
93 | }
94 | // 8. return undefined
95 | };
96 | }
97 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | #  Pepperminty Wiki [](https://travis-ci.org/sbrl/Pepperminty-Wiki) [](https://gitter.im/Pepperminty-Wiki/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://raw.githubusercontent.com/sbrl/Pepperminty-Wiki/master/LICENSE)
2 |
3 | > A Wiki in a box
4 |
5 | Pepperminty Wiki is a complete wiki engine contained in a single file, inspired by @am2064's [Minty Wiki](https://github.com/am2064/Minty-Wiki). It's open source too (under MPL-2.0), so contributions are welcome!
6 |
7 | Developed by Starbeamrainbowlabs (though contributions from others are welcome!), Pepperminty Wiki has a variety of useful (and cool!) features - such as file upload, a dynamic help page, page revision history, page tags, and more! Other amazing features are in the works too (like a theme gallery, auto update, and user watchlists), so check the release notes to see what's been added recently.
8 |
9 | **Latest Version:** v0.17.1 (stable) v0.18-dev (development) ([Changelog](https://github.com/sbrl/Pepperminty-Wiki/blob/master/Changelog.md))
10 |
11 | ## Screenshot
12 | [](https://imgur.com/a/lsBc3cM)
13 |
14 | ## Documentation
15 | For everything you need to know, you probably want the documentation. It can be found here:
16 |
17 | **[Documentation](#link-coming-soon)**
18 |
19 | ## Real World Usage
20 | None yet! Contact me or [open an issue](https://github.com/sbrl/Pepperminty-Wiki/issues/new) and tell me about where you are using Pepperminty Wiki and I'll add you to this section :smiley_cat:
21 |
22 | ## Todo
23 | Here's a list of things that I want to add at some point (please feel free to [send a pull request](https://github.com/sbrl/Pepperminty-Wiki/pulls) and help out!).
24 |
25 | - Better page history (revert to revision, compare revisions, etc.) (#78, #79)
26 | - Intelligent auto-updating system that doesn't wipe your settings / module choices
27 | - A module registry of some sort (ideas welcome!)
28 | - Image maps (#103)
29 | - An app for Android (Sorry, iOS is not practical at the current time. Feel free to make one yourself! I'm happy to help out if you need help with Pepperminty Wiki itself (e.g. making it more machine-readable (#138)) - message on Gitter (see above), or open an issue on this repository.) - in progress over [here](https://github.com/sbrl/Pepperminty-Wiki-Client-Android/)!
30 | - User watchlists
31 | - Theme gallery (#5)
32 | - (See more on the [issue tracker](https://github.com/sbrl/Pepperminty-Wiki/issues)!)
33 | - ...?
34 |
35 | Is the feature you want to see not on this list or not implemented yet? [Open an issue](https://github.com/sbrl/Pepperminty-Wiki/issues/new) or [send a pull request](https://github.com/sbrl/Pepperminty-Wiki/pulls) - contributions welcome!
36 |
37 | ## Docker
38 |
39 | Run in a docker container with: `docker run -d sqlatenwiki/peppermintywiki:stable`
40 |
41 | # License
42 | Pepperminty Wiki is released under the Mozilla Public License 2.0. The full license text is included in the `LICENSE` file in this repository.
43 |
--------------------------------------------------------------------------------
/docs/06-Configuration.md:
--------------------------------------------------------------------------------
1 | # Configuring
2 | Pepperminty Wiki stores its settings in a JSON file called `peppermint.json`, which is stored in the same directory that you put `index.php` into. If it doesn't exist, it's created automatically for you when you load the page for the first time.
3 |
4 | You can edit it directly, but most properties are configurable in a graphical interface. It can be accessed through the _Edit Master Settings_ option in the more menu, or the `configure` action (e.g. `https://wiki.example.com/?action=configure`) if it doesn't appear for you.
5 |
6 | However, some settings do still require edits to `peppermint.json` directly. Examples here include:
7 |
8 | - Editing the various navigation bars
9 | - Configuring moderators
10 | - Setting allowed upload file types (and mime type overrides)
11 | - Manual HTTP/2.0 Server Push configuration
12 |
13 | The [configuration guide](https://starbeamrainbowlabs.com/labs/peppermint/peppermint-config-info.php) contains a list of all the configuration directives that Pepperminty Wiki (and all the modules included in the repository) understand. It is generated automatically from `peppermint.guiconfig.json` in the repository.
14 |
15 | - [Configuration Reference](https://starbeamrainbowlabs.com/labs/peppermint/peppermint-config-info.php)
16 | - [`peppermint.guiconfig.json`](https://github.com/sbrl/Pepperminty-Wiki/blob/master/peppermint.guiconfig.json)
17 |
18 | ## User Accounts
19 | User account details are currently stored as an object in `peppermint.json`, under the `users` special setting. Each user has their own object, in which lies their user data.
20 |
21 | While users can change their own passwords and email addresses, you'll inevitably want to add your own users. You can do this through the brand-new user management page if you're logged in as a moderator or better. Click on the `Edit user table` option on the credits page, or navigate to the `user-table` action (example url: `https://example.com/path/to/index.php?action=user-table`).
22 |
23 | If you're having trouble with the user table, you can also add users manually. Here's how to do it that:
24 |
25 | 1. Open `peppermint.json` in your favourite text editor.
26 | 2. Create a new property on the `users` object, whose value is an object and key is the new user's username. Use the existing users for reference.
27 | 3. Hash the new user's password. This can be done in the terminal or with the `hash` action - but make sure you don't leave any traces of your passwords lying around for others to find!
28 | a. To use the `hash` action, navigate to `https://example.com/path/to/index.php?action=hash&string=my_temporary_password`. Don't forget to change your password afterwards, or clear both your browser history & server logs! You could even use [the demo instance](https://starbeamrainbowlabs.com/labs/peppermint/build/?action=hash&string=password) I have running on my server, but I don't have a filter on my server logs :-)
29 | b. To do it through the terminal, the following one-liner should do the trick: `echo -n "some_password" | php -r 'echo(password_hash(base64_encode(hash("sha384", trim(fgets(STDIN)))), PASSWORD_DEFAULT) . "\n");'`
30 | 4. Save `peppermint.json` back to disk.
31 |
32 |
33 | ### Default Credentials
34 | The default user account details are as follows:
35 |
36 | - `admin` with password `password`
37 | - `user` with password `cheese`
38 |
39 | **Please remember to change your account password! Only you are responsible for the security of your account.**
40 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | _docpress/
2 | build/*
3 | !build/index.php
4 |
5 | # Include the README
6 | !README.md
7 | # ...but ignore READMEs in the build folder
8 | build/README.md
9 |
10 | # ...and the backup peppermint.json files created when using the settings GUI
11 | peppermint.json.bak
12 | # But keep the useful markdown files
13 | !Module_API_Docs.md
14 | !Changelog.md
15 | !Development.md
16 |
17 | # Ignore the php documentor cache folder
18 | docs/ModuleApiCache
19 |
20 | # Ignore the various indexes created by pepperminty wiki
21 | pageindex.json
22 | idindex.json
23 | invindex.json
24 | recent-changes.json
25 | build/statsindex.json
26 | peppermint.json
27 | # The comments files
28 | build/*.comments.json
29 |
30 | # The automatically downloaded parsedown files
31 | Parsedown.php
32 | ParsedownExtra.php
33 |
34 | # All uploaded files
35 | build/Files/*
36 | # All user-specific files
37 | build/Users/*
38 | # Don't forget about diff.min.js
39 | build/diff.min.js
40 |
41 | # The testing zone for the $paths
42 | data_test
43 |
44 | # phpdoc - Can't believe I committed this by accident :P
45 | phpdoc
46 |
47 | # Created by https://www.gitignore.io/api/git
48 |
49 | ### Git ###
50 | *.orig
51 |
52 | # End of https://www.gitignore.io/api/git
53 |
54 | # Created by https://www.gitignore.io/api/composer
55 |
56 | ### Composer ###
57 | composer.phar
58 | /vendor/
59 |
60 | # Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
61 | # You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
62 | # composer.lock
63 |
64 |
65 | # End of https://www.gitignore.io/api/composer
66 |
67 | # Created by https://www.gitignore.io/api/node
68 | # Edit at https://www.gitignore.io/?templates=node
69 |
70 | ### Node ###
71 | # Logs
72 | logs
73 | *.log
74 | npm-debug.log*
75 | yarn-debug.log*
76 | yarn-error.log*
77 |
78 | # Runtime data
79 | pids
80 | *.pid
81 | *.seed
82 | *.pid.lock
83 |
84 | # Directory for instrumented libs generated by jscoverage/JSCover
85 | lib-cov
86 |
87 | # Coverage directory used by tools like istanbul
88 | coverage
89 |
90 | # nyc test coverage
91 | .nyc_output
92 |
93 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
94 | .grunt
95 |
96 | # Bower dependency directory (https://bower.io/)
97 | bower_components
98 |
99 | # node-waf configuration
100 | .lock-wscript
101 |
102 | # Compiled binary addons (https://nodejs.org/api/addons.html)
103 | build/Release
104 |
105 | # Dependency directories
106 | node_modules/
107 | jspm_packages/
108 |
109 | # TypeScript v1 declaration files
110 | typings/
111 |
112 | # Optional npm cache directory
113 | .npm
114 |
115 | # Optional eslint cache
116 | .eslintcache
117 |
118 | # Optional REPL history
119 | .node_repl_history
120 |
121 | # Output of 'npm pack'
122 | *.tgz
123 |
124 | # Yarn Integrity file
125 | .yarn-integrity
126 |
127 | # dotenv environment variables file
128 | .env
129 |
130 | # parcel-bundler cache (https://parceljs.org/)
131 | .cache
132 |
133 | # next.js build output
134 | .next
135 |
136 | # nuxt.js build output
137 | .nuxt
138 |
139 | # vuepress build output
140 | .vuepress/dist
141 |
142 | # Serverless directories
143 | .serverless/
144 |
145 | # FuseBox cache
146 | .fusebox/
147 |
148 | #DynamoDB Local files
149 | .dynamodb/
150 |
151 | # End of https://www.gitignore.io/api/node
152 |
--------------------------------------------------------------------------------
/docs/ModuleApi/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------