dies und das
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user