diff --git a/partials/landing/main/home.php b/partials/landing/main/home.php index e50d05d..323eb6d 100755 --- a/partials/landing/main/home.php +++ b/partials/landing/main/home.php @@ -9,7 +9,10 @@ $flash = $app->flash()->get(); ?>
env:
-

+
+ Nexus +

+

diff --git a/public/assets/images/logo.png b/public/assets/images/logo.png new file mode 100644 index 0000000..b72c9e9 Binary files /dev/null and b/public/assets/images/logo.png differ diff --git a/src/App/AccountPages.php b/src/App/AccountPages.php index 24c173a..a6adc48 100755 --- a/src/App/AccountPages.php +++ b/src/App/AccountPages.php @@ -378,7 +378,7 @@ final class AccountPages $ctx = stream_context_create([ 'http' => [ 'method' => 'GET', - 'header' => "User-Agent: papa-kind-treff/1.0\r\nAccept-Language: de\r\n", + 'header' => "User-Agent: nexus/1.0\r\nAccept-Language: de\r\n", 'timeout' => 6, ], ]); diff --git a/src/App/Config.php b/src/App/Config.php index e2d07bc..0d4cc04 100755 --- a/src/App/Config.php +++ b/src/App/Config.php @@ -11,6 +11,18 @@ class Config ) { } + public function primaryUrl(): string + { + if (defined('APP_URL_PRIMARY') && APP_URL_PRIMARY !== '') { + return APP_URL_PRIMARY; + } + $domain = $this->cookieDomain(); + if ($domain) { + return 'https://' . $domain; + } + return ''; + } + public function cookiePrefix(): string { if (defined('APP_PREFIX') && APP_PREFIX !== '') { diff --git a/src/App/I18n.php b/src/App/I18n.php index 44a9b60..2761a0c 100755 --- a/src/App/I18n.php +++ b/src/App/I18n.php @@ -13,8 +13,8 @@ final class I18n // Minimal example translations (normally load JSON/PHP arrays from disk) $this->fallback = [ 'common' => [ - 'title' => 'Papa-Kind-Treff', - 'intro' => 'Väter vernetzen sich für Treffen mit und ohne Kinder.', + 'title' => 'Nexus', + 'intro' => 'Internal configuration editor', ], 'cta' => [ 'primary' => 'Weiter', @@ -48,7 +48,7 @@ final class I18n // Built-ins $val = str_replace('{year}', date('Y'), $val); - $val = str_replace('{{primary_url}}', $this->config->primaryUrl, $val); + $val = str_replace('{{primary_url}}', $this->config->primaryUrl(), $val); foreach ($vars as $k => $v) { $val = str_replace('{' . $k . '}', (string)$v, $val); diff --git a/src/App/Mailer.php b/src/App/Mailer.php index 26bce31..7ba3454 100755 --- a/src/App/Mailer.php +++ b/src/App/Mailer.php @@ -102,7 +102,7 @@ final class Mailer $this->log('template_api_success', ['template' => $id, 'subject' => $decoded['subject'] ?? null, 'html_len' => strlen((string)$decoded['html'])]); return [ 'id' => $id, - 'subject' => $decoded['subject'] ?? 'Papa-Kind-Treff', + 'subject' => $decoded['subject'] ?? 'Nexus', 'html' => $decoded['html'], ]; } @@ -113,7 +113,7 @@ final class Mailer } // Fallback: einfacher Text - $subject = 'Papa-Kind-Treff'; + $subject = 'Nexus'; $body = $id; foreach ($vars as $k => $v) { $body = str_replace(['{' . $k . '}', '{{' . $k . '}}'], (string)$v, $body); @@ -134,7 +134,7 @@ final class Mailer $tpl = $this->renderTemplate($templateKey, $vars); $resolvedId = $tpl['id'] ?? $templateKey; - $subject = $tpl['subject'] ?? 'Papa-Kind-Treff'; + $subject = $tpl['subject'] ?? 'Nexus'; $html = $tpl['html'] ?? ''; $this->log('mail_rendered_template', [ @@ -147,7 +147,7 @@ final class Mailer $transport = getenv('MAIL_TRANSPORT') ?: 'mail'; $fromEmail = getenv('MAIL_FROM') ?: 'no-reply@' . $this->app->config()->primaryDomain; - $fromName = getenv('MAIL_FROM_NAME') ?: 'Papa-Kind-Treff'; + $fromName = getenv('MAIL_FROM_NAME') ?: 'Nexus'; $this->log('mail_send_start', [ 'template_key' => $templateKey,