<!--#include file="conn.asp"-->
<!--#include file="Admin_Chkpass.asp"-->
<%
dim action
Action=trim(request("Action"))
if Action="saveconfig" then
	call saveconfig()
else
	call showconfig()
end if

sub showconfig()
dim rs
set rs=conn.execute("select * from filtrate")	
%>
<html>
<head>
<title>blog日志过滤设置</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Admin_STYLE.CSS" rel="stylesheet" type="text/css">
</head>
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0" class="bgcolor">
<br>
<form method="POST" action="Admin_filtrate.asp" id="form1" name="form1">
  <table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF" Class="border">
    <tr> 
      <td height="22" class="topbg"> <strong>日志敏感字过滤：</strong></td>
    </tr>
    <tr> 
      <td height="25" class="tdbg">此处设置影响到日志，评论，专题名字、blog名字、模版设置的过滤。过滤字符将过滤内容中包含以下字符的内容，请您将要过滤的字符串添入，如果有多个字符串，请用“|”分隔开，例如：妈妈的|我靠|fuck</td>
    </tr>
    <tr> 
      <td height="25" class="tdbg"> <input name="blogFiltrate" type="text" id="blogFiltrate" value="<%=rs("blogFiltrate")%>" size="110" maxlength="200"> 
      </td>
    </tr>
    <tr> 
      <td height="25" class="tdbg">&nbsp; </td>
    </tr>
    <tr> 
      <td height="25" class="topbg"><strong>注册过滤字符</strong></td>
    </tr>
    <tr> 
      <td height="25" class="tdbg"> <p>注册过滤字符将不允许用户注册包含以下字符的内容，请您将要过滤的字符串添入，如果有多个字符串，请用“,”分隔开，例如：廖朝兵,水灵光<br>
        </p></td>
    </tr>
    <tr> 
      <td height="25" class="tdbg"> <p class="tdbg"> 
          <input name="regFiltrate" type="text" id="regFiltrate" value="<%=rs("regFiltrate")%>" size="110" maxlength="200">
        </p></td>
    </tr>
    <tr> 
      <td height="40" align="center" class="tdbg"> <input name="Action" type="hidden" id="Action" value="saveconfig"> 
        <input name="cmdSave" type="submit" id="cmdSave" value=" 保存设置 " > </td>
    </tr>
  </table>

</form>
</body>
</html>
<%
set rs=nothing
call closeconn
end sub

sub saveconfig()
	dim rs,sql
	set rs=server.CreateObject("adodb.recordset")
	sql="select * from filtrate"
	rs.open sql,conn,1,3
	rs("blogFiltrate")=trim(request("blogFiltrate"))
	rs("regFiltrate")=trim(request("regFiltrate"))
	rs.update
	rs.close
	set rs=nothing
	call PutApplicationValue()
	call closeconn
	response.Redirect "admin_filtrate.asp"
end sub
%>
