From 25c230a42728c9e4ef902a8e6e77917c9b11560e Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Wed, 21 Feb 2018 19:28:02 +0100 Subject: [PATCH] first commit --- css/prism.css | 138 ++++++++++++++++++++++ css/style.css | 80 +++++++++++++ index.php | 309 ++++++++++++++++++++++++++++++++++++++++++++++++++ js/prism.js | 7 ++ update.php | 28 +++++ version.txt | 1 + 6 files changed, 563 insertions(+) create mode 100644 css/prism.css create mode 100644 css/style.css create mode 100644 index.php create mode 100644 js/prism.js create mode 100644 update.php create mode 100644 version.txt diff --git a/css/prism.css b/css/prism.css new file mode 100644 index 0000000..ebc633c --- /dev/null +++ b/css/prism.css @@ -0,0 +1,138 @@ +/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+less */ +/** + * 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; + text-shadow: 0 1px white; + font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; + direction: ltr; + 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; +} + +.token.comment, +.token.prolog, +.token.doctype, +.token.cdata { + color: slategray; +} + +.token.punctuation { + color: #999; +} + +.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: #a67f59; + background: hsla(0, 0%, 100%, .5); +} + +.token.atrule, +.token.attr-value, +.token.keyword { + color: #07a; +} + +.token.function { + 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; +} + diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..f2e7896 --- /dev/null +++ b/css/style.css @@ -0,0 +1,80 @@ +.site-content { + text-align: left; + max-width: 940px; + margin-left: auto; + margin-right: auto; + margin-top: 60px; + margin-bottom: 90px; + font-family: 'Enriqueta', serif; +} +.site-content h1 { + margin-top: 0; + font-family: 'Roboto', Arial, sans-serif; +} +.site-content p { + margin-bottom: 25px; + line-height: 1.8; +} +.site-content pre { + position: relative; + padding: 30px; +} + +.copy-button { + cursor: pointer; + border: 0; + font-size: 10px; + text-transform: uppercase; + font-weight: 500; + padding: 6px 10px 10px; + color: #795548; + background-color: transparent; + position: absolute; + top: 0; + right: 0; +} + +.copy-button:hover, +.copy-button:focus, +.copy-button:active { + outline: 0; + background-color: #eee9e6; +} + +.copy-button:before { + content: ''; + display: inline-block; + width: 16px; + height: 16px; + margin-right: 3px; + background-size: contain; + background-image: url('../img/clipboard.svg'); + background-repeat: no-repeat; + position: relative; + top: 3px; +} + +.content-section { + padding: 40px; +} +.content-section--paste { + margin-top: 60px; + background-color: #CFD8DC; +} +.content-section--paste h1 { + font-size: 12px; + color: #546E7A; + text-transform: uppercase; +} + +#paste-content { + border: 2px dashed #B0BEC5; + min-height: 160px; +} +#paste-content:focus { + outline: 0; + border-color: #90A4AE; +} +#paste-content pre { + margin: 0 !important; +} diff --git a/index.php b/index.php new file mode 100644 index 0000000..a3675c9 --- /dev/null +++ b/index.php @@ -0,0 +1,309 @@ + + + + + + + + + + + + + + +
+

Crypteur de Mot de Passe pour les .Htaccess

+
+ Copier la ligne ci-dessous dans le fichier .htpasswd

'; + if (!isset($login)) $login = 'joe'; + if (!isset($pass_crypte)) $pass_crypte = '$1$ndTfdTH2$2nTqNz5KiTfDzAsVhPSu2.'; + echo '
' . $login . ":" . $pass_crypte.'
'; + ?> + +
+

Paste it here

+
+
+ + +
+

Entrez votre login et votre mot de passe pour le crypter.

+
+

Login :
+ +
+
+ Mot de passe :
+ +
+
+
+ +

+
+
+ + + + + +
+


+
+

+
+

Don't Forget!!

+
    +
  • Create file: .htpasswd
  • +
  • Create file: .htaccess
  • +
  • In your web repo.
  • +
+
+

+ +
Exemple Fichier .htaccess
+ + + + +

.htpasswd

.htacces

+
+' . $login . ':' . $pass_crypte.''; ?> +
+
+
+ + AuthName "Restricted Access"
+ AuthGroupFile /dev/null
+ AuthType Basic
+ AuthUserFile /path/to/.htpasswd
+ require valid-user
+
+
+ +
+ +

You have the latest version!

+
"; echo VERSION; +} else { + echo "
Update v."; + echo $script; + echo " available!"; + echo " Your version is v."; + echo VERSION; + // echo "
Latest Version: "; + // echo REMOTE_VERSION; echo $script; + echo "
"; +} +?> + +
+Script by Erreur32 | Version: | + + + + + + + + + +/,prolog:/<\?[\w\W]+?\?>/,doctype://,cdata://i,tag:{pattern:/<\/?[^\s>\/=.]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},Prism.hooks.add("wrap",function(a){"entity"===a.type&&(a.attributes.title=a.content.replace(/&/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup; +Prism.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},Prism.languages.css.atrule.inside.rest=Prism.util.clone(Prism.languages.css),Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/()[\w\W]*?(?=<\/style>)/i,lookbehind:!0,inside:Prism.languages.css,alias:"language-css"}}),Prism.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|').*?\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:Prism.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:Prism.languages.css}},alias:"language-css"}},Prism.languages.markup.tag)); +Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\w\W]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:/(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,"boolean":/\b(true|false)\b/,"function":/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/}; +Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/,"function":/[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i}),Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0}}),Prism.languages.insertBefore("javascript","class-name",{"template-string":{pattern:/`(?:\\`|\\?[^`])*`/,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/()[\w\W]*?(?=<\/script>)/i,lookbehind:!0,inside:Prism.languages.javascript,alias:"language-javascript"}}),Prism.languages.js=Prism.languages.javascript; +Prism.languages.less=Prism.languages.extend("css",{comment:[/\/\*[\w\W]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-]+?(?:\([^{}]+\)|[^(){};])*?(?=\s*\{)/i,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\([^{}]*\)|[^{};@])*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/i,punctuation:/[{}();:,]/,operator:/[+\-*\/]/}),Prism.languages.insertBefore("less","punctuation",{"function":Prism.languages.less.function}),Prism.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-]+.*?(?=[(;])/,lookbehind:!0,alias:"function"}}); diff --git a/update.php b/update.php new file mode 100644 index 0000000..4b23527 --- /dev/null +++ b/update.php @@ -0,0 +1,28 @@ += 400 -> not found, $retcode = 200, found. +echo $retcode; +curl_close($ch); +?> + + +

You have the latest version!

+ "; +} else { + echo "
+

There is a update available!

+
"; +} + +?> diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..49d5957 --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +0.1