$chapter) { if ($chapter['id'] === $chapterId) { $currentChapter = $chapter; $currentIndex = $index; break; } } if (!$currentChapter) { header('Location: roman.php?id=' . urlencode($storyId)); exit; } // Récupération des chapitres précédent et suivant $prevChapter = $currentIndex > 0 ? $story['chapters'][$currentIndex - 1] : null; $nextChapter = $currentIndex < count($story['chapters']) - 1 ? $story['chapters'][$currentIndex + 1] : null; $config = Config::load(); ?> <?= htmlspecialchars($currentChapter['title']) ?> - <?= htmlspecialchars($story['title']) ?> - <?= htmlspecialchars($config['site']['name']) ?>

← Retour à l'accueil | ← Retour au roman