300; $captchaValid = !$captchaExpired && preg_match('/^[0-9]{5}$/', $captchaInput) && $captchaHash !== '' && password_verify($captchaInput, $captchaHash); if (!$captchaValid) $errors[] = $captchaExpired ? '자동입력 방지 숫자가 만료되었습니다.' : '자동입력 방지 숫자가 일치하지 않습니다.'; $name = nes_home_clean((string)($_POST['name'] ?? ''), 30); $title = nes_home_clean((string)($_POST['title'] ?? ''), 100); $body = nes_home_clean((string)($_POST['content'] ?? ''), 2000); if (mb_strlen($name, 'UTF-8') < 2) $errors[] = '작성자는 2자 이상 입력해주세요.'; if (mb_strlen($title, 'UTF-8') < 2) $errors[] = '제목은 2자 이상 입력해주세요.'; if (mb_strlen($body, 'UTF-8') < 5) $errors[] = '문의 내용은 5자 이상 입력해주세요.'; if (!$errors) { $row = ['id' => nes_home_id(), 'name' => $name, 'title' => $title, 'content' => $body, 'answer' => '', 'answered_at' => '', 'created_at' => date(DATE_ATOM)]; if (nes_home_mutate('inquiries', fn($rows) => array_merge([$row], $rows))) { $_SESSION['nes_inquiry_flash'] = '문의가 정상적으로 등록되었습니다.'; header('Location: /#inquiries', true, 303); exit; } $errors[] = '문의를 저장하지 못했습니다. 관리자에게 문의해주세요.'; } } } $notices = nes_home_notices(); $inquiries = nes_home_inquiries(); $noticeQueryValue = $_GET['notice_q'] ?? ''; $inquiryQueryValue = $_GET['inquiry_q'] ?? ''; $noticeQuery = nes_home_clean(is_scalar($noticeQueryValue) ? (string)$noticeQueryValue : '', 150); $inquiryQuery = nes_home_clean(is_scalar($inquiryQueryValue) ? (string)$inquiryQueryValue : '', 30); $noticePager = nes_home_paginate( nes_home_filter_rows($notices, 'title', $noticeQuery), nes_home_page_number($_GET['notice_page'] ?? 1), 10 ); $inquiryPager = nes_home_paginate( nes_home_filter_rows($inquiries, 'name', $inquiryQuery), nes_home_page_number($_GET['inquiry_page'] ?? 1), 10 ); $publicBoardUrl = static function (array $changes, string $anchor) use ($noticeQuery, $noticePager, $inquiryQuery, $inquiryPager): string { $params = [ 'notice_q' => $noticeQuery, 'notice_page' => $noticePager['page'], 'inquiry_q' => $inquiryQuery, 'inquiry_page' => $inquiryPager['page'], ]; foreach ($changes as $key => $value) $params[$key] = $value; return nes_home_url('/', $params, $anchor); }; $slides = [$content['image_1'], $content['image_2'], $content['image_3'], $content['image_4']]; ?> <?= nes_home_h($content['browser_title']) ?>


01 02 03
01 / 04
$src): $number = $index + 1; ?><?= nes_home_h($content['slide_' . $number . '_alt']) ?>
$_): ?>


서비스 소개 이미지 <?= $i ?>


$notice): ?>
1): ?>

$inquiry): ?>
1): ?>