summary refs log tree commit diff stats
path: root/rss.php
blob: e11e43acf755fc3cbf01087e00417cc906c5feb2 (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['comic_id'], 'author') ? get_meta($getitems3['comic_id'], 'author') : 'Starla Insigna'); ?></author>
		</item>
<?php
}

?>
	</channel>
</rss>