HSK-Vorlage aus der Olzinger-Website ableiten

Firmendaten durch Platzhalter ersetzt (Mustermann Haustechnik GmbH,
Musterstraße 1, 12345 Musterstadt, 01234 567890, example.com), Design
und Funktionen unverändert.

- Feiertage im Öffnungsstatus per BUNDESLAND (alle 16 Länder) statt fest Bayern
- Datenschutz: Aufsichtsbehörde als TODO je Bundesland
- Skript-Namensraum olz -> hsk, Logo-SVG und OG-Bild neu
- .webklar-preview.json von Olzinger entfernt (sonst Deploy auf olzinger)
- .gitea/template: neue Repos aus der Vorlage erben die Preview-Datei nicht
- README: Anleitung für neue HSK-Seiten, Platzhalter-Tabelle, Checkliste

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Claude committed 2026-10-04 19:10:17 +00:00
1 parent ad155124b1
commit 8da5102333
21 files changed
+238 -180

No files matched your search

+7 -7
View File
@@ -1,6 +1,6 @@
<?php
/**
* Olzinger Haustechnik – Versand des Kontaktformulars
* HSK-Vorlage – Versand des Kontaktformulars
*
* Wird per fetch() aus assets/js/contact.js aufgerufen und antwortet mit JSON.
* Ist PHP auf dem Server nicht verfügbar, öffnet das Formular automatisch das
@@ -13,9 +13,9 @@
declare(strict_types=1);
const RECIPIENT = 'kontakt@olzinger.de';
const RECIPIENT = 'kontakt@example.com';
// Absender sollte eine Adresse der eigenen Domain sein (SPF/DKIM), sonst landen Mails im Spam.
const SENDER = 'kontakt@olzinger.de';
const SENDER = 'kontakt@example.com';
const MIN_SECONDS = 3;
date_default_timezone_set('Europe/Berlin');
@@ -85,9 +85,9 @@ if ($errors) {
respond(422, ['ok' => false, 'errors' => $errors]);
}
$subject = 'Anfrage über olzinger.de' . ($topic !== '' ? ' – ' . $topic : '');
$subject = 'Anfrage über example.com' . ($topic !== '' ? ' – ' . $topic : '');
$body = implode("\n", [
'Neue Anfrage über das Kontaktformular auf olzinger.de',
'Neue Anfrage über das Kontaktformular auf example.com',
'',
'Anliegen: ' . ($topic !== '' ? $topic : '–'),
'Name: ' . $name,
@@ -103,12 +103,12 @@ $body = implode("\n", [
]);
$headers = implode("\r\n", [
'From: Website Olzinger <' . SENDER . '>',
'From: Website Mustermann <' . SENDER . '>',
'Reply-To: ' . $email,
'MIME-Version: 1.0',
'Content-Type: text/plain; charset=UTF-8',
'Content-Transfer-Encoding: 8bit',
'X-Mailer: olzinger.de',
'X-Mailer: example.com',
]);
$encodedSubject = '=?UTF-8?B?' . base64_encode($subject) . '?=';