-
Notifications
You must be signed in to change notification settings - Fork 30
/
rssupdated.php
37 lines (29 loc) · 1.05 KB
/
rssupdated.php
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
30
31
32
33
34
35
36
37
<?php
// ############## Include Files ################ //
include "includes/ez_sql_core.php";
include "includes/ez_sql_mysql.php";
include "includes/db_connection.php";
include "includes/functions.php";
// ############## Finish Includes ############### //
// ############### Setup Queries ############### //
$recent = $db->get_results("SELECT * FROM addon ORDER BY updated DESC LIMIT 5");
// ############## Finish Queries ############### //
header("Content-type: text/xml");
echo "<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
<channel>
<title>Latest XBMC Add-Ons</title>
<link>http:addons.xbmc.org</link>
<description>Latest XBMC Add-Ons </description>
<language>en-us</language>";
// Build the Recent Add-Ons right hand slider slider
foreach ($recent as $recents)
{
echo "<item>";
echo "<title>".$recents->name."</title>";
echo "<description>".$recents->description."</description>";
echo "<date>".$recents->updated."</date>";
echo "</item>";
}
echo "</channel></rss>";
?>