0, 'path' => '/', 'secure' => $isHttps, 'httponly' => true, 'samesite' => 'Lax']); session_start(); } require_once BASE_PATH . '/src/auth.php'; require_once BASE_PATH . '/config/config.php'; require_once BASE_PATH . '/src/ArticleManager.php'; $articles = new ArticleManager(BASE_PATH . '/data'); $now = time(); $base = rtrim(APP_URL, '/'); $items = array_filter( $articles->getAll(publishedOnly: true), static fn (array $a): bool => strtotime((string)($a['published_at'] ?? '')) <= $now ); $lastBuild = ''; foreach ($items as $a) { $ts = strtotime((string)($a['updated_at'] ?? $a['published_at'] ?? '')); if ($ts && $ts > strtotime($lastBuild ?: '1970-01-01')) { $lastBuild = date(DATE_RSS, $ts); } } if ($lastBuild === '') { $lastBuild = date(DATE_RSS); } header('Content-Type: application/rss+xml; charset=UTF-8'); header('X-Content-Type-Options: nosniff'); echo '' . "\n"; ?> varlog Journal personnel de Cédrix — informatique, hack et loisirs techniques. fr <?= $title ?>