From 03220c580a8aea7c83328a27053852f4eba31880 Mon Sep 17 00:00:00 2001 From: Arcturus Date: Thu, 19 Sep 2024 20:39:29 +0900 Subject: [PATCH] update plugin/syndi --- AvocadoEdition_Light/plugin/syndi/_common.php | 5 +- AvocadoEdition_Light/plugin/syndi/ping.php | 129 +++++++++--------- 2 files changed, 66 insertions(+), 68 deletions(-) diff --git a/AvocadoEdition_Light/plugin/syndi/_common.php b/AvocadoEdition_Light/plugin/syndi/_common.php index bad54a5..03b90f3 100644 --- a/AvocadoEdition_Light/plugin/syndi/_common.php +++ b/AvocadoEdition_Light/plugin/syndi/_common.php @@ -1,3 +1,2 @@ - \ No newline at end of file + 1) - die("비회원 읽기가 가능한 게시판만 신디케이션을 지원합니다."); - -if (strstr($write['wr_option'], 'secret')) - die("비밀글은 신디케이션을 지원하지 않습니다."); - -if (preg_match('#^('.$config['cf_syndi_except'].')$#', $bo_table)) - die("신디케이션에서 제외된 게시판입니다."); - -$title = htmlspecialchars($write['wr_subject']); -$author = htmlspecialchars($write['wr_name']); -$published = date('Y-m-d\TH:i:s\+09:00', strtotime($write['wr_datetime'])); -$updated = $published; -$link_href = G5_BBS_URL . "/board.php?bo_table={$bo_table}"; -$id = $link_href . htmlspecialchars("&wr_id={$wr_id}"); -$cf_title = htmlspecialchars($config['cf_title']); -$link_title = htmlspecialchars($board['bo_subject']); -$feed_updated = date('Y-m-d\TH:i:s\+09:00', G5_SERVER_TIME); - -$find = array('&', ' '); # 찾아서 -$replace = array('&', ' '); # 바꾼다 - -$content = str_replace( $find, $replace, $write['wr_content'] ); -$summary = str_replace( $find, $replace, strip_tags($write['wr_content']) ); - -Header("Content-type: text/xml"); -header("Cache-Control: no-cache, must-revalidate"); -header("Pragma: no-cache"); - -echo "\n"; -echo "\n"; -echo "" . G5_URL . "\n"; -echo "naver syndication feed document\n"; -echo "\n"; - echo "webmaster\n"; -echo "\n"; - -echo "{$feed_updated}\n"; - -echo "\n"; -echo "\n"; - echo "{$id}\n"; - echo "<![CDATA[{$title}]]>\n"; - echo "\n"; - echo "{$author}\n"; - echo "\n"; - echo "{$updated}\n"; - echo "{$published}\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; -echo "\n"; -echo ""; -?> \ No newline at end of file + 1) + die("비회원 읽기가 가능한 게시판만 신디케이션을 지원합니다."); + +if (strstr($write['wr_option'], 'secret')) + die("비밀글은 신디케이션을 지원하지 않습니다."); + +if (preg_match('#^('.$config['cf_syndi_except'].')$#', $bo_table)) + die("신디케이션에서 제외된 게시판입니다."); + +$title = htmlspecialchars($write['wr_subject']); +$author = htmlspecialchars($write['wr_name']); +$published = date('Y-m-d\TH:i:s\+09:00', strtotime($write['wr_datetime'])); +$updated = $published; +$link_href = G5_BBS_URL . "/board.php?bo_table={$bo_table}"; +$id = $link_href . htmlspecialchars("&wr_id={$wr_id}"); +$cf_title = htmlspecialchars($config['cf_title']); +$link_title = htmlspecialchars($board['bo_subject']); +$feed_updated = date('Y-m-d\TH:i:s\+09:00', G5_SERVER_TIME); + +$find = array('&', ' '); # 찾아서 +$replace = array('&', ' '); # 바꾼다 + +$content = str_replace( $find, $replace, html_purifier($write['wr_content']) ); +$summary = str_replace( $find, $replace, strip_tags($write['wr_content']) ); + +Header("Content-type: text/xml"); +header("Cache-Control: no-cache, must-revalidate"); +header("Pragma: no-cache"); + +echo "\n"; +echo "\n"; +echo "" . G5_URL . "\n"; +echo "naver syndication feed document\n"; +echo "\n"; + echo "webmaster\n"; +echo "\n"; + +echo "{$feed_updated}\n"; + +echo "\n"; +echo "\n"; + echo "{$id}\n"; + echo "<![CDATA[{$title}]]>\n"; + echo "\n"; + echo "{$author}\n"; + echo "\n"; + echo "{$updated}\n"; + echo "{$published}\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; +echo "\n"; +echo ""; \ No newline at end of file