Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
dienste:wiki [07.12.2015 22:37] – Aktuelle Konfiguration des Wikis angelegt mape2k | dienste:wiki [05.04.2022 22:12] (aktuell) – Registrieren unterbinden mape2k | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Wiki ====== | ====== Wiki ====== | ||
- | Dies ist das Wiki ;) | + | Wir verwenden [[https:// |
===== Plugins ===== | ===== Plugins ===== | ||
- | ==== Für Nutzer ==== | + | ^ Name ^ Anwendung |
- | + | | [[http:// | |
- | * [[http:// | + | | [[http:// |
- | | + | | [[http:// |
- | * [[http:// | + | | [[http:// |
- | + | | [[http:// | |
- | ==== Für Admins ==== | + | | [[https:// |
- | + | | [[http:// | |
- | | + | | [[http:// |
- | * [[http:// | + | | [[http:// |
- | + | | [[https:// | |
- | ==== System ==== | + | | [[https:// |
- | + | | [[https:// | |
- | * [[https:// | + | | [[https:// |
===== Template ===== | ===== Template ===== | ||
Zeile 34: | Zeile 34: | ||
* nativeeditor: | * nativeeditor: | ||
- | ==== iCalendar | + | ==== URL-Schemes |
+ | |||
+ | * conf/ | ||
+ | |||
+ | ==== SMTP ==== | ||
+ | |||
+ | * smtp_host: **mail.bytespeicher.org** | ||
+ | * smtp_port: **465** | ||
+ | * smtp_ssl: **SSL** | ||
+ | * smtp_auth_user: | ||
+ | * smtp_auth_user: | ||
+ | |||
+ | ==== Twofactor ==== | ||
+ | |||
+ | * enable: **[X]** | ||
+ | * optinout: **opt-in** | ||
+ | * otpsubject: **OTP Verification Code** | ||
+ | * otpcontent: **$otp is your verification code.** | ||
+ | * generatorexpiry: | ||
+ | * otplength: **7** | ||
+ | * sentexpiry: **5** | ||
+ | * loginnotice: | ||
+ | * loginsubject: | ||
+ | * logincontent: | ||
+ | * refreshexpiry: | ||
+ | * logging_level: | ||
+ | * logging_path: | ||
+ | |||
+ | ==== Twofactorgoogleauth ==== | ||
+ | |||
+ | * enable: **[X]** | ||
- | * table: **< | ||
==== Template / Boostrap3 ==== | ==== Template / Boostrap3 ==== | ||
Zeile 66: | Zeile 96: | ||
Folgende Dateien sind für die Darstellung der linken Sidebar notwendig: | Folgende Dateien sind für die Darstellung der linken Sidebar notwendig: | ||
- | * tpl/ | + | * lib/tpl/ |
* conf/ | * conf/ | ||
Zeile 77: | Zeile 107: | ||
</ | </ | ||
+ | Der Raum-Status und die Social-Media-Links liegen in der Datei lib/ | ||
+ | |||
+ | < | ||
+ | <!-- ***** Info-Box | ||
+ | <div class=" | ||
+ | <h3 style=" | ||
+ | <a href=" | ||
+ | <hr style=" | ||
+ | <a href=" | ||
+ | </h3> | ||
+ | </ | ||
+ | <!-- ***** Raumstatus ***** --> | ||
+ | <div class=" | ||
+ | <?php | ||
+ | |||
+ | // Spaces | ||
+ | $spaces = [ | ||
+ | ' | ||
+ | ' | ||
+ | ]; | ||
+ | |||
+ | // Max width of icon (small = 100, large = 200) | ||
+ | $cssMaxWidth = 100; | ||
+ | |||
+ | // JSON path for URI | ||
+ | $statusJsonPath = '/ | ||
+ | |||
+ | // Create stream context with low timeout | ||
+ | $context = stream_context_create([ | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ] | ||
+ | ]); | ||
+ | |||
+ | // Check every space | ||
+ | // No output on errors | ||
+ | foreach ($spaces as $spaceName => $statusUrl) { | ||
+ | // Get minimal status from spacestatus webpage | ||
+ | $jsonContent = file_get_contents($statusUrl . $statusJsonPath, | ||
+ | if ($jsonContent === false) { | ||
+ | // Status could not be received, skip it | ||
+ | continue; | ||
+ | } | ||
+ | |||
+ | // Decode JSON with max depth of 2 | ||
+ | $jsonContent = json_decode($jsonContent, | ||
+ | if (is_null($jsonContent) || !isset($jsonContent-> | ||
+ | // JSON could not be decoded or entries missing | ||
+ | continue; | ||
+ | } | ||
+ | |||
+ | // Output spaces | ||
+ | $text = 'Der ' . $spaceName . ' ist ' . ($jsonContent-> | ||
+ | echo '<a href=\'' | ||
+ | echo '< | ||
+ | echo '</ | ||
+ | } | ||
+ | |||
+ | ?> | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Folgendes CSS formatiert das Menü in der Sidebar: | ||
+ | |||
+ | < | ||
+ | .plugin__simplenavi { | ||
+ | background-color: | ||
+ | border: 1px solid #e3e3e3; | ||
+ | border-radius: | ||
+ | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) inset; | ||
+ | margin-bottom: | ||
+ | min-height: 20px; | ||
+ | } | ||
+ | |||
+ | .plugin__simplenavi ul.nav { | ||
+ | padding-left: | ||
+ | } | ||
+ | |||
+ | .plugin__simplenavi a.wikilink2: | ||
+ | border-bottom: | ||
+ | } | ||
+ | |||
+ | .plugin__simplenavi > ul a[data-curid] { | ||
+ | background: #08c; | ||
+ | color: #fff; | ||
+ | } | ||
+ | |||
+ | .plugin__simplenavi > ul.nav li a { | ||
+ | display: block; | ||
+ | } | ||
+ | |||
+ | .plugin__simplenavi > ul.nav li a::before { | ||
+ | font-family: | ||
+ | } | ||
+ | |||
+ | .plugin__simplenavi > ul.nav li.open > strong > a::before { | ||
+ | font-family: | ||
+ | } | ||
+ | |||
+ | .plugin__simplenavi > ul.nav li.closed > a::before { | ||
+ | font-family: | ||
+ | } | ||
+ | |||
+ | .plugin__simplenavi > ul.nav > ul.nav > li a { | ||
+ | padding-left: | ||
+ | } | ||
+ | .plugin__simplenavi > ul.nav > ul.nav > li.open > ul.nav > li a { | ||
+ | padding-left: | ||
+ | } | ||
+ | .plugin__simplenavi > ul.nav > ul.nav > li.open > ul.nav > li > ul.nav > li a { | ||
+ | padding-left: | ||
+ | } | ||
+ | .plugin__simplenavi > ul.nav > ul.nav > li.open > ul.nav > li > ul.nav > li > ul.nav > li a { | ||
+ | padding-left: | ||
+ | } | ||
+ | .plugin__simplenavi > ul.nav > ul.nav > li.open > ul.nav > li > ul.nav > li > ul.nav > li > ul.nav > li a { | ||
+ | padding-left: | ||
+ | } | ||
+ | .plugin__simplenavi > ul.nav > ul.nav > li.open > ul.nav > li > ul.nav > li > ul.nav > li > ul.nav > li > ul.nav > li a { | ||
+ | padding-left: | ||
+ | } | ||
+ | </ | ||
=== Navigation === | === Navigation === | ||
- | Die Verlinkungen zu bytespeicher.org und zum Pad erfolgen über den Wiki-Artikel " | + | Die Verlinkungen zu bytespeicher.org und zum Pad erfolgen über den Wiki-Artikel "[[:navbar]]": |
< | < | ||
* [[https:// | * [[https:// | ||
- | * [[http:// | + | * [[https:// |
+ | * [[https:// | ||
~~NOCACHE~~ | ~~NOCACHE~~ | ||
</ | </ | ||
Zeile 101: | Zeile 255: | ||
$conf[' | $conf[' | ||
$conf[' | $conf[' | ||
+ | $conf[' | ||
$conf[' | $conf[' | ||
+ | $conf[' | ||
$conf[' | $conf[' | ||
$conf[' | $conf[' | ||
Zeile 107: | Zeile 263: | ||
$conf[' | $conf[' | ||
$conf[' | $conf[' | ||
- | $conf[' | ||
- | $conf[' | ||
Zeile 115: | Zeile 269: | ||
{description}'; | {description}'; | ||
- | $conf[' | ||
- | |||
- | **< | ||
- | |||
- | {description}'; | ||
- | $conf[' | ||
$conf[' | $conf[' | ||
$conf[' | $conf[' | ||
Zeile 134: | Zeile 282: | ||
$conf[' | $conf[' | ||
</ | </ | ||
- |