4 BorderStyle = 1 'Fixed Single
11 name = "MS Sans Serif"
17 strikethrough = 0 'False
19 ForeColor = &H80000008&
30 Begin Threed.SSPanel helloframe
44 Begin VB.TextBox hello
47 BackColor = &H00C0C0C0&
57 Begin Threed.SSPanel Panel3D1
72 Begin Threed.SSPanel Instructions
82 Caption = $"CITUSER.frx":0000
88 Begin VB.CommandButton newuser_button
90 BackColor = &H80000005&
98 Begin VB.CommandButton disc_button
100 BackColor = &H80000005&
101 Caption = "Disconnect"
108 Begin VB.CommandButton login_button
110 BackColor = &H80000005&
118 Begin VB.TextBox Password
119 Alignment = 2 'Center
121 BackColor = &H00C0C0C0&
122 BorderStyle = 0 'None
130 strikethrough = 0 'False
138 Begin VB.TextBox UserName
139 Alignment = 2 'Center
141 BackColor = &H00C0C0C0&
142 BorderStyle = 0 'None
144 name = "MS Sans Serif"
150 strikethrough = 0 'False
158 Begin Threed.SSFrame Frame3D2
168 Caption = "Password:"
170 Begin Threed.SSFrame Frame3D1
180 Caption = "User Name:"
182 Begin VB.Label BBScity
183 Alignment = 2 'Center
185 BackColor = &H00C00000&
187 name = "MS Sans Serif"
193 strikethrough = 0 'False
195 ForeColor = &H0000FFFF&
202 Begin VB.Label BBSname
203 Alignment = 2 'Center
205 BackColor = &H00C00000&
207 name = "MS Sans Serif"
213 strikethrough = 0 'False
215 ForeColor = &H0000FFFF&
223 Attribute VB_Name = "CitUser"
224 Attribute VB_Creatable = False
225 Attribute VB_Exposed = False
227 Private Sub check_buttons()
228 If UserName.Text <> "" And Password.Text <> "" Then
229 login_button.Enabled = True
230 newuser_button.Enabled = True
232 login_button.Enabled = False
233 newuser_button.Enabled = False
237 Private Sub disc_button_Click()
240 Call serv_puts("QUIT")
249 Private Sub form_activate()
250 CitUser.WindowState = 0
251 CitUser.Left = Int((MainWin.Width - CitUser.Width) / 2)
252 CitUser.Top = Int((MainWin.Height - CitUser.Height) / 3)
255 Private Sub Form_Load()
256 CitUser.WindowState = 0
257 CitUser.Left = Int((MainWin.Width - CitUser.Width) / 2)
258 CitUser.Top = Int((MainWin.Height - CitUser.Height) / 3)
265 ' Use the INFO command to retrieve global server information
266 ' (This could probably get moved to the IPC module)
268 If begin_trans() = False Then GoTo skipcitu
270 serv_puts ("IDEN 0|2|100|WinCit")
275 If Left$(buf$, 1) = "1" Then
280 If buf$ = "000" Then Exit Do
284 serv_pid% = Val(buf$)
286 serv_nodename$ = buf$
288 serv_humannode$ = buf$
292 serv_software$ = buf$
294 serv_rev_level! = CDbl(buf$) / 100
296 serv_bbs_city$ = buf$
302 BBSname.Caption = serv_humannode$
303 BBScity.Caption = serv_bbs_city$
306 MainWin.Caption = serv_humannode$
309 If begin_trans() = False Then GoTo skiphello
310 serv_puts ("MESG hello")
312 If (Left$(c$, 1) = "1") Then
316 If (c$ <> "000") Then
317 Do While Left$(c$, 2) = " "
318 c$ = Right$(c$, Len(c$) - 1)
320 b$ = b$ + c$ + Chr$(13) + Chr$(10)
322 Loop Until c$ = "000"
323 hello.Text = Cit_Format(b$)
337 ' begin_trans() will already have been called before get_uparms()
339 Private Sub get_uparms(loginstr As String)
341 p$ = Right$(loginstr, Len(loginstr) - 4)
342 axlevel% = Val(extract(p$, 1))
346 If Left$(a$, 1) = "2" Then
347 a$ = Right$(a$, Len(a$) - 4)
349 nm% = Val(extract(a$, 0))
350 If nm% = 1 Then m$ = m$ + "You have a new private message in Mail>" + Chr$(13) + Chr$(10)
351 If nm% > 1 Then m$ = m$ + "You have " + Str$(nm%) + " new private messages in Mail>" + Chr$(13) + Chr$(10)
353 If axlevel >= 6 And Val(extract(a$, 2)) > 0 Then m$ = m$ + "Users need validation" + Chr$(13) + Chr$(10)
355 If Len(m$) > 0 Then MsgBox m$, 64
357 need_regis% = Val(extract(a$, 1))
365 Private Sub Login_Button_Click()
367 If begin_trans() = True Then
368 serv_puts ("USER " + UserName.Text)
371 If Left$(buf$, 1) <> "3" Then
372 MsgBox Right$(buf$, Len(buf$) - 4), 16
374 If Left$(buf$, 1) = "3" Then
375 serv_puts ("PASS " + Password.Text)
377 If Left$(buf$, 1) <> "2" Then
378 MsgBox Right$(buf$, Len(buf$) - 4), 16
380 If Left$(buf$, 1) = "2" Then
383 If need_regis% = 1 Then
395 Private Sub newuser_button_Click()
396 If begin_trans() = True Then
397 serv_puts ("NEWU " + UserName.Text)
399 If Left$(buf$, 1) = "2" Then
400 serv_puts ("SETP " + Password.Text)
403 If Left$(buf$, 1) <> "2" Then
404 MsgBox Right$(buf$, Len(buf$) - 4), 16
408 If need_regis% = 1 Then
414 MsgBox Right$(buf$, Len(buf$) - 4), 16
420 Private Sub Password_Change()
424 Private Sub Password_Click()
431 Private Sub Password_KeyPress(keyascii As Integer)
432 If keyascii = 13 Then Call Login_Button_Click
435 Private Sub UserName_Change()
439 Private Sub UserName_KeyPress(keyascii As Integer)
440 If keyascii = 13 Then Call Password_Click