示例#1
0
<?php

header("Content-type: application/xml");
require_once '../../configuration/configure.php';
import('blargon.util.RSS');
$rss = new RSS();
echo "<?xml version=\"1.0\"?" . ">";
?>
<!-- generator="blargon/<?php 
echo $rss->getBlargonVersion();
?>
" -->
<rss version="0.92">
	<channel>
		<title><?php 
echo $rss->getSiteName();
?>
</title>
		<link><?php 
echo $rss->getAlternateLink();
?>
</link>
		<description><?php 
echo $rss->getDescription();
?>
</description>
		<language>en-us</language>
		<docs>http://backend.userland.com/rss092</docs>
		<? while( false !== ( $entry = $rss->getNextPost() ) ) { ?>
		<item>
			<title><?php