ab die post

This commit is contained in:
2025-12-30 02:14:28 +01:00
parent 54ee2b3b73
commit a4304959e7
3 changed files with 11 additions and 0 deletions

View File

@@ -8,6 +8,10 @@
if (!defined('APP_DEBUG')) {
define('APP_DEBUG', false); // Debug in Prod aus
}
// Robots: Prod indexierbar
if (!defined('APP_ROBOTS')) {
define('APP_ROBOTS', 'index,follow');
}
// Crypto-Key für verschlüsselte Felder (Telefon, Kinder etc.)
// Bitte in Staging per Hosting-ENV setzen; dieses putenv dient nur als Fallback/Beispiel.

View File

@@ -8,6 +8,10 @@
if (!defined('APP_DEBUG')) {
define('APP_DEBUG', true); // Debug in Staging
}
// Robots: Staging niemals indexieren
if (!defined('APP_ROBOTS')) {
define('APP_ROBOTS', 'noindex,nofollow');
}
// Crypto-Key für verschlüsselte Felder (Telefon, Kinder etc.)
// Bitte in Staging per Hosting-ENV setzen; dieses putenv dient nur als Fallback/Beispiel.

View File

@@ -34,6 +34,9 @@ if ($debugEnabled) {
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?= htmlspecialchars(t('common.title'), ENT_QUOTES) ?></title>
<meta name="description" content="Papa-Kind-Treff: Väter vernetzen sich für Treffen mit und ohne Kinder, Events in der Nähe entdecken und sicher Kontakte knüpfen.">
<?php if (defined('APP_ROBOTS')): ?>
<meta name="robots" content="<?= htmlspecialchars(APP_ROBOTS, ENT_QUOTES) ?>">
<?php endif; ?>
<?php
$canonicalHost = APP_DOMAIN_NAME ?? ($_SERVER['HTTP_HOST'] ?? 'papa-kind-treff.info');
$scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'https';