From 24096a49a12536263f82203f7e40ba5429863b60 Mon Sep 17 00:00:00 2001 From: Eskimue Date: Sun, 5 Apr 2026 14:01:17 +0200 Subject: [PATCH] Bugfixes --- .codex-temp/php-server-error.log | 144 +++++++++++++++++++++++++++++ public/jupitersystem.php | 7 +- public/solarsystem.php | 1 - public/tagbogen.php | 21 ----- public/telegram/broadcast_test.php | 7 +- 5 files changed, 153 insertions(+), 27 deletions(-) diff --git a/.codex-temp/php-server-error.log b/.codex-temp/php-server-error.log index 44b2a7d..8967ad3 100644 --- a/.codex-temp/php-server-error.log +++ b/.codex-temp/php-server-error.log @@ -1 +1,145 @@ [Sun Apr 5 12:58:24 2026] PHP 8.5.4 Development Server (http://127.0.0.1:8000) started +[Sun Apr 5 12:58:34 2026] 127.0.0.1:54023 Accepted +[Sun Apr 5 12:58:34 2026] 127.0.0.1:54023 [302]: GET / +[Sun Apr 5 12:58:34 2026] 127.0.0.1:54023 Closing +[Sun Apr 5 12:58:34 2026] 127.0.0.1:54024 Accepted +[Sun Apr 5 12:58:34 2026] 127.0.0.1:54024 [200]: GET /login.php +[Sun Apr 5 12:58:34 2026] 127.0.0.1:54024 Closing +[Sun Apr 5 12:59:18 2026] 127.0.0.1:52547 Accepted +[Sun Apr 5 12:59:20 2026] 127.0.0.1:52547 [200]: GET / +[Sun Apr 5 12:59:20 2026] 127.0.0.1:52547 Closing +[Sun Apr 5 12:59:20 2026] 127.0.0.1:62987 Accepted +[Sun Apr 5 12:59:20 2026] 127.0.0.1:62987 [200]: GET /css/style.css +[Sun Apr 5 12:59:20 2026] 127.0.0.1:62987 Closing +[Sun Apr 5 12:59:20 2026] 127.0.0.1:55015 Accepted +[Sun Apr 5 12:59:20 2026] 127.0.0.1:60351 Accepted +[Sun Apr 5 12:59:20 2026] 127.0.0.1:55015 [200]: GET /images/star16x16.png +[Sun Apr 5 12:59:20 2026] 127.0.0.1:60351 [200]: GET /images/star16x16_rays.png +[Sun Apr 5 12:59:20 2026] 127.0.0.1:55015 Closing +[Sun Apr 5 12:59:20 2026] 127.0.0.1:60351 Closing +[Sun Apr 5 12:59:21 2026] 127.0.0.1:56340 Accepted +[Sun Apr 5 12:59:22 2026] 127.0.0.1:56340 [200]: GET /favicon.ico +[Sun Apr 5 12:59:22 2026] 127.0.0.1:56340 Closing +[Sun Apr 5 12:59:22 2026] 127.0.0.1:62169 Accepted +[Sun Apr 5 12:59:24 2026] 127.0.0.1:62169 [200]: GET /admin_users.php +[Sun Apr 5 12:59:24 2026] 127.0.0.1:62169 Closing +[Sun Apr 5 12:59:25 2026] 127.0.0.1:58689 Accepted +[Sun Apr 5 12:59:25 2026] 127.0.0.1:58689 [200]: GET /css/style.css +[Sun Apr 5 12:59:25 2026] 127.0.0.1:58689 Closing +[Sun Apr 5 12:59:25 2026] 127.0.0.1:52286 Accepted +[Sun Apr 5 12:59:25 2026] 127.0.0.1:52286 [200]: GET /images/star16x16.png +[Sun Apr 5 12:59:25 2026] 127.0.0.1:52286 Closing +[Sun Apr 5 12:59:25 2026] 127.0.0.1:58219 Accepted +[Sun Apr 5 12:59:25 2026] 127.0.0.1:60748 Accepted +[Sun Apr 5 12:59:25 2026] 127.0.0.1:58219 [200]: GET /images/star16x16_rays.png +[Sun Apr 5 12:59:25 2026] 127.0.0.1:58219 Closing +[Sun Apr 5 12:59:26 2026] 127.0.0.1:60748 [200]: GET /favicon.ico +[Sun Apr 5 12:59:26 2026] 127.0.0.1:60748 Closing +[Sun Apr 5 13:14:57 2026] 127.0.0.1:58762 Accepted +[Sun Apr 5 13:14:58 2026] 127.0.0.1:58762 [200]: GET /moonphase.php +[Sun Apr 5 13:14:58 2026] 127.0.0.1:58762 Closing +[Sun Apr 5 13:14:58 2026] 127.0.0.1:61061 Accepted +[Sun Apr 5 13:14:58 2026] 127.0.0.1:61061 [200]: GET /css/style.css +[Sun Apr 5 13:14:58 2026] 127.0.0.1:61061 Closing +[Sun Apr 5 13:14:58 2026] 127.0.0.1:65462 Accepted +[Sun Apr 5 13:14:58 2026] 127.0.0.1:52476 Accepted +[Sun Apr 5 13:14:58 2026] 127.0.0.1:65462 [200]: GET /js/three.module.min.js +[Sun Apr 5 13:14:58 2026] 127.0.0.1:52476 [200]: GET /images/star16x16.png +[Sun Apr 5 13:14:58 2026] 127.0.0.1:52476 Closing +[Sun Apr 5 13:14:58 2026] 127.0.0.1:65462 Closing +[Sun Apr 5 13:14:58 2026] 127.0.0.1:57958 Accepted +[Sun Apr 5 13:14:58 2026] 127.0.0.1:57958 [200]: GET /js/three.core.min.js +[Sun Apr 5 13:14:58 2026] 127.0.0.1:57958 Closing +[Sun Apr 5 13:14:58 2026] 127.0.0.1:50835 Accepted +[Sun Apr 5 13:14:59 2026] 127.0.0.1:50835 [200]: POST /moonphase.php +[Sun Apr 5 13:14:59 2026] 127.0.0.1:50835 Closing +[Sun Apr 5 13:14:59 2026] 127.0.0.1:50953 Accepted +[Sun Apr 5 13:14:59 2026] 127.0.0.1:57865 Accepted +[Sun Apr 5 13:14:59 2026] 127.0.0.1:50953 [200]: GET /images/star16x16_rays.png +[Sun Apr 5 13:14:59 2026] 127.0.0.1:50953 Closing +[Sun Apr 5 13:14:59 2026] 127.0.0.1:57865 [200]: GET /images/moons/moon_8192.jpg +[Sun Apr 5 13:14:59 2026] 127.0.0.1:57865 Closing +[Sun Apr 5 13:14:59 2026] 127.0.0.1:55788 Accepted +[Sun Apr 5 13:14:59 2026] 127.0.0.1:55788 [200]: GET /images/moons/moon_displacement_16bit.jpg +[Sun Apr 5 13:14:59 2026] 127.0.0.1:55788 Closing +[Sun Apr 5 13:15:01 2026] 127.0.0.1:56759 Accepted +[Sun Apr 5 13:15:02 2026] 127.0.0.1:56759 [200]: GET /favicon.ico +[Sun Apr 5 13:15:02 2026] 127.0.0.1:56759 Closing +[Sun Apr 5 13:15:02 2026] 127.0.0.1:64649 Accepted +[Sun Apr 5 13:16:24 2026] 127.0.0.1:64649 Closed without sending a request; it was probably just an unused speculative preconnection +[Sun Apr 5 13:16:24 2026] 127.0.0.1:64649 Closing +[Sun Apr 5 13:17:56 2026] 127.0.0.1:61171 Accepted +[Sun Apr 5 13:17:59 2026] 127.0.0.1:61171 [200]: GET /sternbedeckungen.php +[Sun Apr 5 13:17:59 2026] 127.0.0.1:61171 Closing +[Sun Apr 5 13:17:59 2026] 127.0.0.1:49704 Accepted +[Sun Apr 5 13:17:59 2026] 127.0.0.1:49704 [200]: GET /css/style.css +[Sun Apr 5 13:17:59 2026] 127.0.0.1:49704 Closing +[Sun Apr 5 13:17:59 2026] 127.0.0.1:50304 Accepted +[Sun Apr 5 13:17:59 2026] 127.0.0.1:50304 [200]: GET /js/astronomy.browser.min.js +[Sun Apr 5 13:17:59 2026] 127.0.0.1:50304 Closing +[Sun Apr 5 13:17:59 2026] 127.0.0.1:60610 Accepted +[Sun Apr 5 13:17:59 2026] 127.0.0.1:52879 Accepted +[Sun Apr 5 13:17:59 2026] 127.0.0.1:60610 [200]: GET /images/star16x16.png +[Sun Apr 5 13:17:59 2026] 127.0.0.1:52879 [200]: GET /images/star16x16_rays.png +[Sun Apr 5 13:17:59 2026] 127.0.0.1:60610 Closing +[Sun Apr 5 13:17:59 2026] 127.0.0.1:52879 Closing +[Sun Apr 5 13:17:59 2026] 127.0.0.1:61085 Accepted +[Sun Apr 5 13:18:01 2026] 127.0.0.1:61085 [200]: GET /favicon.ico +[Sun Apr 5 13:18:01 2026] 127.0.0.1:61085 Closing +[Sun Apr 5 13:18:01 2026] 127.0.0.1:56802 Accepted +[Sun Apr 5 13:18:08 2026] 127.0.0.1:56802 [200]: GET /solarsystem.php +[Sun Apr 5 13:18:08 2026] 127.0.0.1:56802 Closing +[Sun Apr 5 13:18:08 2026] 127.0.0.1:50630 Accepted +[Sun Apr 5 13:18:08 2026] 127.0.0.1:60259 Accepted +[Sun Apr 5 13:18:08 2026] 127.0.0.1:50630 [200]: GET /css/style.css +[Sun Apr 5 13:18:08 2026] 127.0.0.1:60259 [200]: GET /js/astronomy.browser.min.js +[Sun Apr 5 13:18:08 2026] 127.0.0.1:50630 Closing +[Sun Apr 5 13:18:08 2026] 127.0.0.1:60259 Closing +[Sun Apr 5 13:18:08 2026] 127.0.0.1:56752 Accepted +[Sun Apr 5 13:18:08 2026] 127.0.0.1:56752 [200]: GET /js/three.module.js +[Sun Apr 5 13:18:08 2026] 127.0.0.1:59728 Accepted +[Sun Apr 5 13:18:08 2026] 127.0.0.1:59550 Accepted +[Sun Apr 5 13:18:08 2026] 127.0.0.1:59728 [200]: GET /images/star16x16.png +[Sun Apr 5 13:18:08 2026] 127.0.0.1:62008 Accepted +[Sun Apr 5 13:18:08 2026] 127.0.0.1:59550 [200]: GET /images/star16x16_rays.png +[Sun Apr 5 13:18:08 2026] 127.0.0.1:59728 Closing +[Sun Apr 5 13:18:08 2026] 127.0.0.1:59550 Closing +[Sun Apr 5 13:18:08 2026] 127.0.0.1:56752 Closing +[Sun Apr 5 13:18:08 2026] 127.0.0.1:62008 [200]: GET /js/three.core.js +[Sun Apr 5 13:18:08 2026] 127.0.0.1:62008 Closing +[Sun Apr 5 13:18:09 2026] 127.0.0.1:56959 Accepted +[Sun Apr 5 13:18:10 2026] 127.0.0.1:56959 [200]: GET /favicon.ico +[Sun Apr 5 13:18:10 2026] 127.0.0.1:56959 Closing +[Sun Apr 5 13:18:10 2026] 127.0.0.1:55864 Accepted +[Sun Apr 5 13:18:10 2026] 127.0.0.1:50349 Accepted +[Sun Apr 5 13:18:10 2026] 127.0.0.1:55864 [200]: GET /images/planets/sun_1024.jpg +[Sun Apr 5 13:18:10 2026] 127.0.0.1:52385 Accepted +[Sun Apr 5 13:18:10 2026] 127.0.0.1:50349 [200]: GET /images/planets/merkur_1024.jpg +[Sun Apr 5 13:18:10 2026] 127.0.0.1:53032 Accepted +[Sun Apr 5 13:18:10 2026] 127.0.0.1:52385 [200]: GET /images/planets/venus_1024.jpg +[Sun Apr 5 13:18:10 2026] 127.0.0.1:60420 Accepted +[Sun Apr 5 13:18:10 2026] 127.0.0.1:53032 [200]: GET /images/planets/earth_day_1024.jpg +[Sun Apr 5 13:18:10 2026] 127.0.0.1:60420 [200]: GET /images/planets/mars_1024.jpg +[Sun Apr 5 13:18:10 2026] 127.0.0.1:55864 Closing +[Sun Apr 5 13:18:10 2026] 127.0.0.1:50349 Closing +[Sun Apr 5 13:18:10 2026] 127.0.0.1:52385 Closing +[Sun Apr 5 13:18:10 2026] 127.0.0.1:53032 Closing +[Sun Apr 5 13:18:10 2026] 127.0.0.1:60420 Closing +[Sun Apr 5 13:18:10 2026] 127.0.0.1:52485 Accepted +[Sun Apr 5 13:18:10 2026] 127.0.0.1:52485 [200]: GET /images/planets/jupiter_1024.jpg +[Sun Apr 5 13:18:10 2026] 127.0.0.1:52485 Closing +[Sun Apr 5 13:18:10 2026] 127.0.0.1:58767 Accepted +[Sun Apr 5 13:18:10 2026] 127.0.0.1:58767 [200]: GET /images/planets/saturn_1024.jpg +[Sun Apr 5 13:18:10 2026] 127.0.0.1:58767 Closing +[Sun Apr 5 13:18:10 2026] 127.0.0.1:57646 Accepted +[Sun Apr 5 13:18:10 2026] 127.0.0.1:53935 Accepted +[Sun Apr 5 13:18:10 2026] 127.0.0.1:61052 Accepted +[Sun Apr 5 13:18:10 2026] 127.0.0.1:57267 Accepted +[Sun Apr 5 13:18:10 2026] 127.0.0.1:57646 [200]: GET /images/planets/saturn_ring_8192.png +[Sun Apr 5 13:18:10 2026] 127.0.0.1:53935 [200]: GET /images/planets/uranus_1024.jpg +[Sun Apr 5 13:18:10 2026] 127.0.0.1:61052 [200]: GET /images/planets/neptun_1024.jpg +[Sun Apr 5 13:18:10 2026] 127.0.0.1:57267 [200]: GET /images/planets/pluto_1024.jpg +[Sun Apr 5 13:18:10 2026] 127.0.0.1:57646 Closing +[Sun Apr 5 13:18:10 2026] 127.0.0.1:53935 Closing +[Sun Apr 5 13:18:10 2026] 127.0.0.1:61052 Closing +[Sun Apr 5 13:18:10 2026] 127.0.0.1:57267 Closing diff --git a/public/jupitersystem.php b/public/jupitersystem.php index 19fe0d2..34369e8 100644 --- a/public/jupitersystem.php +++ b/public/jupitersystem.php @@ -1145,9 +1145,8 @@ async function initJupiterSystem() { renderer.shadowMap.type = THREE.PCFSoftShadowMap; scene = new THREE.Scene(); - scene.fog = new THREE.FogExp2(0x03050c, 0.00015); - camera = new THREE.PerspectiveCamera(45, 1, 0.1, 1000); + camera = new THREE.PerspectiveCamera(45, 1, 0.1, 2000); textureLoader = new THREE.TextureLoader(); moonGroups = new Map(); moonShadowCasters = new Map(); @@ -1161,7 +1160,7 @@ async function initJupiterSystem() { cameraTarget = new THREE.Vector3(0, 0, 0); rotationEqjToEcl = AstronomyEngine.Rotation_EQJ_ECL(); - const ambientLight = new THREE.AmbientLight(0x334466, 0.8); + const ambientLight = new THREE.AmbientLight(0x334466, 0.2); scene.add(ambientLight); const hemiLight = new THREE.HemisphereLight(0x445577, 0x111a2e, 0.6); @@ -1180,6 +1179,8 @@ async function initJupiterSystem() { sunLight.shadow.camera.bottom = -40; sunLight.shadow.camera.updateProjectionMatrix(); sunLight.shadow.radius = 0.5; + sunLight.shadow.bias = 0.0008; + sunLight.shadow.normalBias = 0.02; scene.add(sunLight); scene.add(sunLight.target); // Pflicht: sonst ignoriert Three.js die Shadow-Camera-Ausrichtung diff --git a/public/solarsystem.php b/public/solarsystem.php index facb736..840feca 100644 --- a/public/solarsystem.php +++ b/public/solarsystem.php @@ -1246,7 +1246,6 @@ async function initSolarSystem() { renderer.shadowMap.type = THREE.PCFSoftShadowMap; scene = new THREE.Scene(); - scene.fog = new THREE.FogExp2(0x03050c, 0.0018); camera = new THREE.PerspectiveCamera(45, 1, 0.1, 2000); planetMeshes = new Map(); diff --git a/public/tagbogen.php b/public/tagbogen.php index c0604d3..31b7a16 100644 --- a/public/tagbogen.php +++ b/public/tagbogen.php @@ -717,27 +717,6 @@ function drawArc(){ ctx.clip(); if(!sd.polarNight){ - // Unter-Horizont gestrichelt (normal day) - nur Punkte wo alt<0 - if(!sd.polarDay){ - const sub=[]; - for(let i=0;i<=80;i++){ - const h=sd.riseUTC-3+i*6/80; - const{altitude,azimuth}=sunAltAz(loc.lat,loc.lon,hourToDate(currentDate,h)); - if(altitude<0) sub.push(proj(altitude,azimuth)); - else if(sub.length>0) { sub.push(null); } // Unterbrecher - } - // Zeichne mit Unterbrechungen - ctx.beginPath(); - let inPath=false; - sub.forEach(p=>{ - if(!p){inPath=false;return;} - if(!inPath){ctx.moveTo(p.x,p.y);inPath=true;} - else ctx.lineTo(p.x,p.y); - }); - ctx.strokeStyle='rgba(200,168,75,.15)';ctx.lineWidth=1.5*dpr; - ctx.setLineDash([4*dpr,8*dpr]);ctx.stroke();ctx.setLineDash([]); - } - // Äußerer Gluehschein ctx.beginPath(); drawWrappedPath(ctx,pts,W,sd.polarDay); diff --git a/public/telegram/broadcast_test.php b/public/telegram/broadcast_test.php index 3619523..b845246 100644 --- a/public/telegram/broadcast_test.php +++ b/public/telegram/broadcast_test.php @@ -184,9 +184,12 @@ PS $body = @file_get_contents($url, false, $context); $statusCode = 0; + $responseHeaders = function_exists('http_get_last_response_headers') + ? http_get_last_response_headers() + : ($http_response_header ?? null); - if (isset($http_response_header) && is_array($http_response_header)) { - foreach ($http_response_header as $headerLine) { + if (is_array($responseHeaders)) { + foreach ($responseHeaders as $headerLine) { if (preg_match('/^HTTP\/\S+\s+(\d{3})\b/', $headerLine, $matches) === 1) { $statusCode = (int) $matches[1]; break;