%@ Language=VBScript %> <%Option Explicit%> <%Response.Buffer=True%> <% ' Get the latest messages for the RSS Feed Dim adoConn Dim adoRs Dim strSql Dim xmlfilename Dim NumItems Dim lngCurRSSMessageID Const bbDBPath = "../fpdb" Const bbDBName = "bbdata.mdb" Const strAdmTitle = "The Behold Discussion Forum" Set adoConn=Server.CreateObject("ADODB.Connection") adoConn.ConnectionString="DBQ=" & Server.MapPath(bbDBPath) & "\" & bbDBName & ";DefaultDir=" & Server.MapPath(bbDBPath) & ";Driver={Microsoft Access Driver (*.mdb)};DriverId=25;FIL=MS Access;ImplicitCommitSync=Yes;MaxBufferSize=512;MaxScanRows=8;PageTimeout=5;SafeTransactions=0;Threads=3;UID=admin;UserCommitSync=Yes;;User Id=admin;" On Error Resume Next adoConn.Open If Err.number <> 0 Then Response.Write "
|
" & ReplaceQuotes(adoRs.Fields("MessageDetail").Value, 0) Response.Write "]]>
", "'") strOutput = Replace(strOutput, "", """") ' Also replace double
withso that Feedreader looks okay strOutput = Replace(strOutput, "
", "") Else strOutput = Replace(strOutput, "'", "
") strOutput = Replace(strOutput, """", "") End If ReplaceQuotes = strOutput End Function Function GetBoardDateShort(pDate) Dim intMonth Dim strExpDate Dim intweekday Dim strweekday intMonth = Month(pDate) Select Case intMonth Case 1 strExpDate = "Jan" Case 2 strExpDate = "Feb" Case 3 strExpDate = "Mar" Case 4 strExpDate = "Apr" Case 5 strExpDate = "May" Case 6 strExpDate = "Jun" Case 7 strExpDate = "Jul" Case 8 strExpDate = "Aug" Case 9 strExpDate = "Sep" Case 10 strExpDate = "Oct" Case 11 strExpDate = "Nov" Case 12 strExpDate = "Dec" End Select intWeekday = weekday(pDate) Select Case intWeekday Case 1 strWeekday = "Sun" Case 2 strWeekday = "Mon" Case 3 strWeekday = "Tue" Case 4 strWeekday = "Wed" Case 5 strWeekday = "Thu" Case 6 strWeekday = "Fri" Case 7 strWeekday = "Sat" End Select ' GetBoardDateShort = strWeekday & " " & Day(pDate) & " " & strExpDate & " " & Year(pDate) & " " GetBoardDateShort = Day(pDate) & " " & strExpDate & " " & Year(pDate) & " " End Function %>