ASP代码分析?

来源:百度知道 编辑:UC知道 时间:2024/09/25 23:24:43
这段代码是什么意思啊?各位帮帮忙解释下好吗?
Sub Add_New()
call jd_loginyn()
dim tb_topic
tb_topic="jd_gb_"&jd_rnd(3)
with Response
.Cookies("JD100_NET_GBBOOK__CK")("topic")=tb_topic
if Sessionwebname<>"Login" then
if jd_memyn=1 and (jd_username="" or jd_username=null) then
call msg_List("错误","你还不是会员或者你还没登录",3,indexfilename&"?forumid="&forumid)
end if

Sub Add_New()
call jd_loginyn()
//以上是两个函数,具体实现你没有给出,但是可以看出一个是添加用户,一个是注册的实现

dim tb_topic
tb_topic="jd_gb_"&jd_rnd(3) //定义登陆变量并附默认值
with Response
.Cookies("JD100_NET_GBBOOK__CK")("topic")=tb_topic
//把变量的值传给浏览器Cookies,
if Sessionwebname<>"Login" then
//如果webname不等于Login 则:
if jd_memyn=1 and (jd_username="" or jd_username=null) then
//同时如果记录为1且用户名为空,或为null则实行:
call msg_List("错误","你还不是会员或者你还没登录",3,indexfilename&"?forumid="&forumid)
//弹出文本框:错误,你还不是会员或者你还没登录
end if
/////整体是验证是否是登陆会员