-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrss.php
More file actions
30 lines (23 loc) · 665 Bytes
/
rss.php
File metadata and controls
30 lines (23 loc) · 665 Bytes
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
27
28
29
<?php
header('Content-type: application/rss+xml');
include_once("db.php");
include_once("mindoflib.php");
$numRss = getRssNum();
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:atom="http://www.w3.org/2005/Atom"
>
<channel>
<title><?php echo $sitename; ?></title>
<link><?php echo $siteurl; ?></link>
<description><?php echo $sitename; ?></description>
<generator>mindof <?php echo $version; ?></generator>
<atom:link href="<?php echo $siteurl; ?>/rss.php" rel="self" type="application/rss+xml" />
<ttl>5</ttl>
<?php
printRSS($numRss);
?>
</channel>
</rss>