当前位置: 网学 > 编程文档 > ASP > 正文

newasp中main类

来源:Http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 13/06/17
\+")
str = Replace(str, "[", "\[")
str = Replace(str, "]", "\]")
str = Replace(str, "<", "\<")
str = Replace(str, ">", "\>")
str = Replace(str, ".", "\.")
str = Replace(str, "/", "\/")
str = Replace(str, "?", "\?")
str = Replace(str, "=", "\=")
str = Replace(str, "|", "\|")
str = Replace(str, "$", "\$")
CorrectPattern = str
End Function
''=============================================================
''函数名:UserGroupSetting
''作 用:取用户级权限设置
''参 数:gradeid ----等级ID
''=============================================================
Public Function UserGroupSetting(ByVal gradeid)
If Not IsNumeric(gradeid) Then
gradeid = 0
End If
On Error Resume Next
Dim Rs, SQL

Name = "GroupSetting" & gradeid
If ObjIsEmpty() Then
SQL = "Select Groupname,GroupSet from [NC_UserGroup] where Grades =" & gradeid
Set Rs = Execute(SQL)
If Rs.BOF And Rs.EOF Then
UserGroupSetting = ""
Set Rs = Nothing
Exit Function
End If
Value = Rs("GroupSet") & Rs("Groupname")
Set Rs = Nothing
End If
UserGroupSetting = Value
End Function
Private Sub LoadGroupSetting()
Dim strGroupSetting
Dim Rs, SQL
Dim Grades
Grades = CInt(membergrade)
On Error Resume Next
If Grades > 0 And memberid > 0 Then
If binUserLong = False Then
Set Rs = Execute("SELECT userid FROM [NC_User] WHERE password=''" & CheckRequest(memberpass, 45) & "'' And UserGrade=" & Grades & " And UserLock=0 And userid =" & memberid)
If Rs.BOF And Rs.EOF Then
Grades = 0
Response.Cookies(Cookies_Name) = ""
binUserLong = False
Else
binUserLong = True
End If
Set Rs = Nothing
End If
End If

Name = "GroupSetting" & Grades
If ObjIsEmpty() Then
SQL = "Select Groupname,GroupSet from [NC_UserGroup] where Grades =" & Grades
Set Rs = Execute(SQL)
If Rs.BOF And Rs.EOF Then
Response.Cookies(Cookies_Name) = ""
Set Rs = Nothing
Exit Sub
End If
Value = Rs("GroupSet") & Rs("Groupname")
Set Rs = Nothing
End If
blnGroupSetting = True
strGroupSetting = Value
arrGroupSetting = Split(strGroupSetting, "|||")
End Sub
Public Property Get GroupSetting(i)
If Not blnGroupSetting Then LoadGroupSetting
GroupSetting = arrGroupSetting(i)
End Property
Public Function ReadContent(ByVal strContent)
On Error Resume Next
Dim re, i
Dim sContentKeyword, strKeyword

  • 上一篇资讯: newasp中下载类
  • 下一篇资讯: 文章列表类别
  • 网学推荐

    免费论文

    原创论文

    浏览:
    设为首页 | 加入收藏 | 论文首页 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
    版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
    Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved
    湘ICP备09003080号