Startseite: Anfrageformular sendet serverseitig, Landingpage und netcup-Ziel
- Neues oeffentliches Formular-Endpoint POST /anfrage (app/inquiry.php): Pflichtfelder ausser Nachricht, Validierung, Honeypot, IP-Limit 5/Stunde, Versand per mail_send() mit Reply-To des Kunden - kein mailto mehr - mail_send() akzeptiert zusaetzliche Kopfzeilen (CRLF bereinigt) - app.inquiry_email in Konfiguration und Deploy-Template (DIC_INQUIRY_EMAIL) - Statische Landingpage web/index.html mit Assets, Service-Worker-Cache dic-v18 - App-Routen auf /dashboard, netcup-Deploy-Doku und Fundstellen aktualisiert
This commit is contained in:
parent
273eabfdb7
commit
fe388838db
27 changed files with 2598 additions and 57 deletions
|
|
@ -33,6 +33,7 @@ require DIC_APP . '/auth.php';
|
|||
require DIC_APP . '/data.php';
|
||||
require DIC_APP . '/push.php';
|
||||
require DIC_APP . '/mail.php';
|
||||
require DIC_APP . '/inquiry.php';
|
||||
require DIC_APP . '/invite.php';
|
||||
require DIC_APP . '/privacy.php';
|
||||
require DIC_APP . '/pages.php';
|
||||
|
|
@ -64,7 +65,7 @@ if (PHP_SAPI !== 'cli') {
|
|||
$path = current_path();
|
||||
$legalPublic = legal_is_public_path($path);
|
||||
security_headers($legalPublic);
|
||||
$sessionFree = ['/health', '/cron/reminders'];
|
||||
$sessionFree = ['/health', '/cron/reminders', '/anfrage'];
|
||||
if (!$legalPublic && !in_array($path, $sessionFree, true)) {
|
||||
start_session();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue