diff --git a/public/auth_helpers.php b/public/auth_helpers.php index e27ee7f..b0f3ecd 100644 --- a/public/auth_helpers.php +++ b/public/auth_helpers.php @@ -61,6 +61,7 @@ function manageablePublicPages(): array 'astronomical_conversions.php' => 'Astronomical Conversions', 'tcrb_lightcurve.php' => 'T CrB Lichtkurve', 'solarsystem.php' => 'Sonnensystem', + 'mars.php' => 'Mars', 'jupitersystem.php' => 'Jupitersystem', 'tagbogen.php' => 'Tagbogen', 'sternenhimmel.php' => 'Sternenhimmel', diff --git a/public/header.php b/public/header.php index 8917ff8..4e94ad2 100644 --- a/public/header.php +++ b/public/header.php @@ -1,5 +1,9 @@ 'astronomical_conversions.php', 'label' => 'Astronomical Conversions'], ['href' => 'tcrb_lightcurve.php', 'label' => 'T CrB Lichtkurve'], ['href' => 'solarsystem.php', 'label' => 'Sonnensystem'], + ['href' => 'mars.php', 'label' => 'Mars'], ['href' => 'jupitersystem.php', 'label' => 'Jupitersystem'], ['href' => 'tagbogen.php', 'label' => 'Tagbogen'], ['href' => 'sternenhimmel.php', 'label' => 'Sternenhimmel'], @@ -178,9 +183,9 @@ if ($loggedIn && !$hasFullAdminAccess && $pdoHeader !== null) { foreach ($menuGroups as &$group) { $group['links'] = array_values(array_filter( $group['links'], - static function (array $link) use ($allowedPageKeys): bool { + static function (array $link) use ($allowedPageKeys, $publicAccessAllowlist): bool { $href = trim((string) ($link['href'] ?? '')); - return $href !== '' && isset($allowedPageKeys[$href]); + return $href !== '' && (isset($allowedPageKeys[$href]) || in_array($href, $publicAccessAllowlist, true)); } )); } @@ -193,9 +198,9 @@ if ($loggedIn && !$hasFullAdminAccess && $pdoHeader !== null) { $accountLinks = array_values(array_filter( $accountLinks, - static function (array $link) use ($allowedPageKeys): bool { + static function (array $link) use ($allowedPageKeys, $publicAccessAllowlist): bool { $href = trim((string) ($link['href'] ?? '')); - return $href !== '' && isset($allowedPageKeys[$href]); + return $href !== '' && (isset($allowedPageKeys[$href]) || in_array($href, $publicAccessAllowlist, true)); } )); } diff --git a/public/images/planets/mars_1024.jpg b/public/images/planets/mars_1024.jpg index f09381a..d0f3131 100644 Binary files a/public/images/planets/mars_1024.jpg and b/public/images/planets/mars_1024.jpg differ diff --git a/public/images/planets/mars_2048.jpg b/public/images/planets/mars_2048.jpg index 891c686..eacdcfd 100644 Binary files a/public/images/planets/mars_2048.jpg and b/public/images/planets/mars_2048.jpg differ diff --git a/public/images/planets/mars_4096.jpg b/public/images/planets/mars_4096.jpg index 252db4f..c3c43c8 100644 Binary files a/public/images/planets/mars_4096.jpg and b/public/images/planets/mars_4096.jpg differ diff --git a/public/images/planets/mars_8192.jpg b/public/images/planets/mars_8192.jpg index 09a804b..9a0137c 100644 Binary files a/public/images/planets/mars_8192.jpg and b/public/images/planets/mars_8192.jpg differ diff --git a/public/images/planets/mars_displacement_5760.jpg b/public/images/planets/mars_displacement_5760.jpg new file mode 100644 index 0000000..e52a2ce Binary files /dev/null and b/public/images/planets/mars_displacement_5760.jpg differ diff --git a/public/images/planets/netptun_1024.jpg b/public/images/planets/netptun_1024.jpg deleted file mode 100644 index 26ca0b2..0000000 Binary files a/public/images/planets/netptun_1024.jpg and /dev/null differ diff --git a/public/images/planets/netptun_2048.jpg b/public/images/planets/netptun_2048.jpg deleted file mode 100644 index 30e7ac5..0000000 Binary files a/public/images/planets/netptun_2048.jpg and /dev/null differ diff --git a/public/mars.php b/public/mars.php new file mode 100644 index 0000000..fb27875 --- /dev/null +++ b/public/mars.php @@ -0,0 +1,240 @@ + + + + + + + + + Ziehen zum Drehen, Mausrad zum Zoomen + + + + + +