summary refs log tree commit diff stats
path: root/rss.php
blob: 6e43c9c4603a2532c25ee9c5d4fb1f1640f75fa3 (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/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 = "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('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>