Stadionzeitung gegen TDC Lindau 2 mit Jugendbeitrag vorbereiten

This commit is contained in:
2026-10-24 11:52:57 +02:00
parent bd8f1dd129
commit fd305673aa
37 changed files with 790 additions and 2 deletions

View File

@@ -149,6 +149,11 @@ if (!$lock || !flock($lock, LOCK_EX | LOCK_NB)) {
// --- HTTP-Helfer, unverändert aus bin/instagram-sync.php übernommen ---
$fetch = static function (string $url, array $headers = []): string|false {
$ch = curl_init($url);
// Optional wie im Matchcenter-Sync, wenn der lokale DNS-Dienst ausfällt.
$dohUrl = getenv('TSV_HTTP_DOH_URL') ?: '';
if ($dohUrl !== '') {
curl_setopt($ch, CURLOPT_DOH_URL, $dohUrl);
}
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,