</span></th> <th class="delete"><span class="text"><?php echo _t('삭제'); ?> </span></th> </tr> </thead> <tbody> <?php $more = false; $mergedComments = array(); $lastVisitNotifiedPage = Setting::getBlogSettingGlobal('lastVisitNotifiedPage', null); setBlogSetting('lastVisitNotifiedPage', time()); for ($i = 0; $i < count($comments); $i++) { array_push($mergedComments, $comments[$i]); $result = getCommentCommentsNotified($comments[$i]['id']); for ($j = 0; $j < count($result); $j++) { array_push($mergedComments, $result[$j]); } } $nameNumber = array(); for ($i = 0; $i < sizeof($mergedComments); $i++) { $comment = $mergedComments[$i]; if (Filter::isFiltered('name', $comment['name'])) { $isNameFiltered = true; } else { $isNameFiltered = false; } if (!isset($nameNumber[$comment['name']])) { $nameNumber[$comment['name']] = $i; $currentNumber = $i;
function getCommentNotifiedFeedTotal($blogid, $mode = 'rss') { global $database, $serviceURL, $defaultURL, $blogURL, $blog, $service; if (empty($blogid)) { $blogid = getBlogId(); } $channel = initializeRSSchannel($blogid); $channel['title'] = RSSMessage($blog['title'] . ': ' . _text('최근 댓글 알리미 목록')); $mergedComments = array(); list($comments, $paging) = getCommentsNotifiedWithPagingForOwner($blogid, '', '', '', '', 1, 20); for ($i = 0; $i < count($comments); $i++) { array_push($mergedComments, $comments[$i]); $result = getCommentCommentsNotified($comments[$i]['id']); for ($j = 0; $j < count($result); $j++) { array_push($mergedComments, $result[$j]); } } if (!$mergedComments) { $mergedComments = array(); } $channel['items'] = array(); foreach ($mergedComments as $row) { $item = array('id' => $row['id'], 'title' => RSSMessage($row['entrytitle']), 'link' => $row['url'], 'categories' => array(), 'description' => RSSMessage(htmlspecialchars($row['comment'])), 'author' => RSSMessage(htmlspecialchars($row['name'])), 'pubDate' => $row['written'], 'comments' => $row['entryurl'], 'guid' => $row['url']); array_push($channel['items'], $item); } $rss = array('channel' => $channel); if ($mode == 'rss') { return publishRSS($blogid, $rss); } else { if ($mode == 'atom') { return publishATOM($blogid, $rss); } } return false; }