getPrivateCategories(); $now = time(); $base = rtrim(APP_URL, '/'); $all = array_values(array_filter( $articles->getAll(publishedOnly: true), static function (array $a) use ($now, $privateCats): bool { if (strtotime((string)($a['published_at'] ?? '')) > $now) { return false; } $cat = trim($a['category'] ?? ''); return $cat === '' || !in_array($cat, $privateCats, true); } )); // ─── Détection navigateur ──────────────────────────────────────────────────── $accept = $_SERVER['HTTP_ACCEPT'] ?? ''; $isBrowser = str_contains($accept, 'text/html') && !str_contains($accept, 'application/rss+xml'); if ($isBrowser) { require_once BASE_PATH . '/src/Parsedown.php'; $Parsedown = new Parsedown(); $feedUrl = $base . '/feed'; $recentItems = array_slice($all, 0, 10); ob_start(); ?>

Flux RSS — varlog

Journal personnel de Cédrix — informatique, hack et loisirs techniques.

S'abonner

Copiez cette URL dans votre lecteur RSS (Miniflux, Feedly, NetNewsWire…) pour recevoir les nouveaux articles automatiquement.

Derniers articles

text($a['content'] ?? '')), 0, 100, '…'); $cat = trim($a['category'] ?? ''); ?>

$base . '/feed' . ($p > 1 ? '?page=' . $p : ''); $lastBuild = ''; foreach ($all as $a) { $ts = (int)strtotime((string)($a['updated_at'] ?? $a['published_at'] ?? '')); if ($ts > (int)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 1): ?>