📄 admin_badword.asp
字号:
<!--#include file=conn.asp-->
<!-- #include file="inc/const.asp" -->
<!--#include file=inc/char.asp-->
<!--#include file=chkuser.asp-->
<title><%=ForumName%>--管理页面</title>
<link rel="stylesheet" type="text/css" href="forum.css">
<BODY <%=ForumBody%>>
<%
if instr(session("flag"),"28")=0 then
Errmsg=Errmsg+"<br>"+"<li>本页面为管理员专用,请<a href=admin_index.asp target=_top>登陆</a>后进入。<br><li>您没有管理本页面的权限。"
call Error()
else
call main()
end if
sub main()
%>
<table cellpadding=0 cellspacing=0 border=0 width=<%=tablewidth%> bgcolor=<%=tablebackcolor%> align=center>
<tr>
<td>
<table cellpadding=3 cellspacing=1 border=0 width=100%>
<tr bgcolor='<%=Tabletitlecolor%>'>
<td><font color="<%=TablefontColor%>">欢迎<b><%=membername%></b>进入管理页面</font>
</td>
</tr>
<tr bgcolor=<%=tablebodycolor%>>
<td width="100%" valign=top> <font color="<%=TableContentColor%>">
<%if request("action") = "savebadword" then%>
<%call savebadword()%>
<%else%>
<p><B>注意:</B>帖子过滤字符将过滤帖子内容中包含以下字符的内容,注册过滤字符将不允许用户注册包含以下字符的内容。
<br>
</p>
<form action="admin_badword.asp?action=savebadword" method=post>
<table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td width="100%"><font color="<%=TableContentColor%>">发贴过滤字符:<input type="text" name="badwords" value="<%=badwords%>" size="60"> <BR><BR>请您将要过滤的字符串添入,如果有多个字符串,请用“|”分隔开,例如:妈妈的|我靠|fuck</font></td>
</tr>
<tr>
<td width="100%"><font color="<%=TableContentColor%>"><BR>注册过滤字符:<input type="text" name="splitwords" value="<%=splitwords%>" size="60"> <BR><BR>请您将要过滤的字符串添入,如果有多个字符串,请用“,”分隔开,例如:沙滩,quest,木鸟<BR></font></td>
</tr>
<tr>
<td width="100%"><input type="submit" name="Submit" value="提交"></td>
</tr>
</table>
</form>
<p> <br>
</p> <%end if%></font>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%
end sub
sub savebadword()
set rs = server.CreateObject ("adodb.recordset")
sql="select * from config"
rs.open sql,conn,1,3
rs("badwords")=trim(request("badwords"))
rs("splitwords")=trim(request("splitwords"))
rs.update
rs.close
set rs=nothing
call getconst()
conn.close
set conn=nothing
response.write "更新成功!"
end sub
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -