home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
WCVFY.ZIP
/
WCVFYUTL.WCX
(
.txt
)
< prev
Wrap
Wildcat! WCX
|
1994-10-11
|
3KB
|
139 lines
'! Decompiled with wccNosy version 4.20f (freeware)
'! Input File: in.wcx 3192 bytes 12/30/122 04:15:50pm
'! Code Segment Size :1216 bytes
'! Data Segment Size :5228 bytes
'! String Segment Size:1976 bytes
'! Compiled with WCC version 4.01
Type Type26
s0 As String*25
s25 As String*15
s40 As String*15
s55 As String*15
s70 As String*10
End Type
Dim s4463 As String
Dim ur4467 As UserRecord
Dim t26_5117 As Type26
Dim s5197 As String*1
Dim s5198 As String*10
Dim dt5208 As DateTime
Dim i5214 As Integer
Dim s5216 As String
Dim i5220 As Integer
Dim s5222 As String
Dim i5226 As Integer
Dim s65532_ As String
CurrentDateTime dt5208
s4463 = "1.01"
Do
55 Cls
Locate 2, 1
Print " @0F@wcVFY Utility@0E@ v@0F@" + s4463 + "@0E@"
Print " written by @0F@Stephen Barclay@0E@"
Locate 6, 1
Print " [A] Create WCVFY.DAT file, for Dupe Checking"
Print " [B] Export User List from WCVFY.DAT to a File"
Print " [C] View WCVFY.LOG File"
Print " "
Print " [Q] Quit and Exit Program"
Print " "
Print " Please select [@0F@A B C Q@0E@] ? ";
Input s5197
s65532_ = UCase(s5197)
If s65532_ = "A" Then
Cls
Locate 2, 1
Print " Welcome to the wcVFY Data creator"
Locate 4, 1
Print " This Program will create a WCVFY.DAT file in your Wildcat Home Dir,"
Print "this is usually only preformed ONCE! It will export the Phone, Data,"
Print "and Fax Numbers from your Current Users. It will NOT export the Numbers"
Print "for a specific Profile that you may specify in a moment."
Locate 10, 1
Print " This file (WCVFY.DAT) will be used by wcVFY Call-Back Verifier program "
Print "that is distributed by Stephen Barclay. This program will also update"
Print "the phone numbers after a User has been validated. Also included in the"
Print "program is Log Creating ability. It will capture the time, date, and "
Print "other information which may be usefull to you. You can also use it to"
Print "post a message to yourself once someone is validated."
WaitEnter
Cls
Locate 4, 1
Print "Please make sure if you EXCLUDE a Security Profile it is typed in"
Print "UPPER CASE and also is a valid Security Profile in Makewild."
Print "Pressing [ENTER] will include ALL Security Levels."
Locate 8, 1
Print "Which Security Level would you like to exclude? ";
Input s5198
If s5198 <> "" Then
Locate 10, 1
Print " The Security Profile of @0F@"; s5198; "@0E@ will not be added to the database."
End If
441 Open "wcvfy.dat" For Random As 1 Len = 80 '! This value should probably be replaced with a "SizeOf" expression
s5222 = ""
If GetUser(ur4467, s5222) Then
486 Do While GetNextUser(ur4467, 1213417543)
If ur4467.SecLevel <> s5198 Then
t26_5117.s0 = Pad(ur4467.Name, 25)
t26_5117.s25 = ur4467.PhoneNumber
t26_5117.s40 = ur4467.DataNumber
t26_5117.s55 = ur4467.FAXNumber
t26_5117.s70 = Pad(ur4467.SecLevel, 10)
If t26_5117.s25 <> "" Then
Put 1, -1, t26_5117 '! 80 bytes
End If
End If
669 Loop
675 Reset
End If
678 Locate 15, 1
Print "........All Done, the DATA file was created successfully!"
WaitEnter
Else
703 If s65532_ = "B" Then
Print ""
i5214 = InputYesNo("Would you like to export the Users to a text file? ", 1213417543)
If i5214 = -1 Then
s5216 = InputMask("Please give me a vaild 8 character Dos file Name (No Numbers): ", "XXXXXXXX", "", 1213417543)
Open "wcvfy.dat" For Random As 1 Len = 80 '! This value should probably be replaced with a "SizeOf" expression
Open s5216 + ".lst" For Output As 2
i5226 = 1
Print #2, " wcVFY User Listing, at "; FormatTime(dt5208.T, "hh:mm:ss"); " on "; FormatDate(dt5208.D, "mm/dd/yy")
Print #2, ""
Print #2, " User Name Home Phone Data Phone Fax Phone "
Print #2, "---------------------------------------------------------------------"
920 Do While Not EOF(1)
i5226 = i5226 + 1
Get 1, i5226, t26_5117 '! 80 bytes
Print #2, Pad(t26_5117.s0, 25) + " "; t26_5117.s25 + " "; t26_5117.s40 + " "; t26_5117.s55
Loop
1041 Reset
End If
1044 Print "All Done..."
i5220 = InputYesNo("Would you like to view the file? ", 1213417543)
If i5220 = -1 Then
DisplayTextFile(s5216 + ".lst")
WaitEnter
End If
1105 Else
1111 If s65532_ = "C" Then
DisplayTextFile("wcvfy.log")
WaitEnter
Else
1146 If s65532_ = "Q" Then
GoTo 1196
Else
1175 Print "Not a valid selection, please try again"
Beep
WaitEnter
End If
End If
End If
End If
1190 Loop
1196