E-Mail-Benachrichtigungen für Mitgliedsanträge

This commit is contained in:
torsten 2026-11-08 19:16:53 +01:00
parent 1328354827
commit a0e85de7bd
4 changed files with 93 additions and 7 deletions

View file

@ -76,6 +76,18 @@ function e($value): string
return htmlspecialchars((string) $value, ENT_QUOTES, 'UTF-8');
}
/** Basis-URL der Anwendung (ohne abschließenden Slash). */
function app_base_url(): string
{
$url = rtrim((string) config('app.url'), '/');
if ($url === '' || str_contains($url, 'localhost')) {
return 'https://motorrad-ig.de';
}
return $url;
}
/** Ein Request-Eingabewert (POST hat Vorrang vor GET). */
function input(string $key, $default = null)
{