File: /home/httpd/html/porn.tw/public_html/controllers/control.rss.php
<?php
header('Content-type: text/xml; charset=UTF-8');
$rssLang = "en";
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n";
?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title><?php echo $sitename; ?></title>
<description><?php echo $sitename; ?></description>
<link><?php echo $basehttp; ?></link>
<lastBuildDate><?php echo date('D, j M Y h:i:s T'); ?></lastBuildDate>
<generator>https://www.pornlantis.com</generator>
<atom:link href="<?php echo $basehttp; ?>/rss" rel="self" type="application/rss+xml" />
<copyright>Copyright <?php echo date('Y'); ?> (c) <?php echo $sitename; ?> - All rights reserved.</copyright>
<language><?php echo $rssLang; ?></language>
<?php
$result = dbQuery("SELECT content.* $langSelect FROM content $langJoin WHERE enabled = 1 $langWhere ORDER BY encoded_date DESC LIMIT 0,100");
foreach($result as $row) {
if ($row[photos] == 0) {
$link = generateUrl('video', $row['title'], $row['record_num']);
} else {
$link = generateUrl('galleries', $row['title'], $row['record_num']);
}
$title = $row['title'];
$description = $row['description'] . "\n\n{$row['keywords']}";
?>
<item>
<title><![CDATA[ <?php echo trim($title); ?> ]]></title>
<link><?php echo $link; ?></link>
<description><![CDATA[ <?php echo trim($description); ?> ]]></description>
<pubDate><?php echo date('D, j M Y H:i:s T', strtotime($row['encoded_date'])); ?></pubDate>
<dc:creator><?php echo $sitename; ?>n</dc:creator>
<category><![CDATA[ <? echo $row['keywords']; ?> ]]></category>
<guid isPermaLink="true"><?php echo $link; ?></guid>
</item>
<?php } ?>
</channel>
</rss>
<?php exit(); ?>