dispRss20($info, $content); break; } exit(); } /** * @brief content를 받아서 rss 형식으로 출력 **/ function dispRss20($info, $content) { header("Content-Type: text/xml; charset=UTF-8"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); print ''."\n"; print "\n"; ?> <![CDATA[<?=$info->title?>]]> link?>]]> description?>]]> language?> date?> total_count?> regdate,0,4); $month = substr($item->regdate,4,2); $day = substr($item->regdate,6,2); $hour = substr($item->regdate,8,2); $min = substr($item->regdate,10,2); $sec = substr($item->regdate,12,2); $time = mktime($hour,$min,$sec,$month,$day,$year); $title = $item->title; $author = $item->user_name; $link = sprintf("%s?document_srl=%d", Context::getRequestUri(), $item->document_srl); $description = $item->content; $date = gmdate("D, d M Y H:i:s", $time); ?> <![CDATA[<?=$title?>]]> ]]> ]]> ]]>