📄 addsave.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<!--#include file="jifen.asp"--->
<!-- #include file="conn.asp" --><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%
dim rsad,rs,pno
set rsad=Server.CreateObject("ADODB.Recordset")
rsad.open "select * from login where id='"&request("shouji")&"'",conn,1,3
if rsad.bof and rsad.eof then
set rs=Server.CreateObject("ADODB.Recordset")
rs.open "select * from sheet where nc="&request("name")&" and shouji='"&request("pno")&"' and pass='"&request("password")&"'",conn,1,1
if rs.bof and rs.eof then
response.redirect "index.asp"
else
rsad.addnew
rsad("id")=request("shouji")
rsad("phone")=request("pno")
rsad("name")=request("name")
rsad("pass")=request("password")
rsad.update
pno=request("pno")
end if
rs.close
else
pno=rsad("phone")
end if
rsad.close
set rsad=nothing
dim con,title,top,id
con=request("con")
title=request("title")
top=request("top")
if top<>"" then top=cint(top)
id=request("id")
'''======================================================提 取 信息 结
if con="" then response.redirect "err.asp?id=1"
kword=split("fuck,他妈的,我靠,我操,去死,我叼",",")
function keyWord(s)
dim KwCount
KwCount=0
for kwi=0 to ubound(kword)
KwCount = KwCount + instr(s,kword(kwi))
next
keyWord=KwCount
end function
if keyWord(con)>0 then response.redirect "err.asp?id=3"
yy=year(now)&""
mm=month(now)&""
if len(mm)=1 then mm="0"&mm
dd=day(now)&""
if len(dd)=1 then dd="0"&dd
hh=hour(now)&""
if len(hh)=1 then hh="0"&hh
mi=minute(now)&""
if len(mi)=1 then mi="0"&mi
ss=second(now)&""
if len(ss)=1 then ss="0"&ss
ti=now()
ti1=yy &"-"& mm &"-"& dd &" "& hh &":"& mi &":"& ss
newid=yy & mm & dd & hh & mi & ss
dim rsq
set rsq=Server.CreateObject("ADODB.Recordset")
rsq.open "select con,title from art where shouji='" & pno & "' order by ID desc",conn,1,2
if rsq.recordcount>0 then
if rsq("con")=con and rsq("title")=title then response.redirect "err.asp?id=14"
end if
rsq.close
set rsq=nothing
set rs=Server.CreateObject("ADODB.Recordset")
rs.open "select * from art where ID=" & newid,conn,1,2
if rs.recordcount>0 then newid=newid+1
set rsp=Server.CreateObject("ADODB.Recordset")
rsstr="select * from sheet where shouji='" & pno & "'"
rsp.open rsstr,conn,1,2
if rsp.recordcount>0 then
rsp("tie")=rsp("tie")+ftjf
rsp.update
end if
rsp.close
set rsp=nothing
rs.addnew
rs("ID")=newid
rs("shouji")=pno
rs("formid")=id
if title<>"" then rs("title")=title
rs("ftime")=ti
rs("otime")=ti1
if top<>"" then rs("ding")=top
if con<>"" then rs("con")=con
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
%><wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
</head>
<card title="成功" ontimer="list.asp?id=<%=id%>&shouji=<%=request("shouji")%>">
<timer value="3"/>
<p align="center">
发表成功!<br/><br/>
<a href="list.asp?id=<%=id%>&shouji=<%=request("shouji")%>">[返回版块]</a><br/>
<a href="bbs.asp?shouji=<%=request("shouji")%>">[论坛首页]</a><br/>
<a href="../index.asp?shouji=<%=request("shouji")%>">[网站首页]</a><br/></p>
</card>
</wml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -