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.

d.blog.list.rss 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?
  2. $ts = gmdate("D, d M Y H:i:s", time() + 60) . " GMT";
  3. header("Content-disposition: filename=blog.rss");
  4. header("Content-Type: application/xml; UTF-8");
  5. header("Content-Transfer-Encoding: binary");
  6. header("Pragma: cache");
  7. header("Expires: $ts");
  8. header("Access-Control-Allow-Origin: *");
  9. header("Cache-Control: max-age=60");
  10. echo ('<?xml version="1.0" encoding="UTF-8"?>'); ?>
  11. <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  12. <channel>
  13. <title>Kabano</title>
  14. <link><?=$config['web_root_folder']?></link>
  15. <atom:link href="<?=$config['web_root_folder']?>blog/rss" rel="self" type="application/rss+xml" />
  16. <description>L'actualité du blog officiel de Kabano : Plateforme collaborative de recensement de cabanes et refuges.</description>
  17. <language>fr</language>
  18. <image>
  19. <url><?=$config['web_root_folder']?>views/img/header_rss.svg</url>
  20. <title>Kabano</title>
  21. <link><?=$config['web_root_folder']?></link>
  22. <height>44</height>
  23. <width>154</width>
  24. </image>
  25. <? foreach ($blogArticles->objs as $row) { ?>
  26. <item>
  27. <title><?=$row->name?></title>
  28. <link><?=$config['web_root_folder']?>blog/<?=$row->permalink?></link>
  29. <guid><?=$config['web_root_folder']?>blog/<?=$row->permalink?></guid>
  30. <pubDate><?=gmdate(DATE_RFC822, strtotime($row->update_date))?></pubDate>
  31. <description><![CDATA[
  32. <?=$row->content_html?>
  33. ]]></description>
  34. </item>
  35. <? } ?>
  36. </channel>
  37. </rss>