Asked for: the legion collects dues in Kina; a separate, purely administrative page to set a cycle and an
amount, tick off who has paid, exempt members for one or more cycles and suspend a cycle for everyone. On
the site it is called "Legionsbeiträge" and the currency "Kina", like everywhere else.
- includes/dues.php: settings dues_amount/_unit/_every/_start/_anchor (every 1-12 weeks or months). The
cycles (dues_cycles) form a series from the anchor (months on the same day, in shorter months the last
one) and exist up to the running one plus the next. Until something is ticked or suspended, a new setting
rebuilds all cycles; afterwards a new amount applies to the coming cycles (optionally the running one) and
a new rhythm starts after the last cycle that has begun or has data. The amount also takes 500k, 1,5kk or
2 Mio.
- Who owes: every active account that was a member when the cycle started (Discord join, else account
creation), unless exempt or the cycle is suspended; a ticked payment always counts. Former members only
show up with payments in the visible cycles.
- admin/dues.php: key figures (running cycle, paid, collected of expected, arrears), a table of members x
the last six cycles with paging, a click toggles a payment (dues_entries with who and when; without
reload via assets/js/dues.js, the button sends the state it sets), search and filters (open, paid,
exempt, arrears), suspend/resume per cycle with an optional reason, exemptions (dues_exemptions:
members, from which cycle, 1-12 cycles or until further notice, reason; end or delete) and the settings.
On phones the table opens at the running cycle, the exemption list stacks.
- admin/dues_action.php: settings, toggle (JSON with the redrawn cell, column figures, arrears and key
figures), cycle, exempt_add/_end/_delete. Settings, suspensions and exemptions go to the audit log and the
Discord log channel, ticks only to the audit log (area "Legionsbeiträge"); ticking is exempt from the
general form rate limit.
- New right dues.manage (Administrator and the groups with roles.manage), menu item in the admin section
with a coins icon, schema version 61 (tables also in sql/schema.sql).
- Privacy: privacy policy (what is stored, only the leadership sees it, account deletion), data export
section legionsbeitraege, account deletion removes exemptions and keeps payments without the name, data
reset area.
- Patch notes (leadership) and README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The lead of a premade (or the leadership with premades.manage) picks one of the landscapes or
uploads an own image in edit mode under "Banner" and moves the crop with a slider (live preview).
- Shown on top of the premade card (name on the banner), above the roster under "Meine
Premade" on the dashboard, and behind the heading of the raid group that carries the
premade's name (invited premade groups are named after it).
- New table premade_banners (per premade ID of the bot, with the name for the raid groups, the
choice and the crop; schema 54, also in sql/schema.sql). Own images are member_gallery rows
with is_background = 1 and the new column premade_id, so they go through the same
moderation (badge "Premade-Banner"), data export and account deletion as gallery pictures.
The own profile background and the profile reset ignore banner rows.
- premade_action.php: banner_save, banner_upload, banner_delete_upload; renaming updates the
name, dissolving removes banner and upload. premade_banners_sync() on premades.php cleans up
banners of premades that no longer exist. Leadership changes to other premades are logged.
- Live updates of the premades page include banner changes; privacy policy, patch notes and
README mention the banners.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In the user form (admin/user_form.php) a new section "Einzelne Berechtigungen" lists all
permissions, with the group-assign rights (roles.assign.<ID>) shown by group name as in the role
form. It opens by itself when the user already has some. A shield marks what the user already
gets through one of the ticked groups; the tooltip says who granted a permission and when.
- New table user_permissions (user, permission, granted_by, created_at; schema 52, also in
sql/schema.sql). user_has_permission() now resolves through user_permission_keys() (groups UNION
direct permissions, falls back to groups only while the table is missing), and
discord_ids_with_permission() and the raids.manage recipients in bot_api.php include direct
permissions too.
- New core permission users.permissions: only with it can someone grant or revoke direct
permissions, and only ones they have themselves (current_user_permission_ids()); others are
greyed out and ignored on the server even if submitted. Your own direct permissions can only be
changed by someone else (except developers). Without the right the section is a read-only list.
On update, groups with roles.manage get users.permissions.
- Saving applies only the changes, so the remaining entries keep who granted them and when.
Grants and revokes go into the audit log ("Einzelrechte erteilt/entzogen/jetzt").
- User list: "+N Einzelrechte" badge next to the groups (title lists them), searchable; the live
fingerprint of the page includes user_permissions.
- Data export gets a section "einzelrechte", account deletion removes them, and the privacy
policy mentions both. Patch notes, README and the roles page intro updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Sidebar: number of upcoming raids next to "Raids" (all not archived, same as the dashboard
tile). Gold while a raid was posted since the last visit of the raid page (users.raids_seen_at,
schema v46; the posting time comes from the raid id = Discord message id). New raids are
marked "Neu" on the raid page, also in live updates; your own new raid is not. The raid ids
are cached in settings.raids_nav_cache: every raid fetch refreshes it, otherwise the sidebar
asks the bot after 5 minutes with a 3 s timeout and keeps the last state if it is down.
- Start page: the group photo alternates every 6 s with gallery pictures that members released
themselves ("Auf der Startseite zeigen", member_gallery.show_on_home, schema v47) - without
name or caption, only visible pictures of active members, with a pause button, only while
the photo is in view. Only the member can release a picture; leadership can only take it off
(logged).
- Dashboard: the tiles "Mitglieder" and "Berechtigungsgruppen" link to the user management and
the roles, like "Anstehende Raids".
- Tour: new steps for gallery, calendar, gear planner and patch notes; menu customization,
profile page, daily reward and the raid count mentioned.
- Privacy policy (activity, start page, withdrawal), account anonymization (resets
raids_seen_at), README and patch notes updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- New menu item "Galerie" (gallery.php, permission members.view): all visible gallery pictures of active
members, 48 per page, without profile backgrounds.
- Sort by newest, oldest, most reactions or member (?sort=neu|alt|reaktionen|mitglied), optionally one
member only (?mitglied=ID, dropdown with picture counts).
- Lightbox through the page; comments and reactions only where the member allows them (like the profile).
- "Eigene Bilder hochladen" links to the gallery section of member_edit.php (#galerie).
- Two pictures per row on phones.
- Pictures by others since the last visit (users.gallery_seen_at, set when the page is opened, schema v45)
are marked "Neu", and their number shows in the sidebar; without a visit, the last 7 days count.
- Privacy policy (Aktivität), account anonymization (resets gallery_seen_at), README and a member patch
note are updated. Idea from the legion.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- account_anonymize() first calls the bot's new POST /api/privacy/anonymize (account_deletion_bot()):
- Running raid sign-ups and premade memberships are removed; a premade the member leads keeps going
without a lead.
- Archived raids, activity checks, own reports and created events keep the account number instead of the
Discord ID. Reports about the member stay and expire after 10 days as before.
- If the bot is unreachable, the job goes into the setting account_deletion_bot_queue and is retried on every
run (not in the same run, read straight from the DB because setting_get() caches per request); after a
week there is a warning in the log. The deletion log says whether the bot part is done or pending.
- Due deletions now run in a shutdown function after the response (session closed, fastcgi_finish_request),
like admin_log_flush, so no visitor waits for the bot.
- Privacy policy, admin page and README describe the bot part.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>