initial commit

This commit is contained in:
Sen 2025-05-01 02:56:20 +02:00
commit d5804e7ba7
34 changed files with 1220 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/ripweb
/webroot

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# Website-CMS
Ein CMS in frühem Entwicklungsstadium

603
pagebuilder.py Executable file
View file

@ -0,0 +1,603 @@
#!/usr/bin/env python3
import html
import os
import sys
import shutil
html_self_closing_tags = {"!DOCTYPE", "area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "param", "source", "track", "wbr", "command", "keygen", "menuitem", "frame"}
html_xml_content_tags = {"svg"}
text_url_match = {"/", "http://", "https://"}
traversed_links = set()
config_values = {
"logo": "",
"logo_url": "/",
"blank": False,
"icon": "/favicon.ico",
"stylesheet": "/stylesheet.css",
"title_format": "%t",
"logo_width": "192",
"logo_height": "32"
}
default_theme = {
"background-color": "#f0f0f0",
"text-color": "#7f687f",
"link-color": "#af8faf",
"header-color": "#e0e0e0",
"footer-color": "#e0e0e0",
"top-line-color": "#c0c0c0",
"bottom-line-color": "#c0c0c0",
"container-color": "#f0f0f0",
"content-box-color": "#e8e8e8",
"content-border-tl-color": "#f8f8f8",
"content-border-br-color": "#c8c8c8",
"container-padding": 80,
"content-min-height": 36,
"content-margin": 5,
"content-line-pad": 5,
"content-side-pad": 10,
"header-height": 40,
"header-padding-left": 10,
"header-padding-right": 10,
"header-gap": 5,
"header-elem-size": 32,
"header-line-pad": 4,
"header-side-pad": 10,
"footer-height": 32,
"footer-padding-left": 15,
"footer-padding-right": 15,
"footer-gap": 8,
"footer-elem-size": 20,
"footer-line-pad": 2,
"footer-side-pad": 7,
"line-height": 20,
"text-size": 14,
"header-text-size": 14,
"footer-text-size": 14
}
base_stylesheet = [
("a", {
"color": "[#link-color]",
"text-decoration": "none"
}),
("body", {
"box-sizing": "border-box",
"line-height": "[#line-height]px",
"display": "flex",
"flex-direction": "column",
"background-color": "[#background-color]",
"margin": "0",
"color": "[#text-color]",
"font-size": "[#text-size]px"
}),
(".flex-container", {
"box-sizing": "border-box",
"display": "flex",
"justify-content": "space-between",
"margin": "0"
}),
("nav.flex-container", {
"background-color": "[#header-color]",
"border-style": "solid",
"border-width": "0 0 1px 0",
"border-color": "[#top-line-color]"
}),
("footer.flex-container", {
"background-color": "[#footer-color]",
"border-style": "solid",
"border-width": "1px 0 0 0",
"border-color": "[#bottom-line-color]"
}),
(".full-container", {
"box-sizing": "border-box",
"padding": "0 0 [#container-padding]px 0",
"flex-grow": "1",
"background-color": "[#container-color]",
"margin": "0"
}),
(".base-container", {
"min-height": "[#content-min-height]px",
"align-items": "center",
"box-sizing": "border-box",
"padding": "[#content-line-pad]px [#content-side-pad]px",
"background-color": "[#content-box-color]",
"margin": "[#content-margin]px",
"border-style": "solid",
"border-width": "1px",
"border-color": "[#content-border-tl-color] [#content-border-br-color] [#content-border-br-color] [#content-border-tl-color]"
}),
(".list-container", {
"column-gap": "[#header-gap]px",
"display": "flex",
"min-height": "[#header-height]px",
"row-gap": "[#header-gap]px",
"align-items": "center",
"box-sizing": "border-box",
"padding": "0 [#header-padding-right]px 0 [#header-padding-left]px",
"margin": "0"
}),
(".compact-container", {
"column-gap": "[#footer-gap]px",
"display": "flex",
"min-height": "[#footer-height]px",
"row-gap": "[#footer-gap]px",
"align-items": "center",
"box-sizing": "border-box",
"padding": "0 [#footer-padding-right]px 0 [#footer-padding-left]px",
"margin": "0"
}),
(".list-item", {
"align-items": "center",
"align-self": "center",
"box-sizing": "border-box",
"display": "flex",
"flex-basis": "auto",
"flex-grow": "0",
"flex-shrink": "0",
"min-height": "[#header-elem-size]px",
"min-width": "[#header-elem-size]px",
"padding": "[#header-line-pad]px [#header-side-pad]px",
"margin": "0",
"flex-wrap": "wrap",
"font-size": "[#header-text-size]px"
}),
(".compact-item", {
"align-items": "center",
"align-self": "center",
"box-sizing": "border-box",
"display": "flex",
"flex-basis": "auto",
"flex-grow": "0",
"flex-shrink": "0",
"min-height": "[#footer-elem-size]px",
"min-width": "[#footer-elem-size]px",
"padding": "[#footer-line-pad]px [#footer-side-pad]px",
"margin": "0",
"flex-wrap": "wrap",
"font-size": "[#footer-text-size]px"
}),
("a.nocolor", {
"color": "inherit"
})
]
def tree2html(tree, indent=0):
lines = []
for node in tree:
if type(node) is not tuple or len(node) < 1 or len(node) > 3 or type(node[0]) is not str or (len(node) == 2 and type(node[1]) not in {dict, list}) or (len(node) == 3 and (type(node[1]) is not dict or type(node[2]) is not list)):
raise Exception("element ist not a valid html tuple: (tag), (tag, properties), (tag, children) or (tag, properties, children), got " + str(type(node)) + " (" + str(node) + ")")
props = ""
inner = ""
if len(node) > 1 and type(node[1]) is dict:
for prop, value in node[1].items():
props += ' ' + html.escape(prop) + (('="' + html.escape(value) + '"') if value is not None else "")
if len(node) == 3 or (len(node) == 2 and not props):
if node[0] in html_self_closing_tags:
raise Exception("self closing tag <" + node[0] + "> cannot have children")
lines.append((indent * "\t") + "<" + node[0] + props + ">")
for child in node[2 if len(node) == 3 else 1]:
if type(child) is list:
lines.extend(tree2html(child, indent + 1))
elif type(child) is tuple:
lines.extend(tree2html([child], indent + 1))
elif type(child) is str:
lines.append(((indent + 1) * "\t") + (child if node[0] in html_xml_content_tags else html.escape(child)))
else:
raise Exception("element must be tuple, list or str, got " + str(type(child)) + " (" + str(child) + ")")
lines.append((indent * "\t") + "</" + node[0] + ">")
else:
lines.append((indent * "\t") + "<" + node[0] + props + ">" + (("</" + node[0] + ">") if node[0] not in html_self_closing_tags else ""))
return lines
def get_key_value(text, separator=" "):
space = text.find(separator)
if space < 0:
return (text, None)
else:
return (text[:space], text[space + 1:])
def get_html_tags(line, variables):
if not line:
return None
elif line.startswith("###"):
return [("h1", text2tree(line[3:]))]
elif line.startswith("##"):
return [("h2", text2tree(line[2:]))]
elif line.startswith("#"):
return [("h3", text2tree(line[1:]))]
elif line.startswith("[#") and line.endswith("]"):
key, value = get_key_value(line[2:-1])
match key:
case "svg":
svg = value.split(" ", 6)
return [("svg", {"width": svg[0], "height": svg[1], "viewBox": svg[2] + " " + svg[3] + " " + svg[4] + " " + svg[5]}, [svg[6]])]
case "img":
img = value.split(" ", 2)
src, alt = get_key_value(img[0], ":")
props = {"src": src}
if src.startswith("/"):
global traversed_links
traversed_links.add(src)
if alt is not None:
props["alt"] = alt
if len(img) >= 2 and (img[1].startswith("w:") or img[1].startswith("h:")):
props["width" if img[1].startswith("w:") else "height"] = img[1][2:]
elif len(img) >= 3:
props["width"] = img[1]
props["height"] = img[2]
return [("a", {"href": src}, [("img", props)])]
if key in variables.keys():
return variables[key]
return None
def text2tree(line, nocolor=False):
blank = config_values["blank"]
tree = []
tpos = pos = 0
while True:
lpos = line.find("[", pos)
if lpos < 0:
break
epos = line.find("]", lpos + 1)
if epos < 0:
break
sub = line[lpos + 1:epos]
for prefix in text_url_match:
if sub.startswith(prefix):
url, alt = get_key_value(sub)
props = {"href": url}
if nocolor:
props["class"] = "nocolor"
if prefix == "/":
global traversed_links
traversed_links.add(url)
if blank:
props["target"] = "_blank"
if tpos < lpos:
tree.append(line[tpos:lpos])
tree.append(("a", props, [alt if alt else url]))
tpos = epos + 1;
break
pos = epos + 1;
if tpos < len(line):
tree.append(line[tpos:])
return tree
def lines2tree(text, variables):
tree = []
paragraph = []
for line in text:
tags = get_html_tags(line, variables)
if tags:
if paragraph:
tree.append(("p", paragraph))
paragraph = []
tree.extend(tags)
continue
if paragraph:
paragraph.append(("br",))
paragraph.extend(text2tree(line))
if paragraph:
tree.append(("p", paragraph))
return tree
def line2tree(line, variables, nocolor):
tags = get_html_tags(line, variables)
if tags:
return tags
return text2tree(line, nocolor)
def filter_text(data):
for elem in data:
if type(elem) is tuple and elem[0] in {"svg", "img"}:
return [("span", [elem]) if type(elem) is str else elem for elem in data]
return [("span", data)]
def filter_entry(entry, clazz):
elem = entry if type(entry) is not list or len(entry) == 0 else entry[0]
if type(elem) == tuple and len(elem) >= 2 and type(elem[1]) == dict and "class" in elem[1].keys() and clazz + "-item" in elem[1]["class"].split(" "):
return entry if type(entry) == list else [entry]
else:
return [("p", {"class": clazz + "-item"}, filter_text(entry))]
def make_element(elems, variables, clazz):
tree = []
arr = None
for elem in elems:
if type(elem) is list:
data = elem
elif type(elem) is tuple:
data = [elem]
elif type(elem) is str:
if elem == "[":
if arr is not None:
data = arr
arr = []
else:
arr = []
continue
elif elem == "]":
if arr is None:
continue
data = arr
arr = None
else:
data = line2tree(elem, variables, clazz == "list")
if arr is not None:
arr.extend(data)
continue
else:
data = str(elem)
tree.extend(filter_entry(data, clazz))
if arr is not None:
tree.extend(filter_entry(arr, clazz))
return ("div", {"class": clazz + "-container"}, tree)
def make_head(title):
return [
("meta", {"http-equiv": "content-type", "content": "text/html; charset=UTF-8"}),
("title", [config_values["title_format"].replace("%t", title)]),
("link", {"rel": "icon", "type": "image/x-icon", "href": config_values["icon"]}),
("link", {"rel": "stylesheet", "href": config_values["stylesheet"]})
]
def make_links(pages, clazz):
logo = config_values["logo"]
logo_url = config_values["logo_url"]
logo_width = config_values["logo_width"]
logo_height = config_values["logo_height"]
nav = []
if logo:
alt = "Logo"
for page in pages:
if page["url"] is logo_url:
if page["name"]:
alt = page["name"]
break
nav.append(("a", {"href": logo_url, "class": clazz + "-item nocolor"}, [("img", {"width": logo_width, "height": logo_height, "src": logo, "alt": "Logo"})]))
nav.extend([("a", {"href": page["url"], "class": clazz + "-item nocolor"}, [page["name"]]) for page in pages if page["name"] and (not logo or page["url"] is not logo_url)])
return nav
def make_bar(left, center, right, pages, variables, clazz, tag):
variables = variables.copy()
variables["nav"] = make_links(pages, clazz)
bar = [make_element(left, variables, clazz), make_element(right, variables, clazz)]
if center:
bar = [bar[0], make_element(center, variables, clazz), bar[1]]
return (tag, {"class": "flex-container"}, bar)
def make_content(sections, variables):
tree = []
for section in sections:
tree.append(("div", {"class": "base-container"}, lines2tree(section, variables)))
return ("div", {"class": "full-container"}, tree)
def compile_page(page, header, footer, variables):
return [("!DOCTYPE", {"html": None}), ("html", [("head", make_head(page["title"])), ("body", [header, make_content(page["sections"], variables), footer])])]
def sort_pages(page):
return page["sort"]
def compile_pages(pages):
pages.sort(key=sort_pages)
variables = {
}
header = make_bar(read_list("header/left", ["[#nav]"]), read_list("header/center"), read_list("header/right"), pages, variables, "list", "nav")
footer = make_bar(read_list("footer/left"), read_list("footer/center"), read_list("footer/right"), pages, variables, "compact", "footer")
return [(page["file"], compile_page(page, header, footer, variables)) for page in pages]
def read_page(filename):
path = os.path.join(config_values["indir"], filename + ".sml")
print("Reading " + path)
with open(path, "r") as fd:
data = fd.read().splitlines()
page = {
"name": None,
"title": filename,
"sort": 0
}
sections = []
subpage = []
for line in data:
if line.startswith("[#") and line.endswith("]"):
key, value = get_key_value(line[2:-1])
match key:
case "name":
page["name"] = value
case "title":
page["title"] = value
case "sort":
page["sort"] = int(value)
case "index":
if os.path.basename(filename) != "index":
filename = os.path.join(filename, "index")
case "":
sections.append(subpage)
subpage = []
case _:
subpage.append(line)
else:
subpage.append(line)
if subpage:
sections.append(subpage)
page["sections"] = sections
page["url"] = get_file_url(filename)
page["file"] = filename
return page
def read_list(filename, default=[], directory=None):
path = os.path.join(config_values["indir"] if directory is None else directory, filename + ".sml")
if not os.path.exists(path):
if default is not None:
print("Writing default " + path)
base = os.path.dirname(path)
if not os.path.exists(base):
os.makedirs(base)
with open(path, "w") as fd:
fd.write('\n'.join(default))
return default
return []
print("Reading " + path)
with open(path, "r") as fd:
data = fd.read().splitlines()
return data
def write_page(filename, data, extension="html"):
filename += (("." + extension) if extension else "")
path = os.path.join(config_values["outdir"], filename)
print("Writing " + path)
base = os.path.dirname(path)
if not os.path.exists(base):
os.makedirs(base)
with open(path, "w") as fd:
fd.write('\n'.join(data))
return filename
def read_pages():
directory = config_values["indir"]
pages = []
for root, dirs, files in os.walk(directory):
for filename in files:
if not filename.endswith(".sml"):
continue
path = os.path.join(os.path.relpath(root, directory), filename)
path = path[2:-4] if path.split(os.sep)[0] == "." else path[:-4]
if os.path.dirname(path) not in {"header", "footer"} and path != "config" and path != "theme":
pages.append(read_page(path))
return pages
def copy_file(filename):
ipath = os.path.join(config_values["indir"], filename)
opath = os.path.join(config_values["outdir"], filename)
if not os.path.exists(ipath):
print("Warning: file " + ipath + " does not exist")
return
print("Copying " + ipath + " to " + opath)
base = os.path.dirname(opath)
if not os.path.exists(base):
os.makedirs(base)
shutil.copy(ipath, opath)
def read_config(directory, output):
global config_values
config = read_list("config", [" [#" + (prop if type(value) is bool else prop + " " + str(value)) + "]" for prop, value in config_values.items()], directory)
for cfg in config:
if cfg.startswith("[#") and cfg.endswith("]"):
prop, value = get_key_value(cfg[2:-1])
if prop not in config_values.keys():
print("Warning: config value '" + prop + "' is unknown")
continue
ovalue = config_values[prop]
if value is None:
if type(ovalue) is not bool:
print("Warning: config value '" + prop + "' needs an argument")
continue
value = True
elif type(ovalue) is bool:
if value.lower() != "true" and value.lower() != "false":
print("Warning: unknown bool value for config value '" + prop + "'")
continue
value = value.lower() == "true"
print("Warning: redundant bool value for config value '" + prop + "'")
config_values[prop] = value
config_values["indir"] = directory
config_values["outdir"] = output
for prop, value in config_values.items():
print(prop + " = " + str(value))
def add_default_links():
global traversed_links
for key in "logo", "icon", "stylesheet":
if config_values[key].startswith("/"):
traversed_links.add(config_values[key])
def read_theme():
theme = read_list("theme", ["[#" + prop + " " + str(value) + "]" for prop, value in default_theme.items()])
style = {prop: str(value) for prop, value in default_theme.items()}
for line in theme:
if line.startswith("[#") and line.endswith("]"):
prop, value = get_key_value(line[2:-1])
if prop not in default_theme.keys():
print("Warning: theme property '" + prop + "' is unknown")
continue
if value is None:
continue
if type(default_theme[prop]) is int:
test = int(value)
style[prop] = value
return style
def compile_stylesheet(classes, variables):
lines = []
for clazz, props in classes:
lines.append(clazz + " {")
for prop, value in props.items():
plain = ""
tpos = pos = 0
while True:
lpos = value.find("[#", pos)
if lpos < 0:
break
epos = value.find("]", lpos + 2)
if epos < 0:
break
key, _ = get_key_value(value[lpos + 2:epos])
if key in variables.keys():
if tpos < lpos:
plain += value[tpos:lpos]
plain += variables[key]
tpos = epos + 1;
pos = epos + 1;
if tpos < len(value):
plain += value[tpos:]
lines.append("\t" + prop + ": " + plain + ";")
lines.append("}")
return lines
def write_stylesheet(style):
return write_page(config_values["stylesheet"][1:], style, extension=None)
def write_pages(pages):
written = set()
for path, tree in pages:
written.add(write_page(path, tree2html(tree)))
return written
def get_url_file(url):
url = url[1:]
return url if "." in url else ("index.html" if not url else os.path.join(url[:-1] if url.endswith("/") else url, "index.html"))
def get_file_url(filename):
return "/" + (("" if filename == "index" else os.path.dirname(filename)) if os.path.basename(filename) == "index" else (filename + ".html"))
def copy_linked_files(written):
for url in traversed_links:
filename = get_url_file(url)
if filename not in written:
copy_file(filename)
def clean_directory():
output = config_values["outdir"]
if os.path.exists(output):
shutil.rmtree(output)
def main():
if len(sys.argv) < 2:
print(sys.argv[0] + " <indir> <outdir>")
return
read_config(sys.argv[1], sys.argv[2])
add_default_links()
pages = read_pages()
theme = read_theme()
pages = compile_pages(pages)
style = compile_stylesheet(base_stylesheet, theme)
clean_directory()
written = write_pages(pages)
written.add(write_stylesheet(style))
copy_linked_files(written)
if __name__ == "__main__":
main()

5
sen.gay/about.sml Normal file
View file

@ -0,0 +1,5 @@
[#name Über]
[#title Über diese Website]
[#index]
[#sort 3]
TODO: Infotext hier hin schreiben ...

8
sen.gay/config.sml Normal file
View file

@ -0,0 +1,8 @@
[#logo /image/logo.png]
[#logo_url /]
[#blank]
[#icon /favicon.ico]
[#stylesheet /stylesheet.css]
[#title_format %t - Sen]
[#logo_width 384]
[#logo_height 64]

BIN
sen.gay/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View file

@ -0,0 +1 @@
Website designt von [/about Sen]

1
sen.gay/footer/left.sml Normal file
View file

@ -0,0 +1 @@
Lizensiert unter [/license/cc-by-nc-sa-4.0.txt CC BY-NC-SA 4.0]

5
sen.gay/footer/right.sml Normal file
View file

@ -0,0 +1,5 @@
[/legal Datenschutz und Rechtliches]
[
Copyleft
[#svg 18 18 0 0 512 512 <circle cx="256" cy="256" r="180" fill="none" stroke="#8f30ff" stroke-width="40"/><path d="M 146.1 229.7 H 198.5 a 60 60 90 1 1 0 50 H 146.1 a 110 110 90 1 0 0 -50 z" fill="#8f30ff"/>]
]

View file

1
sen.gay/header/left.sml Normal file
View file

@ -0,0 +1 @@
[#nav]

3
sen.gay/header/right.sml Normal file
View file

@ -0,0 +1,3 @@
[https://images.sen.gay Bilder und Medien]
[https://forge.sen.gay Forgejo-Instanz]
[https://sen.rip Die Gruftstube 🖤]

BIN
sen.gay/image/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

7
sen.gay/index.sml Normal file
View file

@ -0,0 +1,7 @@
[#name Hauptseite]
[#title Abgründe der Hölle]
[#sort -1]
#Miau :3
Website hat leider noch keinen (oder kaum) Inhalt
[#]
* Dies ist ein vorläufiger Test des CMS *

21
sen.gay/legal.sml Normal file
View file

@ -0,0 +1,21 @@
[#title Rechtliches]
[#index]
##Datenschutzerklärung
Diese Website verwendet keinerlei Cookies oder Tracking, es werden auch sonst keine Daten erhoben.
[#]
##Rechtliche Informationen
Alles was hier präsentiert wird ist verfolgt keine kommerziellen Absichten, daher kann auf ein Impressum verzichtet werden.
Redaktionelle Inhalte, Journalismus und Werbung werden hier nicht bereitgestellt.
#Urheberrecht / Copyright
Inhalte auf dieser Seite unterliegen hauptsächlich der Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License, diese kann unter [/license/cc-by-nc-sa-4.0.txt diesem Link] angesehen werden.
Alles Andere was nicht unter diese Lizenz fällt oder nicht von mir stammt wird mit ensprechenden Lizenzen und den Autoren gekennzeichnet.
Falls festgestellt wird, das sich Inhalte auf dieser Seite befinden die das Urheberrecht verletzen, bitte ich darum mir dies mitzuteilen. Wenn eine tatsächliche Verletzung des Urheberrechts festgestellt wird, werde ich den Inhalt umgehend von der Seite entfernen.
#Externe Seiten
Für externe Links kann sind die Betreiber der entsprechenden Seiten selbst verantwortlich, es kann keine Haftung übernommen werden.
Alle Verweise auf andere Seiten wurden nach bestem Gewissen geprüft und dessen Inhalte haben zum Zeitpunkt der Überprüfung kein geltendes Recht verletzt.
Es ist nicht möglich permanent alle Seiten auf eventuelle Änderungen zu kontrollieren. Sollte aber eine Problematik mit einer Seite bekannt werden, werde ich die Links dorthin umgehend entfernen.
[#]
##Kontakt
Mail: imail at sen punkt gay

View file

@ -0,0 +1,438 @@
Attribution-NonCommercial-ShareAlike 4.0 International
=======================================================================
Creative Commons Corporation ("Creative Commons") is not a law firm and
does not provide legal services or legal advice. Distribution of
Creative Commons public licenses does not create a lawyer-client or
other relationship. Creative Commons makes its licenses and related
information available on an "as-is" basis. Creative Commons gives no
warranties regarding its licenses, any material licensed under their
terms and conditions, or any related information. Creative Commons
disclaims all liability for damages resulting from their use to the
fullest extent possible.
Using Creative Commons Public Licenses
Creative Commons public licenses provide a standard set of terms and
conditions that creators and other rights holders may use to share
original works of authorship and other material subject to copyright
and certain other rights specified in the public license below. The
following considerations are for informational purposes only, are not
exhaustive, and do not form part of our licenses.
Considerations for licensors: Our public licenses are
intended for use by those authorized to give the public
permission to use material in ways otherwise restricted by
copyright and certain other rights. Our licenses are
irrevocable. Licensors should read and understand the terms
and conditions of the license they choose before applying it.
Licensors should also secure all rights necessary before
applying our licenses so that the public can reuse the
material as expected. Licensors should clearly mark any
material not subject to the license. This includes other CC-
licensed material, or material used under an exception or
limitation to copyright. More considerations for licensors:
wiki.creativecommons.org/Considerations_for_licensors
Considerations for the public: By using one of our public
licenses, a licensor grants the public permission to use the
licensed material under specified terms and conditions. If
the licensor's permission is not necessary for any reason--for
example, because of any applicable exception or limitation to
copyright--then that use is not regulated by the license. Our
licenses grant only permissions under copyright and certain
other rights that a licensor has authority to grant. Use of
the licensed material may still be restricted for other
reasons, including because others have copyright or other
rights in the material. A licensor may make special requests,
such as asking that all changes be marked or described.
Although not required by our licenses, you are encouraged to
respect those requests where reasonable. More considerations
for the public:
wiki.creativecommons.org/Considerations_for_licensees
=======================================================================
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
Public License
By exercising the Licensed Rights (defined below), You accept and agree
to be bound by the terms and conditions of this Creative Commons
Attribution-NonCommercial-ShareAlike 4.0 International Public License
("Public License"). To the extent this Public License may be
interpreted as a contract, You are granted the Licensed Rights in
consideration of Your acceptance of these terms and conditions, and the
Licensor grants You such rights in consideration of benefits the
Licensor receives from making the Licensed Material available under
these terms and conditions.
Section 1 -- Definitions.
a. Adapted Material means material subject to Copyright and Similar
Rights that is derived from or based upon the Licensed Material
and in which the Licensed Material is translated, altered,
arranged, transformed, or otherwise modified in a manner requiring
permission under the Copyright and Similar Rights held by the
Licensor. For purposes of this Public License, where the Licensed
Material is a musical work, performance, or sound recording,
Adapted Material is always produced where the Licensed Material is
synched in timed relation with a moving image.
b. Adapter's License means the license You apply to Your Copyright
and Similar Rights in Your contributions to Adapted Material in
accordance with the terms and conditions of this Public License.
c. BY-NC-SA Compatible License means a license listed at
creativecommons.org/compatiblelicenses, approved by Creative
Commons as essentially the equivalent of this Public License.
d. Copyright and Similar Rights means copyright and/or similar rights
closely related to copyright including, without limitation,
performance, broadcast, sound recording, and Sui Generis Database
Rights, without regard to how the rights are labeled or
categorized. For purposes of this Public License, the rights
specified in Section 2(b)(1)-(2) are not Copyright and Similar
Rights.
e. Effective Technological Measures means those measures that, in the
absence of proper authority, may not be circumvented under laws
fulfilling obligations under Article 11 of the WIPO Copyright
Treaty adopted on December 20, 1996, and/or similar international
agreements.
f. Exceptions and Limitations means fair use, fair dealing, and/or
any other exception or limitation to Copyright and Similar Rights
that applies to Your use of the Licensed Material.
g. License Elements means the license attributes listed in the name
of a Creative Commons Public License. The License Elements of this
Public License are Attribution, NonCommercial, and ShareAlike.
h. Licensed Material means the artistic or literary work, database,
or other material to which the Licensor applied this Public
License.
i. Licensed Rights means the rights granted to You subject to the
terms and conditions of this Public License, which are limited to
all Copyright and Similar Rights that apply to Your use of the
Licensed Material and that the Licensor has authority to license.
j. Licensor means the individual(s) or entity(ies) granting rights
under this Public License.
k. NonCommercial means not primarily intended for or directed towards
commercial advantage or monetary compensation. For purposes of
this Public License, the exchange of the Licensed Material for
other material subject to Copyright and Similar Rights by digital
file-sharing or similar means is NonCommercial provided there is
no payment of monetary compensation in connection with the
exchange.
l. Share means to provide material to the public by any means or
process that requires permission under the Licensed Rights, such
as reproduction, public display, public performance, distribution,
dissemination, communication, or importation, and to make material
available to the public including in ways that members of the
public may access the material from a place and at a time
individually chosen by them.
m. Sui Generis Database Rights means rights other than copyright
resulting from Directive 96/9/EC of the European Parliament and of
the Council of 11 March 1996 on the legal protection of databases,
as amended and/or succeeded, as well as other essentially
equivalent rights anywhere in the world.
n. You means the individual or entity exercising the Licensed Rights
under this Public License. Your has a corresponding meaning.
Section 2 -- Scope.
a. License grant.
1. Subject to the terms and conditions of this Public License,
the Licensor hereby grants You a worldwide, royalty-free,
non-sublicensable, non-exclusive, irrevocable license to
exercise the Licensed Rights in the Licensed Material to:
a. reproduce and Share the Licensed Material, in whole or
in part, for NonCommercial purposes only; and
b. produce, reproduce, and Share Adapted Material for
NonCommercial purposes only.
2. Exceptions and Limitations. For the avoidance of doubt, where
Exceptions and Limitations apply to Your use, this Public
License does not apply, and You do not need to comply with
its terms and conditions.
3. Term. The term of this Public License is specified in Section
6(a).
4. Media and formats; technical modifications allowed. The
Licensor authorizes You to exercise the Licensed Rights in
all media and formats whether now known or hereafter created,
and to make technical modifications necessary to do so. The
Licensor waives and/or agrees not to assert any right or
authority to forbid You from making technical modifications
necessary to exercise the Licensed Rights, including
technical modifications necessary to circumvent Effective
Technological Measures. For purposes of this Public License,
simply making modifications authorized by this Section 2(a)
(4) never produces Adapted Material.
5. Downstream recipients.
a. Offer from the Licensor -- Licensed Material. Every
recipient of the Licensed Material automatically
receives an offer from the Licensor to exercise the
Licensed Rights under the terms and conditions of this
Public License.
b. Additional offer from the Licensor -- Adapted Material.
Every recipient of Adapted Material from You
automatically receives an offer from the Licensor to
exercise the Licensed Rights in the Adapted Material
under the conditions of the Adapter's License You apply.
c. No downstream restrictions. You may not offer or impose
any additional or different terms or conditions on, or
apply any Effective Technological Measures to, the
Licensed Material if doing so restricts exercise of the
Licensed Rights by any recipient of the Licensed
Material.
6. No endorsement. Nothing in this Public License constitutes or
may be construed as permission to assert or imply that You
are, or that Your use of the Licensed Material is, connected
with, or sponsored, endorsed, or granted official status by,
the Licensor or others designated to receive attribution as
provided in Section 3(a)(1)(A)(i).
b. Other rights.
1. Moral rights, such as the right of integrity, are not
licensed under this Public License, nor are publicity,
privacy, and/or other similar personality rights; however, to
the extent possible, the Licensor waives and/or agrees not to
assert any such rights held by the Licensor to the limited
extent necessary to allow You to exercise the Licensed
Rights, but not otherwise.
2. Patent and trademark rights are not licensed under this
Public License.
3. To the extent possible, the Licensor waives any right to
collect royalties from You for the exercise of the Licensed
Rights, whether directly or through a collecting society
under any voluntary or waivable statutory or compulsory
licensing scheme. In all other cases the Licensor expressly
reserves any right to collect such royalties, including when
the Licensed Material is used other than for NonCommercial
purposes.
Section 3 -- License Conditions.
Your exercise of the Licensed Rights is expressly made subject to the
following conditions.
a. Attribution.
1. If You Share the Licensed Material (including in modified
form), You must:
a. retain the following if it is supplied by the Licensor
with the Licensed Material:
i. identification of the creator(s) of the Licensed
Material and any others designated to receive
attribution, in any reasonable manner requested by
the Licensor (including by pseudonym if
designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of
warranties;
v. a URI or hyperlink to the Licensed Material to the
extent reasonably practicable;
b. indicate if You modified the Licensed Material and
retain an indication of any previous modifications; and
c. indicate the Licensed Material is licensed under this
Public License, and include the text of, or the URI or
hyperlink to, this Public License.
2. You may satisfy the conditions in Section 3(a)(1) in any
reasonable manner based on the medium, means, and context in
which You Share the Licensed Material. For example, it may be
reasonable to satisfy the conditions by providing a URI or
hyperlink to a resource that includes the required
information.
3. If requested by the Licensor, You must remove any of the
information required by Section 3(a)(1)(A) to the extent
reasonably practicable.
b. ShareAlike.
In addition to the conditions in Section 3(a), if You Share
Adapted Material You produce, the following conditions also apply.
1. The Adapter's License You apply must be a Creative Commons
license with the same License Elements, this version or
later, or a BY-NC-SA Compatible License.
2. You must include the text of, or the URI or hyperlink to, the
Adapter's License You apply. You may satisfy this condition
in any reasonable manner based on the medium, means, and
context in which You Share Adapted Material.
3. You may not offer or impose any additional or different terms
or conditions on, or apply any Effective Technological
Measures to, Adapted Material that restrict exercise of the
rights granted under the Adapter's License You apply.
Section 4 -- Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights that
apply to Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
to extract, reuse, reproduce, and Share all or a substantial
portion of the contents of the database for NonCommercial purposes
only;
b. if You include all or a substantial portion of the database
contents in a database in which You have Sui Generis Database
Rights, then the database in which You have Sui Generis Database
Rights (but not its individual contents) is Adapted Material,
including for purposes of Section 3(b); and
c. You must comply with the conditions in Section 3(a) if You Share
all or a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does not
replace Your obligations under this Public License where the Licensed
Rights include other Copyright and Similar Rights.
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
c. The disclaimer of warranties and limitation of liability provided
above shall be interpreted in a manner that, to the extent
possible, most closely approximates an absolute disclaimer and
waiver of all liability.
Section 6 -- Term and Termination.
a. This Public License applies for the term of the Copyright and
Similar Rights licensed here. However, if You fail to comply with
this Public License, then Your rights under this Public License
terminate automatically.
b. Where Your right to use the Licensed Material has terminated under
Section 6(a), it reinstates:
1. automatically as of the date the violation is cured, provided
it is cured within 30 days of Your discovery of the
violation; or
2. upon express reinstatement by the Licensor.
For the avoidance of doubt, this Section 6(b) does not affect any
right the Licensor may have to seek remedies for Your violations
of this Public License.
c. For the avoidance of doubt, the Licensor may also offer the
Licensed Material under separate terms or conditions or stop
distributing the Licensed Material at any time; however, doing so
will not terminate this Public License.
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
License.
Section 7 -- Other Terms and Conditions.
a. The Licensor shall not be bound by any additional or different
terms or conditions communicated by You unless expressly agreed.
b. Any arrangements, understandings, or agreements regarding the
Licensed Material not stated herein are separate from and
independent of the terms and conditions of this Public License.
Section 8 -- Interpretation.
a. For the avoidance of doubt, this Public License does not, and
shall not be interpreted to, reduce, limit, restrict, or impose
conditions on any use of the Licensed Material that could lawfully
be made without permission under this Public License.
b. To the extent possible, if any provision of this Public License is
deemed unenforceable, it shall be automatically reformed to the
minimum extent necessary to make it enforceable. If the provision
cannot be reformed, it shall be severed from this Public License
without affecting the enforceability of the remaining terms and
conditions.
c. No term or condition of this Public License will be waived and no
failure to comply consented to unless expressly agreed to by the
Licensor.
d. Nothing in this Public License constitutes or may be interpreted
as a limitation upon, or waiver of, any privileges and immunities
that apply to the Licensor or You, including from the legal
processes of any jurisdiction or authority.
=======================================================================
Creative Commons is not a party to its public
licenses. Notwithstanding, Creative Commons may elect to apply one of
its public licenses to material it publishes and in those instances
will be considered the “Licensor.” The text of the Creative Commons
public licenses is dedicated to the public domain under the CC0 Public
Domain Dedication. Except for the limited purpose of indicating that
material is shared under a Creative Commons public license or as
otherwise permitted by the Creative Commons policies published at
creativecommons.org/policies, Creative Commons does not authorize the
use of the trademark "Creative Commons" or any other trademark or logo
of Creative Commons without its prior written consent including,
without limitation, in connection with any unauthorized modifications
to any of its public licenses or any other arrangements,
understandings, or agreements concerning use of licensed material. For
the avoidance of doubt, this paragraph does not form part of the
public licenses.
Creative Commons may be contacted at creativecommons.org.

5
sen.gay/news.sml Normal file
View file

@ -0,0 +1,5 @@
[#name Neuigkeiten]
[#title Aktuelles]
[#index]
[#sort 1]
Noch gibts nix ^^

5
sen.gay/projects.sml Normal file
View file

@ -0,0 +1,5 @@
[#name Projekte]
[#title Aktuelle Projekte]
[#index]
[#sort 2]
Hier wird bald eine ganze Liste von aktiven Projekten auftauchen ...

34
sen.gay/theme.sml Normal file
View file

@ -0,0 +1,34 @@
[#background-color #000000]
[#text-color #8f30ff]
[#link-color #af50ff]
[#header-color #000088]
[#footer-color #000088]
[#top-line-color #00003f]
[#bottom-line-color #00003f]
[#container-color #00001f]
[#content-box-color #00006f]
[#content-border-tl-color #00008f]
[#content-border-br-color #00004f]
[#container-padding 80]
[#content-min-height 36]
[#content-margin 5]
[#content-line-pad 5]
[#content-side-pad 10]
[#header-height 72]
[#header-padding-left 0]
[#header-padding-right 16]
[#header-gap 25]
[#header-elem-size 32]
[#header-line-pad 4]
[#header-side-pad 4]
[#footer-height 32]
[#footer-padding-left 15]
[#footer-padding-right 15]
[#footer-gap 8]
[#footer-elem-size 20]
[#footer-line-pad 2]
[#footer-side-pad 7]
[#line-height 15]
[#text-size 14]
[#header-text-size 20]
[#footer-text-size 14]

8
sen.rip/config.sml Normal file
View file

@ -0,0 +1,8 @@
[#logo ]
[#logo_url /]
[#blank]
[#icon /favicon.ico]
[#stylesheet /stylesheet.css]
[#title_format %t]
[#logo_width 192]
[#logo_height 32]

BIN
sen.rip/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -0,0 +1 @@
Website designt von [https://sen.gay/about Sen]

1
sen.rip/footer/left.sml Normal file
View file

@ -0,0 +1 @@
Lizensiert unter [https://sen.gay/license/cc-by-nc-sa-4.0.txt CC BY-NC-SA 4.0]

1
sen.rip/footer/right.sml Normal file
View file

@ -0,0 +1 @@
[https://sen.gay/legal Datenschutz und Rechtliches]

View file

1
sen.rip/header/left.sml Normal file
View file

@ -0,0 +1 @@
[#nav]

1
sen.rip/header/right.sml Normal file
View file

@ -0,0 +1 @@
[https://sen.gay Hauptseite]

BIN
sen.rip/image/friedhof1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 MiB

BIN
sen.rip/image/friedhof2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 MiB

BIN
sen.rip/image/friedhof3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 MiB

BIN
sen.rip/image/friedhof4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

17
sen.rip/index.sml Normal file
View file

@ -0,0 +1,17 @@
[#title Die Gruftstube]
[#name Gruftstube]
#Dies ist eine Platzhalterseite!
Hier werden bald meine sämtlichen "Gruft-Projekte" von mir hochgeladen.
Diese Seite hat noch keinen richtigen Inhalt, daher hier erstmal ein Paar Fotos von draußen.
[#]
Schlechtes Licht
[#img /image/friedhof1.jpg h:256]
[#]
Schlechtes Wetter
[#img /image/friedhof2.jpg h:256]
[#]
Etwas heller
[#img /image/friedhof3.jpg h:256]
[#]
Ich glaube (hoffe) es ist nur der Mond ...
[#img /image/friedhof4.jpg h:256]

34
sen.rip/theme.sml Normal file
View file

@ -0,0 +1,34 @@
[#background-color #000000]
[#text-color #8f8f8f]
[#link-color #afafaf]
[#header-color #2f2f2f]
[#footer-color #2f2f2f]
[#top-line-color #4f4f4f]
[#bottom-line-color #4f4f4f]
[#container-color #181818]
[#content-box-color #3f3f3f]
[#content-border-tl-color #5f5f5f]
[#content-border-br-color #1f1f1f]
[#container-padding 80]
[#content-min-height 36]
[#content-margin 5]
[#content-line-pad 5]
[#content-side-pad 10]
[#header-height 40]
[#header-padding-left 10]
[#header-padding-right 10]
[#header-gap 5]
[#header-elem-size 32]
[#header-line-pad 4]
[#header-side-pad 10]
[#footer-height 32]
[#footer-padding-left 15]
[#footer-padding-right 15]
[#footer-gap 8]
[#footer-elem-size 20]
[#footer-line-pad 2]
[#footer-side-pad 7]
[#line-height 20]
[#text-size 14]
[#header-text-size 16]
[#footer-text-size 14]

14
upload.sh Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
if [ $# -lt 2 ]; then
echo "$0 <source> <host/dest>"
exit 1
fi
source="$1"
host=$(echo "$2" | cut -d "/" -f 1)
dest=/$(echo "$2" | cut -d "/" -f 2-)
echo "$source -> $host$dest"
ssh "$host" rm -rfv "$dest/"\*
scp -r "$source"/* "scp://$host/$dest"
ssh "$host" sudo chown -Rv :www-data "$dest"
ssh "$host" ls -al "$dest"