Datenschutz-Einwilligung und externe Inhalte absichern
This commit is contained in:
parent
bdd3a86edb
commit
c37dc18b3e
29 changed files with 1662 additions and 34 deletions
|
|
@ -4,6 +4,17 @@
|
|||
$pushPublicKey = $pushPublicKey ?? null;
|
||||
$pushEnabled = $pushEnabled ?? false;
|
||||
$isOwnProfile = $current !== null && (int) $current->id === (int) $user->id;
|
||||
|
||||
$privacyState = \App\Core\Privacy::state();
|
||||
$privacyAccepted = \App\Core\Privacy::accepted();
|
||||
$privacyAcceptedAt = null;
|
||||
|
||||
if (!empty($privacyState['accepted_at'])) {
|
||||
$privacyTimestamp = strtotime((string) $privacyState['accepted_at']);
|
||||
if ($privacyTimestamp !== false) {
|
||||
$privacyAcceptedAt = date('d.m.Y H:i', $privacyTimestamp);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="container text-center text-light mt-5">
|
||||
|
|
@ -55,6 +66,11 @@
|
|||
accept="image/*" onchange="preview_image(event)">
|
||||
</div>
|
||||
|
||||
<p class="small text-muted text-left ml-2 mb-3">
|
||||
Mit dem Hochladen bestätigst du, dass du die erforderlichen Rechte am Bild hast und
|
||||
abgebildete Personen mit der Veröffentlichung einverstanden sind.
|
||||
</p>
|
||||
|
||||
<?php if ($current && $current->isAdmin()): ?>
|
||||
<div class="form-group" style="display:flex;">
|
||||
<label class="ml-2 mt-4" style="width:130px; text-align:left;" for="role"><h4>Rolle:</h4></label>
|
||||
|
|
@ -86,6 +102,41 @@
|
|||
<?= csrf_field() ?>
|
||||
</form>
|
||||
|
||||
<?php if ($isOwnProfile): ?>
|
||||
<div class="card text-dark mt-4 text-left" id="privacy-settings" style="clear: both;">
|
||||
<div class="card-body">
|
||||
<h2 class="h5 mb-2">Datenschutz & Einwilligungen</h2>
|
||||
<p class="mb-2">
|
||||
<strong>Status:</strong>
|
||||
<?php if ($privacyAccepted): ?>
|
||||
bestätigt<?= $privacyAcceptedAt !== null ? ' am ' . e($privacyAcceptedAt) : '' ?>
|
||||
<?php elseif (!empty($privacyState['accepted'])): ?>
|
||||
Die Datenschutzhinweise wurden geändert. Bitte erneut bestätigen.
|
||||
<?php else: ?>
|
||||
noch nicht bestätigt
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<p class="mb-3">
|
||||
<strong>Externe Inhalte:</strong>
|
||||
<?= \App\Core\Privacy::externalMediaAllowed() ? 'erlaubt' : 'deaktiviert' ?>
|
||||
<span class="text-muted">(Google Maps, YouTube)</span>
|
||||
</p>
|
||||
|
||||
<a class="btn btn-sm btn-outline-primary" href="/datenschutz#einwilligung">
|
||||
Datenschutz-Einstellungen öffnen
|
||||
</a>
|
||||
|
||||
<?php if ($privacyAccepted): ?>
|
||||
<form method="post" action="/datenschutz/widerruf" class="d-inline-block ml-2"
|
||||
onsubmit="return confirm('Möchtest du deine Datenschutz-Einwilligung wirklich widerrufen? Ohne erneute Zustimmung kannst du das Mitgliederportal nicht nutzen.');">
|
||||
<?= csrf_field() ?>
|
||||
<button type="submit" class="btn btn-sm btn-outline-danger">Einwilligung widerrufen</button>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($isOwnProfile && $pushPublicKey !== null && !is_desktop()): ?>
|
||||
<div class="card text-dark mt-4 text-left" id="push-settings" style="clear: both;"
|
||||
data-vapid-key="<?= e($pushPublicKey) ?>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue