blob: 6a6b80f0d64557178c7c7ac5d28577731c96f98a (
plain) (
blame)
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
|
<?php
include('includes/db.php');
include('includes/update.php');
include('includes/functions.php');
echo('<?xml version="1.0"?>');
?>
<rss version="2.0">
<channel>
<title>Pillowcase</title>
<link>http://pillowcase.fourisland.com/</link>
<description>pillowcase - the result of an obsession with cute, plush objects that talk nonsense</description>
<language>en-us</language>
<?php
$getitems = "SELECT * FROM comics WHERE status = \"publish\" ORDER BY comic_id DESC LIMIT 0,10";
$getitems2 = mysql_query($getitems);
while ($getitems3 = mysql_fetch_array($getitems2))
{
?>
<item>
<title><?php echo($getitems3['title']); ?></title>
<link>http://pillowcase.fourisland.com/comic<?php echo($getitems3['comic_id']); ?>.htm</link>
<description><![CDATA[<IMG SRC="http://pillowcase.fourisland.com/images/comics/<?php echo($getitems3['filename']); ?> ALT="<?php echo($getitems3['title']); ?>"><p><?php echo($getitems3['text']); ?></p>]]></description>
<pubDate><?php echo(date('D, d M Y H:i:s O',strtotime($getitems3['pubDate']))); ?></pubDate>
<author><?php echo(has_meta($getitems3['comic_id'], 'author') ? get_meta($getitems3['comic_id'], 'author') : 'Starla Insigna'); ?></author>
</item>
<?php
}
?>
</channel>
</rss>
|