<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% curpath = "http://" & Request.ServerVariables("SERVER_NAME") & Request.ServerVariables("URL") curpath = Left(curpath, InstrRev(curpath, "/")) %> <% ' *** Restrict Access To Page: Grant or deny access to this page MM_authorizedUsers="" MM_authFailedURL="admin_default.asp" MM_grantAccess=false If Session("MM_Username") <> "" Then If (true Or CStr(Session("MM_UserAuthorization"))="") Or _ (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then MM_grantAccess = true End If End If If Not MM_grantAccess Then MM_qsChar = "?" If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&" MM_referrer = Request.ServerVariables("URL") if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString() MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer) Response.Redirect(MM_authFailedURL) End If %> <% Dim rsComments__MMColParam rsComments__MMColParam = "0" If (Request("MM_EmptyValue") <> "") Then rsComments__MMColParam = Request("MM_EmptyValue") End If %> <% Dim rsComments Dim rsComments_numRows Set rsComments = Server.CreateObject("ADODB.Recordset") rsComments.ActiveConnection = MM_blog_STRING rsComments.Source = "SELECT * FROM tblComment WHERE commentInclude = " + Replace(rsComments__MMColParam, "'", "''") + " ORDER BY commentDate ASC" rsComments.CursorType = 0 rsComments.CursorLocation = 2 rsComments.LockType = 1 rsComments.Open() rsComments_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = -1 Repeat1__index = 0 rsComments_numRows = rsComments_numRows + Repeat1__numRows %> Approve Comments

Approve Comments

<% If Not rsComments.EOF Or Not rsComments.BOF Then %> <% While ((Repeat1__numRows <> 0) AND (NOT rsComments.EOF)) %> <% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 rsComments.MoveNext() Wend %>
"><%=(rsComments.Fields.Item("commentName").Value)%> " title="Email this user"><%=(rsComments.Fields.Item("commentEmail").Value)%> ">Approve/">Edit/">Delete
<%=(rsComments.Fields.Item("commentHTML").Value)%>
<% End If ' end Not rsComments.EOF Or NOT rsComments.BOF %>
<% rsComments.Close() Set rsComments = Nothing %>