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>
17 lines
529 B
ApacheConf
17 lines
529 B
ApacheConf
# Symbole der Berechtigungsgruppen (hochgeladen oder per Link geladen) duerfen niemals als Skript
|
|
# ausgefuehrt werden - auch wenn eine Datei die Typpruefung in includes/role_icons.php umgehen sollte.
|
|
<IfModule mod_php.c>
|
|
php_flag engine off
|
|
</IfModule>
|
|
<IfModule mod_php7.c>
|
|
php_flag engine off
|
|
</IfModule>
|
|
|
|
<FilesMatch "\.(php|phtml|php[0-9]?|phar|cgi|pl)$">
|
|
<IfModule mod_authz_core.c>
|
|
Require all denied
|
|
</IfModule>
|
|
<IfModule !mod_authz_core.c>
|
|
Deny from all
|
|
</IfModule>
|
|
</FilesMatch>
|