Text für Monat angefangen

This commit is contained in:
Eskimue
2026-04-04 14:37:07 +02:00
parent 08de43621e
commit 08c24d728e
4 changed files with 147 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
session_start();
$_SESSION['user_id'] = 1;
$_GET['month'] = '3';
$_GET['year'] = '2026';
ob_start();
require __DIR__ . '/../public/monatsvorhersage_old.php';
$html = ob_get_clean();
if (preg_match('/<p class="monatsnarrativ-text">(.*?)<\/p>/s', $html, $m)) {
echo html_entity_decode(strip_tags($m[1]), ENT_QUOTES | ENT_HTML5, 'UTF-8'), PHP_EOL;
} else {
echo 'NARRATIVE_NOT_FOUND', PHP_EOL;
}