commit 767c35924da98510ae9bdc1687ff1fede8e47ab8 Author: fordprefect Date: Wed Dec 30 15:34:50 2020 +0100 initial commit diff --git a/index.html b/index.html new file mode 100644 index 0000000..f95d2bc --- /dev/null +++ b/index.html @@ -0,0 +1,20 @@ + +Upload + + + +
+

Datei-Upload

+ +Dateien können nur einzeln hochgeladen werden, es bietet sich also an die Dateien in ein Archiv (zip, tar o.ä.) zu verpacken. +Uploads bitte per Mail an mich ankündigen, sonst kriege ich es evtl nicht mit.
+Danke! +
+ +
+Datei auswählen:
+ + +
+
+ diff --git a/style.css b/style.css new file mode 100644 index 0000000..477118f --- /dev/null +++ b/style.css @@ -0,0 +1,36 @@ +div.box { + color:#cecece; + background-image: url('https://dukun.de/linen_login.jpg'); + background-size: 100%; + width: 100%; + height: 90%; + margin: 0px auto; + overflow: auto; + padding:10px; + border-radius:10px; + box-shadow: 0px 0px 20px #000; +} + +body { + background-image:url('https://dukun.de/linen.jpg'); + background-repeat:repeat; +} + +div.head { + width: 90%; + margin: auto; +} + +div.foot { + width: 90%; + margin:auto; + margin-top:20px; +} + +div.foot a { + color: #0000aa; +} + +a { + color:#8080ee; +} diff --git a/up.run b/up.run new file mode 100755 index 0000000..7d3a592 --- /dev/null +++ b/up.run @@ -0,0 +1,30 @@ +#!/usr/bin/python +print("Content-type: text/html\n") +import os +import cgi +import cgitb + + +origin_url = "https://augustiner-kantorei.de/upload" + +cgitb.enable() +form = cgi.FieldStorage() +fileitem = form['myfile'] + +if fileitem.filename: +# strip leading path from file name to avoid +# directory traversal attacks + fn = os.path.basename(fileitem.filename) + open('../downloads/' + fn, 'wb').write(fileitem.file.read()) + +print(f""" + + + + + +

Erfolgreich hochgeladen

+Zurück zur Maske + + +""")