권한 기능 업데이트
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
Public NotInheritable Class SplashScreen
|
||||
Dim install, installkey As Long
|
||||
Dim auth As New MyAuth
|
||||
Dim Runcnt As Integer = 0
|
||||
'Dim Runcnt As Integer = 0
|
||||
'TODO: 프로젝트 디자이너에서 "프로젝트" 메뉴의 "속성"을 선택하여 표시된 "응용 프로그램" 탭에서
|
||||
' 이 폼을 응용 프로그램의 시작 화면으로 쉽게 설정할 수 있습니다.
|
||||
Private Sub SplashScreen1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
|
||||
@@ -34,18 +34,22 @@ Public NotInheritable Class SplashScreen
|
||||
If Command() <> "ARIN" AndAlso Not ReadAuth() Then '//에러났을떄는 카운터를 확인
|
||||
'//사용횟수가 10번ㅇ르 초과했는지 확인
|
||||
Runcnt = Me.ReadAuthcount
|
||||
If Runcnt >= 10 Then
|
||||
Dim NewKey As String = InputBox("인증번호를 입력하세요 (인증번호는 숫자로만 이루어져 있습니다)")
|
||||
If IsNumeric(NewKey) = False Then
|
||||
MsgBox("프로그램을 재실행 하세요", MsgBoxStyle.Information, "확인")
|
||||
End
|
||||
End If
|
||||
auth.SetAuth(NewKey, My.Application.Info.DirectoryPath & "\epole.ini")
|
||||
MsgBox("프로그램을 재실행 하세요", MsgBoxStyle.Information, "확인")
|
||||
Dim f As New fAuth()
|
||||
If (f.ShowDialog <> Windows.Forms.DialogResult.OK) Then
|
||||
End
|
||||
Else
|
||||
MsgBox(CStr(10 - Runcnt) & "번의 사용횟수가 남았습니다", MsgBoxStyle.Critical, "실행확인")
|
||||
End If
|
||||
'If Runcnt >= 10 Then
|
||||
' Dim NewKey As String = InputBox("인증번호를 입력하세요 (인증번호는 숫자로만 이루어져 있습니다)")
|
||||
' If IsNumeric(NewKey) = False Then
|
||||
' MsgBox("프로그램을 재실행 하세요", MsgBoxStyle.Information, "확인")
|
||||
' End
|
||||
' End If
|
||||
' auth.SetAuth(NewKey, My.Application.Info.DirectoryPath & "\epole.ini")
|
||||
' MsgBox("프로그램을 재실행 하세요", MsgBoxStyle.Information, "확인")
|
||||
' End
|
||||
'Else
|
||||
' MsgBox(CStr(10 - Runcnt) & "번의 사용횟수가 남았습니다", MsgBoxStyle.Critical, "실행확인")
|
||||
'End If
|
||||
End If
|
||||
If Not LoadReg() Then End
|
||||
If Not Connect() Then End
|
||||
@@ -86,29 +90,35 @@ Public NotInheritable Class SplashScreen
|
||||
|
||||
Private Function ReadAuth() As Boolean
|
||||
If install = 0 OrElse installkey = 0 Then
|
||||
MsgBox("인증정보가 존재하지 않습니다." & vbCrLf & vbCrLf & "홈페이지 [자료실] 에서 인증번호를 확인하세요" & vbCrLf & "062-382-0411" & vbCrLf & Common.HomePage, MsgBoxStyle.Critical, "확인")
|
||||
' MsgBox("인증정보가 존재하지 않습니다." & vbCrLf & vbCrLf & "홈페이지 [자료실] 에서 인증번호를 확인하세요" & vbCrLf & "062-382-0411" & vbCrLf & Common.HomePage, MsgBoxStyle.Critical, "확인")
|
||||
'Process.Start(HomePage)
|
||||
Return False
|
||||
End If
|
||||
|
||||
If (auth.GetDateNumber(Now)) > install Then
|
||||
MsgBox("사용기간이 초과되었습니다." & vbCrLf & vbCrLf & "홈페이지 [자료실] 에서 인증번호를 확인하세요" & vbCrLf & "062-382-0411" & vbCrLf & Common.HomePage, MsgBoxStyle.Critical, "확인")
|
||||
Dim 현재날짜값 As Long = auth.GetDateNumber(Now)
|
||||
|
||||
If 현재날짜값 > install Then
|
||||
' MsgBox("사용기간이 초과되었습니다." & vbCrLf & vbCrLf & "홈페이지 [자료실] 에서 인증번호를 확인하세요" & vbCrLf & "062-382-0411" & vbCrLf & Common.HomePage, MsgBoxStyle.Critical, "확인")
|
||||
'Process.Start(HomePage)
|
||||
Return False '//만기일을 초과했다면
|
||||
End If
|
||||
|
||||
Dim FI As New System.IO.FileInfo(My.Application.Info.DirectoryPath & "\epole.ini")
|
||||
If (auth.GetDateNumber(FI.LastAccessTimeUtc)) > Now.ToFileTimeUtc Then '//설정파일을 접근한 날짜가 오늘보다 크면 즉 오늘이 조작디었을경우다
|
||||
MsgBox("사용기간이 초과되었습니다." & vbCrLf & vbCrLf & "홈페이지 [자료실] 에서 인증번호를 확인하세요" & vbCrLf & "062-382-0411" & vbCrLf & Common.HomePage, MsgBoxStyle.Critical, "확인")
|
||||
'Process.Start(HomePage)
|
||||
Return False '//만기일을 초과했다면
|
||||
End If
|
||||
'Dim FI As New System.IO.FileInfo(My.Application.Info.DirectoryPath & "\epole.ini")
|
||||
'If (auth.GetDateNumber(FI.LastAccessTimeUtc)) > Now.ToFileTimeUtc Then '//설정파일을 접근한 날짜가 오늘보다 크면 즉 오늘이 조작디었을경우다
|
||||
' ' MsgBox("사용기간이 초과되었습니다." & vbCrLf & vbCrLf & "홈페이지 [자료실] 에서 인증번호를 확인하세요" & vbCrLf & "062-382-0411" & vbCrLf & Common.HomePage, MsgBoxStyle.Critical, "확인")
|
||||
' 'Process.Start(HomePage)
|
||||
' Return False '//만기일을 초과했다면
|
||||
'End If
|
||||
|
||||
If installkey.ToString <> auth.GetDateNumberEnc(install) Then '//인증정보가 손상되었다면
|
||||
MsgBox("인증정보가 손상되었습니다" & vbCrLf & vbCrLf & "홈페이지 [자료실] 에서 인증번호를 확인하세요" & vbCrLf & "062-382-0411" & vbCrLf & Common.HomePage, MsgBoxStyle.Critical, "확인")
|
||||
Dim 해쉬값 As Integer = install.GetHashCode()
|
||||
If installkey.ToString <> 해쉬값 Then '//인증정보가 손상되었다면
|
||||
' MsgBox("인증정보가 손상되었습니다" & vbCrLf & vbCrLf & "홈페이지 [자료실] 에서 인증번호를 확인하세요" & vbCrLf & "062-382-0411" & vbCrLf & Common.HomePage, MsgBoxStyle.Critical, "확인")
|
||||
'Process.Start(HomePage)
|
||||
Return False
|
||||
End If
|
||||
|
||||
Rundate = Date.FromFileTimeUtc(install)
|
||||
|
||||
Return True
|
||||
' MsgBox(auth.GetDateNumberEnc(Now))
|
||||
End Function
|
||||
|
||||
Reference in New Issue
Block a user