Kabano is a PHP web application listing alpine huts. https://kabano.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

45 lines
1.4 KiB

<?
$ts = gmdate("D, d M Y H:i:s", time() + 60) . " GMT";
header("Content-disposition: filename=blog.rss");
header("Content-Type: application/xml; UTF-8");
header("Content-Transfer-Encoding: binary");
header("Pragma: cache");
header("Expires: $ts");
header("Access-Control-Allow-Origin: *");
header("Cache-Control: max-age=60");
echo ('<?xml version="1.0" encoding="UTF-8"?>'); ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Kabano</title>
<link><?=$config['web_root_folder']?></link>
<atom:link href="<?=$config['web_root_folder']?>blog/rss" rel="self" type="application/rss+xml" />
<description>L'actualité du blog officiel de Kabano : Plateforme collaborative de recensement de cabanes et refuges.</description>
<language>fr</language>
<image>
<url><?=$config['web_root_folder']?>views/img/header_rss.svg</url>
<title>Kabano</title>
<link><?=$config['web_root_folder']?></link>
<height>44</height>
<width>154</width>
</image>
<? foreach ($blogArticles->objs as $row) { ?>
<item>
<title><?=$row->name?></title>
<link><?=$config['web_root_folder']?>blog/<?=$row->permalink?></link>
<guid><?=$config['web_root_folder']?>blog/<?=$row->permalink?></guid>
<pubDate><?=gmdate(DATE_RFC822, strtotime($row->update_date))?></pubDate>
<description><![CDATA[
<?=$row->content_html?>
]]></description>
</item>
<? } ?>
</channel>
</rss>