- Data export (Art. 15/20 GDPR, includes/data_export.php): ZIP with daten.json, LIESMICH.txt and the
member's own images (avatar, characters, gallery, bug reports). It covers every table related to the
account plus, via the bot API, raid sign-ups, premades, created events and activity checks. Password hash,
tokens and player reports (they name the reporters) are left out. The ZIP is written by data_export_zip(),
so the PHP zip extension is not needed.
- Members find export and deletion under "Mein Profil" at the very bottom in a collapsed "Konto & Daten"
section (data_export.php, account_delete.php).
- Leadership: new icon "Daten & Löschung" in the user admin (admin/user_export.php, permission users.export).
It downloads the export or creates a download link for someone without access (datenauskunft.php?t=...,
7 days, 5 downloads, only the SHA-256 hash stored in data_export_links). The link page shows a button first,
so link previews don't use up downloads. It also works in maintenance mode.
- Account deletion (includes/account_deletion.php): the account is anonymized instead of removed.
- Deleted: profile, avatar, characters, gallery, gear sets, private tactics, groups, tokens, calendar
participations and bug report images.
- Contributions remain as "Ehemaliges Mitglied" without name or Discord ID.
- Requested by the member (type LÖSCHEN) or by the leadership (users.delete, also immediately).
- Executed after 7 days by account_deletion_run_due(); logging in before that cancels it and tells the member.
- The user admin shows "Löschung am ..." and "Gelöscht (unkenntlich)". Privacy policy, README and a
leadership patch note are updated. Schema v44 (users.deletion_scheduled_at, users.deleted_at, data_export_links).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
1 KiB
JavaScript
27 lines
1 KiB
JavaScript
/**
|
|
* Knopf "Kopieren": <button data-copy-target="id-eines-feldes"> kopiert den Inhalt des Feldes in die
|
|
* Zwischenablage (z.B. den Download-Link der Datenauskunft in admin/user_export.php).
|
|
*/
|
|
(function () {
|
|
'use strict';
|
|
|
|
document.addEventListener('click', function (event) {
|
|
var button = event.target.closest('[data-copy-target]');
|
|
if (!button) return;
|
|
var field = document.getElementById(button.getAttribute('data-copy-target'));
|
|
if (!field) return;
|
|
var label = button.textContent;
|
|
var done = function () {
|
|
button.textContent = 'Kopiert ✓';
|
|
setTimeout(function () { button.textContent = label; }, 2000);
|
|
};
|
|
field.select();
|
|
if (navigator.clipboard && window.isSecureContext) {
|
|
navigator.clipboard.writeText(field.value).then(done, function () {
|
|
if (document.execCommand('copy')) done();
|
|
});
|
|
} else if (document.execCommand('copy')) {
|
|
done();
|
|
}
|
|
});
|
|
})();
|