} else { if (isset($_GET['category'])) { // category exists if (Validator::isInteger($_GET['category'], 0)) { list($entries, $paging) = getEntryWithPagingBySlogan($blogid, $suri['value'], false, $_GET['category']); } } else { // Just normal entry view list($entries, $paging) = getEntryWithPagingBySlogan($blogid, $suri['value']); if (isset($_GET['commentId']) || isset($_GET['commentInput'])) { if (isset($_GET['commentId']) && Validator::isInteger($_GET['commentId'], 1)) { $commentId = $_GET['commentId']; } else { $commentId = 1; } $suri['page'] = getCommentPageById(getBlogId(), $entries[0]['id'], $commentId); $context->setProperty('blog.showCommentBox', true); } } } fireEvent('OBStart'); require ROOT . '/interface/common/blog/begin.php'; if (empty($suri['value'])) { require ROOT . '/interface/common/blog/entries.php'; } else { if (empty($entries)) { header('HTTP/1.1 404 Not Found'); if (empty($skin->pageError)) { dress('article_rep', fireEvent('ViewErrorPage', '<div class="TCwarning">' . _text('존재하지 않는 페이지입니다.') . '</div>'), $view); } else { dress('article_rep', NULL, $view);
function getGuestbookPageById($blogid, $id) { return getCommentPageById($blogid, 0, $id); }