setting1.asp
上传用户:saigedz
上传日期:2019-10-14
资源大小:997k
文件大小:7k
- <%@ CODEPAGE=65001 %>
- <%
- '///////////////////////////////////////////////////////////////////////////////
- '// 插件应用: Z-Blog 1.7
- '// 插件制作:
- '// 备 注:
- '// 最后修改:
- '// 最后版本:
- '///////////////////////////////////////////////////////////////////////////////
- %>
- <% Option Explicit %>
- <% On Error Resume Next %>
- <% Response.Charset="UTF-8" %>
- <% Response.Buffer=True %>
- <!-- #include file="../../c_option.asp" -->
- <!-- #include file="../../function/c_function.asp" -->
- <!-- #include file="../../function/c_function_md5.asp" -->
- <!-- #include file="../../function/c_system_lib.asp" -->
- <!-- #include file="../../function/c_system_base.asp" -->
- <!-- #include file="../../function/c_system_event.asp" -->
- <!-- #include file="../../function/c_system_plugin.asp" -->
- <%
- Call System_Initialize()
- '检查非法链接
- Call CheckReference("")
- '检查权限
- If BlogUser.Level>1 Then Call ShowError(6)
- If CheckPluginState("Totoro")=False Then Call ShowError(48)
- BlogTitle="TotoroⅡ(基于Totoro的Z-Blog的评论及引用管理审核系统增强版)"
- %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%=ZC_BLOG_LANGUAGE%>" lang="<%=ZC_BLOG_LANGUAGE%>">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="Content-Language" content="<%=ZC_BLOG_LANGUAGE%>" />
- <link rel="stylesheet" rev="stylesheet" href="../../CSS/admin.css" type="text/css" media="screen" />
- <script language="JavaScript" src="../../script/common.js" type="text/javascript"></script>
- <title><%=BlogTitle%></title>
- </head>
- <body>
- <div id="divMain">
- <div class="Header"><%=BlogTitle%></div>
- <div class="SubMenu"><span class="m-left"><a href="setting.asp">TotoroⅡ设置</a></span><span class="m-left m-now"><a href="setting1.asp">审核评论<%
- Dim objRS1
- Set objRS1=objConn.Execute("SELECT COUNT([comm_ID]) FROM [blog_Comment] WHERE [log_ID]<0")
- If (Not objRS1.bof) And (Not objRS1.eof) Then
- Response.Write "("&objRS1(0)&"条未审核的评论)"
- End If
- %></a></span><span class="m-left"><a href="setting2.asp">审核引用<%
- Dim objRS2
- Set objRS2=objConn.Execute("SELECT COUNT([tb_ID]) FROM [blog_TrackBack] WHERE [log_ID]<0")
- If (Not objRS2.bof) And (Not objRS2.eof) Then
- Response.Write "("&objRS2(0)&"条未审核的引用)"
- End If
- %></a></span></div>
- <div id="divMain2">
- <%
- Dim intPage,intContent
- Dim i
- Dim objRS
- Dim strSQL
- Dim strPage
- intPage=Request.QueryString("page")
- Call CheckParameter(intPage,"int",1)
- intContent=FilterSQL(intContent)
- Set objRS=Server.CreateObject("ADODB.Recordset")
- objRS.CursorType = adOpenKeyset
- objRS.LockType = adLockReadOnly
- objRS.ActiveConnection=objConn
- objRS.Source=""
- strSQL=strSQL&" WHERE ([log_ID]<0) "
- If CheckRights("Root")=False Then strSQL=strSQL & "AND( ([comm_AuthorID] = " & BlogUser.ID & " ) OR ((SELECT [log_AuthorID] FROM [blog_Article] WHERE [blog_Article].[log_ID]=[blog_Comment].[log_ID])=" & BlogUser.ID & " )) "
- If Trim(intContent)<>"" Then strSQL=strSQL & " AND ( ([comm_Author] LIKE '%" & intContent & "%') OR ([comm_Content] LIKE '%" & intContent & "%') OR ([comm_HomePage] LIKE '%" & intContent & "%') ) "
- Response.Write "<table border=""1"" width=""100%"" cellspacing=""1"" cellpadding=""1"">"
- Response.Write "<tr><td width='5%'>"& ZC_MSG076 &"</td><td width='14%'>"& ZC_MSG001 &"</td><td>"& ZC_MSG055 &"</td><td width='12%'>"& ZC_MSG080 &"</td><td width='15%'>"& ZC_MSG075 &"</td><td width='5%' align='center'><a href='' onclick='BatchSelectAll();return false'>"& ZC_MSG229 &"</a></td></tr>"'
- objRS.Open("SELECT * FROM [blog_Comment] "& strSQL &" ORDER BY [comm_ID] DESC")
- objRS.PageSize=ZC_MANAGE_COUNT
- If objRS.PageCount>0 Then objRS.AbsolutePage = intPage
- If (Not objRS.bof) And (Not objRS.eof) Then
- For i=1 to objRS.PageSize
- Response.Write "<tr>"
- Response.Write "<td>" & objRS("comm_ID") & "</td>"
- If Trim(objRS("comm_Email"))="" Then
- Response.Write "<td>"& objRS("comm_Author") & "</td>"
- Else
- Response.Write "<td><a href=""mailto:"& objRS("comm_Email") &""">" & objRS("comm_Author") & "</a></td>"
- End If
- Response.Write "<td><a href="""" onclick='javascript:$(this).parent().html(""" & TransferHTML(objRS("comm_Content"),"[html-format][enter][""]") & """);return false;' title="""&TransferHTML(TransferHTML(UBBCode(objRS("comm_Content"),"[face][link][autolink][font][code][image][typeset][media][flash][key][upload]"),"[html-japan][upload]"),"[nohtml]")&""">" & Left(objRS("comm_Content"),40) & "...</a></td>"
- Response.Write "<td>" & objRS("comm_IP") & "</td>"
- Response.Write "<td>" & objRS("comm_PostTime") & "</td>"
- Response.Write "<td align=""center"" ><input type=""checkbox"" name=""edtDel"" id=""edtDel"" value="""&objRS("comm_ID")&"""/></td>"
- Response.Write "</tr>"
- objRS.MoveNext
- If objRS.eof Then Exit For
- Next
- End If
- Response.Write "</table>"
- For i=1 to objRS.PageCount
- strPage=strPage &"<a href='"&ZC_BLOG_HOST&"plugin/totoro/setting1.asp?page="& i &"'>["& Replace(ZC_MSG036,"%s",i) &"]</a> "
- Next
- Response.Write "<br/><form id=""frmBatch"" method=""post"" action=""""><p><input type=""hidden"" id=""edtBatch"" name=""edtBatch"" value=""""/><input class=""button"" type=""submit"" onclick='BatchDeleteAll(""edtBatch"");if(document.getElementById(""edtBatch"").value){this.form.action="""&ZC_BLOG_HOST&"plugin/totoro/commentdel.asp"&""";return window.confirm("""& ZC_MSG058 &""");}else{return false}' value=""删除所选择的评论"" id=""btnPost""/> <input class=""button"" type=""submit"" onclick='BatchDeleteAll(""edtBatch"");if(document.getElementById(""edtBatch"").value){this.form.action="""&ZC_BLOG_HOST&"plugin/totoro/commentpass.asp"&""";return window.confirm("""& ZC_MSG058 &""");}else{return false}' value=""通过所选择的评论"" id=""btnPost""/></p><form><br/>" & vbCrlf
- Response.Write "<hr/>" & ZC_MSG042 & ": " & strPage
- objRS.Close
- Set objRS=Nothing
- %>
- </div>
- <script language="javascript">
- //斑马线
- var tables=document.getElementsByTagName("table");
- var b=false;
- for (var j = 0; j < tables.length; j++){
- var cells = tables[j].getElementsByTagName("tr");
- cells[0].className="color1";
- for (var i = 1; i < cells.length; i++){
- if(b){
- cells[i].className="color2";
- b=false;
- }
- else{
- cells[i].className="color3";
- b=true;
- };
- };
- }
- function ChangeValue(obj){
- if (obj.value=="True")
- {
- obj.value="False";
- return true;
- }
- if (obj.value=="False")
- {
- obj.value="True";
- return true;
- }
- }
- </script>
- </body>
- </html>
- <%
- Call System_Terminate()
- If Err.Number<>0 then
- Call ShowError(0)
- End If
- %>