-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodPrivate.bas
49 lines (25 loc) · 1020 Bytes
/
modPrivate.bas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Attribute VB_Name = "modPrivate"
Public Function CheckRegister(ByVal RegUser As String, ByVal RegCode As String, ByVal bShowMsg As Boolean) As Boolean
CheckRegister = False
Dim cMD5 As New clsMD5
If RegCode = UCase(cMD5.CalculateMD5(sMD5Pre & RegUser & sMD5Last)) Then
CheckRegister = True
If bShowMsg Then MsgBox "生成定制内容成功", vbOKOnly + vbInformation, "恭喜"
Else
CheckRegister = False
If bShowMsg Then MsgBox "授权码错误,生成定制内容失败,请点击“关于软件”去联系作者吧。", vbOKOnly + vbCritical, "哎呀"
End If
End Function
Public Function CheckContactURL(ByVal sURL As String, ByVal RegCode As String) As Boolean
CheckContactURL = False
Dim cMD5 As New clsMD5
If sURL = sADUrl Then
CheckContactURL = True
Exit Function
End If
If RegCode = UCase(cMD5.CalculateMD5(sMD5Pre & sURL & sMD5Last)) And left(sURL, 22) = "http://www.mama520.cn/" Then
CheckContactURL = True
Else
CheckContactURL = False
End If
End Function