home *** CD-ROM | disk | FTP | other *** search
- /* $VER: bbsLOGON.baud 6.3 (7.9.93)
-
- UUCP Procedure? This MIGHT work, I have no easy way to test.
- bbsLOGON.baud (and thus BBBBS) is blocked until UUCico returns. Getty
- is not required, instead logon BBBBS as a new user under the uucp
- username. Enter the uucp password for password. Skip the birthday
- questions so that the BIRTHDAY: field is blank. BBBBS will answer the
- call, check the password, and then call this program. If it is a
- valid uucp call, UUCICO is run. First, we check to see if "name" is
- a valid UUCP username (BBBBS has already checked the password).
- If no match is found, we return 0 so BBBBS can continue. Otherwise,
- we wait for UUCICO to do it's thing and return a 1 to BBBBS so it
- will reset for the next caller.
- */
-
- CR='0D'x
- match=0
-
- PARSE ARG name level .
- CALL PRAGMA('W','N') /* Turn DOS requesters OFF */
- IF ~EXISTS('UUCP:') THEN EXIT 0
-
- x=OPEN(f,'GETTY:PASSWD','R')
- IF x=0 THEN
- DO
- SAY '*** Could not open GETTY:PASSWD file!'CR
- EXIT 0
- END
- dat1=READCH(f,65000)
- CALL CLOSE(f)
- dat2=TRANSLATE(UPPER(dat1),' ','0A'x||',')
- match=FIND(dat2,name)
- IF match=0 THEN EXIT 0 /* no match, must be BBS call */
-
- Quiet ON /* BB disabled */
- CALL DELAY(28) /* but apparently not instantly */
- ADDRESS COMMAND 'UUCP:C/UUCico -Getty' /* call UUCICO & wait for return */
- CALL DELAY(28) /* delay may not be needed */
- ADDRESS BAUD /* probably redundant */
- Quiet OFF /* BB enabled */
- CALL DELAY(28) /* likely some delay needed here */
- EXIT 1 /* RETURN 1 to tell BBBBS to reset */
-
- /* bbsLOGON.baud */
-