文件名称:屏蔽非法字符函数
文件大小:9KB
文件格式:RAR
更新时间:2010-09-06 10:15:28
asp.net使用
一部分代码
Function checkRights(byVal rightsGroup, byVal rightsFlag)
Dim theGroup,theGroupItem,rightsString
checkRights=0
rightsString=""
For Each theGroup IN Arr_UserGroup
theGroupItem=Split(theGroup,"$|$")
If CInt(theGroupItem(0))=CInt(rightsGroup) Then rightsString=theGroupItem(2)
Next
If Len(rightsString)<>5 Then Exit Function
Select Case rightsFlag
Case "View"
checkRights=CInt(Mid(rightsString,1,1))
Case "Post"
checkRights=CInt(Mid(rightsString,2,1))
Case "Edit"
checkRights=CInt(Mid(rightsString,3,1))
Case "Delete"
checkRights=CInt(Mid(rightsString,4,1))
Case "Upload"
checkRights=CInt(Mid(rightsString,5,1))
End Select
End Function
【文件预览】:
function
----function.asp(15KB)
function.asp