'; $xml .= ''; $xml .= ''; $xml .= 'Le dev-blog de Shikiryu'; $xml .= 'http://www.shikiryu.com/devblog'; $xml .= 'Le dev-blog de Shikiryu';*/ header("Content-Type: text/xml;charset=utf-8"); header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date dans le passé $rss = SRSS::create(); $rss->title = 'Le dev-blog de Shikiryu'; $rss->link = 'http://www.shikiryu.com/devblog/'; $rss->description = 'Le dev-blog de Shikiryu'; $rss->setImage('http://shikiryu.com/favicon.ico', 'icon', 'http://shikiryu.com/devblog'); $content = $cms->fetchArticles(10); foreach($content as $item){ $rssitem= new SRSSItem; $rssitem->title = $item["childs"]["title"]; $rssitem->link = "http://shikiryu.com/devblog/article-".$item['attributes']['id']. "-".utf8_encode(htmlspecialchars(stripslashes($item['childs']['file']))); $rssitem->pubDate = SRSSTools::getRSSDate($item["childs"]["date"], 'd/m/Y'); $rssitem->description = CMS_XML::Markdown2HTML($item["childs"]["text"]); $rss->addItem($rssitem); } echo $rss->show(); /* echo << Le dev-blog de Shikiryu http://www.shikiryu.com/devblog Le dev-blog de Shikiryu END; $rss = $cms->fetchArticles(10); foreach($rss as $item){ list($jour, $mois, $annee) = explode("/", $item["childs"]["date"]); $title = stripslashes($item["childs"]["title"]); $link = "http://shikiryu.com/devblog/article-".$item['attributes']['id']. "-".utf8_encode(htmlspecialchars(stripslashes($item['childs']['file']))); $date = date("D, d M Y H:i:s", strtotime($mois.'/'.$jour.'/'.$annee)); $description = CMS_XML::Markdown2HTML(utf8_decode(stripslashes($item["childs"]["text"]))); echo << $title $link $date END; } print << END;*/