📄 w_save.asp
字号:
<%if request("type")="save" then
if request("ly")="" then
response.write("<script>alert('留言内容必须填写!.');history.go(-1)</script>")
response.end
end if
name=request("name")
if name="" then
name="过客"
end if
url=request.form("url")
if url="http://" then
url=""
end if
'##########################################过滤
errortxt="操你妈|靠靠靠|"
PBZI=split(errortxt, "|")
for i = 0 to ubound(PBZI)-1
PPBB=PBZI(i)
web_Word = InStr(lcase(request.form("ly")),lcase(PPBB))
If web_Word >0 Then
error=error & PBZI(i)&"|"
end if
next
if error<>"" then
response.write("<script>alert('错误:留言本禁止以下内容:"&error&".');history.go(-1)</script>")
Response.end
end if
'#############################################
if request("save")="on" then
Response.cookies("tajh_gbook")("name")=name
Response.cookies("tajh_gbook")("face")=request("face")
Response.cookies("tajh_gbook")("email")=request("email")
Response.cookies("tajh_gbook")("oicq")=request("oicq")
Response.cookies("tajh_gbook")("url")=url
Response.cookies("tajh_gbook").Expires = DateAdd("d",365,Now())
end if
%>
<!--#include file="char.inc"-->
<!--#include file="dbpath.asp"-->
<%
set rs=server.CreateObject("ADODB.RecordSet")
rs.open "select * from book",conn,1,2
rs.addnew
rs("topic")=htmlencode(request("topic"))
rs("name")=htmlencode(name)
rs("face")=htmlencode(request("face"))
rs("face2")=htmlencode(request("face2"))
rs("oicq")=request("oicq")
rs("email")=htmlencode(request("email"))
rs("url")=htmlencode(url)
rs("show")=htmlencode(request("show"))
rs("ly")=htmlencode(request("ly"))
rs("guestip")=request.servervariables("remote_addr")
rs.update
rs.close
conn.close
set rs=nothing
set conn=nothing
Response.Redirect "w_save.asp"
response.end
end if
%>
<html>
<head>
<title>留言本:签写留言</title>
<meta http-equiv="Refresh" content="2; URL=./">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta copy="程序制作 [惊云,网址www.65658.com] ; 盗版必究!">
<style>
td{font-size:9pt;line-height:120%;color:#353535}
body{font-size:9pt;line-height:120%}
a:link { color: #000000; text-decoration: none }
a:visited { color: #000000; text-decoration: none }
a:active { color: #000000; text-decoration: none }
a:hover { color: #333333; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td width="100%"><p align="center"><font color="#FF0000">留言成功!</font></p>
<p align="center">2秒后自动<a href="./">返回留言本</a>.</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -