限制同时同ID登陆!
作者:cmscn 日期:2005-04-11
在login.asp
查找:
sub login_chk()
dim username,password,gname,found_err,id,power,abate,hidden,face,old_url
old_url=var_null(request.querystring("old_url"))
if symbol_name(login_username)=true then
username=login_username
else
username=trim(request.form("username"))
end if
下面添加
sql="select * from user_login where l_username='"&username&"'"
set rs=joekoe_cms.exec(sql,1)
if rs.eof and rs.bof then
在查找
found_err=found_err&"+请查阅有关 <a href='help.asp?action=register' target=_blank class=red>用户注册注意事项</a> 并重新填写。"
response.write found_error(found_err,280)
end if
下面添加
else
response.write"该用户帐号<font class=red>("&username&")</font>已经登录!<br>系统禁止同一帐号同时多次登陆!<br>如果此账号为您注册的账号。<br>请及时联系管理员"&web_dim(3)&"<br>(E_mail:"&web_dim(4)&")<br>锁定该帐号或更改账号密码!!!"
end if
评论: 8 | 引用: 3 | 查看次数: 678
发表评论
上一篇
下一篇

文章来自:
Tags:
相关日志:
