VERSION 5.00
Begin VB.Form frmLogin 
   BackColor       =   &H00CFB263&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Login"
   ClientHeight    =   2400
   ClientLeft      =   2835
   ClientTop       =   3480
   ClientWidth     =   3750
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1417.999
   ScaleMode       =   0  'User
   ScaleWidth      =   3521.047
   StartUpPosition =   2  'CenterScreen
   Begin VB.TextBox txtKey 
      BackColor       =   &H00800000&
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   6.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000005&
      Height          =   345
      IMEMode         =   3  'DISABLE
      Left            =   570
      TabIndex        =   8
      Top             =   897
      Width           =   3045
   End
   Begin VB.CheckBox Check1 
      BackColor       =   &H00CFB263&
      Caption         =   "Remember Me"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   6.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Left            =   1080
      TabIndex        =   6
      Top             =   1388
      Width           =   1455
   End
   Begin VB.TextBox txtUserName 
      BackColor       =   &H00800000&
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   6.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000005&
      Height          =   345
      Left            =   1290
      TabIndex        =   1
      Top             =   135
      Width           =   2325
   End
   Begin VB.CommandButton cmdOK 
      BackColor       =   &H00CFB263&
      Caption         =   "OK"
      Default         =   -1  'True
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   6.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   390
      Left            =   480
      TabIndex        =   4
      Top             =   1680
      Width           =   1140
   End
   Begin VB.CommandButton cmdCancel 
      BackColor       =   &H00CFB263&
      Cancel          =   -1  'True
      Caption         =   "Cancel"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   6.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   390
      Left            =   2040
      TabIndex        =   5
      Top             =   1680
      Width           =   1140
   End
   Begin VB.TextBox txtPassword 
      BackColor       =   &H00800000&
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   6.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000005&
      Height          =   345
      IMEMode         =   3  'DISABLE
      Left            =   1290
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   525
      Width           =   2325
   End
   Begin VB.Label Label2 
      BackColor       =   &H00CFB263&
      Caption         =   "Status: Idle..."
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   6.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   120
      TabIndex        =   9
      Top             =   2160
      Width           =   3615
   End
   Begin VB.Label Label1 
      BackColor       =   &H00CFB263&
      Caption         =   "Key:"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   6.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   120
      TabIndex        =   7
      Top             =   960
      Width           =   495
   End
   Begin VB.Label lblLabels 
      BackColor       =   &H00CFB263&
      Caption         =   "&User Name:"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   6.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   270
      Index           =   0
      Left            =   105
      TabIndex        =   0
      Top             =   150
      Width           =   1080
   End
   Begin VB.Label lblLabels 
      BackColor       =   &H00CFB263&
      Caption         =   "&Password:"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   6.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   270
      Index           =   1
      Left            =   105
      TabIndex        =   2
      Top             =   540
      Width           =   1080
   End
End
Attribute VB_Name = "frmLogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit


Private Sub Check1_Click()
If Check1.Value = 1 Then
WriteINI "login", "remember", "yes", App.Path & "\misc_files\configuration\registration.ini"
ElseIf Check1.Value = 0 Then
WriteINI "login", "remember", "no", App.Path & "\misc_files\configuration\registration.ini"
End If
End Sub

Private Sub cmdCancel_Click()
End
End Sub

Private Sub cmdOK_Click()
If txtUserName.Text = "" Or txtPassword.Text = "" Or txtKey.Text = "" Then
MsgBox "One of the above required feilds are blank!"
Else
If frmMain.check.State = sckConnected Then
frmMain.check.SendData StrReverse("LI" & txtUserName.Text & "@" & txtPassword.Text & "@" & txtKey.Text & "@" & IPAddy)
HUsername = txtUserName.Text
Label2.Caption = "Status: Authenticating..."
cmdOK.Enabled = False
Else
MsgBox "Not connected to mother server!"
End If
End If
End Sub

Private Sub Form_Load()



Dim serve As String
serve = App.Path & "\misc_files\configuration\registration.ini"

If ReadINI("login", "remember", serve) = "yes" Then
Check1.Value = 1
Else
Check1.Value = 0
End If

If ReadINI("key", "key", serve) = "n0treg" Then
txtKey.Text = "Enter Key Here"
txtKey.Enabled = True
Else
txtKey.Text = ReadINI("key", "key", serve)
txtKey.Enabled = False
End If

If Check1.Value = 1 Then
txtUserName.Text = ReadINI("login", "username", serve)
txtPassword.Text = ReadINI("login", "password", serve)
If txtUserName.Text = "" Or txtPassword.Text = "" Or txtKey.Text = "" Then
MsgBox "One of the above required feilds are blank!"
Else
If frmMain.check.State = sckConnected Then
frmMain.check.SendData StrReverse("LI" & txtUserName.Text & "@" & txtPassword.Text & "@" & txtKey.Text & "@" & IPAddy)
HUsername = txtUserName.Text
Label2.Caption = "Status: Authenticating..."
cmdOK.Enabled = False
Else
MsgBox "Not connected to mother server!"
End If
End If
End If




End Sub

Private Sub Form_Unload(Cancel As Integer)
End
End Sub

Private Sub Label2_Click()

End Sub
