home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
AUTOVAL4.ZIP
/
AUTOVAL.DOC
next >
Wrap
Text File
|
1992-02-29
|
10KB
|
239 lines
Autoval Mod for VBBS. Install Instructions: VERSION 4.0
------------------------------------------------------------------------------
Legend: + Add the Line - Delete the Line = Existing Line
------------------------------------------------------------------------------
* Note to users who have already installed the autoval mod. Make sure these
lines match perfectly....
------------------------------------------------------------------------------
First off MANY thanks to Zargon, 1@1 for the modem routines, without
which this mod would not have been possible and to Elminster 1@6992 who took
the time to help check it out to make sure it worked. Now on to the install
part. Be sure to read everything first before attempting this mod. It is not
HARD but if you overlook something it will be difficult to find the problem.
IN VBBS.BAS ---->
+ At the top add these lines
DECLARE SUB AUTOVAL ()
DECLARE SUB CHECKPHONE ()
* DECLARE SUB AVBAD (T$)
IF YOU ALREADY HAVE AUTOVAL INSTALLED THEN YOU NEED TO
DELETE THE SUB PROGRAMS, NOT THE DECLARE STATEMENTS JUST
THE SUBS THEMSELVES..
IN VBBS5.BAS
+ At the top add the following declare statements
DECLARE SUB AUTOVAL ()
DECLARE SUB AVBAD (T$)
DECLARE SUB CHECKPHONE ()
DECLARE SUB LONGRESULT (T$,L$,BB%)
DECLARE SUB OUTLINE (P$)
+ Block copy the file avbad.sub into this new sub program.
+ Block copy the file checkph.sub info this new sub program.
+ Block Copy the Autoval.sub file into the autoval sub you
just created.
+ Go into the autoval sub and near the top you will see this
outline "ATV1H0X6"+ cr$
Change this X6 parameter to what ever your modem uses to
detect VOICE, generally X5 or X6 or delete it if your
modem can not determine voice status.
UNDER VBBS.BAS NEAR THE 1ST QUARTER:
= CLOSE 1
= break = 0: dbdef = 0: inusered = 0: lastwarn = 0: snoop = 1: sysopalert = 0
= group$ = "": numgroup = 0: wrap$ = "": sysopavail = 0
+ aval=0:avlocal=0:chkphone=0
= z$ = UCASE$(COMMAND$)
= z = VAL(z$)
STILL IN VBBS (THIS IS FOR USERS WHO HAVE ALREADY PUT IN AUTOVAL)
MAKE SURE YOU CHANGE THESE LINES BACK TO THE WAY THEY ARE HERE....
* IF cdchk = 0 GOTO vxx
* DO
* writeln " ###-###-####"
* serwrt "Voice Phone: "
* getline t$, ""
* LOOP WHILE t$ = "" AND LEN(t$) <> 12 AND cdchk = 1
* u1.ph1 = t$
* IF cdchk = 0 GOTO vxx
* writeln " ###-###-####"
* serwrt "Data Phone: "
* getline t$, "": u1.ph2 = t$
* IF t$ = "" THEN u1.ph2 = u1.ph1
* IF cdchk = 0 GOTO vxx
* docr
STILL IN VBBS.BAS UNDER 'NEWUSER:'
= serwrt "Verify PW: "
= getline t$, "X"
= if cdchk=0 goto vxx
+ checkphone
+ if chkphone=2 goto vxx /'chk' NOT 'check'/
+ if (aval=4) then autoval
+ if (aval=2 or aval=3) goto vxx
= if msl.allowautosysop then
= writeln ""
AND STILL FARTHER DOWN:
= nu = opendbqs: PUT 3, user, g&: CLOSE 3
= NEXT
= CLOSE 8
= docr
= writeln "Done"
+ IF aval = 1 THEN
+ newuseremail
+ f$ = systxtp$ + "avalmail.msg"
+ buclr
+ buload f$
+ d1.fromn = node
+ d1.from = CINT(user)
+ d1.froms = RTRIM$(u1.handle)
+ setemail
+ savedb 1, node, "Autovalidated New User", 0, "", 0, 0
+ buclr
+ writeln cr$
+ echofile systxtp$ + "avcall.msg"
+ writeln cr$
+ waits 5
+ logoff
+ IF cdchk = 0 GOTO vxx
+ END IF
= pause ""
STILL IN VBBS.BAS NOW UNDER 'VXX:'
= u1.sec = 0
= u1.ph1 = ""
+ u1.verb = CHR$(0)
= GOTO nextcall
NOW IN VBBSTYPE.BAS
Go to the end where all the COMMON SHARED statements are and add this:
+ COMMON SHARED aval as integer, chkphone as integer
+ COMMON SHARED avlocal as integer, avld as integer
NOW CREATE THE FOLLOWING FILES WHERE INDICATED USING ANY TEXT WORD PROCESSOR
PHONES.DAT ... Goes under the Main VBBS directory .... Use the Example
File provided...
AVAL.MSG ... Goes under your Text File Dir (with the Menus) .... Use
the sample provided or modify it...
BADPHONE.MSG .. Goes with the AVAL.MSG file.... Use the Sample provided
or modify it....
AVCALL.MSG .... Goes with the Text files.... It prints out just before
aval hangs up on the user if he successfully autovals
Use the example or modify it.
AVALMAIL.MSG .. Goes the same as above. Only put this file in if you
Add the routine at the end to send Email to the
Sysop when a user autovalidates. This file contains
the text to be sent to you. Use the sample provided
or modify it to suit your needs.
AVBADPH.MSG .. This is the file sent to the sysop when a users phone
is put in the bad phone section of Phones.dat. It goes
under the text file sections with the others. Modify
it to suit your preference...
IF YOU HAVE OR PLAN ON USING THE AUTO SYSOP VALIDATION: Built into vbbs then
you need to install ONE of the Options below.
OPTION 1: This option will only offer auto sysop validation to
users who do not use the autoval program.
In VBBS.BAS under newuser:
= If (aval=2 or aval=3) goto vxx
Delete this line and - If msl.allowautosysop then
replace with this one + If (msl.allowautosysop and aval <>1) then
= writeln " "
OPTION 2: Allows use of both autoval and auto sysop val.
(A) If you are using the User Sex mod ;
Set the Autosysop Security and Maxtime in vconfig
to the same or higher than the settings for a Female
in the autoval program. (Aval default = 75/120)
(B) If you are not using the User Sex mod ;
Set the Autosysop Security and Maxtime in vconfig
to the same or higher than the settings for Non-
Females in the autoval program. (Aval = 50/60).
Right now the program will only add a users phone to the bad phone
list if they fail a reconnect. If you want to add to this then install the
changes as listed below: (I do not recommend these as some users are not
familiar with autoval procedures/modems and once the number is in the bad
phone list they will be dropped if they call back and try to log in as a
new user with that phone number again, only fix is for sysop to remove the
offending number from the bad phone list)
To add a number to the bad phone list when a user successfully
autovalidates do this: IN VBBS.BAS
= docr
= writeln "Done"
= if aval = 1 then
= newuseremail
+ avbad "AUTOVALIDATED"
= f$ = systxtp$ + "avalmail.msg"
To add a number to the bad phone list when a user reenters the wrong
password do this: IN VBBS5.BAS UNDER SUB AUTOVAL
= End If
= if aval = 2 then
+ avbad "RECON WRONG PW"
= syslog "!!!" + date$ + " " + time$
To add a number to the bad phone list when a user aborts autoval do
this. IN VBBS5.BAS UNDER SUB CHECKPHONE
= qltt:
= if aval = 5 then
+ avbad "ABORTED AVAL"
= syslog "!!!" + date$ + " " + time$
Thats all folks! Hope you enjoy. If you experience problems you can get
help by calling Big Blue Connection 619-225-9720 or by leaving Email for
1 @ 6993 (Virtualnet or WWIVnet)
Be sure to read SYSOP.DOC for an explanation of how the program works..