Use class in ASP

xiaoxiao2021-03-06  79

Class Webuser

Public property get islogin (username) if username <> "" "" "

Islogin = true

Else

Islogin = false

JSTZ "Please log in first!", "../ login.htm"

END IF

End Property

Public property Get IsManager (POP) IF ISNUMERIC (POP) and pop <> "" "

Ismanager = true

IF pop <> 0 THEN

JSTZ "Sorry, this feature only has administrators to use!", "../ look.asp"

END IF

Else

Ismanager = false

JSTZ "Please log in first!", "../ login.htm"

END IF

End Propertynd Class

Set auser = newwebuser

auser.islogin (username)

转载请注明原文地址:https://www.9cbs.com/read-107439.html

New Post(0)