File: rss.inc

package info (click to toggle)
php-horde-ansel 3.0.9%2Bdebian0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,860 kB
  • sloc: php: 15,757; xml: 1,979; makefile: 28; sh: 3
file content (26 lines) | stat: -rw-r--r-- 1,010 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php echo '<?xml version="1.0" encoding="UTF-8"?>' ?>

<?php echo '<?xml-stylesheet href="' . $xsl . '" type="text/xsl"?>' ?>

<rss version="0.91">
 <channel>
  <title><?php echo $stream_name ?></title>
  <description><?php echo $stream_desc ?></description>
  <image>
   <url><?php echo $image_url ?></url>
   <link><?php echo $image_link ?></link>
   <title><?php echo $stream_desc ?></title>
  </image>
  <link><?php echo $stream_official ?></link>
  <atom:link rel="self" type="application/rss+xml" title="<?php echo $stream_name ?>" href="<?php echo $stream_rss ?>" xmlns:atom="http://www.w3.org/2005/Atom"></atom:link>
  <pubDate><?php echo $stream_updated ?></pubDate>
  <?php foreach($imgs as $image): ?>
  <item>
   <title><?php echo $image['filename'] ?></title>
   <description><?php echo htmlspecialchars('<img src="' . $image['url'] . '" />') . $image['caption'] ?></description>
   <link><?php echo htmlspecialchars($image['link']) ?></link>
  </item>
  <?php endforeach; ?>
 </channel>
</rss>