blob: 716049ba2c3b90ee581385b8da6752a849412be1 (
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
|
<?php
include('includes/db.php');
include('includes/functions.php');
include('includes/update.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 = $mysql_conn->query("SELECT * FROM comics WHERE status = \"publish\" ORDER BY comic_id DESC LIMIT 0,10");
foreach ($getitems as $getitems3)
{
?>
<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('r',strtotime(get_meta($getitems3['id'], 'pubDate')))); ?></pubDate>
<author><?php echo(has_meta($getitems3['id'], 'author') ? get_meta($getitems3['id'], 'author') : 'Starla Insigna'); ?></author>
</item>
<?php
}
?>
</channel>
</rss>
|