* Date: 2026-5-30 */ if (!defined('ROOT_PATH')) { exit('Access Denied'); } if (!isset($article) && isset($id) && $id > 0) { $article = $db->fetch("SELECT a.*, c.channel_name FROM {$db->table('article')} a LEFT JOIN {$db->table('channel')} c ON a.channel_id=c.id WHERE a.id=? AND a.status=1", [$id]); } $pageTitle = htmlspecialchars($article['title'] ?? ($article['channel_name'] ?? '单页详情')); require_once __DIR__ . '/_header.php'; $detailChannelName = $article['channel_name'] ?? '单页'; $detailTitle = $article['title'] ?? ''; $detailBreadcrumb = '内容详情'; $detailDateRaw = $article['create_time'] ?? 0; $detailAuthorRaw = $article['author'] ?? ''; $detailHitsRaw = $article['hits'] ?? 0; $detailSummaryRaw = $article['description'] ?? ''; require __DIR__ . '/_detail_top.php'; ?>