dies und das

This commit is contained in:
Eskimue
2026-04-04 13:39:00 +02:00
parent ad01e17da7
commit 5cc3f57b1c
7 changed files with 88 additions and 4 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
$cfg = require __DIR__ . '/../config/database.php';
$pdo = new PDO(
sprintf('mysql:host=%s;dbname=%s;charset=%s', $cfg['host'], $cfg['dbname'], $cfg['charset']),
$cfg['user'],
$cfg['pass'],
[PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC]
);
$stmt = $pdo->query("SELECT designation, shower_code, radiant_alpha_deg, radiant_delta_deg, peak_sol, zhr, zhr_variable FROM meteorshowers WHERE shower_code='PER' OR designation LIKE '%Perseid%'");
foreach ($stmt as $row) {
echo json_encode($row, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), PHP_EOL;
}
View File
+11
View File
@@ -0,0 +1,11 @@
<?php
$_GET['month'] = '4';
$_GET['year'] = '2026';
ob_start();
require __DIR__ . '/../public/monatsvorhersage_old.php';
$html = ob_get_clean();
if (preg_match('/const MONTH_CHART_METEOR_RADIANTS = (.*?);/s', $html, $m)) {
echo $m[1], PHP_EOL;
} else {
echo "NOT_FOUND", PHP_EOL;
}
+11
View File
@@ -0,0 +1,11 @@
<?php
$_GET['month'] = '8';
$_GET['year'] = '2026';
ob_start();
require __DIR__ . '/../public/monatsvorhersage_old.php';
$html = ob_get_clean();
if (preg_match('/const MONTH_CHART_METEOR_RADIANTS = (.*?);/s', $html, $m)) {
echo $m[1], PHP_EOL;
} else {
echo "NOT_FOUND", PHP_EOL;
}