Mars eingebaut und Texturen verbessert

This commit is contained in:
Eskimue
2026-04-09 12:22:43 +02:00
parent 0d211339fe
commit 0f13c46a65
10 changed files with 250 additions and 4 deletions
+9 -4
View File
@@ -1,5 +1,9 @@
<?php
require_once __DIR__ . '/auth_helpers.php';
if (!isset($loggedIn)) {
$loggedIn = isset($_SESSION['user_id']);
}
$title = isset($pageTitle) && is_string($pageTitle) && $pageTitle !== ''
? $pageTitle
: 'Skyview & AstroTools - Astronomiemuseum der Sternwarte Sonneberg';
@@ -123,6 +127,7 @@ $menuGroups = [
['href' => '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));
}
));
}