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