bbs_addcl.asp
来自「燃点真情的WAP整站程序,WAP建站系统,,更多WAP源码再登陆http://x」· ASP 代码 · 共 75 行
ASP
75 行
<% @LANGUAGE="VBSCRIPT" CODEPAGE="65001" %><% Response.ContentType="text/vnd.wap.wml; charset=utf-8" %><?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">
<!--#include file="conn.inc"-->
<!--#include file="ydzq.asp"-->
<!--#include file="sever.asp"-->
<wml>
<head><meta http-equiv='Cache-Control' content='no-cache'/>
</head>
<%
dim bbsid,txt,name,fs,vote,jia,up,face
bbsid=usb(request("bbsid"))
name=usb(request("name"))
txt=usb(request("txt"))
jia=request("jia")
face=request("face")
up=usb(request("up"))
vote=usb(request("tp"))
fs=usb(request("fs"))
if name="" then response.redirect "bbs_add.asp?cw=1&hk="&hk&"&bbsid="&bbsid&"&up="&up&""
if txt="" then response.redirect "bbs_add.asp?cw=2&hk="&hk&"&bbsid="&bbsid&"&up="&up&""
if len(name)<4 then response.redirect "bbs_add.asp?cw=3&hk="&hk&"&bbsid="&bbsid&"&up="&up&""
if len(txt)<8 then response.redirect "bbs_add.asp?cw=4&hk="&hk&"&bbsid="&bbsid&"&up="&up&""
if jia>"100" then response.redirect "bbs_add.asp?cw=5&hk="&hk&"&bbsid="&bbsid&"&up="&up&""
%>
<card title="发表贴子" ontimer="bbs_list.asp?hk=<%=hk%>&page=1&bbsid=<%=bbsid%>">
<timer value="10"/><p>
<%set rs=Server.CreateObject("ADODB.Recordset")
rspl="select * from [bbstz]"
rs.open rspl,conn,1,2
rs.addnew
if txt<>"" then rs("txt")=txt
if name<>"" then rs("name")=name
if fs<>"" then rs("topic")=fs
if jia<>"" then rs("mtjg")=jia
if up<>"" then rs("dj")=up
if face<>"" then rs("touu")=face
rs("fid")=myid
rs("fname")=myni
rs("bbsid")=bbsid
if up="2" then
if vote<>"" then rs("vote")=vote
if vote<>"" then
votes=split(utf8(vote),",")
voteid=""
for i=0 to ubound(votes)
if votes(i)<>"" then
voteid=voteid&"0,"
end if
next
rs("addvote")=voteid
end if
end if
rs.update
rs.close
set rs=nothing
set rs=Server.CreateObject("ADODB.Recordset")
rspl="select myjf,myjb,ftsl from users where id="&myid
rs.open rspl,conn,1,3
if not rs.eof then
rs("myjf")=rs("myjf")+ftjf
rs("myjb")=rs("myjb")+ftjb
rs("ftsl")=rs("ftsl")+1
rs.update()
end if
rs.close
set rs=nothing
%>
发表成功,请不要发表个站广告!<br/>
温馨提示:发表贴子每次将奖励积分<%=ftjf%>分,金币<%=ftjb%>个<br/>
<!--#include file="fanhui.asp"-->
<%
conn.close
set conn=nothing%>
</p>
</card>
</wml>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?