%@ LANGUAGE = "VBScript" %>
<%
dim count
strSQL = "SELECT monthview_cols FROM blog_settings"
set dbRS = conn.execute(strSQL)
dim monthview_cols
monthview_cols = dbRS(0)
dbRS.close
set dbRS = nothing
dim blogmonth, blogyear
blogmonth = request.querystring("month")
blogyear = request.querystring("year")
if request.querystring("action") = "delete" then
strSQL = "DELETE FROM blog_contents WHERE blog_date = '" & IsoDate(request.querystring("date")) &"'" _
& "AND blog_user = '" & request.querystring("user") &"' "
conn.Execute(strSQL)
end if
Function stripHTML(strHTML)
Dim objRegExp, strOutput
Set objRegExp = New Regexp
objRegExp.IgnoreCase = True
objRegExp.Global = True
objRegExp.Pattern = "<(.|\n)+?>"
strOutput = objRegExp.Replace(strHTML, "")
strOutput = Replace(strOutput, "<", "<")
strOutput = Replace(strOutput, ">", ">")
stripHTML = strOutput
Set objRegExp = Nothing
End Function
%>
ClickBlog
<% strSQL = "SELECT blog_date, blog_contents, blog_user, last_modified from blog_contents WHERE blog_date LIKE '" & blogyear &"-" & blogmonth &"-%' ORDER BY blog_date"
set dbRS = conn.Execute(strSQL)
%>
Today's Blog
You are viewing the blog entries for: <%= MonthName(blogmonth, True) %> <%= blogyear%>
<% if not dbRS.EOF then %>
<%
dim rows
rows = 0
Do Until dbRS.EOF
count = count +1
%>