Dateien nur mit Anmeldung, nur Microsoft-Login, mehrere Titelbilder (0.47.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m25s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 6m46s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 7m52s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 8m5s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 10m33s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m53s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 9m1s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 8m49s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 54s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m4s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m25s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 6m46s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 7m52s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 8m5s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 10m33s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m53s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 9m1s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 8m49s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 54s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m4s
- /uploads nur über das Portal: UploadController prüft Sitzung bzw. App-Token; frei nur die Dateien der Anmeldeseite (Logos, Symbole, Anmeldehintergrund, Stylesheet, Schrift); public/uploads/.htaccess leitet alles an index.php (Migration schreibt sie, da der Ordner vor dem Updater geschützt ist); Systemzustand prüft die Regel; nginx-Hinweis in docs/SECURITY.md - Passwort-Anmeldung abschaltbar (PasswordLogin): Login-Formular, Passwort vergessen, App-Token und /api/v1/config; nur mit verknüpftem Konto abschaltbar, automatische Rückkehr ohne nutzbaren Dienst, Notausgang INHAUS_PASSWORD_LOGIN - Titelbilder: profile_covers (bis 12), zufällig je Seitenaufruf - ImageCompressor: Uploads im Backend (SafeUpload) und WordPress-Import auf ≤ 2400 px komprimiert, Format bleibt Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
47b55b4ce5
commit
d91570f118
155 changed files with 1035 additions and 382 deletions
|
|
@ -18,7 +18,7 @@ use Throwable;
|
|||
class ThemePhotos
|
||||
{
|
||||
/** Bildfelder, die Fotos sind (Logos, Symbole und Platzhalter bleiben, wie sie sind) */
|
||||
public const FIELDS = ['login_image', 'profile_cover'];
|
||||
public const FIELDS = ['login_image', 'profile_cover', 'profile_covers'];
|
||||
|
||||
public const MAX_EDGE = 2400;
|
||||
|
||||
|
|
@ -34,9 +34,16 @@ class ThemePhotos
|
|||
foreach (self::FIELDS as $field) {
|
||||
if (is_string($theme[$field] ?? null) && $theme[$field] !== '') {
|
||||
$theme[$field] = $this->optimize($theme[$field]);
|
||||
} elseif (is_array($theme[$field] ?? null)) {
|
||||
$theme[$field] = array_map(fn ($path) => is_string($path) ? $this->optimize($path) : $path, $theme[$field]);
|
||||
}
|
||||
}
|
||||
|
||||
// Das erste Titelbild ist zugleich das einzelne (ältere Stellen lesen nur dieses)
|
||||
if (($theme['profile_covers'] ?? []) !== []) {
|
||||
$theme['profile_cover'] = $theme['profile_covers'][0];
|
||||
}
|
||||
|
||||
return $theme;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue