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;
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
# Lokaler PHP-Webserver auf diesem Rechner
|
||||
|
||||
Diese Anleitung gilt fuer den Rechner `ARBEITSPLATZTM`.
|
||||
|
||||
## PHP-Pfad
|
||||
|
||||
`E:\php\php.exe`
|
||||
|
||||
## Projektverzeichnis
|
||||
|
||||
`C:\Users\HP\source\repos\skyview.astronomiemuseum.de`
|
||||
|
||||
## Document-Root
|
||||
|
||||
`C:\Users\HP\source\repos\skyview.astronomiemuseum.de\public`
|
||||
|
||||
## Server starten
|
||||
|
||||
Im Projektordner:
|
||||
|
||||
```powershell
|
||||
Set-Location C:\Users\HP\source\repos\skyview.astronomiemuseum.de
|
||||
& 'E:\php\php.exe' -S 127.0.0.1:8000 -t public
|
||||
```
|
||||
|
||||
Dann ist das Projekt unter folgender URL erreichbar:
|
||||
|
||||
`http://127.0.0.1:8000/`
|
||||
|
||||
## Optional: anderer Port
|
||||
|
||||
Wenn Port `8000` bereits belegt ist:
|
||||
|
||||
```powershell
|
||||
Set-Location C:\Users\HP\source\repos\skyview.astronomiemuseum.de
|
||||
& 'E:\php\php.exe' -S 127.0.0.1:8001 -t public
|
||||
```
|
||||
|
||||
## Server beenden
|
||||
|
||||
Im laufenden Terminal:
|
||||
|
||||
```powershell
|
||||
Ctrl + C
|
||||
```
|
||||
|
||||
## Hinweis
|
||||
|
||||
Der Webserver nutzt den eingebauten PHP-Entwicklungsserver und ist fuer lokale Entwicklung gedacht.
|
||||
+4
-4
@@ -345,7 +345,7 @@ CREATE TABLE IF NOT EXISTS `meteorshowers` (
|
||||
KEY `idx_meteorshowers_active_finish` (`active_finish_sol`),
|
||||
KEY `idx_meteorshowers_peak` (`peak_sol`),
|
||||
KEY `idx_meteorshowers_zhr` (`zhr`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Meteorstroeme mit Stammdaten sowie generischen und historischen Aktivitaetsinformationen';
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=89 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Meteorstroeme mit Stammdaten sowie generischen und historischen Aktivitaetsinformationen';
|
||||
|
||||
-- Daten-Export vom Benutzer nicht ausgewählt
|
||||
|
||||
@@ -490,7 +490,7 @@ CREATE TABLE IF NOT EXISTS `sat_import_runs` (
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_sat_import_runs_source` (`source`),
|
||||
KEY `idx_sat_import_runs_started_at` (`started_at`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- Daten-Export vom Benutzer nicht ausgewählt
|
||||
|
||||
@@ -540,7 +540,7 @@ CREATE TABLE IF NOT EXISTS `sat_satellites` (
|
||||
KEY `idx_sat_satellites_object_name` (`object_name`),
|
||||
KEY `idx_sat_satellites_object_type` (`object_type`),
|
||||
KEY `idx_sat_satellites_object_id` (`object_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=296305 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=311236 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- Daten-Export vom Benutzer nicht ausgewählt
|
||||
|
||||
@@ -577,7 +577,7 @@ CREATE TABLE IF NOT EXISTS `sat_tle_current` (
|
||||
KEY `idx_sat_tle_current_epoch` (`epoch`),
|
||||
KEY `idx_sat_tle_current_source` (`source`),
|
||||
CONSTRAINT `fk_sat_tle_current_satellite_id` FOREIGN KEY (`satellite_id`) REFERENCES `sat_satellites` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=296305 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=311236 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- Daten-Export vom Benutzer nicht ausgewählt
|
||||
|
||||
|
||||
@@ -1528,6 +1528,7 @@ foreach ($meteorShowerPeaks as $meteorShowerPeak) {
|
||||
'local_iso' => $peakDateTime->format(DateTimeInterface::ATOM),
|
||||
'type' => 'meteor_shower_peak',
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
usort(
|
||||
|
||||
Reference in New Issue
Block a user