⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 resave.asp

📁 admin/admin.asp是WAP的后台管理登陆页面
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="conn.asp"-->
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<!--#include file="jifen.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 ID 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
set rs=nothing
else
pno=rsad("phone")
end if
rsad.close
set rsad=nothing
dim con,id,tid
con=request("con")
id=request("id")
tid=request("tID")
'''======================================================提 取 信息 结 
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=date()&" "&hh &":"& mi &":"& ss
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 from hui where shouji='" & pno & "' order by ID desc",conn,1,2

if rsq.recordcount>0 then
	if rsq("con")=con then response.redirect "err.asp?id=14"
end if
rsq.close
set rsq=nothing
dim rsy
set rsy=Server.CreateObject("ADODB.Recordset")
rsy.open "select hui,otime from art where ID=" & tid,conn,1,2

if rsy.recordcount>0 then
rsy("hui")=rsy("hui")+1
rsy("otime")=ti1
rsy.update
end if
rsy.close
set rsy=nothing
dim rsp
set rs=Server.CreateObject("ADODB.Recordset")
rs.open "select * from hui where ID=" & newid,conn,1,2

if rs.recordcount>0 then newid=newid+1


set rsp=Server.CreateObject("ADODB.Recordset")
rsp.open "select tie from sheet where shouji='" & pno & "'",conn,1,2

rsp("tie")=rsp("tie")+hfjf
rsp.update
rsp.close
set rsp=nothing
rs.addnew
rs("ID")=newid
rs("shouji")=pno
rs("time")=ti
rs("huitime")=ti1
rs("con")=con
rs("tID")=tid
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="view.asp?id=<%=id%>&amp;tID=<%=tid%>&amp;shouji=<%=request("shouji")%>">
<timer value="20"/>
<p align="center">回复成功!<br/><br/>
<a href="view.asp?id=<%=id%>&amp;tID=<%=tid%>&amp;shouji=<%=request("shouji")%>">[返回主帖]</a><br/>
<a href="list.asp?id=<%=id%>&amp;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 + -