<%@ Language=VBScript %>
<!--#include virtual="/soinc/dheader.asp"--><%

response.contenttype = "application/rss+xml"
%><?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">

	<channel>
		<title>CashSurfers</title>
		<link>http://www.cashsurfers.com/</link>
		<description>Earn Money And Get Paid To Sign Up For Special Offers</description>
		<pubDate><%=Left(FormatDateTime(now,1),3) & ", " & Day(now) & " " & Left(MonthName(Month(now)),3) & " " & Year(now) & " " & FormatDateTime(now,4) %>:00 PST</pubDate>
		<language>en-us</language>
<%

  Function stripchars(data)
	stripchars = Server.URLEncode(data)
	stripchars = stripchars & ".html"
  End Function

command = "SELECT TOP 10 name,info FROM SOffers WHERE active='1' ORDER BY NewID()"
SET rs = Server.CreateObject("ADODB.Recordset")
rs.Open command, conn, adOpenForwardOnly, adLockReadOnly

if rs.EOF then
response.write("		<item>" & vbcrlf)
response.write("			<title>No title.</title>" & vbcrlf)
response.write("			<link>No link.</link>" & vbcrlf)
response.write("			<description>No description.</description>" & vbcrlf)
response.write("		</item>" & vbcrlf)
end if

do while not rs.EOF
blogurl="/sign-up/" & stripchars(rs("name"))
response.write("		<item>" & vbcrlf)
response.write("			<title><![CDATA[" & Server.HTMLEncode(rs("name")) & "]]></title>" & vbcrlf)
response.write("			<description><![CDATA[" & Replace(Server.HTMLEncode(rs("info")), vbCrLf, " ") & "]]></description>" & vbcrlf)
response.write("			<link><![CDATA[http://specialoffers.cashsurfers.com" & blogurl & "]]></link>" & vbcrlf)
response.write("			<pubDate>" & Left(FormatDateTime(now,1),3) & ", " & Day(now) & " " & Left(MonthName(Month(now)),3) & " " & Year(now) & " " & FormatDateTime(now,4) & ":00 PST" & "</pubDate>" & vbcrlf)
response.write("			<guid isPermaLink=""true"">http://specialoffers.cashsurfers.com" & blogurl & "</guid>" & vbcrlf)
response.write("		</item>" & vbcrlf)
rs.MoveNext
loop

rs.close
set rs = nothing

response.write("	</channel>" & vbcrlf)
response.write("</rss>" & vbcrlf)

%>
<!--#include virtual="/soinc/dfooter.asp"-->
