File: /home/httpd/html/tubeshemale.com/public_html/includes/inc.rss.php
<?
include('admin/db.php');
$bad = array('?','!',' ','&','*','$','#','@');
$good = array('','','-','','','','','');
$_REQUEST = mysql_real_escape_array($_REQUEST);
header('Content-type: text/xml; charset=UTF-8');
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><? echo $sitename; ?></title>
<description><? echo $sitename; ?></description>
<link><? echo $basehttp; ?></link>
<lastBuildDate><? echo date('D, j M Y h:i:s T'); ?></lastBuildDate>
<generator>www.mechbunny.com</generator>
<atom:link href="<? echo $basehttp; ?>/action.php?action=rss" rel="self" type="application/rss+xml" />
<copyright>Copyright <? echo date('Y'); ?> (c) <? echo $sitename; ?> - All rights reserved.</copyright>
<language>en</language>
<?
$result = mysql_query("SELECT * FROM content WHERE enabled = 1 ORDER BY encoded_date DESC LIMIT 0,100");
while($row = mysql_fetch_array($result)) {
$bad = array('?','!',' ','&','*','$','#','@');
$good = array('','','-','','','','','');
$row[title] = str_replace(',','',$row[title]);
$link = "$basehttp/videos/".urlencode(strtolower(str_replace($bad,$good,$row[title])))."-".$row[record_num].".html";
if($row[hotlinked]) { $fileurl = $row[hotlinked]; } else { $fileurl = $row[filename]; }
$description = '
<object id="flvPlayer" height="588" width="475" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="flashvars" value="settings='.$basehttp.'/playerConfig.php?'.rawurlencode($fileurl).'"/><param name="movie" value="'.$basehttp.'/player.swf"/><param name="src" value="'.$basehttp.'/player.swf"/><param name="allowscriptaccess" value="always"/><param name="allowfullscreen" value="true"/><embed src="'.$basehttp.'/player.swf?settings='.$basehttp.'/playerConfig.php?'.$basehttp.'" quality=high width="588" height="475" name="flvPlayer" wmode="window" allowScriptAccess="always" allowfullscreen="true" flashvars="settings='.$basehttp.'/playerConfig.php?'.rawurlencode($fileurl).'" type="application/x-shockwave-flash" pluginpage="http://www.macromedia.com/go/getflashplayer" displayclick=link></embed>
<p>'.$row[description].'</p>
<p>Tags: '.buildTags($row[keywords]).'</p>';
unset($catstring);
$cresult = mysql_query("SELECT pornstars.name, pornstars.record_num FROM pornstars, content_pornstars WHERE content_pornstars.content = '$row[record_num]' AND content_pornstars.pornstar = pornstars.record_num GROUP BY pornstars.record_num ORDER BY name ASC");
while($crow = mysql_fetch_array($cresult)) {
$catstring .= "<a href='$basehttp/pornstars/".str_replace(' ','-',strtolower($crow[name]))."-".$crow[record_num].".html' class='link12' >$crow[name]</a>, ";
}
$catstring = substr($catstring,0,-2);
$description .= '<p>Pornstars: '.$catstring.'</p>';
?>
<item>
<title><![CDATA[ <? echo $row[title]; ?> ]]></title>
<link><? echo $link; ?></link>
<description><![CDATA[ <? echo $description; ?> ]]></description>
<pubDate><? echo date('D, j M Y h:i:s T',strtotime($row[encoded_date])); ?></pubDate>
<dc:creator><? echo $sitename; ?>n</dc:creator>
<category><? echo $sitename; ?></category>
<guid isPermaLink="true"><? echo $link; ?></guid>
</item>
<? } ?>
</channel>
</rss>
<? exit(); ?>