%
'=========================================================
' File: admin_lockuser.asp
' Version:5.0
' Date: 2002-10-25
' Script Written by satan
'=========================================================
' Copyright (C) 2001,2002 AspSky.Net. All rights reserved.
' Web: http://www.aspsky.net,http://www.dvbbs.net
' Email: info@aspsky.net,eway@aspsky.net
'=========================================================
dim username
dim locktype
dim ip
Dim TotalUseTable
Dim AdminUserPer
Dim UpdateBoardID
AdminUserPer=false
if (master or boardmaster or superboardmaster) and Cint(GroupSetting(42))=1 then
AdminUserPer=true
else
AdminUserPer=false
end if
if UserGroupID>3 and Cint(GroupSetting(42))=1 then
AdminUserPer=true
end if
if FoundUserPer and Cint(GroupSetting(42))=1 then
AdminUserPer=true
elseif FoundUserPer and Cint(GroupSetting(42))=0 then
AdminUserPer=false
end if
ip=replace(Request.ServerVariables("REMOTE_ADDR"),"'","")
stats="管理用户"
if request("name")="" then
Errmsg=Errmsg+"
"+"
| 编辑"&request("username")&"论坛权限(红色表示该用户在该版面有自定义权限) | |||||
|---|---|---|---|---|---|
| 错误的用户参数。 | |||||
| 编辑该用户在其它页面的权限(主要针对短信部分设置) | |||||
| 点击论坛名称进入编辑状态 " dim reBoard_Setting,FBoardMaster FBoardMaster=false sql="select * from board order by rootid,orders" set rs=server.createobject("adodb.recordset") rs.open sql,conn,1,1 do while not rs.eof reBoard_Setting=split(rs("Board_Setting"),",") if rs("parentID")>0 and rs("depth")>0 then set trs=conn.execute("select boardmaster from board where boardid in ("&rs("ParentStr")&") order by orders") do while not trs.eof if Cint(reBoard_Setting(40))=1 and not FBoardMaster then if instr("|"&trs(0)&"|","|"&membername&"|")>0 then FBoardMaster=true else FBoardMaster=false end if end if i=i+1 if FBoardMaster then exit do if i>9 then exit do trs.movenext loop end if if boardmaster and instr("|"&rs("BoardMaster")&"|","|"&membername&"|")=0 then dispboard=false end if if FBoardMaster then dispboard=true if master or superboardmaster then dispboard=true if dispboard then if rs("depth")>0 then for i=1 to rs("depth") response.write " " next end if if rs("child")>0 then response.write " " FBoardMaster=false dispboard=false rs.MoveNext loop set trs=nothing set rs=nothing response.write " |
| 编辑 "&membername&" 在 "&boardtype&" 权限 | |||||
|---|---|---|---|---|---|
| 注意:该用户属于 "&usertitle&" 用户组中,如果您设置了他的自定义权限,则该用户权限将以自定义权限为主 |