LuminaWebsite/.gitignore
Maaxxs 3fa3a7310d Group icons: groups get an icon in front of their name, like the role icons in Discord
In Berechtigungsgruppen -> Gruppe bearbeiten the new field "Symbol" takes an uploaded image or a
link to one, with a checkbox to remove it and a live preview in the tag.

- A link is downloaded once when saving (includes/role_icons.php): public http(s) addresses only,
  nothing in the local network (redirects checked one by one, the checked IP is pinned), at most
  2 MB, PNG/JPG/GIF/WEBP. Like uploads the image is re-encoded, scaled to 128 px and stored under
  assets/uploads/roles/ (with .htaccess), so visitors never load anything from other servers and
  expiring links (Discord attachments) don't break the icon.
- Shown in the group tags (member list, profile, group admin), the group filter chips and the
  rank section headings of the member list, and the group badges on the dashboard.
- Replaced or removed icons and the icon of a deleted group are deleted from disk; the new file
  is only stored once all other fields are valid and removed again if saving fails.
- New column roles.tag_icon (schema version 55, also in sql/schema.sql); README.
- file-input.js: "Entfernen" fires a change event, so previews of other scripts clear too.
- Live updates of the member list also react to changes of tag_bg2 and tag_icon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 12:35:02 +02:00

25 lines
743 B
Text

config.php
assets/uploads/avatars/*
!assets/uploads/avatars/.htaccess
!assets/uploads/avatars/.gitkeep
assets/uploads/wiki/*
!assets/uploads/wiki/.htaccess
!assets/uploads/wiki/.gitkeep
assets/uploads/profiles/*
!assets/uploads/profiles/.htaccess
!assets/uploads/profiles/.gitkeep
assets/uploads/bugs/*
!assets/uploads/bugs/.htaccess
!assets/uploads/bugs/.gitkeep
assets/uploads/gear/*
!assets/uploads/gear/.htaccess
!assets/uploads/gear/.gitkeep
assets/uploads/skills/*
!assets/uploads/skills/.htaccess
!assets/uploads/skills/.gitkeep
assets/uploads/roles/*
!assets/uploads/roles/.htaccess
!assets/uploads/roles/.gitkeep
# Kacheln, Marker und Icons der Karte (~230 MB) - werden per FTP hochgeladen, siehe README
assets/map/data/
__pycache__/