First version
This commit is contained in:
parent
5be20a66b1
commit
d3af975d76
|
@ -0,0 +1 @@
|
||||||
|
emoji-data
|
|
@ -0,0 +1,10 @@
|
||||||
|
<IfModule mod_rewrite.c>
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteCond %{HTTPS} !=on
|
||||||
|
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule ^(.*)$ /index.php?doc=$1 [NC,L,QSA,R]
|
||||||
|
</IfModule>
|
||||||
|
# Prevent file browsing
|
||||||
|
Options -Indexes
|
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,8 @@
|
||||||
|
/*!
|
||||||
|
* Bootstrap Reboot v4.5.3 (https://getbootstrap.com/)
|
||||||
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
||||||
|
*/*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([class]){color:inherit;text-decoration:none}a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit;text-align:-webkit-match-parent}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}
|
||||||
|
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,46 @@
|
||||||
|
span.emoji {
|
||||||
|
display: -moz-inline-box;
|
||||||
|
-moz-box-orient: vertical;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: baseline;
|
||||||
|
*vertical-align: auto;
|
||||||
|
*zoom: 1;
|
||||||
|
*display: inline;
|
||||||
|
width: 1em;
|
||||||
|
height: 1em;
|
||||||
|
background-size: 1em;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
text-indent: -9999px;
|
||||||
|
background-position: 50%, 50%;
|
||||||
|
background-size: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.emoji-sizer {
|
||||||
|
line-height: 0.81em;
|
||||||
|
font-size: 1em;
|
||||||
|
margin: -2px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.emoji-outer {
|
||||||
|
display: -moz-inline-box;
|
||||||
|
display: inline-block;
|
||||||
|
*display: inline;
|
||||||
|
height: 1em;
|
||||||
|
width: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.emoji-inner {
|
||||||
|
display: -moz-inline-box;
|
||||||
|
display: inline-block;
|
||||||
|
text-indent: -9999px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
vertical-align: baseline;
|
||||||
|
*vertical-align: auto;
|
||||||
|
*zoom: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
img.emoji {
|
||||||
|
width: 1em;
|
||||||
|
height: 1em;
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,816 @@
|
||||||
|
/* PrismJS 1.22.0
|
||||||
|
https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+asm6502+bash+basic+batch+c+cpp+css-extras+diff+docker+git+go+graphql+http+hpkp+hsts+ignore+java+json+json5+jsonp+makefile+markdown+markup-templating+mongodb+nasm+nginx+objectivec+opencl+pascal+perl+php+plsql+python+jsx+tsx+regex+solidity+sql+twig+typescript+vim+yaml&plugins=line-highlight+line-numbers+autolinker+file-highlight+show-language+highlight-keywords+inline-color+previewers+autoloader+keep-markup+command-line+toolbar+copy-to-clipboard+download-button+diff-highlight+treeview */
|
||||||
|
/**
|
||||||
|
* prism.js default theme for JavaScript, CSS and HTML
|
||||||
|
* Based on dabblet (http://dabblet.com)
|
||||||
|
* @author Lea Verou
|
||||||
|
*/
|
||||||
|
|
||||||
|
code[class*="language-"],
|
||||||
|
pre[class*="language-"] {
|
||||||
|
color: black;
|
||||||
|
background: none;
|
||||||
|
text-shadow: 0 1px white;
|
||||||
|
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
||||||
|
font-size: 1em;
|
||||||
|
text-align: left;
|
||||||
|
white-space: pre;
|
||||||
|
word-spacing: normal;
|
||||||
|
word-break: normal;
|
||||||
|
word-wrap: normal;
|
||||||
|
line-height: 1.5;
|
||||||
|
|
||||||
|
-moz-tab-size: 4;
|
||||||
|
-o-tab-size: 4;
|
||||||
|
tab-size: 4;
|
||||||
|
|
||||||
|
-webkit-hyphens: none;
|
||||||
|
-moz-hyphens: none;
|
||||||
|
-ms-hyphens: none;
|
||||||
|
hyphens: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
|
||||||
|
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
|
||||||
|
text-shadow: none;
|
||||||
|
background: #b3d4fc;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
|
||||||
|
code[class*="language-"]::selection, code[class*="language-"] ::selection {
|
||||||
|
text-shadow: none;
|
||||||
|
background: #b3d4fc;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
code[class*="language-"],
|
||||||
|
pre[class*="language-"] {
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Code blocks */
|
||||||
|
pre[class*="language-"] {
|
||||||
|
padding: 1em;
|
||||||
|
margin: .5em 0;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
:not(pre) > code[class*="language-"],
|
||||||
|
pre[class*="language-"] {
|
||||||
|
background: #f5f2f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Inline code */
|
||||||
|
:not(pre) > code[class*="language-"] {
|
||||||
|
padding: .1em;
|
||||||
|
border-radius: .3em;
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.comment,
|
||||||
|
.token.prolog,
|
||||||
|
.token.doctype,
|
||||||
|
.token.cdata {
|
||||||
|
color: slategray;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.punctuation {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.namespace {
|
||||||
|
opacity: .7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.property,
|
||||||
|
.token.tag,
|
||||||
|
.token.boolean,
|
||||||
|
.token.number,
|
||||||
|
.token.constant,
|
||||||
|
.token.symbol,
|
||||||
|
.token.deleted {
|
||||||
|
color: #905;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.selector,
|
||||||
|
.token.attr-name,
|
||||||
|
.token.string,
|
||||||
|
.token.char,
|
||||||
|
.token.builtin,
|
||||||
|
.token.inserted {
|
||||||
|
color: #690;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.operator,
|
||||||
|
.token.entity,
|
||||||
|
.token.url,
|
||||||
|
.language-css .token.string,
|
||||||
|
.style .token.string {
|
||||||
|
color: #9a6e3a;
|
||||||
|
/* This background color was intended by the author of this theme. */
|
||||||
|
background: hsla(0, 0%, 100%, .5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.atrule,
|
||||||
|
.token.attr-value,
|
||||||
|
.token.keyword {
|
||||||
|
color: #07a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.function,
|
||||||
|
.token.class-name {
|
||||||
|
color: #DD4A68;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.regex,
|
||||||
|
.token.important,
|
||||||
|
.token.variable {
|
||||||
|
color: #e90;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.important,
|
||||||
|
.token.bold {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.token.italic {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.entity {
|
||||||
|
cursor: help;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre[data-line] {
|
||||||
|
position: relative;
|
||||||
|
padding: 1em 0 1em 3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-highlight {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
padding: inherit 0;
|
||||||
|
margin-top: 1em; /* Same as .prism’s padding-top */
|
||||||
|
|
||||||
|
background: hsla(24, 20%, 50%,.08);
|
||||||
|
background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
|
||||||
|
|
||||||
|
pointer-events: none;
|
||||||
|
|
||||||
|
line-height: inherit;
|
||||||
|
white-space: pre;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
.line-highlight {
|
||||||
|
/*
|
||||||
|
* This will prevent browsers from replacing the background color with white.
|
||||||
|
* It's necessary because the element is layered on top of the displayed code.
|
||||||
|
*/
|
||||||
|
-webkit-print-color-adjust: exact;
|
||||||
|
color-adjust: exact;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-highlight:before,
|
||||||
|
.line-highlight[data-end]:after {
|
||||||
|
content: attr(data-start);
|
||||||
|
position: absolute;
|
||||||
|
top: .4em;
|
||||||
|
left: .6em;
|
||||||
|
min-width: 1em;
|
||||||
|
padding: 0 .5em;
|
||||||
|
background-color: hsla(24, 20%, 50%,.4);
|
||||||
|
color: hsl(24, 20%, 95%);
|
||||||
|
font: bold 65%/1.5 sans-serif;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: .3em;
|
||||||
|
border-radius: 999px;
|
||||||
|
text-shadow: none;
|
||||||
|
box-shadow: 0 1px white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-highlight[data-end]:after {
|
||||||
|
content: attr(data-end);
|
||||||
|
top: auto;
|
||||||
|
bottom: .4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-numbers .line-highlight:before,
|
||||||
|
.line-numbers .line-highlight:after {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre[id].linkable-line-numbers span.line-numbers-rows {
|
||||||
|
pointer-events: all;
|
||||||
|
}
|
||||||
|
pre[id].linkable-line-numbers span.line-numbers-rows > span:before {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
pre[id].linkable-line-numbers span.line-numbers-rows > span:hover:before {
|
||||||
|
background-color: rgba(128, 128, 128, .2);
|
||||||
|
}
|
||||||
|
|
||||||
|
pre[class*="language-"].line-numbers {
|
||||||
|
position: relative;
|
||||||
|
padding-left: 3.8em;
|
||||||
|
counter-reset: linenumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre[class*="language-"].line-numbers > code {
|
||||||
|
position: relative;
|
||||||
|
white-space: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-numbers .line-numbers-rows {
|
||||||
|
position: absolute;
|
||||||
|
pointer-events: none;
|
||||||
|
top: 0;
|
||||||
|
font-size: 100%;
|
||||||
|
left: -3.8em;
|
||||||
|
width: 3em; /* works for line-numbers below 1000 lines */
|
||||||
|
letter-spacing: -1px;
|
||||||
|
border-right: 1px solid #999;
|
||||||
|
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-numbers-rows > span {
|
||||||
|
display: block;
|
||||||
|
counter-increment: linenumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-numbers-rows > span:before {
|
||||||
|
content: counter(linenumber);
|
||||||
|
color: #999;
|
||||||
|
display: block;
|
||||||
|
padding-right: 0.8em;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token a {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
div.code-toolbar {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.code-toolbar > .toolbar {
|
||||||
|
position: absolute;
|
||||||
|
top: .3em;
|
||||||
|
right: .2em;
|
||||||
|
transition: opacity 0.3s ease-in-out;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.code-toolbar:hover > .toolbar {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Separate line b/c rules are thrown out if selector is invalid.
|
||||||
|
IE11 and old Edge versions don't support :focus-within. */
|
||||||
|
div.code-toolbar:focus-within > .toolbar {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.code-toolbar > .toolbar .toolbar-item {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.code-toolbar > .toolbar a {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.code-toolbar > .toolbar button {
|
||||||
|
background: none;
|
||||||
|
border: 0;
|
||||||
|
color: inherit;
|
||||||
|
font: inherit;
|
||||||
|
line-height: normal;
|
||||||
|
overflow: visible;
|
||||||
|
padding: 0;
|
||||||
|
-webkit-user-select: none; /* for button */
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.code-toolbar > .toolbar a,
|
||||||
|
div.code-toolbar > .toolbar button,
|
||||||
|
div.code-toolbar > .toolbar span {
|
||||||
|
color: #bbb;
|
||||||
|
font-size: .8em;
|
||||||
|
padding: 0 .5em;
|
||||||
|
background: #f5f2f0;
|
||||||
|
background: rgba(224, 224, 224, 0.2);
|
||||||
|
box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);
|
||||||
|
border-radius: .5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.code-toolbar > .toolbar a:hover,
|
||||||
|
div.code-toolbar > .toolbar a:focus,
|
||||||
|
div.code-toolbar > .toolbar button:hover,
|
||||||
|
div.code-toolbar > .toolbar button:focus,
|
||||||
|
div.code-toolbar > .toolbar span:hover,
|
||||||
|
div.code-toolbar > .toolbar span:focus {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.inline-color-wrapper {
|
||||||
|
/*
|
||||||
|
* The background image is the following SVG inline in base 64:
|
||||||
|
*
|
||||||
|
* <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2">
|
||||||
|
* <path fill="gray" d="M0 0h2v2H0z"/>
|
||||||
|
* <path fill="white" d="M0 0h1v1H0zM1 1h1v1H1z"/>
|
||||||
|
* </svg>
|
||||||
|
*
|
||||||
|
* SVG-inlining explained:
|
||||||
|
* https://stackoverflow.com/a/21626701/7595472
|
||||||
|
*/
|
||||||
|
background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyIDIiPjxwYXRoIGZpbGw9ImdyYXkiIGQ9Ik0wIDBoMnYySDB6Ii8+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0wIDBoMXYxSDB6TTEgMWgxdjFIMXoiLz48L3N2Zz4=");
|
||||||
|
/* This is to prevent visual glitches where one pixel from the repeating pattern could be seen. */
|
||||||
|
background-position: center;
|
||||||
|
background-size: 110%;
|
||||||
|
|
||||||
|
display: inline-block;
|
||||||
|
height: 1.333ch;
|
||||||
|
width: 1.333ch;
|
||||||
|
margin: 0 .333ch;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border: 1px solid white;
|
||||||
|
outline: 1px solid rgba(0,0,0,.5);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.inline-color {
|
||||||
|
display: block;
|
||||||
|
/* To prevent visual glitches again */
|
||||||
|
height: 120%;
|
||||||
|
width: 120%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prism-previewer,
|
||||||
|
.prism-previewer:before,
|
||||||
|
.prism-previewer:after {
|
||||||
|
position: absolute;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.prism-previewer,
|
||||||
|
.prism-previewer:after {
|
||||||
|
left: 50%;
|
||||||
|
}
|
||||||
|
.prism-previewer {
|
||||||
|
margin-top: -48px;
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
margin-left: -16px;
|
||||||
|
|
||||||
|
opacity: 0;
|
||||||
|
-webkit-transition: opacity .25s;
|
||||||
|
-o-transition: opacity .25s;
|
||||||
|
transition: opacity .25s;
|
||||||
|
}
|
||||||
|
.prism-previewer.flipped {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: -48px;
|
||||||
|
}
|
||||||
|
.prism-previewer:before,
|
||||||
|
.prism-previewer:after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.prism-previewer:before {
|
||||||
|
top: -5px;
|
||||||
|
right: -5px;
|
||||||
|
left: -5px;
|
||||||
|
bottom: -5px;
|
||||||
|
border-radius: 10px;
|
||||||
|
border: 5px solid #fff;
|
||||||
|
box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) inset, 0 0 10px rgba(0, 0, 0, 0.75);
|
||||||
|
}
|
||||||
|
.prism-previewer:after {
|
||||||
|
top: 100%;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
margin: 5px 0 0 -7px;
|
||||||
|
border: 7px solid transparent;
|
||||||
|
border-color: rgba(255, 0, 0, 0);
|
||||||
|
border-top-color: #fff;
|
||||||
|
}
|
||||||
|
.prism-previewer.flipped:after {
|
||||||
|
top: auto;
|
||||||
|
bottom: 100%;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
border-top-color: rgba(255, 0, 0, 0);
|
||||||
|
border-bottom-color: #fff;
|
||||||
|
}
|
||||||
|
.prism-previewer.active {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prism-previewer-angle:before {
|
||||||
|
border-radius: 50%;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
.prism-previewer-angle:after {
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
.prism-previewer-angle svg {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
-webkit-transform: rotate(-90deg);
|
||||||
|
-moz-transform: rotate(-90deg);
|
||||||
|
-ms-transform: rotate(-90deg);
|
||||||
|
-o-transform: rotate(-90deg);
|
||||||
|
transform: rotate(-90deg);
|
||||||
|
}
|
||||||
|
.prism-previewer-angle[data-negative] svg {
|
||||||
|
-webkit-transform: scaleX(-1) rotate(-90deg);
|
||||||
|
-moz-transform: scaleX(-1) rotate(-90deg);
|
||||||
|
-ms-transform: scaleX(-1) rotate(-90deg);
|
||||||
|
-o-transform: scaleX(-1) rotate(-90deg);
|
||||||
|
transform: scaleX(-1) rotate(-90deg);
|
||||||
|
}
|
||||||
|
.prism-previewer-angle circle {
|
||||||
|
fill: transparent;
|
||||||
|
stroke: hsl(200, 10%, 20%);
|
||||||
|
stroke-opacity: 0.9;
|
||||||
|
stroke-width: 32;
|
||||||
|
stroke-dasharray: 0, 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prism-previewer-gradient {
|
||||||
|
background-image: linear-gradient(45deg, #bbb 25%, transparent 25%, transparent 75%, #bbb 75%, #bbb), linear-gradient(45deg, #bbb 25%, #eee 25%, #eee 75%, #bbb 75%, #bbb);
|
||||||
|
background-size: 10px 10px;
|
||||||
|
background-position: 0 0, 5px 5px;
|
||||||
|
|
||||||
|
width: 64px;
|
||||||
|
margin-left: -32px;
|
||||||
|
}
|
||||||
|
.prism-previewer-gradient:before {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
.prism-previewer-gradient div {
|
||||||
|
position: absolute;
|
||||||
|
top: -5px;
|
||||||
|
left: -5px;
|
||||||
|
right: -5px;
|
||||||
|
bottom: -5px;
|
||||||
|
border-radius: 10px;
|
||||||
|
border: 5px solid #fff;
|
||||||
|
box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) inset, 0 0 10px rgba(0, 0, 0, 0.75);
|
||||||
|
}
|
||||||
|
|
||||||
|
.prism-previewer-color {
|
||||||
|
background-image: linear-gradient(45deg, #bbb 25%, transparent 25%, transparent 75%, #bbb 75%, #bbb), linear-gradient(45deg, #bbb 25%, #eee 25%, #eee 75%, #bbb 75%, #bbb);
|
||||||
|
background-size: 10px 10px;
|
||||||
|
background-position: 0 0, 5px 5px;
|
||||||
|
}
|
||||||
|
.prism-previewer-color:before {
|
||||||
|
background-color: inherit;
|
||||||
|
background-clip: padding-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prism-previewer-easing {
|
||||||
|
margin-top: -76px;
|
||||||
|
margin-left: -30px;
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
background: #333;
|
||||||
|
}
|
||||||
|
.prism-previewer-easing.flipped {
|
||||||
|
margin-bottom: -116px;
|
||||||
|
}
|
||||||
|
.prism-previewer-easing svg {
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
}
|
||||||
|
.prism-previewer-easing circle {
|
||||||
|
fill: hsl(200, 10%, 20%);
|
||||||
|
stroke: white;
|
||||||
|
}
|
||||||
|
.prism-previewer-easing path {
|
||||||
|
fill: none;
|
||||||
|
stroke: white;
|
||||||
|
stroke-linecap: round;
|
||||||
|
stroke-width: 4;
|
||||||
|
}
|
||||||
|
.prism-previewer-easing line {
|
||||||
|
stroke: white;
|
||||||
|
stroke-opacity: 0.5;
|
||||||
|
stroke-width: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
@-webkit-keyframes prism-previewer-time {
|
||||||
|
0% {
|
||||||
|
stroke-dasharray: 0, 500;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
stroke-dasharray: 100, 500;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
stroke-dasharray: 0, 500;
|
||||||
|
stroke-dashoffset: -100;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@-o-keyframes prism-previewer-time {
|
||||||
|
0% {
|
||||||
|
stroke-dasharray: 0, 500;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
stroke-dasharray: 100, 500;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
stroke-dasharray: 0, 500;
|
||||||
|
stroke-dashoffset: -100;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@-moz-keyframes prism-previewer-time {
|
||||||
|
0% {
|
||||||
|
stroke-dasharray: 0, 500;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
stroke-dasharray: 100, 500;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
stroke-dasharray: 0, 500;
|
||||||
|
stroke-dashoffset: -100;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes prism-previewer-time {
|
||||||
|
0% {
|
||||||
|
stroke-dasharray: 0, 500;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
stroke-dasharray: 100, 500;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
stroke-dasharray: 0, 500;
|
||||||
|
stroke-dashoffset: -100;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.prism-previewer-time:before {
|
||||||
|
border-radius: 50%;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
.prism-previewer-time:after {
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
.prism-previewer-time svg {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
-webkit-transform: rotate(-90deg);
|
||||||
|
-moz-transform: rotate(-90deg);
|
||||||
|
-ms-transform: rotate(-90deg);
|
||||||
|
-o-transform: rotate(-90deg);
|
||||||
|
transform: rotate(-90deg);
|
||||||
|
}
|
||||||
|
.prism-previewer-time circle {
|
||||||
|
fill: transparent;
|
||||||
|
stroke: hsl(200, 10%, 20%);
|
||||||
|
stroke-opacity: 0.9;
|
||||||
|
stroke-width: 32;
|
||||||
|
stroke-dasharray: 0, 500;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
-webkit-animation: prism-previewer-time linear infinite 3s;
|
||||||
|
-moz-animation: prism-previewer-time linear infinite 3s;
|
||||||
|
-o-animation: prism-previewer-time linear infinite 3s;
|
||||||
|
animation: prism-previewer-time linear infinite 3s;
|
||||||
|
}
|
||||||
|
.command-line-prompt {
|
||||||
|
border-right: 1px solid #999;
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
font-size: 100%;
|
||||||
|
letter-spacing: -1px;
|
||||||
|
margin-right: 1em;
|
||||||
|
pointer-events: none;
|
||||||
|
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.command-line-prompt > span:before {
|
||||||
|
color: #999;
|
||||||
|
content: ' ';
|
||||||
|
display: block;
|
||||||
|
padding-right: 0.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.command-line-prompt > span[data-user]:before {
|
||||||
|
content: "[" attr(data-user) "@" attr(data-host) "] $";
|
||||||
|
}
|
||||||
|
|
||||||
|
.command-line-prompt > span[data-user="root"]:before {
|
||||||
|
content: "[" attr(data-user) "@" attr(data-host) "] #";
|
||||||
|
}
|
||||||
|
|
||||||
|
.command-line-prompt > span[data-prompt]:before {
|
||||||
|
content: attr(data-prompt);
|
||||||
|
}
|
||||||
|
|
||||||
|
pre.diff-highlight > code .token.deleted:not(.prefix),
|
||||||
|
pre > code.diff-highlight .token.deleted:not(.prefix) {
|
||||||
|
background-color: rgba(255, 0, 0, .1);
|
||||||
|
color: inherit;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre.diff-highlight > code .token.inserted:not(.prefix),
|
||||||
|
pre > code.diff-highlight .token.inserted:not(.prefix) {
|
||||||
|
background-color: rgba(0, 255, 128, .1);
|
||||||
|
color: inherit;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.treeview-part .entry-line {
|
||||||
|
position: relative;
|
||||||
|
text-indent: -99em;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: top;
|
||||||
|
width: 1.2em;
|
||||||
|
}
|
||||||
|
.token.treeview-part .entry-line:before,
|
||||||
|
.token.treeview-part .line-h:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 50%;
|
||||||
|
width: 50%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.token.treeview-part .line-h:before,
|
||||||
|
.token.treeview-part .line-v:before {
|
||||||
|
border-left: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
.token.treeview-part .line-v-last:before {
|
||||||
|
height: 50%;
|
||||||
|
border-left: 1px solid #ccc;
|
||||||
|
border-bottom: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
.token.treeview-part .line-h:after {
|
||||||
|
height: 50%;
|
||||||
|
border-bottom: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
.token.treeview-part .entry-name {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
.token.treeview-part .entry-name.dotfile {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* @GENERATED-FONT */
|
||||||
|
@font-face {
|
||||||
|
font-family: "PrismTreeview";
|
||||||
|
/**
|
||||||
|
* This font is generated from the .svg files in the `icons` folder. See the `treeviewIconFont` function in
|
||||||
|
* `gulpfile.js/index.js` for more information.
|
||||||
|
*
|
||||||
|
* Use the following escape sequences to refer to a specific icon:
|
||||||
|
*
|
||||||
|
* - \ea01 file
|
||||||
|
* - \ea02 folder
|
||||||
|
* - \ea03 image
|
||||||
|
* - \ea04 audio
|
||||||
|
* - \ea05 video
|
||||||
|
* - \ea06 text
|
||||||
|
* - \ea07 code
|
||||||
|
* - \ea08 archive
|
||||||
|
* - \ea09 pdf
|
||||||
|
* - \ea0a excel
|
||||||
|
* - \ea0b powerpoint
|
||||||
|
* - \ea0c word
|
||||||
|
*/
|
||||||
|
src: url("data:application/font-woff;base64,d09GRgABAAAAAAgYAAsAAAAAEGAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPwAAAFY1UkH9Y21hcAAAAYQAAAB/AAACCtvO7yxnbHlmAAACBAAAA+MAAAlACm1VqmhlYWQAAAXoAAAAKgAAADZfxj5jaGhlYQAABhQAAAAYAAAAJAFbAMFobXR4AAAGLAAAAA4AAAA0CGQAAGxvY2EAAAY8AAAAHAAAABwM9A9CbWF4cAAABlgAAAAfAAAAIAEgAHZuYW1lAAAGeAAAATcAAAJSfUrk+HBvc3QAAAewAAAAZgAAAIka0DSfeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGRYyjiBgZWBgaGQoRZISkLpUAYOBj0GBiYGVmYGrCAgzTWFweEV4ysehs1ArgDDFgZGIA3CDAB2tQjAAHic7ZHLEcMwCESfLCz/VEoKSEE5parURxMOC4c0Ec283WGFdABgBXrwCAzam4bOK9KWeefM3Hhmjyn3ed+hTRq1pS7Ra/HjYGPniHcXMy4G/zNTP7/KW5HTXArkvdBW3ArN19dCG/NRIN8K5HuB/CiQn4U26VeBfBbML9NEH78AeJyVVc1u20YQ3pn905JcSgr/YsuSDTEg3cR1bFEkYyS1HQcQ2jQF2hot6vYSoECKnnPLA/SWUy9NTr31Bfp+6azsNI0SGiolzu7ODnfn+2Z2lnHG3rxhr9nfLGKbLGesncAYYnUHpsVnMG/uwyzNdFIVd6HI6twp8+R3LpT4TSglLoTHwwJgG2/dFvKrl9yI507/p5CCq4LTxB/PlPjkFaMHnWB/0S9je7RTPS+utnGtom1T2q5pk/e3H0M1S18rsXAL7wgpxQuhAmteGGvNjmcfGXuwnFNOPCXxeOGmnjrBLWNyBeNtVq2Hs03yus1aPS3mzSyNVSfu588iW1Q93x/4fjcHn+5EkS2tMxr4xIRa8ese+4L9uKZnxEqs8+ldyN9atU02a5t5uQ8hZGms1QTKpaKYqnipiNNOAIeIADC0JNEOYY+jtSgFoOchiAjRGFACpUTRje8bwIYWGCDEgENY8MEu9bnCYCdAxftoNg0KiSpUtPaHcanYwzXRu6T4r40b5npal3V7UHWCPJW9niyl1vIHgoujEXZjudBkeWkOeMQBRmbEPhKzij1i52t6/TadL+3q7H0U1eq4E8cG4gIIwQLx8VX7ToPXgPrehVc5QXHR7gMSmwjKfaYAP4KvZV+yn9bE18y2IY37LvtyrSg3i7ZK++B603ndlg/gBJpZRsfpBI6hyiaQ6FjlnThz8lAC3LgBIMnXDOAXxBQ4SIgiEhx2AcGCAwAhwjXRpCQms42bwAUt75BvAwgONzdgOfWEwzk4Ylzj4mz+5YEzzXzWX9aNlk7ot65y5QnBHsNlm6zDTu7sspRqG4V+fgJ1lVBZ07Nm7s5nemo3Lf3PO7iwtnroQ5/YDGwPRUip6fV6L+27p+wCHwSvPs85UnHqId8NAn5IBsKdv95KrL9m31Gsf2a/rluDslk1y1J9GE+LUmmVT/OyOHaFKGnapt2H5XeJTmKd6qYNoVVZOy+pWzr7rMip3ndG/4mQSoUcMbAqG/YNIAdXhkAqTVruXhocSKN0iS4Rwj7vSS4fcF/La07BfeQSuRAcFeW+9igjwPhhYPpGCBCBHhxiKMyFMFT7ziRH7RtfIWdiha+TdW+Rqs7bLHdN2ZJIKl0um0x3op9saYr0REeRdj09pl43pMzz4tjztrY8L4o8bzT+oLY27PR/eFtXs/YY5vtwB5Iqad14eYN0ujveMaGWqkdU3TKbQSC5Uvxaf4fA7SAQ3r2tEfIhd4duld91bwMisjqBw22orthNcroXl7KqO1329HBgAexgoCfGAwiDPoBnriki3lmNojrzvD0tjo6E3vPYP6E2BMIAeJxjYGRgYADiY8t3FsTz23xl4GbYzIAB/v9nWM6wBcjgYGAC8QH+QQhZAAB4nGNgZGBg2MzAACeXMzAyoAJeADPyAh14nGNgAILNpGEA0fgIZQAAAAAAAAA2AHIAvgE+AZgCCAKMAv4DlgPsBEYEoHicY2BkYGDgZchi4GQAASYg5gJCBob/YD4DABTSAZcAeJx9kU1uwjAQhV/4qwpqhdSqi67cTTeVEmBXDgBbhBD7AHYISuLUMSD2PUdP0HNwjp6i676k3qQS9Ujjb968mYUNoI8zPJTHw02Vy9PAFatfbpLuHbfIT47b6MF33KH+6riLF0wc93CHN27wWtdUHvHuuIFbfDhuUv903CKfHbfxgC/HHerfjrtYen3HPTx7ambiIl0YKQ+xPM5ltE9CU9NqxVKaItaZGPqDmj6VmTShlRuxOoniEI2sVUIZnYqJzqxMEi1yo3dybf2ttfk4CJTT/bVOMYNBjAIpFiTJOLCWOGLOHGGPBCE7l32XO0tmw04MjQwCQ7774B//lDmrZkJY3hvOrHBiLuiJMKJqoVgrejQ3CP5Yubt0JwxNJa96Oypr6j621VSOMQKG+uP36eKmHylcb0MAeJxtwdEOgjAMBdBeWEFR/Mdl7bTJtMsygc/nwVfPoYF+QP+tGDAigDFhxgVXLLjhjhUPCtmKTtmLaGN7x6dy/Io5bybqoevRQ3LRObb0sk3HKpn1SFqW6ru26vbpYfcmRCccJhqsAAA=")
|
||||||
|
format("woff");
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.treeview-part .entry-name:before {
|
||||||
|
content: "\ea01";
|
||||||
|
font-family: "PrismTreeview";
|
||||||
|
font-size: inherit;
|
||||||
|
font-style: normal;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
width: 2.5ex;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.treeview-part .entry-name.dir:before {
|
||||||
|
content: "\ea02";
|
||||||
|
}
|
||||||
|
.token.treeview-part .entry-name.ext-bmp:before,
|
||||||
|
.token.treeview-part .entry-name.ext-eps:before,
|
||||||
|
.token.treeview-part .entry-name.ext-gif:before,
|
||||||
|
.token.treeview-part .entry-name.ext-jpe:before,
|
||||||
|
.token.treeview-part .entry-name.ext-jpg:before,
|
||||||
|
.token.treeview-part .entry-name.ext-jpeg:before,
|
||||||
|
.token.treeview-part .entry-name.ext-png:before,
|
||||||
|
.token.treeview-part .entry-name.ext-svg:before,
|
||||||
|
.token.treeview-part .entry-name.ext-tiff:before {
|
||||||
|
content: "\ea03";
|
||||||
|
}
|
||||||
|
.token.treeview-part .entry-name.ext-cfg:before,
|
||||||
|
.token.treeview-part .entry-name.ext-conf:before,
|
||||||
|
.token.treeview-part .entry-name.ext-config:before,
|
||||||
|
.token.treeview-part .entry-name.ext-csv:before,
|
||||||
|
.token.treeview-part .entry-name.ext-ini:before,
|
||||||
|
.token.treeview-part .entry-name.ext-log:before,
|
||||||
|
.token.treeview-part .entry-name.ext-md:before,
|
||||||
|
.token.treeview-part .entry-name.ext-nfo:before,
|
||||||
|
.token.treeview-part .entry-name.ext-txt:before {
|
||||||
|
content: "\ea06";
|
||||||
|
}
|
||||||
|
.token.treeview-part .entry-name.ext-asp:before,
|
||||||
|
.token.treeview-part .entry-name.ext-aspx:before,
|
||||||
|
.token.treeview-part .entry-name.ext-c:before,
|
||||||
|
.token.treeview-part .entry-name.ext-cc:before,
|
||||||
|
.token.treeview-part .entry-name.ext-cpp:before,
|
||||||
|
.token.treeview-part .entry-name.ext-cs:before,
|
||||||
|
.token.treeview-part .entry-name.ext-css:before,
|
||||||
|
.token.treeview-part .entry-name.ext-h:before,
|
||||||
|
.token.treeview-part .entry-name.ext-hh:before,
|
||||||
|
.token.treeview-part .entry-name.ext-htm:before,
|
||||||
|
.token.treeview-part .entry-name.ext-html:before,
|
||||||
|
.token.treeview-part .entry-name.ext-jav:before,
|
||||||
|
.token.treeview-part .entry-name.ext-java:before,
|
||||||
|
.token.treeview-part .entry-name.ext-js:before,
|
||||||
|
.token.treeview-part .entry-name.ext-php:before,
|
||||||
|
.token.treeview-part .entry-name.ext-rb:before,
|
||||||
|
.token.treeview-part .entry-name.ext-xml:before {
|
||||||
|
content: "\ea07";
|
||||||
|
}
|
||||||
|
.token.treeview-part .entry-name.ext-7z:before,
|
||||||
|
.token.treeview-part .entry-name.ext-bz:before,
|
||||||
|
.token.treeview-part .entry-name.ext-bz2:before,
|
||||||
|
.token.treeview-part .entry-name.ext-gz:before,
|
||||||
|
.token.treeview-part .entry-name.ext-rar:before,
|
||||||
|
.token.treeview-part .entry-name.ext-tar:before,
|
||||||
|
.token.treeview-part .entry-name.ext-tgz:before,
|
||||||
|
.token.treeview-part .entry-name.ext-zip:before {
|
||||||
|
content: "\ea08";
|
||||||
|
}
|
||||||
|
.token.treeview-part .entry-name.ext-aac:before,
|
||||||
|
.token.treeview-part .entry-name.ext-au:before,
|
||||||
|
.token.treeview-part .entry-name.ext-cda:before,
|
||||||
|
.token.treeview-part .entry-name.ext-flac:before,
|
||||||
|
.token.treeview-part .entry-name.ext-mp3:before,
|
||||||
|
.token.treeview-part .entry-name.ext-oga:before,
|
||||||
|
.token.treeview-part .entry-name.ext-ogg:before,
|
||||||
|
.token.treeview-part .entry-name.ext-wav:before,
|
||||||
|
.token.treeview-part .entry-name.ext-wma:before {
|
||||||
|
content: "\ea04";
|
||||||
|
}
|
||||||
|
.token.treeview-part .entry-name.ext-avi:before,
|
||||||
|
.token.treeview-part .entry-name.ext-flv:before,
|
||||||
|
.token.treeview-part .entry-name.ext-mkv:before,
|
||||||
|
.token.treeview-part .entry-name.ext-mov:before,
|
||||||
|
.token.treeview-part .entry-name.ext-mp4:before,
|
||||||
|
.token.treeview-part .entry-name.ext-mpeg:before,
|
||||||
|
.token.treeview-part .entry-name.ext-mpg:before,
|
||||||
|
.token.treeview-part .entry-name.ext-ogv:before,
|
||||||
|
.token.treeview-part .entry-name.ext-webm:before {
|
||||||
|
content: "\ea05";
|
||||||
|
}
|
||||||
|
.token.treeview-part .entry-name.ext-pdf:before {
|
||||||
|
content: "\ea09";
|
||||||
|
}
|
||||||
|
.token.treeview-part .entry-name.ext-xls:before,
|
||||||
|
.token.treeview-part .entry-name.ext-xlsx:before {
|
||||||
|
content: "\ea0a";
|
||||||
|
}
|
||||||
|
.token.treeview-part .entry-name.ext-doc:before,
|
||||||
|
.token.treeview-part .entry-name.ext-docm:before,
|
||||||
|
.token.treeview-part .entry-name.ext-docx:before {
|
||||||
|
content: "\ea0c";
|
||||||
|
}
|
||||||
|
.token.treeview-part .entry-name.ext-pps:before,
|
||||||
|
.token.treeview-part .entry-name.ext-ppt:before,
|
||||||
|
.token.treeview-part .entry-name.ext-pptx:before {
|
||||||
|
content: "\ea0b";
|
||||||
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,158 @@
|
||||||
|
.navbar-custom {
|
||||||
|
background-color: #ff5500;
|
||||||
|
}
|
||||||
|
/* change the brand and text color */
|
||||||
|
.navbar-custom .navbar-brand,
|
||||||
|
.navbar-custom .navbar-text {
|
||||||
|
color: rgba(255,255,255,.8);
|
||||||
|
}
|
||||||
|
/* change the link color */
|
||||||
|
.navbar-custom .navbar-nav .nav-link {
|
||||||
|
color: rgba(255,255,255,.5);
|
||||||
|
}
|
||||||
|
/* change the color of active or hovered links */
|
||||||
|
.navbar-custom .nav-item.active .nav-link,
|
||||||
|
.navbar-custom .nav-item:hover .nav-link {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote
|
||||||
|
{
|
||||||
|
font-style: normal;
|
||||||
|
font-size: 16px;
|
||||||
|
margin-left: 32px;
|
||||||
|
font-family: Consolas, "Times New Roman", Verdana;
|
||||||
|
border-left: 4px solid #CCC;
|
||||||
|
padding-left: 8px;
|
||||||
|
background: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.emoji-sizer
|
||||||
|
{
|
||||||
|
line-height: 0.81em;
|
||||||
|
font-size: 2em;
|
||||||
|
margin: -9px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre{
|
||||||
|
background: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1{
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 25px;
|
||||||
|
z-index: 25;
|
||||||
|
}
|
||||||
|
|
||||||
|
.found {
|
||||||
|
font-weight: bold;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filefound {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 19px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.textfound {
|
||||||
|
font-weight: normal;
|
||||||
|
color: grey;
|
||||||
|
font-size: 14px;
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.letter {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.file {
|
||||||
|
font-weight: bold;
|
||||||
|
color: grey;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fileletter {
|
||||||
|
font-weight: bold;
|
||||||
|
color: grey;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.particularite {
|
||||||
|
background-color: #17a2b8;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.particularite>a {
|
||||||
|
color: white;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.particularite>a:hover {
|
||||||
|
color: red;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.2em;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contained {
|
||||||
|
border: solid 1px;
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 5px;
|
||||||
|
margin: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flexalign
|
||||||
|
{
|
||||||
|
display:flex;
|
||||||
|
align-items: left;
|
||||||
|
}
|
||||||
|
.flexwrap
|
||||||
|
{
|
||||||
|
justify-content:left;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.imagepreview
|
||||||
|
{
|
||||||
|
max-width: 100%;
|
||||||
|
border-radius: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: 0.3s;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
text-align: center;
|
||||||
|
padding: 7px;
|
||||||
|
display:block;
|
||||||
|
margin:auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert {
|
||||||
|
display: none;
|
||||||
|
position: fixed;
|
||||||
|
top: 10px;
|
||||||
|
right: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.imagepreview img
|
||||||
|
{
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
min-height: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.imagepreview:hover
|
||||||
|
{
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content > p > img
|
||||||
|
{
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
|
@ -0,0 +1,675 @@
|
||||||
|
### GNU GENERAL PUBLIC LICENSE
|
||||||
|
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc.
|
||||||
|
<https://fsf.org/>
|
||||||
|
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies of this
|
||||||
|
license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
### Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom
|
||||||
|
to share and change all versions of a program--to make sure it remains
|
||||||
|
free software for all its users. We, the Free Software Foundation, use
|
||||||
|
the GNU General Public License for most of our software; it applies
|
||||||
|
also to any other work released this way by its authors. You can apply
|
||||||
|
it to your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you
|
||||||
|
have certain responsibilities if you distribute copies of the
|
||||||
|
software, or if you modify it: responsibilities to respect the freedom
|
||||||
|
of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the
|
||||||
|
manufacturer can do so. This is fundamentally incompatible with the
|
||||||
|
aim of protecting users' freedom to change the software. The
|
||||||
|
systematic pattern of such abuse occurs in the area of products for
|
||||||
|
individuals to use, which is precisely where it is most unacceptable.
|
||||||
|
Therefore, we have designed this version of the GPL to prohibit the
|
||||||
|
practice for those products. If such problems arise substantially in
|
||||||
|
other domains, we stand ready to extend this provision to those
|
||||||
|
domains in future versions of the GPL, as needed to protect the
|
||||||
|
freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish
|
||||||
|
to avoid the special danger that patents applied to a free program
|
||||||
|
could make it effectively proprietary. To prevent this, the GPL
|
||||||
|
assures that patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
### TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
#### 0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds
|
||||||
|
of works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of
|
||||||
|
an exact copy. The resulting work is called a "modified version" of
|
||||||
|
the earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user
|
||||||
|
through a computer network, with no transfer of a copy, is not
|
||||||
|
conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices" to
|
||||||
|
the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
#### 1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work for
|
||||||
|
making modifications to it. "Object code" means any non-source form of
|
||||||
|
a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users can
|
||||||
|
regenerate automatically from other parts of the Corresponding Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that same
|
||||||
|
work.
|
||||||
|
|
||||||
|
#### 2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not convey,
|
||||||
|
without conditions so long as your license otherwise remains in force.
|
||||||
|
You may convey covered works to others for the sole purpose of having
|
||||||
|
them make modifications exclusively for you, or provide you with
|
||||||
|
facilities for running those works, provided that you comply with the
|
||||||
|
terms of this License in conveying all material for which you do not
|
||||||
|
control copyright. Those thus making or running the covered works for
|
||||||
|
you must do so exclusively on your behalf, under your direction and
|
||||||
|
control, on terms that prohibit them from making any copies of your
|
||||||
|
copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under the
|
||||||
|
conditions stated below. Sublicensing is not allowed; section 10 makes
|
||||||
|
it unnecessary.
|
||||||
|
|
||||||
|
#### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such
|
||||||
|
circumvention is effected by exercising rights under this License with
|
||||||
|
respect to the covered work, and you disclaim any intention to limit
|
||||||
|
operation or modification of the work as a means of enforcing, against
|
||||||
|
the work's users, your or third parties' legal rights to forbid
|
||||||
|
circumvention of technological measures.
|
||||||
|
|
||||||
|
#### 4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
#### 5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these
|
||||||
|
conditions:
|
||||||
|
|
||||||
|
- a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
- b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under
|
||||||
|
section 7. This requirement modifies the requirement in section 4
|
||||||
|
to "keep intact all notices".
|
||||||
|
- c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
- d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
#### 6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms of
|
||||||
|
sections 4 and 5, provided that you also convey the machine-readable
|
||||||
|
Corresponding Source under the terms of this License, in one of these
|
||||||
|
ways:
|
||||||
|
|
||||||
|
- a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
- b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the Corresponding
|
||||||
|
Source from a network server at no charge.
|
||||||
|
- c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
- d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
- e) Convey the object code using peer-to-peer transmission,
|
||||||
|
provided you inform other peers where the object code and
|
||||||
|
Corresponding Source of the work are being offered to the general
|
||||||
|
public at no charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal,
|
||||||
|
family, or household purposes, or (2) anything designed or sold for
|
||||||
|
incorporation into a dwelling. In determining whether a product is a
|
||||||
|
consumer product, doubtful cases shall be resolved in favor of
|
||||||
|
coverage. For a particular product received by a particular user,
|
||||||
|
"normally used" refers to a typical or common use of that class of
|
||||||
|
product, regardless of the status of the particular user or of the way
|
||||||
|
in which the particular user actually uses, or expects or is expected
|
||||||
|
to use, the product. A product is a consumer product regardless of
|
||||||
|
whether the product has substantial commercial, industrial or
|
||||||
|
non-consumer uses, unless such uses represent the only significant
|
||||||
|
mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to
|
||||||
|
install and execute modified versions of a covered work in that User
|
||||||
|
Product from a modified version of its Corresponding Source. The
|
||||||
|
information must suffice to ensure that the continued functioning of
|
||||||
|
the modified object code is in no case prevented or interfered with
|
||||||
|
solely because modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or
|
||||||
|
updates for a work that has been modified or installed by the
|
||||||
|
recipient, or for the User Product in which it has been modified or
|
||||||
|
installed. Access to a network may be denied when the modification
|
||||||
|
itself materially and adversely affects the operation of the network
|
||||||
|
or violates the rules and protocols for communication across the
|
||||||
|
network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
#### 7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders
|
||||||
|
of that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
- a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
- b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
- c) Prohibiting misrepresentation of the origin of that material,
|
||||||
|
or requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
- d) Limiting the use for publicity purposes of names of licensors
|
||||||
|
or authors of the material; or
|
||||||
|
- e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
- f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions
|
||||||
|
of it) with contractual assumptions of liability to the recipient,
|
||||||
|
for any liability that these contractual assumptions directly
|
||||||
|
impose on those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions; the
|
||||||
|
above requirements apply either way.
|
||||||
|
|
||||||
|
#### 8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your license
|
||||||
|
from a particular copyright holder is reinstated (a) provisionally,
|
||||||
|
unless and until the copyright holder explicitly and finally
|
||||||
|
terminates your license, and (b) permanently, if the copyright holder
|
||||||
|
fails to notify you of the violation by some reasonable means prior to
|
||||||
|
60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
#### 9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or run
|
||||||
|
a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
#### 10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
#### 11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims owned
|
||||||
|
or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within the
|
||||||
|
scope of its coverage, prohibits the exercise of, or is conditioned on
|
||||||
|
the non-exercise of one or more of the rights that are specifically
|
||||||
|
granted under this License. You may not convey a covered work if you
|
||||||
|
are a party to an arrangement with a third party that is in the
|
||||||
|
business of distributing software, under which you make payment to the
|
||||||
|
third party based on the extent of your activity of conveying the
|
||||||
|
work, and under which the third party grants, to any of the parties
|
||||||
|
who would receive the covered work from you, a discriminatory patent
|
||||||
|
license (a) in connection with copies of the covered work conveyed by
|
||||||
|
you (or copies made from those copies), or (b) primarily for and in
|
||||||
|
connection with specific products or compilations that contain the
|
||||||
|
covered work, unless you entered into that arrangement, or that patent
|
||||||
|
license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
#### 12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under
|
||||||
|
this License and any other pertinent obligations, then as a
|
||||||
|
consequence you may not convey it at all. For example, if you agree to
|
||||||
|
terms that obligate you to collect a royalty for further conveying
|
||||||
|
from those to whom you convey the Program, the only way you could
|
||||||
|
satisfy both those terms and this License would be to refrain entirely
|
||||||
|
from conveying the Program.
|
||||||
|
|
||||||
|
#### 13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
#### 14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the GNU General Public License from time to time. Such new versions
|
||||||
|
will be similar in spirit to the present version, but may differ in
|
||||||
|
detail to address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies that a certain numbered version of the GNU General Public
|
||||||
|
License "or any later version" applies to it, you have the option of
|
||||||
|
following the terms and conditions either of that numbered version or
|
||||||
|
of any later version published by the Free Software Foundation. If the
|
||||||
|
Program does not specify a version number of the GNU General Public
|
||||||
|
License, you may choose any version ever published by the Free
|
||||||
|
Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future versions
|
||||||
|
of the GNU General Public License can be used, that proxy's public
|
||||||
|
statement of acceptance of a version permanently authorizes you to
|
||||||
|
choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
#### 15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
|
||||||
|
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
|
||||||
|
PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
|
||||||
|
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
|
||||||
|
CORRECTION.
|
||||||
|
|
||||||
|
#### 16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
|
||||||
|
CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
|
||||||
|
ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
|
||||||
|
NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
|
||||||
|
LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM
|
||||||
|
TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
|
||||||
|
PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
#### 17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
### How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these
|
||||||
|
terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest to
|
||||||
|
attach them to the start of each source file to most effectively state
|
||||||
|
the exclusion of warranty; and each file should have at least the
|
||||||
|
"copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper
|
||||||
|
mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands \`show w' and \`show c' should show the
|
||||||
|
appropriate parts of the General Public License. Of course, your
|
||||||
|
program's commands might be different; for a GUI interface, you would
|
||||||
|
use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||||
|
necessary. For more information on this, and how to apply and follow
|
||||||
|
the GNU GPL, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your
|
||||||
|
program into proprietary programs. If your program is a subroutine
|
||||||
|
library, you may consider it more useful to permit linking proprietary
|
||||||
|
applications with the library. If this is what you want to do, use the
|
||||||
|
GNU Lesser General Public License instead of this License. But first,
|
||||||
|
please read <https://www.gnu.org/licenses/why-not-lgpl.html>.
|
|
@ -0,0 +1,2 @@
|
||||||
|
order deny,allow
|
||||||
|
deny from all
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?php
|
||||||
|
define('SUBCONTENT_DIR', 'content');
|
||||||
|
define('SHOW_HIDDEN_FILES', false);
|
||||||
|
define('VIEWABLE_FORMAT', 'md');
|
||||||
|
define('TITLE', 'Documentation');
|
||||||
|
define('ICON', 'fa-book-open');
|
||||||
|
define('ALLOWED_EXT','jpg,svg,gif,png,c,tgz,tar.gz,gz,tar,sql,ico');
|
||||||
|
define('PASSWORD', 'c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec');
|
||||||
|
define('LOG_FILE', 'log.txt');
|
||||||
|
define('ACCESS_IP', '');
|
||||||
|
define('HISTORY_FILE', 'history.txt');
|
||||||
|
define('MAX_HISTORY_FILES', 5);
|
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
![erreur 404](/special/erreur-404.png?-center)
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
|
@ -0,0 +1 @@
|
||||||
|
**MarkDoc** - Manage your documents in markdown - *2020*
|
|
@ -0,0 +1,675 @@
|
||||||
|
### GNU GENERAL PUBLIC LICENSE
|
||||||
|
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc.
|
||||||
|
<https://fsf.org/>
|
||||||
|
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies of this
|
||||||
|
license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
### Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom
|
||||||
|
to share and change all versions of a program--to make sure it remains
|
||||||
|
free software for all its users. We, the Free Software Foundation, use
|
||||||
|
the GNU General Public License for most of our software; it applies
|
||||||
|
also to any other work released this way by its authors. You can apply
|
||||||
|
it to your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you
|
||||||
|
have certain responsibilities if you distribute copies of the
|
||||||
|
software, or if you modify it: responsibilities to respect the freedom
|
||||||
|
of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the
|
||||||
|
manufacturer can do so. This is fundamentally incompatible with the
|
||||||
|
aim of protecting users' freedom to change the software. The
|
||||||
|
systematic pattern of such abuse occurs in the area of products for
|
||||||
|
individuals to use, which is precisely where it is most unacceptable.
|
||||||
|
Therefore, we have designed this version of the GPL to prohibit the
|
||||||
|
practice for those products. If such problems arise substantially in
|
||||||
|
other domains, we stand ready to extend this provision to those
|
||||||
|
domains in future versions of the GPL, as needed to protect the
|
||||||
|
freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish
|
||||||
|
to avoid the special danger that patents applied to a free program
|
||||||
|
could make it effectively proprietary. To prevent this, the GPL
|
||||||
|
assures that patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
### TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
#### 0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds
|
||||||
|
of works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of
|
||||||
|
an exact copy. The resulting work is called a "modified version" of
|
||||||
|
the earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user
|
||||||
|
through a computer network, with no transfer of a copy, is not
|
||||||
|
conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices" to
|
||||||
|
the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
#### 1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work for
|
||||||
|
making modifications to it. "Object code" means any non-source form of
|
||||||
|
a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users can
|
||||||
|
regenerate automatically from other parts of the Corresponding Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that same
|
||||||
|
work.
|
||||||
|
|
||||||
|
#### 2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not convey,
|
||||||
|
without conditions so long as your license otherwise remains in force.
|
||||||
|
You may convey covered works to others for the sole purpose of having
|
||||||
|
them make modifications exclusively for you, or provide you with
|
||||||
|
facilities for running those works, provided that you comply with the
|
||||||
|
terms of this License in conveying all material for which you do not
|
||||||
|
control copyright. Those thus making or running the covered works for
|
||||||
|
you must do so exclusively on your behalf, under your direction and
|
||||||
|
control, on terms that prohibit them from making any copies of your
|
||||||
|
copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under the
|
||||||
|
conditions stated below. Sublicensing is not allowed; section 10 makes
|
||||||
|
it unnecessary.
|
||||||
|
|
||||||
|
#### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such
|
||||||
|
circumvention is effected by exercising rights under this License with
|
||||||
|
respect to the covered work, and you disclaim any intention to limit
|
||||||
|
operation or modification of the work as a means of enforcing, against
|
||||||
|
the work's users, your or third parties' legal rights to forbid
|
||||||
|
circumvention of technological measures.
|
||||||
|
|
||||||
|
#### 4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
#### 5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these
|
||||||
|
conditions:
|
||||||
|
|
||||||
|
- a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
- b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under
|
||||||
|
section 7. This requirement modifies the requirement in section 4
|
||||||
|
to "keep intact all notices".
|
||||||
|
- c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
- d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
#### 6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms of
|
||||||
|
sections 4 and 5, provided that you also convey the machine-readable
|
||||||
|
Corresponding Source under the terms of this License, in one of these
|
||||||
|
ways:
|
||||||
|
|
||||||
|
- a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
- b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the Corresponding
|
||||||
|
Source from a network server at no charge.
|
||||||
|
- c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
- d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
- e) Convey the object code using peer-to-peer transmission,
|
||||||
|
provided you inform other peers where the object code and
|
||||||
|
Corresponding Source of the work are being offered to the general
|
||||||
|
public at no charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal,
|
||||||
|
family, or household purposes, or (2) anything designed or sold for
|
||||||
|
incorporation into a dwelling. In determining whether a product is a
|
||||||
|
consumer product, doubtful cases shall be resolved in favor of
|
||||||
|
coverage. For a particular product received by a particular user,
|
||||||
|
"normally used" refers to a typical or common use of that class of
|
||||||
|
product, regardless of the status of the particular user or of the way
|
||||||
|
in which the particular user actually uses, or expects or is expected
|
||||||
|
to use, the product. A product is a consumer product regardless of
|
||||||
|
whether the product has substantial commercial, industrial or
|
||||||
|
non-consumer uses, unless such uses represent the only significant
|
||||||
|
mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to
|
||||||
|
install and execute modified versions of a covered work in that User
|
||||||
|
Product from a modified version of its Corresponding Source. The
|
||||||
|
information must suffice to ensure that the continued functioning of
|
||||||
|
the modified object code is in no case prevented or interfered with
|
||||||
|
solely because modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or
|
||||||
|
updates for a work that has been modified or installed by the
|
||||||
|
recipient, or for the User Product in which it has been modified or
|
||||||
|
installed. Access to a network may be denied when the modification
|
||||||
|
itself materially and adversely affects the operation of the network
|
||||||
|
or violates the rules and protocols for communication across the
|
||||||
|
network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
#### 7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders
|
||||||
|
of that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
- a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
- b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
- c) Prohibiting misrepresentation of the origin of that material,
|
||||||
|
or requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
- d) Limiting the use for publicity purposes of names of licensors
|
||||||
|
or authors of the material; or
|
||||||
|
- e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
- f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions
|
||||||
|
of it) with contractual assumptions of liability to the recipient,
|
||||||
|
for any liability that these contractual assumptions directly
|
||||||
|
impose on those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions; the
|
||||||
|
above requirements apply either way.
|
||||||
|
|
||||||
|
#### 8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your license
|
||||||
|
from a particular copyright holder is reinstated (a) provisionally,
|
||||||
|
unless and until the copyright holder explicitly and finally
|
||||||
|
terminates your license, and (b) permanently, if the copyright holder
|
||||||
|
fails to notify you of the violation by some reasonable means prior to
|
||||||
|
60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
#### 9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or run
|
||||||
|
a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
#### 10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
#### 11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims owned
|
||||||
|
or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within the
|
||||||
|
scope of its coverage, prohibits the exercise of, or is conditioned on
|
||||||
|
the non-exercise of one or more of the rights that are specifically
|
||||||
|
granted under this License. You may not convey a covered work if you
|
||||||
|
are a party to an arrangement with a third party that is in the
|
||||||
|
business of distributing software, under which you make payment to the
|
||||||
|
third party based on the extent of your activity of conveying the
|
||||||
|
work, and under which the third party grants, to any of the parties
|
||||||
|
who would receive the covered work from you, a discriminatory patent
|
||||||
|
license (a) in connection with copies of the covered work conveyed by
|
||||||
|
you (or copies made from those copies), or (b) primarily for and in
|
||||||
|
connection with specific products or compilations that contain the
|
||||||
|
covered work, unless you entered into that arrangement, or that patent
|
||||||
|
license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
#### 12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under
|
||||||
|
this License and any other pertinent obligations, then as a
|
||||||
|
consequence you may not convey it at all. For example, if you agree to
|
||||||
|
terms that obligate you to collect a royalty for further conveying
|
||||||
|
from those to whom you convey the Program, the only way you could
|
||||||
|
satisfy both those terms and this License would be to refrain entirely
|
||||||
|
from conveying the Program.
|
||||||
|
|
||||||
|
#### 13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
#### 14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the GNU General Public License from time to time. Such new versions
|
||||||
|
will be similar in spirit to the present version, but may differ in
|
||||||
|
detail to address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies that a certain numbered version of the GNU General Public
|
||||||
|
License "or any later version" applies to it, you have the option of
|
||||||
|
following the terms and conditions either of that numbered version or
|
||||||
|
of any later version published by the Free Software Foundation. If the
|
||||||
|
Program does not specify a version number of the GNU General Public
|
||||||
|
License, you may choose any version ever published by the Free
|
||||||
|
Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future versions
|
||||||
|
of the GNU General Public License can be used, that proxy's public
|
||||||
|
statement of acceptance of a version permanently authorizes you to
|
||||||
|
choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
#### 15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
|
||||||
|
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
|
||||||
|
PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
|
||||||
|
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
|
||||||
|
CORRECTION.
|
||||||
|
|
||||||
|
#### 16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
|
||||||
|
CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
|
||||||
|
ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
|
||||||
|
NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
|
||||||
|
LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM
|
||||||
|
TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
|
||||||
|
PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
#### 17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
### How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these
|
||||||
|
terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest to
|
||||||
|
attach them to the start of each source file to most effectively state
|
||||||
|
the exclusion of warranty; and each file should have at least the
|
||||||
|
"copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper
|
||||||
|
mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands \`show w' and \`show c' should show the
|
||||||
|
appropriate parts of the General Public License. Of course, your
|
||||||
|
program's commands might be different; for a GUI interface, you would
|
||||||
|
use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||||
|
necessary. For more information on this, and how to apply and follow
|
||||||
|
the GNU GPL, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your
|
||||||
|
program into proprietary programs. If your program is a subroutine
|
||||||
|
library, you may consider it more useful to permit linking proprietary
|
||||||
|
applications with the library. If this is what you want to do, use the
|
||||||
|
GNU Lesser General Public License instead of this License. But first,
|
||||||
|
please read <https://www.gnu.org/licenses/why-not-lgpl.html>.
|
|
@ -0,0 +1,3 @@
|
||||||
|
[Accueil](/index.md)
|
||||||
|
[Plan du site](:SITEMAP)
|
||||||
|
[Glossaire](:GLOSSAIRE)
|
|
@ -0,0 +1,15 @@
|
||||||
|
PHP MarkDown document manager, Free & OpenSource :heart_eyes: for easily create your documentation website**
|
||||||
|
```
|
||||||
|
__ __ _ _____
|
||||||
|
| \/ | | | | __ \
|
||||||
|
| \ / | __ _ _ __| | _| | | | ___ ___
|
||||||
|
| |\/| |/ _` | \'__| |/ / | | |/ _ \ / __|
|
||||||
|
| | | | (_| | | | <| |__| | (_) | (__
|
||||||
|
|_| |_|\__,_|_| |_|\_\_____/ \___/ \___|
|
||||||
|
```
|
||||||
|
|
||||||
|
![gplV3](https://www.gnu.org/graphics/gplv3-127x51.png) Sous licence GPLv3 [Licence](/special/gpl-3.0.md) - *Sources téléchargéables sur [GitHub](https://github.com/dahut87/MarkDoc)*
|
||||||
|
|
||||||
|
Based on Pheditor "PHP file editor" By Hamid Samak Release under MIT license
|
||||||
|
|
||||||
|
2020 par Nicolas H.
|
|
@ -0,0 +1,220 @@
|
||||||
|
/*
|
||||||
|
* MarkDoc
|
||||||
|
* PHP MarkDown document manager
|
||||||
|
* Hordé Nicolas
|
||||||
|
* https://github.com/dahut87/MarkDoc
|
||||||
|
* Release under GPLv3.0 license
|
||||||
|
* Base on Pheditor "PHP file editor" By Hamid Samak Release under MIT license
|
||||||
|
*/
|
||||||
|
|
||||||
|
<?php
|
||||||
|
### Global defines
|
||||||
|
define('ROOT_DIR', realpath(dirname(__FILE__)) .'/');
|
||||||
|
define('LIB_DIR', ROOT_DIR.'lib/');
|
||||||
|
define('HOST_DIR',ROOT_DIR.'hosts/'.$_SERVER['SERVER_NAME'].'/');
|
||||||
|
|
||||||
|
### Hosts defines
|
||||||
|
include HOST_DIR."./config.php";
|
||||||
|
define('CONTENT_DIR', HOST_DIR.SUBCONTENT_DIR.'/');
|
||||||
|
define('LOG_DIR', HOST_DIR.LOG_FILE);
|
||||||
|
define('HISTORY_DIR', HOST_DIR.HISTORY_FILE);
|
||||||
|
include LIB_DIR."/Parsedown.php";
|
||||||
|
include LIB_DIR."/ParsedownExtra.php";
|
||||||
|
include LIB_DIR."/functions.php";
|
||||||
|
|
||||||
|
### Security
|
||||||
|
testip();
|
||||||
|
logprotect();
|
||||||
|
|
||||||
|
### Sessions
|
||||||
|
session_name('mesdocumentations');
|
||||||
|
session_start();
|
||||||
|
|
||||||
|
/*var_dump($_POST);
|
||||||
|
var_dump($_GET);*/
|
||||||
|
|
||||||
|
$file=explode('?', ($_GET['doc']=="")?"index.md":$_GET['doc'], 2)[0] ?? "";
|
||||||
|
$filedetail = pathinfo($file);
|
||||||
|
|
||||||
|
if (isset($_GET['logout'])) {
|
||||||
|
unset($_SESSION['md_admin']);
|
||||||
|
redirect();
|
||||||
|
}
|
||||||
|
else if (isset($_POST['action']))
|
||||||
|
{
|
||||||
|
switch ($_POST['action']) {
|
||||||
|
case 'ident':
|
||||||
|
if (isset($_SESSION['md_admin']) === false || $_SESSION['md_admin'] !== true)
|
||||||
|
{
|
||||||
|
if (isset($_POST['md_password']) && empty($_POST['md_password']) === false)
|
||||||
|
{
|
||||||
|
if (hash('sha512', $_POST['md_password']) === PASSWORD)
|
||||||
|
{
|
||||||
|
$_SESSION['md_admin'] = true;
|
||||||
|
redirect();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$content = '<h1>Mot de passe incorrect.</h1>';
|
||||||
|
$log = file_exists(LOG_FILE) ? unserialize(file_get_contents(LOG_FILE)) : array();
|
||||||
|
if (isset($log[$_SERVER['REMOTE_ADDR']]) === false)
|
||||||
|
{
|
||||||
|
$log[$_SERVER['REMOTE_ADDR']] = array('num' => 0, 'time' => 0);
|
||||||
|
}
|
||||||
|
$log[$_SERVER['REMOTE_ADDR']]['num'] += 1;
|
||||||
|
$log[$_SERVER['REMOTE_ADDR']]['time'] = time();
|
||||||
|
file_put_contents(LOG_FILE, serialize($log));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
$content='<h1>Aucun mot de passe renseigné !</h1>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
$content='<h1>Vous êtes déjà logué !</h1>';
|
||||||
|
break;
|
||||||
|
case 'children':
|
||||||
|
print(json_encode(filesJSON(CONTENT_DIR,false)));
|
||||||
|
exit;
|
||||||
|
case 'allchildren':
|
||||||
|
print(json_encode(filesJSON(CONTENT_DIR,true)));
|
||||||
|
exit;
|
||||||
|
case 'open':
|
||||||
|
$file=urldecode($_POST['file']);
|
||||||
|
if (substr($file,0,1)==":")
|
||||||
|
print(specialurl($file));
|
||||||
|
else
|
||||||
|
print(getcontent($file));
|
||||||
|
exit;
|
||||||
|
case 'realopen':
|
||||||
|
$file=urldecode($_POST['file']);
|
||||||
|
print(getcontent($file,false));
|
||||||
|
exit;
|
||||||
|
case 'save':
|
||||||
|
$file=urldecode($_POST['file']);
|
||||||
|
print(setcontent($file,$_POST['data']));
|
||||||
|
exit;
|
||||||
|
case 'search':
|
||||||
|
$results=searchstr(CONTENT_DIR,$_POST['search']);
|
||||||
|
//print_r($results);
|
||||||
|
$content="<h1>Résultats de recherche</h1><p>Il y a ".$results['totalFiles']." occurence(s) trouvée(s):</p>";
|
||||||
|
foreach($results['files'] as $key => $value)
|
||||||
|
$content.='<p class="filefound"><a href="'.$key.'">'.$key.'</a></p><p class="textfound">'.$value.'</p>';
|
||||||
|
if ($_POST['type']=="js")
|
||||||
|
{
|
||||||
|
print($content);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (substr($file,0,1)==":")
|
||||||
|
{
|
||||||
|
$content=specialurl($file);
|
||||||
|
}
|
||||||
|
else if ($filedetail['extension']=="md")
|
||||||
|
{
|
||||||
|
$content=getcontent($file);
|
||||||
|
}
|
||||||
|
else if ($filedetail['extension']!="" && strpos(ALLOWED_EXT, $filedetail['extension']) !== false)
|
||||||
|
{
|
||||||
|
if (file_exists(CONTENT_DIR . $file))
|
||||||
|
{
|
||||||
|
if ($filedetail['extension']=="css") header("Content-type: text/css");
|
||||||
|
print file_get_contents(CONTENT_DIR . $file);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
http_response_code(404);
|
||||||
|
$content=getcontent("/special/404.md");
|
||||||
|
}
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$content=getcontent("/special/404.md");
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title><?php echo TITLE; ?>
|
||||||
|
</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||||
|
<link rel="stylesheet" type="text/css" href="/css/prism.css" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="/css/jstree.min.css" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="/css/emoji.css" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="/css/style.css" />
|
||||||
|
<?php print(($_SESSION['md_admin'] == true)?'<link rel="stylesheet" href="/css/codemirror.min.css" />':''); ?>
|
||||||
|
<script type="text/javascript" src="/js/jquery.min.js"></script>
|
||||||
|
<script type="text/javascript" src="/js/popper.min.js"></script>
|
||||||
|
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
|
||||||
|
<script type="text/javascript" src="/js/jstree.min.js"></script>
|
||||||
|
<script type="text/javascript" src="/js/prism.js"></script>
|
||||||
|
<script type="text/javascript" src="/js/emoji.min.js"></script>
|
||||||
|
<?php print(($_SESSION['md_admin'] == true)?'<link rel="stylesheet" href="/css/simplemde.min.css">
|
||||||
|
<script src="/js/simplemde.min.js"></script>
|
||||||
|
<script type="text/javascript" src="/js/functionsadmin.js"></script>':'<script type="text/javascript" src="/js/functions.js"></script>'); ?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="head" class="">
|
||||||
|
<nav class="navbar navbar-expand-md <?php print(($_SESSION['md_admin'] == true)?"navbar-custom":"bg-dark navbar-dark"); ?>">
|
||||||
|
<a class="navbar-brand" href="/index.md"><i class="fas <?php echo ICON; ?>"></i> <?php echo TITLE; ?></a>
|
||||||
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
|
<ul class="navbar-nav mr-auto">
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle" href="javascript:void(0)" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" role="button">Menu</a>
|
||||||
|
<div class="dropdown-menu">
|
||||||
|
<?php
|
||||||
|
print(getnav());
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<?php
|
||||||
|
print(($_SESSION['md_admin'] == true)?'<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle" href="javascript:void(0)" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" role="button">Admin</a>
|
||||||
|
<div class="dropdown-menu">
|
||||||
|
<a class="dropdown-item" href=":CONFIG">Configuration</a>
|
||||||
|
<a class="dropdown-item" href=":PASSWORD">Mot de passe</a>
|
||||||
|
<hr>
|
||||||
|
<a class="dropdown-item" href="https://'.$_SERVER['SERVER_NAME'].'?logout">Se déconnecter</a>
|
||||||
|
</div></li>':'<li class="nav-item"><a class="nav-link " href=":ADMIN">Admin</a></li>');
|
||||||
|
?>
|
||||||
|
<li class="nav-item"><a class="nav-link " href="/apropos.md">A propos</a></li>
|
||||||
|
</ul>
|
||||||
|
<form class="form-inline" id="form" name="form" action="/index.php" method="POST">
|
||||||
|
<input type="hidden" id="action" name="action" value="search"/>
|
||||||
|
<?php print(($_SESSION['md_admin'] == true)?'<input class="btn btn-outline-light" my-2 my-sm-0" value="Voir" name="voir" id="voir" type="submit"/> <input class="btn btn-outline-light" my-2 my-sm-0" value="Sauver" name="save" id="save" type="submit"/> ':''); ?>
|
||||||
|
<input class="form-control mr-sm-2" type="text" id="search" name="search"/>
|
||||||
|
<input class="btn <?php print(($_SESSION['md_admin'] == true)?"btn-outline-light":"btn-outline-info"); ?> my-2 my-sm-0" value="Chercher" name="submit" id="submit" type="submit"/>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row">
|
||||||
|
<div id="files" class="col-xs-12 order-last order-sm-last order-sm-last order-md-first order-lg-first col-md-4 col-lg-2"></div>
|
||||||
|
<div id="separate" class="bg-dark text-white col-xs-12 col-sm-12 order-3 d-md-none d-lg-none container">Documentations</div>
|
||||||
|
<div class="col-12 col-md-8 col-lg-10 order-2">
|
||||||
|
<div id="content" class="col-12 col-md-8 col-lg-10 order-2">
|
||||||
|
<?php
|
||||||
|
print($content);
|
||||||
|
?><br><br>
|
||||||
|
</div>
|
||||||
|
<div id="image" class="imagepreview"><img></div><div id="editor"><textarea data-file="" class="form-control"></textarea></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="footer" class="footer <?php print(($_SESSION['md_admin'] == true)?"navbar-custom":"bg-dark"); ?> text-white">
|
||||||
|
<?php
|
||||||
|
print(getcontent("special/footer.md"));
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
<div class="alert"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,111 @@
|
||||||
|
/*
|
||||||
|
* MarkDoc
|
||||||
|
* PHP MarkDown document manager
|
||||||
|
* Hordé Nicolas
|
||||||
|
* https://github.com/dahut87/MarkDoc
|
||||||
|
* Release under GPLv3.0 license
|
||||||
|
* Base on Pheditor "PHP file editor" By Hamid Samak Release under MIT license
|
||||||
|
*/
|
||||||
|
|
||||||
|
var external = RegExp('^((f|ht)tps?:)?//');
|
||||||
|
var javascript = RegExp('^javascript:');
|
||||||
|
var emoji;
|
||||||
|
$(function(){
|
||||||
|
$("#files").jstree({
|
||||||
|
themes: { responsive: true },
|
||||||
|
plugins: [ "types" ],
|
||||||
|
core:
|
||||||
|
{
|
||||||
|
strings:{ loading: "Chargement" },
|
||||||
|
check_callback: true,
|
||||||
|
data : {
|
||||||
|
type: "POST",
|
||||||
|
dataType: "json",
|
||||||
|
url : "/index.php",
|
||||||
|
data : function (node) {
|
||||||
|
return { 'action' : 'children' };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
emoji = new EmojiConvertor();
|
||||||
|
$("#editor").hide();
|
||||||
|
$("#image").hide();
|
||||||
|
$("#save").hide();
|
||||||
|
|
||||||
|
$("#files").on("select_node.jstree", function (e, nodes) {
|
||||||
|
file="/"+$("#files").jstree("get_path",nodes.node,"/").replace(/^.+?[/]/, '');
|
||||||
|
if ($("#files").jstree("is_leaf",nodes.node))
|
||||||
|
openlink(file+".md");
|
||||||
|
});
|
||||||
|
|
||||||
|
$("input[name=submit]").click(function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
search($("#search").val());
|
||||||
|
});
|
||||||
|
|
||||||
|
majlink('head');
|
||||||
|
});
|
||||||
|
|
||||||
|
function openlink(dest)
|
||||||
|
{
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "/index.php",
|
||||||
|
data: { action: "open", file: encodeURIComponent(dest) },
|
||||||
|
success: function(data){
|
||||||
|
$("#content").html(emoji.replace_colons(data)+'<br><br>');
|
||||||
|
Prism.highlightAll();
|
||||||
|
majlink('content');
|
||||||
|
$(window).scrollTop(0);
|
||||||
|
},
|
||||||
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||||
|
if (dest!="special/404.md")
|
||||||
|
openlink("special/404.md");
|
||||||
|
else
|
||||||
|
$("#content").html("<b>Erreur 404 sur erreur 404: pas de /special/404.md !");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function alertBox(message, className) {
|
||||||
|
$(".alert").removeClass("alert-success alert-warning alert-danger");
|
||||||
|
$(".alert").html(message).addClass("alert-" + className).fadeIn();
|
||||||
|
setTimeout(function(){
|
||||||
|
$(".alert").fadeOut();
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
|
function majlink(context)
|
||||||
|
{
|
||||||
|
$('#'+context+' a').click(function(e) {
|
||||||
|
dest=$(this).attr('href');
|
||||||
|
if (!external.test(dest) && !javascript.test(dest))
|
||||||
|
{
|
||||||
|
e.preventDefault();
|
||||||
|
openlink(dest);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function search(arg)
|
||||||
|
{
|
||||||
|
$("#search").val(arg);
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "/index.php",
|
||||||
|
data: { action: "search", search: encodeURIComponent(arg), type: "js" },
|
||||||
|
success: function(data){
|
||||||
|
$("#content").html(data+'<br><br>');
|
||||||
|
Prism.highlightAll();
|
||||||
|
majlink('content');
|
||||||
|
$(window).scrollTop(0);
|
||||||
|
},
|
||||||
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||||
|
if (dest!="special/404.md")
|
||||||
|
openlink("special/404.md");
|
||||||
|
else
|
||||||
|
$("#content").html("<b>Erreur 404 sur erreur 404: pas de /special/404.md !");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
|
@ -0,0 +1,330 @@
|
||||||
|
/*
|
||||||
|
* MarkDoc
|
||||||
|
* PHP MarkDown document manager
|
||||||
|
* Hordé Nicolas
|
||||||
|
* https://github.com/dahut87/MarkDoc
|
||||||
|
* Release under GPLv3.0 license
|
||||||
|
* Base on Pheditor "PHP file editor" By Hamid Samak Release under MIT license
|
||||||
|
*/
|
||||||
|
|
||||||
|
var external = RegExp('^((f|ht)tps?:)?//');
|
||||||
|
var javascript = RegExp('^javascript:');
|
||||||
|
var editor;
|
||||||
|
var emoji;
|
||||||
|
var editfile="";
|
||||||
|
var viewfile="";
|
||||||
|
|
||||||
|
function drawWarning(editor) {
|
||||||
|
var cm = editor.codemirror;
|
||||||
|
var output = '';
|
||||||
|
var selectedText = cm.getSelection();
|
||||||
|
var text = selectedText || 'placeholder';
|
||||||
|
output = '\n> :warning:' + text + ' !';
|
||||||
|
cm.replaceSelection(output);
|
||||||
|
}
|
||||||
|
|
||||||
|
function drawDanger(editor) {
|
||||||
|
var cm = editor.codemirror;
|
||||||
|
var output = '';
|
||||||
|
var selectedText = cm.getSelection();
|
||||||
|
var text = selectedText || 'placeholder';
|
||||||
|
output = '\n> :skull:' + text + ' !';
|
||||||
|
cm.replaceSelection(output);
|
||||||
|
}
|
||||||
|
|
||||||
|
function drawTip(editor) {
|
||||||
|
var cm = editor.codemirror;
|
||||||
|
var output = '';
|
||||||
|
var selectedText = cm.getSelection();
|
||||||
|
var text = selectedText || 'placeholder';
|
||||||
|
output = '\n> :bulb:' + text + ' .';
|
||||||
|
cm.replaceSelection(output);
|
||||||
|
}
|
||||||
|
|
||||||
|
function drawNote(editor) {
|
||||||
|
var cm = editor.codemirror;
|
||||||
|
var output = '';
|
||||||
|
var selectedText = cm.getSelection();
|
||||||
|
var text = selectedText || 'placeholder';
|
||||||
|
output = '\n> :memo:' + text + ' .';
|
||||||
|
cm.replaceSelection(output);
|
||||||
|
}
|
||||||
|
|
||||||
|
$(function(){
|
||||||
|
$("#files").jstree({
|
||||||
|
themes: { responsive: true },
|
||||||
|
plugins: ["contextmenu", "dnd" ],
|
||||||
|
core:
|
||||||
|
{
|
||||||
|
strings:{ loading: "Chargement" },
|
||||||
|
check_callback: true,
|
||||||
|
data : {
|
||||||
|
type: "POST",
|
||||||
|
dataType: "json",
|
||||||
|
url : "/index.php",
|
||||||
|
data : function (node) {
|
||||||
|
return { 'action' : 'allchildren' };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
emoji = new EmojiConvertor();
|
||||||
|
editor = new SimpleMDE({
|
||||||
|
element: $("#editor>div")[0],
|
||||||
|
spellChecker: false,
|
||||||
|
previewRender: function(plainText, preview) {
|
||||||
|
setTimeout(function() {
|
||||||
|
preview.innerHTML = emoji.replace_colons(this.parent.markdown(plainText));
|
||||||
|
Prism.highlightAll();
|
||||||
|
}.bind(this), 1)
|
||||||
|
return "Chargement..."
|
||||||
|
},
|
||||||
|
toolbar: ["bold","italic","strikethrough","|","heading-1","heading-2","heading-3","|","quote","unordered-list","ordered-list","horizontal-rule","|",
|
||||||
|
{
|
||||||
|
name: "Warning",
|
||||||
|
action: drawWarning,
|
||||||
|
className: "fa fa-exclamation-triangle", // Look for a suitable icon
|
||||||
|
title: "Warning field",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Tip",
|
||||||
|
action: drawTip,
|
||||||
|
className: "fa fa-lightbulb", // Look for a suitable icon
|
||||||
|
title: "Tip field",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Danger",
|
||||||
|
action: drawDanger,
|
||||||
|
className: "fas fa-skull-crossbones", // Look for a suitable icon
|
||||||
|
title: "Danger Field",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Notes",
|
||||||
|
action: drawNote,
|
||||||
|
className: "fas fa-sticky-note", // Look for a suitable icon
|
||||||
|
title: "Note Field",
|
||||||
|
},
|
||||||
|
"|","code","link","image","table","|","preview","side-by-side","fullscreen","guide"]
|
||||||
|
});
|
||||||
|
$("#editor").hide();
|
||||||
|
$("#image").hide();
|
||||||
|
$("#save").hide();
|
||||||
|
|
||||||
|
$("#files").on("ready.jstree", function (e) {
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
const file = urlParams.get('doc');
|
||||||
|
searchtree(file);
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#voir").click(function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
node=$("#files").jstree("get_selected");
|
||||||
|
file="/"+$("#files").jstree("get_path",node,"/").replace(/^.+?[/]/, '');
|
||||||
|
if ($("#files").jstree("is_leaf",node))
|
||||||
|
{
|
||||||
|
action=$(this).val();
|
||||||
|
if (action=="Voir")
|
||||||
|
{
|
||||||
|
if (viewfile===file)
|
||||||
|
viewmode();
|
||||||
|
else
|
||||||
|
openlink(file,false)
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (editfile===file)
|
||||||
|
editmode();
|
||||||
|
else
|
||||||
|
editlink(file)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$("#save").click(function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
file="/"+$("#files").jstree("get_path",nodes.node,"/").replace(/^.+?[/]/, '');
|
||||||
|
if ($("#files").jstree("is_leaf",nodes.node))
|
||||||
|
{
|
||||||
|
data = editor.value();
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "/index.php",
|
||||||
|
data: { action: "save", file: encodeURIComponent(file), data:data },
|
||||||
|
success: function(data){
|
||||||
|
data = data.split("|");
|
||||||
|
alertBox(data[1], data[0]);
|
||||||
|
},
|
||||||
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||||
|
alertBox('Erreur AJAX !','danger');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
alertBox('Erreur de sélection !', 'danger');
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#files").on("select_node.jstree", function (e, nodes) {
|
||||||
|
file="/"+$("#files").jstree("get_path",nodes.node,"/").replace(/^.+?[/]/, '');
|
||||||
|
if ($("#files").jstree("is_leaf",nodes.node))
|
||||||
|
editlink(file);
|
||||||
|
else
|
||||||
|
alertBox('Fonction non implémentée !','danger');
|
||||||
|
});
|
||||||
|
|
||||||
|
$("input[name=submit]").click(function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
search($("#search").val());
|
||||||
|
});
|
||||||
|
|
||||||
|
majlink('head');
|
||||||
|
});
|
||||||
|
|
||||||
|
function alertBox(message, className) {
|
||||||
|
$(".alert").removeClass("alert-success alert-warning alert-danger");
|
||||||
|
$(".alert").html(message).addClass("alert-" + className).fadeIn();
|
||||||
|
setTimeout(function(){
|
||||||
|
$(".alert").fadeOut();
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
|
function openlink(dest,majtree)
|
||||||
|
{
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "/index.php",
|
||||||
|
data: { action: "open", file: encodeURIComponent(dest) },
|
||||||
|
success: function(data){
|
||||||
|
viewmode(data);
|
||||||
|
viewfile=dest;
|
||||||
|
if (majtree) searchtree(dest);
|
||||||
|
},
|
||||||
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||||
|
if (dest!="special/404.md")
|
||||||
|
openlink("special/404.md",true);
|
||||||
|
else
|
||||||
|
$("#content").html("<b>Erreur 404 sur erreur 404: pas de /special/404.md !");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function searchtree(file)
|
||||||
|
{
|
||||||
|
var flag;
|
||||||
|
$("#files").jstree("deselect_all");
|
||||||
|
node=$("#files").jstree("get_node", "ul > li:first");
|
||||||
|
file.split('/').forEach(function (item) {
|
||||||
|
flag=false;
|
||||||
|
subnodes=$("#files").jstree("get_children_dom",node);
|
||||||
|
subnodes.each(function (i,subnode)
|
||||||
|
{
|
||||||
|
text=$("#files").jstree("get_text",subnode);
|
||||||
|
if (text==item)
|
||||||
|
{
|
||||||
|
$("#files").jstree("open_node",subnode);
|
||||||
|
if ($("#files").jstree("is_leaf",subnode))
|
||||||
|
{
|
||||||
|
$("#files").jstree("select_node",subnode,true);
|
||||||
|
flag=false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
node=subnode;
|
||||||
|
flag=true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (!flag) return false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function editmode(data)
|
||||||
|
{
|
||||||
|
$(window).scrollTop(0);
|
||||||
|
$("#editor").show();
|
||||||
|
if (data !== undefined) editor.value(data);
|
||||||
|
$("#content").hide();
|
||||||
|
$("#save").show();
|
||||||
|
$("#image").hide();
|
||||||
|
$("#voir").show();
|
||||||
|
$("#voir").val("Voir");
|
||||||
|
}
|
||||||
|
|
||||||
|
function imagemode(dest)
|
||||||
|
{
|
||||||
|
$(window).scrollTop(0);
|
||||||
|
$("#editor").hide();
|
||||||
|
$("#content").hide();
|
||||||
|
$("#save").hide();
|
||||||
|
$("#image").show();
|
||||||
|
$("#image>img").attr("src",dest);
|
||||||
|
$("#voir").hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
function viewmode(data)
|
||||||
|
{
|
||||||
|
if (data !== undefined) {
|
||||||
|
$("#content").html(emoji.replace_colons(data)+'<br><br>');
|
||||||
|
Prism.highlightAll();
|
||||||
|
}
|
||||||
|
majlink('content');
|
||||||
|
$(window).scrollTop(0);
|
||||||
|
$("#editor").hide();
|
||||||
|
$("#content").show();
|
||||||
|
$("#save").hide();
|
||||||
|
$("#image").hide();
|
||||||
|
$("#voir").show();
|
||||||
|
$("#voir").val("Editer");
|
||||||
|
}
|
||||||
|
|
||||||
|
function editlink(dest)
|
||||||
|
{
|
||||||
|
if (dest.match(/.(jpg|jpeg|png|gif|webp|svg|ico)$/i))
|
||||||
|
imagemode(dest);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "/index.php",
|
||||||
|
data: { action: "realopen", file: encodeURIComponent(dest) },
|
||||||
|
success: function(data){
|
||||||
|
editmode(data);
|
||||||
|
editfile=dest;
|
||||||
|
},
|
||||||
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||||
|
alertBox('Erreur AJAX', 'danger');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function majlink(context)
|
||||||
|
{
|
||||||
|
$('#'+context+' a').click(function(e) {
|
||||||
|
dest=$(this).attr('href');
|
||||||
|
if (!external.test(dest) && !javascript.test(dest))
|
||||||
|
{
|
||||||
|
e.preventDefault();
|
||||||
|
openlink(dest,true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function search(arg)
|
||||||
|
{
|
||||||
|
$("#search").val(arg);
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "/index.php",
|
||||||
|
data: { action: "search", search: encodeURIComponent(arg), type: "js" },
|
||||||
|
success: function(data){
|
||||||
|
viewmode(data);
|
||||||
|
},
|
||||||
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||||
|
if (dest!="special/404.md")
|
||||||
|
openlink("special/404.md",true);
|
||||||
|
else
|
||||||
|
$("#content").html("<b>Erreur 404 sur erreur 404: pas de /special/404.md !");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,538 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Parsedown Extra
|
||||||
|
# https://github.com/erusev/parsedown-extra
|
||||||
|
#
|
||||||
|
# (c) Emanuil Rusev
|
||||||
|
# http://erusev.com
|
||||||
|
#
|
||||||
|
# For the full license information, view the LICENSE file that was distributed
|
||||||
|
# with this source code.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
class ParsedownExtra extends Parsedown
|
||||||
|
{
|
||||||
|
# ~
|
||||||
|
|
||||||
|
const version = '0.8.1';
|
||||||
|
|
||||||
|
# ~
|
||||||
|
|
||||||
|
function __construct()
|
||||||
|
{
|
||||||
|
if (version_compare(parent::version, '1.7.4') < 0)
|
||||||
|
{
|
||||||
|
throw new Exception('ParsedownExtra requires a later version of Parsedown');
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->BlockTypes[':'] []= 'DefinitionList';
|
||||||
|
$this->BlockTypes['*'] []= 'Abbreviation';
|
||||||
|
|
||||||
|
# identify footnote definitions before reference definitions
|
||||||
|
array_unshift($this->BlockTypes['['], 'Footnote');
|
||||||
|
|
||||||
|
# identify footnote markers before before links
|
||||||
|
array_unshift($this->InlineTypes['['], 'FootnoteMarker');
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# ~
|
||||||
|
|
||||||
|
function text($text)
|
||||||
|
{
|
||||||
|
$markup = parent::text($text);
|
||||||
|
|
||||||
|
# merge consecutive dl elements
|
||||||
|
|
||||||
|
$markup = preg_replace('/<\/dl>\s+<dl>\s+/', '', $markup);
|
||||||
|
|
||||||
|
# add footnotes
|
||||||
|
|
||||||
|
if (isset($this->DefinitionData['Footnote']))
|
||||||
|
{
|
||||||
|
$Element = $this->buildFootnoteElement();
|
||||||
|
|
||||||
|
$markup .= "\n" . $this->element($Element);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $markup;
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Blocks
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Abbreviation
|
||||||
|
|
||||||
|
protected function blockAbbreviation($Line)
|
||||||
|
{
|
||||||
|
if (preg_match('/^\*\[(.+?)\]:[ ]*(.+?)[ ]*$/', $Line['text'], $matches))
|
||||||
|
{
|
||||||
|
$this->DefinitionData['Abbreviation'][$matches[1]] = $matches[2];
|
||||||
|
|
||||||
|
$Block = array(
|
||||||
|
'hidden' => true,
|
||||||
|
);
|
||||||
|
|
||||||
|
return $Block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Footnote
|
||||||
|
|
||||||
|
protected function blockFootnote($Line)
|
||||||
|
{
|
||||||
|
if (preg_match('/^\[\^(.+?)\]:[ ]?(.*)$/', $Line['text'], $matches))
|
||||||
|
{
|
||||||
|
$Block = array(
|
||||||
|
'label' => $matches[1],
|
||||||
|
'text' => $matches[2],
|
||||||
|
'hidden' => true,
|
||||||
|
);
|
||||||
|
|
||||||
|
return $Block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function blockFootnoteContinue($Line, $Block)
|
||||||
|
{
|
||||||
|
if ($Line['text'][0] === '[' and preg_match('/^\[\^(.+?)\]:/', $Line['text']))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($Block['interrupted']))
|
||||||
|
{
|
||||||
|
if ($Line['indent'] >= 4)
|
||||||
|
{
|
||||||
|
$Block['text'] .= "\n\n" . $Line['text'];
|
||||||
|
|
||||||
|
return $Block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$Block['text'] .= "\n" . $Line['text'];
|
||||||
|
|
||||||
|
return $Block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function blockFootnoteComplete($Block)
|
||||||
|
{
|
||||||
|
$this->DefinitionData['Footnote'][$Block['label']] = array(
|
||||||
|
'text' => $Block['text'],
|
||||||
|
'count' => null,
|
||||||
|
'number' => null,
|
||||||
|
);
|
||||||
|
|
||||||
|
return $Block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Definition List
|
||||||
|
|
||||||
|
protected function blockDefinitionList($Line, $Block)
|
||||||
|
{
|
||||||
|
if ( ! isset($Block) or isset($Block['type']))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$Element = array(
|
||||||
|
'name' => 'dl',
|
||||||
|
'handler' => 'elements',
|
||||||
|
'text' => array(),
|
||||||
|
);
|
||||||
|
|
||||||
|
$terms = explode("\n", $Block['element']['text']);
|
||||||
|
|
||||||
|
foreach ($terms as $term)
|
||||||
|
{
|
||||||
|
$Element['text'] []= array(
|
||||||
|
'name' => 'dt',
|
||||||
|
'handler' => 'line',
|
||||||
|
'text' => $term,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
$Block['element'] = $Element;
|
||||||
|
|
||||||
|
$Block = $this->addDdElement($Line, $Block);
|
||||||
|
|
||||||
|
return $Block;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function blockDefinitionListContinue($Line, array $Block)
|
||||||
|
{
|
||||||
|
if ($Line['text'][0] === ':')
|
||||||
|
{
|
||||||
|
$Block = $this->addDdElement($Line, $Block);
|
||||||
|
|
||||||
|
return $Block;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (isset($Block['interrupted']) and $Line['indent'] === 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($Block['interrupted']))
|
||||||
|
{
|
||||||
|
$Block['dd']['handler'] = 'text';
|
||||||
|
$Block['dd']['text'] .= "\n\n";
|
||||||
|
|
||||||
|
unset($Block['interrupted']);
|
||||||
|
}
|
||||||
|
|
||||||
|
$text = substr($Line['body'], min($Line['indent'], 4));
|
||||||
|
|
||||||
|
$Block['dd']['text'] .= "\n" . $text;
|
||||||
|
|
||||||
|
return $Block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Header
|
||||||
|
|
||||||
|
protected function blockHeader($Line)
|
||||||
|
{
|
||||||
|
$Block = parent::blockHeader($Line);
|
||||||
|
|
||||||
|
if (! isset($Block)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (preg_match('/[ #]*{('.$this->regexAttribute.'+)}[ ]*$/', $Block['element']['text'], $matches, PREG_OFFSET_CAPTURE))
|
||||||
|
{
|
||||||
|
$attributeString = $matches[1][0];
|
||||||
|
|
||||||
|
$Block['element']['attributes'] = $this->parseAttributeData($attributeString);
|
||||||
|
|
||||||
|
$Block['element']['text'] = substr($Block['element']['text'], 0, $matches[0][1]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $Block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Markup
|
||||||
|
|
||||||
|
protected function blockMarkupComplete($Block)
|
||||||
|
{
|
||||||
|
if ( ! isset($Block['void']))
|
||||||
|
{
|
||||||
|
$Block['markup'] = $this->processTag($Block['markup']);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $Block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Setext
|
||||||
|
|
||||||
|
protected function blockSetextHeader($Line, array $Block = null)
|
||||||
|
{
|
||||||
|
$Block = parent::blockSetextHeader($Line, $Block);
|
||||||
|
|
||||||
|
if (! isset($Block)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (preg_match('/[ ]*{('.$this->regexAttribute.'+)}[ ]*$/', $Block['element']['text'], $matches, PREG_OFFSET_CAPTURE))
|
||||||
|
{
|
||||||
|
$attributeString = $matches[1][0];
|
||||||
|
|
||||||
|
$Block['element']['attributes'] = $this->parseAttributeData($attributeString);
|
||||||
|
|
||||||
|
$Block['element']['text'] = substr($Block['element']['text'], 0, $matches[0][1]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $Block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Inline Elements
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Footnote Marker
|
||||||
|
|
||||||
|
protected function inlineFootnoteMarker($Excerpt)
|
||||||
|
{
|
||||||
|
if (preg_match('/^\[\^(.+?)\]/', $Excerpt['text'], $matches))
|
||||||
|
{
|
||||||
|
$name = $matches[1];
|
||||||
|
|
||||||
|
if ( ! isset($this->DefinitionData['Footnote'][$name]))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->DefinitionData['Footnote'][$name]['count'] ++;
|
||||||
|
|
||||||
|
if ( ! isset($this->DefinitionData['Footnote'][$name]['number']))
|
||||||
|
{
|
||||||
|
$this->DefinitionData['Footnote'][$name]['number'] = ++ $this->footnoteCount; # » &
|
||||||
|
}
|
||||||
|
|
||||||
|
$Element = array(
|
||||||
|
'name' => 'sup',
|
||||||
|
'attributes' => array('id' => 'fnref'.$this->DefinitionData['Footnote'][$name]['count'].':'.$name),
|
||||||
|
'handler' => 'element',
|
||||||
|
'text' => array(
|
||||||
|
'name' => 'a',
|
||||||
|
'attributes' => array('href' => '#fn:'.$name, 'class' => 'footnote-ref'),
|
||||||
|
'text' => $this->DefinitionData['Footnote'][$name]['number'],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
return array(
|
||||||
|
'extent' => strlen($matches[0]),
|
||||||
|
'element' => $Element,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private $footnoteCount = 0;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Link
|
||||||
|
|
||||||
|
protected function inlineLink($Excerpt)
|
||||||
|
{
|
||||||
|
$Link = parent::inlineLink($Excerpt);
|
||||||
|
|
||||||
|
if (! isset($Link)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
$remainder = substr($Excerpt['text'], $Link['extent']);
|
||||||
|
|
||||||
|
if (preg_match('/^[ ]*{('.$this->regexAttribute.'+)}/', $remainder, $matches))
|
||||||
|
{
|
||||||
|
$Link['element']['attributes'] += $this->parseAttributeData($matches[1]);
|
||||||
|
|
||||||
|
$Link['extent'] += strlen($matches[0]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $Link;
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# ~
|
||||||
|
#
|
||||||
|
|
||||||
|
protected function unmarkedText($text)
|
||||||
|
{
|
||||||
|
$text = parent::unmarkedText($text);
|
||||||
|
|
||||||
|
if (isset($this->DefinitionData['Abbreviation']))
|
||||||
|
{
|
||||||
|
foreach ($this->DefinitionData['Abbreviation'] as $abbreviation => $meaning)
|
||||||
|
{
|
||||||
|
$pattern = '/\b'.preg_quote($abbreviation, '/').'\b/';
|
||||||
|
|
||||||
|
$text = preg_replace($pattern, '<abbr title="'.$meaning.'">'.$abbreviation.'</abbr>', $text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $text;
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Util Methods
|
||||||
|
#
|
||||||
|
|
||||||
|
protected function addDdElement(array $Line, array $Block)
|
||||||
|
{
|
||||||
|
$text = substr($Line['text'], 1);
|
||||||
|
$text = trim($text);
|
||||||
|
|
||||||
|
unset($Block['dd']);
|
||||||
|
|
||||||
|
$Block['dd'] = array(
|
||||||
|
'name' => 'dd',
|
||||||
|
'handler' => 'line',
|
||||||
|
'text' => $text,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (isset($Block['interrupted']))
|
||||||
|
{
|
||||||
|
$Block['dd']['handler'] = 'text';
|
||||||
|
|
||||||
|
unset($Block['interrupted']);
|
||||||
|
}
|
||||||
|
|
||||||
|
$Block['element']['text'] []= & $Block['dd'];
|
||||||
|
|
||||||
|
return $Block;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function buildFootnoteElement()
|
||||||
|
{
|
||||||
|
$Element = array(
|
||||||
|
'name' => 'div',
|
||||||
|
'attributes' => array('class' => 'footnotes'),
|
||||||
|
'handler' => 'elements',
|
||||||
|
'text' => array(
|
||||||
|
array(
|
||||||
|
'name' => 'hr',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'name' => 'ol',
|
||||||
|
'handler' => 'elements',
|
||||||
|
'text' => array(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
uasort($this->DefinitionData['Footnote'], 'self::sortFootnotes');
|
||||||
|
|
||||||
|
foreach ($this->DefinitionData['Footnote'] as $definitionId => $DefinitionData)
|
||||||
|
{
|
||||||
|
if ( ! isset($DefinitionData['number']))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$text = $DefinitionData['text'];
|
||||||
|
|
||||||
|
$text = parent::text($text);
|
||||||
|
|
||||||
|
$numbers = range(1, $DefinitionData['count']);
|
||||||
|
|
||||||
|
$backLinksMarkup = '';
|
||||||
|
|
||||||
|
foreach ($numbers as $number)
|
||||||
|
{
|
||||||
|
$backLinksMarkup .= ' <a href="#fnref'.$number.':'.$definitionId.'" rev="footnote" class="footnote-backref">↩</a>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$backLinksMarkup = substr($backLinksMarkup, 1);
|
||||||
|
|
||||||
|
if (substr($text, - 4) === '</p>')
|
||||||
|
{
|
||||||
|
$backLinksMarkup = ' '.$backLinksMarkup;
|
||||||
|
|
||||||
|
$text = substr_replace($text, $backLinksMarkup.'</p>', - 4);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$text .= "\n".'<p>'.$backLinksMarkup.'</p>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$Element['text'][1]['text'] []= array(
|
||||||
|
'name' => 'li',
|
||||||
|
'attributes' => array('id' => 'fn:'.$definitionId),
|
||||||
|
'rawHtml' => "\n".$text."\n",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $Element;
|
||||||
|
}
|
||||||
|
|
||||||
|
# ~
|
||||||
|
|
||||||
|
protected function parseAttributeData($attributeString)
|
||||||
|
{
|
||||||
|
$Data = array();
|
||||||
|
|
||||||
|
$attributes = preg_split('/[ ]+/', $attributeString, - 1, PREG_SPLIT_NO_EMPTY);
|
||||||
|
|
||||||
|
foreach ($attributes as $attribute)
|
||||||
|
{
|
||||||
|
if ($attribute[0] === '#')
|
||||||
|
{
|
||||||
|
$Data['id'] = substr($attribute, 1);
|
||||||
|
}
|
||||||
|
else # "."
|
||||||
|
{
|
||||||
|
$classes []= substr($attribute, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($classes))
|
||||||
|
{
|
||||||
|
$Data['class'] = implode(' ', $classes);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $Data;
|
||||||
|
}
|
||||||
|
|
||||||
|
# ~
|
||||||
|
|
||||||
|
protected function processTag($elementMarkup) # recursive
|
||||||
|
{
|
||||||
|
# http://stackoverflow.com/q/1148928/200145
|
||||||
|
libxml_use_internal_errors(true);
|
||||||
|
|
||||||
|
$DOMDocument = new DOMDocument;
|
||||||
|
|
||||||
|
# http://stackoverflow.com/q/11309194/200145
|
||||||
|
$elementMarkup = mb_convert_encoding($elementMarkup, 'HTML-ENTITIES', 'UTF-8');
|
||||||
|
|
||||||
|
# http://stackoverflow.com/q/4879946/200145
|
||||||
|
$DOMDocument->loadHTML($elementMarkup);
|
||||||
|
$DOMDocument->removeChild($DOMDocument->doctype);
|
||||||
|
$DOMDocument->replaceChild($DOMDocument->firstChild->firstChild->firstChild, $DOMDocument->firstChild);
|
||||||
|
|
||||||
|
$elementText = '';
|
||||||
|
|
||||||
|
if ($DOMDocument->documentElement->getAttribute('markdown') === '1')
|
||||||
|
{
|
||||||
|
foreach ($DOMDocument->documentElement->childNodes as $Node)
|
||||||
|
{
|
||||||
|
$elementText .= $DOMDocument->saveHTML($Node);
|
||||||
|
}
|
||||||
|
|
||||||
|
$DOMDocument->documentElement->removeAttribute('markdown');
|
||||||
|
|
||||||
|
$elementText = "\n".$this->text($elementText)."\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
foreach ($DOMDocument->documentElement->childNodes as $Node)
|
||||||
|
{
|
||||||
|
$nodeMarkup = $DOMDocument->saveHTML($Node);
|
||||||
|
|
||||||
|
if ($Node instanceof DOMElement and ! in_array($Node->nodeName, $this->textLevelElements))
|
||||||
|
{
|
||||||
|
$elementText .= $this->processTag($nodeMarkup);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$elementText .= $nodeMarkup;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# because we don't want for markup to get encoded
|
||||||
|
$DOMDocument->documentElement->nodeValue = 'placeholder\x1A';
|
||||||
|
|
||||||
|
$markup = $DOMDocument->saveHTML($DOMDocument->documentElement);
|
||||||
|
$markup = str_replace('placeholder\x1A', $elementText, $markup);
|
||||||
|
|
||||||
|
return $markup;
|
||||||
|
}
|
||||||
|
|
||||||
|
# ~
|
||||||
|
|
||||||
|
protected function sortFootnotes($A, $B) # callback
|
||||||
|
{
|
||||||
|
return $A['number'] - $B['number'];
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Fields
|
||||||
|
#
|
||||||
|
|
||||||
|
protected $regexAttribute = '(?:[#.][-\w]+[ ]*)';
|
||||||
|
}
|
|
@ -0,0 +1,284 @@
|
||||||
|
<?php
|
||||||
|
function testip()
|
||||||
|
{
|
||||||
|
if (empty(ACCESS_IP) === false && ACCESS_IP != $_SERVER['REMOTE_ADDR'])
|
||||||
|
die('Your IP address is not allowed to access this page.');
|
||||||
|
}
|
||||||
|
|
||||||
|
function logprotect()
|
||||||
|
{
|
||||||
|
if (file_exists(LOG_DIR)) {
|
||||||
|
$log = unserialize(file_get_contents(LOG_DIR));
|
||||||
|
if (empty($log)) {
|
||||||
|
$log = [];
|
||||||
|
}
|
||||||
|
if (isset($log[$_SERVER['REMOTE_ADDR']]) && $log[$_SERVER['REMOTE_ADDR']]['num'] > 3 && time() - $log[$_SERVER['REMOTE_ADDR']]['time'] < 86400) {
|
||||||
|
die('This IP address is blocked due to unsuccessful login attempts.');
|
||||||
|
}
|
||||||
|
foreach ($log as $key => $value) {
|
||||||
|
if (time() - $value['time'] > 86400) {
|
||||||
|
unset($log[$key]);
|
||||||
|
|
||||||
|
$log_updated = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (isset($log_updated)) {
|
||||||
|
file_put_contents(LOG_DIR, serialize($log));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function redirect($address = null)
|
||||||
|
{
|
||||||
|
if (empty($address)) {
|
||||||
|
$address = $_SERVER['PHP_SELF'];
|
||||||
|
}
|
||||||
|
header('Location: ' . $address);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
function specialurl($url)
|
||||||
|
{
|
||||||
|
switch ($url) {
|
||||||
|
case ':APROPOS':
|
||||||
|
$content = '# MarkDoc ?!
|
||||||
|
|
||||||
|
**PHP MarkDown document manager, Free & OpenSource :heart_eyes: for easily create your documentation website**
|
||||||
|
```
|
||||||
|
__ __ _ _____
|
||||||
|
| \/ | | | | __ \
|
||||||
|
| \ / | __ _ _ __| | _| | | | ___ ___
|
||||||
|
| |\/| |/ _` | \'__| |/ / | | |/ _ \ / __|
|
||||||
|
| | | | (_| | | | <| |__| | (_) | (__
|
||||||
|
|_| |_|\__,_|_| |_|\_\_____/ \___/ \___|
|
||||||
|
```
|
||||||
|
|
||||||
|
![gplV3](https://www.gnu.org/graphics/gplv3-127x51.png) Sous licence GPLv3 [Licence](/special/gpl-3.0.md) - *Sources téléchargéables sur [GitHub](https://github.com/dahut87/MarkDoc)*
|
||||||
|
|
||||||
|
Based on Pheditor "PHP file editor" By Hamid Samak Release under MIT license
|
||||||
|
|
||||||
|
2020 par Nicolas H.';
|
||||||
|
$extra = new ParsedownExtra();
|
||||||
|
print($extra->text($content));
|
||||||
|
exit;
|
||||||
|
case ':ADMIN':
|
||||||
|
if (isset($_SESSION['md_admin']) === false || $_SESSION['md_admin'] !== true)
|
||||||
|
$content = '<form method="post"><div style="text-align:center"><h1></h1>' . (isset($error) ? '<p style="color:#dd0000">' . $error . '</p>' : null) . '<input id="mdsimple_password" name="md_password" type="password" value="" placeholder="Password…" tabindex="1"><br><br><input type="hidden" id="action" name="action" value="ident"><input type="submit" value="Login" tabindex="2"></div></form><script type="text/javascript">$("#md_password").focus();</script>';
|
||||||
|
else
|
||||||
|
$content = "<h1>Vous êtes déjà logué !</h1>";
|
||||||
|
print($content);
|
||||||
|
exit;
|
||||||
|
case ':SITEMAP':
|
||||||
|
$content="<h1>Plan de site</h1>";
|
||||||
|
foreach(plan(CONTENT_DIR) as $file)
|
||||||
|
$content.='<p class="fileletter"><a href="'.$file.'">'.$file.'</a></p>' ;
|
||||||
|
return $content;
|
||||||
|
case ':GLOSSAIRE':
|
||||||
|
$content="<h1>Glossaire</h1>";
|
||||||
|
foreach(glossary(CONTENT_DIR) as $letter => $files)
|
||||||
|
{
|
||||||
|
$content.='<p class="letter">'.$letter.'</p>';
|
||||||
|
foreach($files as $file)
|
||||||
|
$content.='<p class="fileletter"><a href="'.$file.'">'.$file.'</a></p>' ;
|
||||||
|
}
|
||||||
|
return $content;
|
||||||
|
case ':GLOSSAIRE':
|
||||||
|
|
||||||
|
return $content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function plan($path){
|
||||||
|
$dir = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path));
|
||||||
|
$files = $matches = array();
|
||||||
|
while($dir->valid())
|
||||||
|
{
|
||||||
|
if (!$dir->isDot())
|
||||||
|
{
|
||||||
|
$ext = pathinfo($dir->getSubPathName());
|
||||||
|
if ($ext['extension']=="md")
|
||||||
|
{
|
||||||
|
array_push($files,$dir->getSubPathName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$dir->next();
|
||||||
|
}
|
||||||
|
ksort($files);
|
||||||
|
return $files;
|
||||||
|
}
|
||||||
|
|
||||||
|
function glossary($path){
|
||||||
|
$dir = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path));
|
||||||
|
$files = $matches = array();
|
||||||
|
while($dir->valid())
|
||||||
|
{
|
||||||
|
if (!$dir->isDot())
|
||||||
|
{
|
||||||
|
$ext = pathinfo($dir->getSubPathName());
|
||||||
|
if ($ext['extension']=="md")
|
||||||
|
{
|
||||||
|
$letter=strtoupper(substr(basename($dir->getSubPathName()),0,1));
|
||||||
|
if (!array_key_exists($letter,$files))
|
||||||
|
$files[$letter]=array();
|
||||||
|
array_push($files[$letter],$dir->getSubPathName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$dir->next();
|
||||||
|
}
|
||||||
|
ksort($files);
|
||||||
|
return $files;
|
||||||
|
}
|
||||||
|
|
||||||
|
function searchstr($path, $string){
|
||||||
|
$dir = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path));
|
||||||
|
$files = array();
|
||||||
|
$totalFiles = 0;
|
||||||
|
while($dir->valid())
|
||||||
|
{
|
||||||
|
if (!$dir->isDot())
|
||||||
|
{
|
||||||
|
$ext = pathinfo($dir->getSubPathName());
|
||||||
|
if ($ext['extension']=="md")
|
||||||
|
{
|
||||||
|
$content = file_get_contents(CONTENT_DIR.$dir->getSubPathName());
|
||||||
|
$pos=strpos($content, $string);
|
||||||
|
if ($pos > 0)
|
||||||
|
{
|
||||||
|
$posmin=$pos-150;
|
||||||
|
$quantity=300;
|
||||||
|
if ($posmin<0)
|
||||||
|
$posmin=0;
|
||||||
|
$files[$dir->getSubPathName()] = substr(str_replace($string,'<span class="found">'.$string."</span>",$content), $posmin, $quantity);
|
||||||
|
$totalFiles++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$dir->next();
|
||||||
|
}
|
||||||
|
ksort($files);
|
||||||
|
return array('files' => $files, 'totalFiles' => $totalFiles);
|
||||||
|
}
|
||||||
|
|
||||||
|
function history($file)
|
||||||
|
{
|
||||||
|
if (is_numeric(MAX_HISTORY_FILES) && MAX_HISTORY_FILES > 0) {
|
||||||
|
$file_dir = dirname($file);
|
||||||
|
$file_name = basename($file);
|
||||||
|
$file_history_dir = HISTORY_DIR . '/' . str_replace(MAIN_DIR, '', $file_dir);
|
||||||
|
foreach ([HISTORY_DIR, $file_history_dir] as $dir) {
|
||||||
|
if (file_exists($dir) === false || is_dir($dir) === false) {
|
||||||
|
mkdir($dir);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$history_files = scandir($file_history_dir);
|
||||||
|
foreach ($history_files as $key => $history_file) {
|
||||||
|
if (in_array($history_file, ['.', '..', '.DS_Store'])) {
|
||||||
|
unset($history_files[$key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$history_files = array_values($history_files);
|
||||||
|
if (count($history_files) >= MAX_HISTORY_FILES) {
|
||||||
|
foreach ($history_files as $key => $history_file) {
|
||||||
|
if ($key < 1) {
|
||||||
|
unlink($file_history_dir . DS . $history_file);
|
||||||
|
unset($history_files[$key]);
|
||||||
|
} else {
|
||||||
|
rename($file_history_dir . DS . $history_file, $file_history_dir . DS . $file_name . '.' . ($key - 1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
copy($file, $file_history_dir . DS . $file_name . '.' . count($history_files));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function setcontent($url,$data)
|
||||||
|
{
|
||||||
|
$file = CONTENT_DIR.$url;
|
||||||
|
if (!file_exists($file))
|
||||||
|
{
|
||||||
|
file_put_contents($file, $data);
|
||||||
|
$content='success|Fichier créé.';
|
||||||
|
}
|
||||||
|
else if (is_writable($file))
|
||||||
|
{
|
||||||
|
file_put_contents($file, $data);
|
||||||
|
//history($file);
|
||||||
|
$content='success|Fichier enregistré.';
|
||||||
|
}
|
||||||
|
else if (!is_writable($file))
|
||||||
|
$content='danger|Fichier protégé.';
|
||||||
|
else
|
||||||
|
$content='danger|Erreur indéterminée.';
|
||||||
|
return $content;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getcontent($url,$md=true)
|
||||||
|
{
|
||||||
|
$file = CONTENT_DIR.$url;
|
||||||
|
if (file_exists($file))
|
||||||
|
$content=file_get_contents($file);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
http_response_code(404);
|
||||||
|
if (file_exists(CONTENT_DIR . "special/404.md"))
|
||||||
|
$content=getcontent("special/404.md");
|
||||||
|
else
|
||||||
|
$content="** Erreur 404 sur erreur 404 : pas de fichier 404.md**";
|
||||||
|
}
|
||||||
|
if ($md==true)
|
||||||
|
{
|
||||||
|
$extra = new ParsedownExtra();
|
||||||
|
return $extra->text($content);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return $content;
|
||||||
|
}
|
||||||
|
|
||||||
|
function filesJSON($path,$all,$first=true)
|
||||||
|
{
|
||||||
|
$alldata = array();
|
||||||
|
$dir= new DirectoryIterator($path);
|
||||||
|
foreach($dir as $node)
|
||||||
|
{
|
||||||
|
if (($node->getFilename() =="special") || (SHOW_HIDDEN_FILES === false && substr($node->getFilename(), 0, 1) === '.') || (($node->getExtension() != VIEWABLE_FORMAT && $all==false) && $node->isFile())) continue;
|
||||||
|
$data = array();
|
||||||
|
if ( $node->isDir() && !$node->isDot() )
|
||||||
|
{
|
||||||
|
$data['text'] = $node->getFilename();
|
||||||
|
$data['children'] = filesJSON($path.$node->getFilename()."/",$all,false);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ($all)
|
||||||
|
$data['text'] = $node->getFilename();
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$file = pathinfo($node->getFilename());
|
||||||
|
$data['text'] = $file['filename'];
|
||||||
|
}
|
||||||
|
$data['icon'] = "jstree-file";
|
||||||
|
}
|
||||||
|
$alldata[]=$data;
|
||||||
|
}
|
||||||
|
if ($first)
|
||||||
|
return array('text'=>$_SERVER['SERVER_NAME'],'children'=>$alldata,'state' => array('opened'=>true));
|
||||||
|
else
|
||||||
|
return $alldata;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getnav()
|
||||||
|
{
|
||||||
|
$menu=getcontent("special/nav.md");
|
||||||
|
$menuitems=explode("\n",$menu);
|
||||||
|
$data="";
|
||||||
|
foreach($menuitems as $item)
|
||||||
|
{
|
||||||
|
$item=str_replace("</p>","",str_replace("<p>","",$item));
|
||||||
|
$a = new SimpleXMLElement($item);
|
||||||
|
$data.='<a class="dropdown-item" href="'.$a['href'].'">'.$a[0].'</a>';
|
||||||
|
}
|
||||||
|
$data.='<a class="dropdown-item" href=":APROPOS">Sur MarkDoc...</a>';
|
||||||
|
return $data;
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"path": "."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,131 @@
|
||||||
|
# MarkDoc
|
||||||
|
|
||||||
|
PHP MarkDown document manager, Free & OpenSource :heart_eyes: for easily create your documentation website**
|
||||||
|
```
|
||||||
|
__ __ _ _____
|
||||||
|
| \/ | | | | __ \
|
||||||
|
| \ / | __ _ _ __| | _| | | | ___ ___
|
||||||
|
| |\/| |/ _` | \'__| |/ / | | |/ _ \ / __|
|
||||||
|
| | | | (_| | | | <| |__| | (_) | (__
|
||||||
|
|_| |_|\__,_|_| |_|\_\_____/ \___/ \___|
|
||||||
|
```
|
||||||
|
|
||||||
|
![gplV3](https://www.gnu.org/graphics/gplv3-127x51.png) Sous licence GPLv3 [Licence](/special/gpl-3.0.md) - *Sources téléchargéables sur [GitHub](https://github.com/dahut87/MarkDoc)*
|
||||||
|
|
||||||
|
Based on Pheditor "PHP file editor" By Hamid Samak Release under MIT license
|
||||||
|
|
||||||
|
*Specials thanks to Hamid Samak*
|
||||||
|
|
||||||
|
2020 par Nicolas H.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### Actual
|
||||||
|
|
||||||
|
1. Simple Website with customizables menus
|
||||||
|
2. Markdown Editor with syntax highlighting and Emoji support
|
||||||
|
3. Very fast loading with ajax support
|
||||||
|
4. Multiple websites hosting with single MarkDoc installation
|
||||||
|
3. Integrated Image viewer
|
||||||
|
4. Restricted access by ip address
|
||||||
|
5. Admin access logging
|
||||||
|
|
||||||
|
### Planned
|
||||||
|
|
||||||
|
1. Complete File Manager
|
||||||
|
2. Password protected area
|
||||||
|
3. Keeping the history of edited files and changes
|
||||||
|
4. Configuration viewer
|
||||||
|
5. Emoji menu in Markdown editor
|
||||||
|
6. Uploading multiple files by drag and drop
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Installation using git
|
||||||
|
|
||||||
|
```
|
||||||
|
git clone https://github.com/dahut87/MarkDoc.git [website_root]
|
||||||
|
```
|
||||||
|
|
||||||
|
Install Emoji data and copy Emoji data to the "emoji-data"
|
||||||
|
|
||||||
|
```
|
||||||
|
wget https://github.com/iamcal/emoji-data/archive/v6.0.0.zip
|
||||||
|
unzip v6.0.0.zip
|
||||||
|
mv emoji-data-v6.0.0 emoji-data
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
There is a sample website in the "[website_root]/hosts/locahost" directory. It's easy to add a new one, you create one subfolder by name served by your webserver.
|
||||||
|
|
||||||
|
```
|
||||||
|
[website_root]/hosts/example.com
|
||||||
|
[website_root]/hosts/test.sample.fr
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
The configuration file is named 'config.php', is located in the [website_root]/hosts/[host]/config.php.
|
||||||
|
|
||||||
|
List of the parameters you can modify
|
||||||
|
```
|
||||||
|
define('SUBCONTENT_DIR', 'content');
|
||||||
|
define('SHOW_HIDDEN_FILES', false);
|
||||||
|
define('VIEWABLE_FORMAT', 'md');
|
||||||
|
define('TITLE', 'Documentation');
|
||||||
|
define('ICON', 'fa-book-open');
|
||||||
|
define('ALLOWED_EXT','jpg,svg,gif,png,c,tgz,tar.gz,gz,tar,sql,ico');
|
||||||
|
define('PASSWORD', '[sha512 encoded password]');
|
||||||
|
define('LOG_FILE', 'log.txt');
|
||||||
|
define('ACCESS_IP', '');
|
||||||
|
define('HISTORY_FILE', 'history.txt');
|
||||||
|
define('MAX_HISTORY_FILES', 5);
|
||||||
|
```
|
||||||
|
|
||||||
|
**NOTE**:
|
||||||
|
The default password is `admin`. Please change the password after install or first login.
|
||||||
|
|
||||||
|
## Dependences
|
||||||
|
|
||||||
|
### Emoji Support
|
||||||
|
|
||||||
|
*Thanks to Cal Henderson*
|
||||||
|
|
||||||
|
* https://github.com/iamcal/js-emoji
|
||||||
|
* https://github.com/iamcal/php-emoji
|
||||||
|
* https://github.com/iamcal/emoji-data
|
||||||
|
|
||||||
|
### Converting Markdown
|
||||||
|
|
||||||
|
*Thanks to Emanuil Rusev*
|
||||||
|
|
||||||
|
* https://github.com/erusev/parsedown-extra
|
||||||
|
* https://github.com/erusev/parsedown
|
||||||
|
|
||||||
|
### Editing markdown
|
||||||
|
|
||||||
|
*Thanks to Wes Cossick*
|
||||||
|
|
||||||
|
* https://github.com/sparksuite/simplemde-markdown-editor
|
||||||
|
|
||||||
|
### Syntax highlighting
|
||||||
|
|
||||||
|
* https://github.com/PrismLibrary/Prism
|
||||||
|
|
||||||
|
### Icons
|
||||||
|
|
||||||
|
* https://github.com/FortAwesome/Font-Awesome
|
||||||
|
|
||||||
|
### Essential
|
||||||
|
|
||||||
|
* https://github.com/twbs/bootstrap
|
||||||
|
* https://github.com/jquery/jquery
|
||||||
|
* https://github.com/popperjs/popper-core
|
||||||
|
* https://github.com/zenorocha/clipboard.js
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue