home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-08-11 | 193.4 KB | 4,267 lines |
- * ------------[ BLED merge (c) Ken Goosens ]-------------
- * Merge this against RBBS-PC.BAS to produce RBBS-PC.NEW
- * RBBS-PC.BAS: Date 6-20-92 Size 147219 bytes
- * ------------[ Created 08-11-1993 19:33:32 ]------------
- * INSERTING new line(s)
- 1 ' $segment
- * REPLACING old line(s) by new
- 29 ' **************************************************************************
- '
- ' $INCLUDE: 'RBBS-VAR.BAS'
- '
- ' $SUBTITLE: 'Main-line RBBS-PC Program'
- ZCrLf$ = CHR$(13) + CHR$(10)
- WasJ = 60
- DIM ZOptSec(WasJ)
- ZConfigFileName$ = "RBBS-PC.DEF"
- CALL GetCommand (ZDebug,ZNetTime$,ZNetBaud$,ZNetReliable$)
- ZSubParm = -62
- ZBulletinMenu$ = ""
- CALL ReadDef (ZConfigFileName$)
- IF ZErrCode > 0 THEN _
- GOTO 31
- * ------[ first line different ]------
- ' ' DD021903/VGA
- ' * SET UP FOR VGA 25/43/50 Screen Lines ' DD021903/VGA
- ' ' DD021903/VGA
- SCREEN 0 ' DD021903/VGA
- WIDTH 80,ZLocalPageLength ' DD021903/VGA
- ' CALL MLInit (1) ' DD090401
- GOTO 100
- * REPLACING old line(s) by new
- 100 CLEAR,,ZSizeOfStack
- CALL VarInit
- IF ZErrCode > 0 THEN _
- GOTO 31
- OrigUpgradeSec = ZAutoUpgradeSec
- OrigMainSec = ZMinLogonSec
- CALL BreakFileName (ZOrigMsgFile$,Drive$,OrigMsgName$,ZWasY$,ZFalse)
- IF OrigMsgName$ = "MESSAGES" THEN _
- OrigMsgName$ = "MAIN" _
- ELSE IF RIGHT$(OrigMsgName$,1) = "M" THEN _
- OrigMsgName$ = LEFT$(OrigMsgName$,LEN(OrigMsgName$)-1)
- ConfFileName$ = OrigMsgName$
- OrigNewsFileName$ = ZWelcomeFileDrvPath$ + _
- OrigMsgName$ + ".NWS"
- ZNewsFileName$ = OrigNewsFileName$
- * ------[ first line different ]------
- CALL GetMenu0Info ' DD091201/MENU0
- IF ZNetMail$ <> "NONE" AND VAL(ZNetTime$) > 0 THEN _
- ZLimitMinsPerSession = VAL(ZNetTime$) : _
- ZExpectActiveModem = ZTrue : _ ' DD051503
- PRINT "Loading RBBS-PC " + ZVersionID$ : _ ' DD051503
- IF NOT ZKeepInitBaud THEN _
- ZModemInitBaud$ = ZNetBaud$
- IF ZFossil THEN _
- ZComPort = VAL(RIGHT$(ZComPort$,1)) - 1 : _
- IF ZComPort < 0 THEN _
- GOTO 108 _
- ELSE CALL FOSinit(ZComPort,Result) : _
- IF Result = -1 THEN _
- ZSnoop = ZTrue : _
- CALL PScrn("ERROR INITIALIZING FOSSIL") : _
- GOTO 204
- * REPLACING old line(s) by new
- 108 CALL BreakFileName (ZCallersFile$,Drive$,WasX$,ZWasY$,ZTrue)
- ZCallersFilePrefix$ = WasX$
- ZNodeWorkDrvPath$ = Drive$
- ZArcWork$ = ZNodeWorkDrvPath$ + _
- "ARCWORK" + _
- ZNodeFileID$ + _
- ".DEF"
- * ------[ first line different ]------
- ' IF ZUseBASICWrites THEN _ ' DD050701
- ' ZLocalBksp$ = ZBackArrow$ _ ' DD050701
- ' ELSE ZLocalBksp$ = ZBackSpace$ ' DD050701
- ZLocalBkSp$ = ZBackSpace$ ' DD050701
- ZSysopFullName$ = LEFT$(ZSysopFirstName$ + SPACE$(1) + ZSysopLastName$ + SPACE$(2),22) ' DD021301
- ZFastFileSearch = ZFalse
- CALL FindIt (ZFastFileList$)
- IF ZOK THEN _
- CALL FindIt (ZFastFileLocator$) : _
- IF ZOK THEN _
- ZFastFileSearch = ZTrue : _
- CALL BreakFileName (ZFastFileList$, Drive$,WasX$,ZWasY$,ZTrue) : _
- ZFileName$ = Drive$ + WasX$ + CHR$(84) + ZWasY$ : _ 'T ' DD021301
- CALL FindIt (ZFileName$) : _
- ' ZErrCode = 0 : _ ' DD090201
- IF ZOK THEN _
- CALL OpenRSeq (2,ZFileName$, WasX, WasY, 72) : _ ' DD031703
- FIELD 2, 72 AS IndexRec$ : _
- GET 2, 1 : _
- ZFastTabs$ = IndexRec$ : _
- CLOSE 2 _
- ELSE ZFastTabs$ = ""
- '
- ' ***** INITIALIZE NetBIOS INTERFACE ****
- '
- IF ZNetworkType = 6 AND NOT ZSubBoard THEN _
- CALL InitIBM
- '
- ' ***** ESTABLISH NEXT CALLERS FILE RECORD AVAILABLE ***
- '
- CALL SetCall
- * REPLACING old line(s) by new
- 112 IF NOT ZSubBoard THEN _
- ZLocalUser = ZTrue : _
- ZOutTxt$ = ZColorReset$ : _
- ZSubParm = 1 : _
- CALL TPut : _
- ZLocalUser = ZFalse
- ZUpldDriveFile$ = RIGHT$(ZDnldDrives$,1)+":FREESPAC.UPL"
- * ------[ first line different ]------
- ZMinsPerSessionDef = ZMinsPerSession - ZElapsedTime ' JA082301
- ZMaxPerDayDef = ZMaxPerDay
- ZMaxBankTimeDef = ZMaxBank
- '
- ' ***** TEST FOR MESSAGE FILE PRESENT (Abort IF NOT PRESENT) ****
- '
- * REPLACING old line(s) by new
- 135 IF ZCurDef$ = ZOrigCnfg$ THEN _
- ZActiveMessageFile$ = ZMainMsgFile$ : _
- ZActiveUserFile$ = ZMainUserFile$
- GOSUB 4910
- IF ZConfMode THEN _
- GOTO 150
- * ------[ first line different ]------
- ZLocalUserMode = (RIGHT$(ZComPort$,1) < CHR$(49)) '1 ' DD021301
- GET 1,ZNodeRecIndex
- ZWasY$ = MID$(ZMsgRec$,77,2)
- CALL UnPackDate (ZWasY$,WasX,WasL,WasI,ZOldDate$)
- ZOldDate$ = LEFT$(ZOldDate$,6) + MID$(STR$(WasX),2)
- ZHourMinToDropToDos = - (ZHourMinToDropToDos > 0) * ZHourMinToDropToDos
- Hour = INT(ZHourMinToDropToDos / 100)
- WasMN = ZHourMinToDropToDos - Hour * 100
- ZTimeToDropToDos! = Hour * 3600! + WasMN * 60!
- '
- ' ****** TEST FOR TIMED EXIT ACTIVE *****
- '
- * REPLACING old line(s) by new
- 150 IF ZSubBoard THEN _
- GOSUB 12987 : _
- GOSUB 5135 : _
- GOTO 170
- ZSysopAvail = VAL(MID$(ZMsgRec$,32,2))
- ZSysopAnnoy = VAL(MID$(ZMsgRec$,34,2))
- ZSysopNext = VAL(MID$(ZMsgRec$,36,2))
- MID$(ZMsgRec$,36,2) = STR$(ZFalse)
- ZPrinter = VAL(MID$(ZMsgRec$,38,2))
- IF ZTurnPrinterOff THEN _
- ZPrinter = ZFalse
- ZExitToDoors = (MID$(ZMsgRec$,40,2) = "-1" AND ZNetBaud$ = "" _
- AND INSTR(COMMAND$," LOCAL") = 0)
- ZEightBit = VAL(MID$(ZMsgRec$,42,2))
- ZBPS = -VAL(MID$(ZMsgRec$,44,2))
- ZSnoop = VAL(MID$(ZMsgRec$,58,2))
- * ------[ first line different ]------
- MID$(ZMsgRec$,57,1) = CHR$(73) 'I ' DD021301
- ZPrivateDoor = (MID$(ZMsgRec$,72,2) = "-1")
- IF ZPrivateDoor THEN _
- ZHasPrivDoor = ZTrue
- MID$(ZMsgRec$,72,2) = STR$(ZFalse)
- ZLocalUser = (MID$(ZMsgRec$,101,2) = ZCarriageReturn$+ZCarriageReturn$) OR _
- ZLocalUserMode
- IF ZExitToDoors OR ZPrivateDoor THEN _
- ZHasDoored = ZTrue : _
- ZTurboLogon = ZTrue ' Mpl090201
- PUT 1,ZNodeRecIndex
- GOSUB 12985
- GET 1,1
- ZCallsToDate! = VAL(MID$(ZMsgRec$,11,10)) ' DD040705
- IF ZCallsToDate! < 11 THEN ' DD062304
- CALL CopyRight ' DD062304
- IF NOT ZOK THEN ' DD062304
- GOTO 204 ' DD062304
- END IF ' DD062304
- END IF ' DD062304
- '
- ' ***** INITIALIZE VOICE SYNTHESIZER ****
- '
- ' CALL Talk (Init,ZOutTxt$) ' DD060401
- '
- ' ***** TEST FOR MULTI LINK PRESENT IF NOT COMPAQ COMPUTER ****
- '
- '160 CALL MLInit (4) ' DD062304
- * DELETING old line(s)
- 160
- * REPLACING old line(s) by new
- 170 FOR FunctionKeyIndex = 1 TO 10
- KEY FunctionKeyIndex,""
- NEXT
- * ------[ first line different ]------
- ' CALL LoadNew (ZMsgPtr()) ' DGS050501/DS
- '
- ' ****** INITIALIZE FILE MANAGEMENT SYSTEM, CHECK FOR LOCAL BBS MODE
- '
- * REPLACING old line(s) by new
- 175 GOSUB 5344
- CALL CountLines (MaxEntries)
- REDIM ZCategoryName$(MaxEntries),ZCategoryCode$(MaxEntries),_
- ZCategoryDesc$(MaxEntries)
- CALL InitFMS (ZNumCategories)
- ZMaxMsgLines = ZMaxMsgLinesDef
- IF (NOT ZLocalUser) AND (NOT ZSubBoard) THEN _
- CALL OpenCom (ZModemInitBaud$,",N,8,1")
- IF NOT ZSubBoard THEN _
- CALL SetEcho (ZDefaultEchoer$)
- ZNodeWorkFile$ = ZNodeWorkDrvPath$ + _
- "NODE" + _
- ZNodeFileID$ + _
- "WRK"
- * ------[ first line different ]------
- ZBatchWorkFile$ = ZNodeWorkDrvPath$ + _ 'Pe BatchUp mod
- "NODE" + _ 'Pe BatchUp mod
- ZNodeFileID$ + _ 'Pe BatchUp mod
- "BCH" 'Pe BatchUp mod
- ZSecsPerSession! = ZMinsPerSession * 60!
- LogIndex = 1
- IF NOT ZLocalUserMode THEN _
- IF NOT ZExitToDoors THEN _
- GOTO 180 _
- ELSE IF NOT ZLocalUser THEN _
- GOTO 180
- ZLocalUser = ZTrue
- ZBPS = -7
- ZBaudTest! = 9600
- ZCBaud$ = "9600"
- ZCBPS = -7
- ZEightBit = ZTrue
- ZSnoop = ZTrue
- IF ZExitToDoors THEN _
- CALL AMorPM : _
- CALL ReadProf : _
- GOTO 410
- GOSUB 178
- GOTO 345
- * REPLACING old line(s) by new
- 178 IF NOT ZSubBoard THEN _
- RETURN
- IF ZNewUser THEN _
- GOSUB 758
- * ------[ first line different ]------
- IF OrigFirstName$ = ZSysopFirstName$ AND _ 'Dgs-ALias
- ZLastName$ = ZSysopLastName$ THEN _
- RETURN 832 _
- ELSE RETURN 790
- * REPLACING old line(s) by new
- 200 ZToggleOnly = ZTrue
- CALL AnswerIt
- GET 1,ZNodeRecIndex
- ZSnoop = VAL(MID$(ZMsgRec$,58,2))
- * ------[ first line different ]------
- IF NOT ZSnoop THEN _ ' DD031503
- LOCATE 24,1 : _ ' DD031503
- PRINT "Snoop is OFF, Press <F9> To ReActivate" ' DD031503
- ZToggleOnly = ZFalse
- IF ZErrCode > 1 THEN _
- GOTO 13000
- IF ZSubParm < 0 THEN _
- GOTO 202
- ON ZSubParm GOTO 410, _ ' 1 = ANSWERED PHONE & CARRIER FOUND
- 330, _ ' 2 = CARRIER FOUND BEFORE ANSWERING
- 822, _ ' 3 = SysOp GETS SYSTEM NEXT
- 10595, _ ' 4 = ANSWERED PHONE BUT NO CARRIER
- 13540, _ ' 5 = NOT USED
- 202, _ ' 6 = LOCAL SYSOP KEY PRESSED
- 206, _ ' 7 = TIME TO DROP TO DOS
- 13538 ' 8 = No CALLS! TIME TO RECYCLE
- * REPLACING old line(s) by new
- 202 ZFF = -ZSubParm
- ON ZFF GOTO 10595, _ ' -1 = CARRIER DROPPED
- * ------[ first line different ]------
- 4700, _ ' -2 = SYSOP INITIATED CHAT ' DD091303
- 205, _ ' -3 = FORCE SYSTEM TO ANSWER THE PHONE
- 204, _ ' -4 = EXIT TO DOS IMMEDIATELY
- 203, _ ' -5 = EXIT TO DOS AFTER CLEAN-UP
- 10698, _ ' -6 = INDICATE ACCESS IS DENIED AND LOGOFF USER
- 10620 ' -7 = UPDATE CALLERS FILE AND LOGOFF USER
- * REPLACING old line(s) by new
- 203 'CALL MLInit(3) ' DD090401
- * REPLACING old line(s) by new
- 204 IF Zfossil THEN _
- CALL FOSExit(ZComPort)
- * ------[ first line different ]------
- CLS ' DD090902
- LOCATE ZLocalPageLength-1,1 ' DD021903/VGA
- SYSTEM
- * REPLACING old line(s) by new
- 335 ZExitToDoors = ZFalse
- ZPrivateDoor = ZFalse
- * ------[ first line different ]------
- IF ZExpectActiveModem = ZTrue THEN ' DD051401
- GOTO 345 ' DD051401
- END IF ' DD051401
- IF ZWasCL <> 1 THEN _
- LOCATE 16,55,1 ' DD082703/MENU0
- WasD$ ="CONNECT" + _
- STR$(ZBaudTest!) + _
- SPACE$(5) ' DD021301
- GOSUB 1315
- '
- ' ***** DISPLAY WELCOME LINE ****
- '
- * REPLACING old line(s) by new
- 345 CALL SayWelcome
- * ------[ first line different ]------
- CALL Line25 ' DD050904
- * REPLACING old line(s) by new
- 346 GOSUB 466
- IF ZSubParm = -1 THEN _
- GOTO 13540
- ZFF = ZFalse
- '
- * ------[ first line different ]------
- ' ***** DELETE ALL FILES IN WORK DIRECTORY **** ' Mpl090201
- '
- '360 CALL OpenOutW (ZArkViewPath$ + "DANDAN.DAN") ' DD062304
- 'CLOSE 2 ' DGS050601/DS-TH
- 'CALL KillWork (ZArkViewPath$ + "*.*") ' DGS050601/DS-TH
- '
- ' ***** GET USER NAME
- ' ***** C - COMMAND FROM NEWUSER REGISTER OPTIONS (CHANGE NAME OR ADDRESS)
- '
- '400 CALL SkipLine(1) ' DD062304
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 400 ZEscapeInsecure = ZFalse ' DD062304
- ZUpperCase = ZFalse
- CALL SetExpert
- WasA1$ = "What is your "
- CALL FlushCom (ZWasDF$)
- GOSUB 12500
- CALL CommInfo
- IF ZFF THEN _
- ZLogonErrorIndex = 1 : _
- GOTO 10620
- IF ZMinOldCallerBaud > ZBaudTest! THEN _
- CALL QuickTPut1 ("Sorry," + STR$(ZBaudTest!) + " BPS not allowed") : _
- ZWasLG$(7) = "OLD CALLER BAUD RESTRICTION" : _
- ZLogonErrorIndex = 7 : _
- GOTO 10620
- LogIndex = 4 - (ZLenIndiv > 0 AND ZStartIndiv > 0)
- ZTurboLogon = (LEFT$(ZUserIn$(LogIndex),1) = CHR$(33)) '! ' DD021301
- SkipWelcomeScreen = (LEFT$(ZUserIn$(LogIndex),1) = CHR$(36)) '$ ' DD021301
- ' ZHomeConf$ = RIGHT$(ZUserIn$(LogIndex),LEN(ZUserIn$(LogIndex)) _ ' Mpl090201
- ' + (TurboLogon OR SkipWelcomeScreen)) ' Mpl090201
- ' CALL AllCaps(ZHomeConf$)
- '
- ' ***** CHECK IF SAME USER ON ANOTHER NODE ***
- '
- * REPLACING old line(s) by new
- 410 IF ZExitToDoors THEN _
- ZCurDate$ = MID$(ZMsgRec$,119,2) + _
- * ------[ first line different ]------
- CHR$(45) + _ ' DD021301
- MID$(ZMsgRec$,121,2) + _
- CHR$(45) + _ ' DD021301
- MID$(ZMsgRec$,123,2) : _
- ZTime$ = MID$(ZMsgRec$,125,2) + _
- CHR$(58) + _ ' DD021301
- RIGHT$(ZMsgRec$,2) : _
- IF LEFT$(ZTime$,2) < "12" THEN _
- ZTime$ = ZTime$ + _
- " AM" _
- ELSE ZTime$ = ZTime$ + _
- " PM"
- NodeIndex = 2
- WasXX = ZMaxNodes + 1
- WasX$ = LEFT$(ZActiveUserName$+SPACE$(2),30) ' DD021301
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 420 IF MID$(ZMsgRec$,57,1) = CHR$(65) THEN _ ' DD021301
- ZLogonErrorIndex = 6 : _
- ZWasLG$(6) = ZWasLG$(6) + _
- LEFT$(ZMsgRec$,25) : _
- ZOutTxt$ = ZFG2$ + "The name '" + ZFGE$ + _ ' DD082401
- ZActiveUserName$ + ZFG2$ + _ ' DD082401
- "' is in use on another node" + ZEmphasizeOff$ : _ ' DD082401
- CALL RingCaller : _
- GOTO 10620
- ZFirstName$ = LEFT$(ZMsgRec$,INSTR(ZMsgRec$, SPACE$(1)) - 1) ' DD021301
- IF NOT ZPrivateDoor THEN _
- CALL QuickTPut1 (ZCRLf$ + ZFGF$ + ZBG1$ + "Welcome back " + _ ' DD071001
- ZFirstName$ + CHR$(33) + ZBG0$) ' DD060401
- ' CALL Talk (11,ZOutTxt$) ' DD060401
- IF ZExitToDoors THEN _
- GOTO 457
- '
- ' ***** TEST FOR REMOTE SYSOP LOGGING ON ***
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 445 IF INSTR(ZActiveUserName$,"SYSOP") THEN _ ' DD121201
- GOTO 446
- TempSecretName$ = UCASE$(ZSecretName$) ' DD030101
- ' CALL AllCaps (TempSecretName$) ' DD030101
- IF ZActiveUserName$ = ZSysopFirstName$ + SPACE$(1) + LEFT$(ZSysopLastName$,LEN(ZSysopLastName$)-1) AND _ ' DD021301
- TempSecretName$ <> ZSysopFirstName$ + SPACE$(1) + LEFT$(ZSysopLastName$,LEN(ZSysopLastName$)-1) THEN _ ' DD021301
- GOTO 446
- GOTO 455
- * INSERTING new line(s)
- 446 ZLogonErrorIndex = 2
- GOTO 10620
- '
- ' ***** REMOVE INVALID CHARACTERS FROM USER NAME ***
- '
- * REPLACING old line(s) by new
- 462 IF ZRestrictByDate AND ZDaysInRegPeriod > 0 THEN _
- CALL CompDate (ZUserRegYY,ZUserRegMM,ZUserRegDD,UserComputeDate!) : _
- ZRegDaysRemaining = UserComputeDate! + _
- ZDaysInRegPeriod - _
- TodayComputeDate! : _
- CALL ExpireDate (UserComputeDate!,ZDaysInRegPeriod,ZExpirationDate$) _
- ELSE ZDaysInRegPeriod = 0
- * ------[ first line different ]------
- TempStr$ = STR$(ZUserSecLevel) ' DD010209
- CALL Trim (TempStr$) ' DD010209
- ExpFile$ = ZHelpPath$ + "RGXD" + TempStr$ + ZHelpExtension$ ' DD010209
- CALL FindIt (ExpFile$) ' DD010209
- IF NOT ZOK THEN _ ' DD010209
- ExpFile$ = ZHelpPath$ + "RGXPIRD" + ZHelpExtension$ ' DD010209
- IF NOT ZPrivateDoor THEN _
- IF ZRegDaysRemaining < 0 AND ZDaysInRegPeriod > 0 THEN _
- IF ZUserSecLevel > ZTempExpiredSec THEN _
- CALL QuickTPut (ZFGB$ + ZWasLG$(9) + _ ' DD082302
- " - security level set to " + _
- STR$(ZTempExpiredSec) + CHR$(46) + _ ' DD021301
- ZEmphasizeOff$,2) : _ ' DD082302
- CALL BufFile(ExpFile$,WasX) : _ ' DD010209
- ZLogonErrorIndex = 9 : _
- ZUserSecLevel = ZTempExpiredSec : _
- LSET ZSecLevel$ = MKI$(ZUserSecLevel) : _
- GOSUB 5135
- RETURN
- '
- ' *** DISPLAY LOG-ON MESSAGE FOR SPECIFIC SECURITY LEVEL **
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 465 ZTurboLogon = ZTurboLogon AND (ZExitToDoors OR _ ' Mpl090201
- (ZUserSecLevel >= ZAllowCallerTurbo))
- IF (ZCurDate$ <> LEFT$(ZLastDateTimeOn$,8)) AND _ ' DD091801/NOTURBO
- NOT ZExitToDoors AND ZTurboOnFirstCall = 0 THEN _ ' DD091801/NOTURBO
- ZTurboLogon = ZFalse : _ ' DD091801/NOTURBO
- SkipWelcomeScreen = ZFalse ' DD091801/NOTURBO
- IF ZTurboLogon THEN _ ' Mpl090201
- GOSUB 47100 : _ ' DD070802
- RETURN
- GOSUB 47000 ' DD062601
- ZFileName$ = ZWelcomeFileDrvPath$ + _
- ZNodeId$ + _ ' DD041803
- "LG" + _
- UserSecLevel$ + _
- ".DEF"
- CALL FindIt (ZFileName$) ' DD041803
- IF NOT ZOK THEN ' DD041803
- ZFileName$ = ZWelcomeFileDrvPath$ + _ ' DD041803
- "LG" + _ ' DD041803
- UserSecLevel$ + _ ' DD041803
- ".DEF" ' DD041803
- END IF
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 466 'CALL Graphic (ZFileName$) ' DD062304
- 'ZStopInterrupts = ZTrue ' DD062304
- ZBypassTimeCheck = ZTrue
- 'CALL BufFile (ZFileName$,WasX) ' DD062304
- GOSUB 43025
- RETURN
- * REPLACING old line(s) by new
- 480 CALL SetSysOp
- * ------[ first line different ]------
- IF ZPrivateDoor OR (ZWasA AND ZEscapeInsecure) OR _ ' Mpl090201
- ZExitToDoors THEN _ 'Pe 01/03/90
- ZWasZ$ = ZPswdSave$ : _
- ZPswdFailed = 0 : _
- GOTO 644
- ZSubParm = 4
- CALL PassWrd
- LogonPswdFailed = ZPswdFailed
- ZAnsIndex = LogIndex
- * REPLACING old line(s) by new
- 643 IF NOT LogonPswdFailed THEN _
- GOSUB 41070 : _
- GOTO 644 _
- ELSE IF ZExitToDoors THEN _
- GOTO 644
- GOSUB 12991
- * ------[ first line different ]------
- ZOutTxt$ = ZCRLf$ + ZFGD$ + "Forget your password?" + _ ' DD071001
- " Leave a message to the SysOp?" + _ ' DD082705
- ZEmphasizeOff$ + ZNoPrompt$ ' DD071601
- GOSUB 12999
- IF ZYes THEN _
- OrigSubject$ = "FORGOTTEN PASSWORD" : _
- GOSUB 1801
- ZFirstName$ = ""
- GOTO 902
- * REPLACING old line(s) by new
- 644 ZNewUser = ZFalse
- * ------[ first line different ]------
- CALL UnPackDIRDate (ZListNewDate$, WasWK$, CHR$(47)) ' DD062606
- ZWasLM$ = RIGHT$(WasWK$,2) + _ ' YY
- LEFT$(WasWK$,2) + _ ' MM
- MID$(WasWK$,4,2) ' DD
- ' IF MID$(ZWasLM$,3,1) = " " THEN _ ' DD062606
- ' MID$(ZWasLM$,3,1) = "0" ' DD062606
- '655 IF MID$(ZWasLM$,5,1) = " " THEN _ ' DD062606
- ' MID$(ZWasLM$,5,1) = "0" ' DD062606
- '660 CALL Muzak (1) ' DD062502
- GOTO 800
- * DELETING old line(s)
- 655
- 660
- * REPLACING old line(s) by new
- 700 ZExpertUser = ZFalse
- CALL SetExpert
- IF ZMinNewCallerBaud > ZBaudTest! THEN _
- CALL QuickTPut ("Sorry," + STR$(ZBaudTest!) + _
- " BPS only for registered users",1) : _
- ZWasLG$(7) = "NEW CALLER BAUD RESTRICTION" : _
- ZLogonErrorIndex = 7 : _
- GOTO 10620
- * ------[ first line different ]------
- CALL QuickTPut (ZCRLf$ + ZFGF$ + ZBG2$ + ZActiveUserName$ + _ ' DD071001
- " not found!" + ZBG0$,2) ' DD031302
- ZLastIndex = 0
- GOSUB 12558
- IF ZNo THEN _
- GOSUB 13700 : _
- GOTO 400
- CALL Line25
- ZWasZ$ = ZFirstName$
- GOSUB 670
- ZWasZ$ = ZLastName$
- GOSUB 670
- ZWasZ$ = ZActiveUserName$
- GOSUB 670
- ZTurboLogon = ZFalse ' Mpl090201
- * REPLACING old line(s) by new
- 725 IF ZUserSecLevel < ZMinLogonSec THEN _
- ZLogonErrorIndex = 1 : _
- GOTO 460
- IF ZFirstName$ = ZLastName$ THEN _
- * ------[ first line different ]------
- CALL QuickTPut1 (ZFGF$ + ZBG4$ + "Sorry, " + _ ' DD091701
- ZFirstNamePrompt$ + CHR$(47) + ZLastNamePrompt$ + _ ' DD021301
- " cannot be the same!" + _ ' DD082302
- ZEmphasizeOff$) : _ ' DD082302
- ZLogonErrorIndex = 3 : _
- GOTO 10620
- IF NOT ZRememberNewUsers THEN _
- GOSUB 13700 : _
- ZUserFileIndex = 0 : _
- GOSUB 12960: _
- PrevLastOn$ = STRING$(2,48) + CHR$(45) + STRING$(2,48) + _ ' DD021301
- CHR$(45) + STRING$(2,48) : _ ' DD021301
- GOTO 735
- ZNewUser = ZTrue
- ZNewUserDGS = ZTrue 'DGS-NEW
- CALL OpenUser (ZHighestUserRecord)
- GOSUB 9450
- GOSUB 12630
- MID$(ZUserRecord$,ZStartHash,ZLenHash) = LEFT$("NEWUSER",ZLenHash)
- IF ZStartIndiv > 0 THEN _
- MID$(ZUserRecord$,ZStartIndiv,ZLenIndiv) = ZIndivValue$
- GOSUB 9440
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 739 CALL QuickTPut (ZFGE$ + "Logging you as: " + _ ' DD021302
- ZFGA$ + ZActiveUserName$ + _ ' DD091701
- ZFGE$ + " from " + _ ' DD082302
- ZFGA$ + ZWasCI$ + ZFG7$ + ZFG0$,2) ' DD031302
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 740 CALL QuickTPut (ZFGF$ + "C)hange " + ZFirstNamePrompt$ + _ ' DD021301
- CHR$(47) + ZLastNamePrompt$ + _ ' DD021301
- CHR$(47) + ZUserLocation$ + _ ' DD021301
- ", D)isconnect, [R]egister " + ZFG7$,0) ' DD122101
- ZOutTxt$ = "" ' DD122101
- GOSUB 12995
- IF ZWasQ = 0 THEN _
- ZWasZ$ = "R" _
- ELSE _ ' DD071001
- ZWasZ$ = UCASE$(ZUserIn$(1)) ' DD071001
- ZWasS = INSTR("CDR",ZWasZ$)
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 750 ZOutTxt$ = ZFGE$ + "Really Disconnect" + _ ' DD062908
- ZEmphasizeOff$ + ZNoPrompt$ ' DD062908
- GOSUB 12995 ' DD062908
- IF ZWasQ = 0 OR UCASE$(ZWasZ$) = "N" THEN ' DD062908
- GOTO 740 ' DD062908
- END IF ' DD062908
- CALL UpdtCalr (ZActiveUserName$ + " from " + ZWasCI$ + _
- " didn't register",2)
- MID$(ZUserRecord$,ZStartHash,ZLenHash) = STRING$(ZLenHash,0)
- GOSUB 9440
- GOSUB 12991
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 754 CALL QuickTPut1 (ZFGB$ + "GUEST " + ZFG3$ + "access " + _ ' DD082302
- "granted. Re-register on next call." + ZFG7$) ' DD082302
- ZUserSecSave = ZUserSecLevel
- GOTO 832
- * REPLACING old line(s) by new
- 755 IF ZPrivateDoor THEN _
- ZUserIn$ = ZPswd$ : _
- ZWasZ$ = ZUserIn$ : _
- RETURN
- GOSUB 12800
- * ------[ first line different ]------
- ZOutTxt$ = ZFG2$ + "Re-Enter your password " + _ ' DD062907
- "for Verification " + ZFG7$ + ZBG0$ ' DD082401
- GOSUB 45010
- SWAP ZWasZ$,ZUserIn$
- CALL AllCaps (ZWasZ$)
- IF ZUserIn$ <> ZWasZ$ THEN _
- CALL QuickTPut1 (ZFGF$ + ZBG4$ + "Passwords Don't Match!" + _ ' DD082302
- ZBG0$) : _ ' DD082302
- GOTO 755
- RETURN
- * REPLACING old line(s) by new
- 758 CALL AskMore ("",ZTrue,ZTrue,WasX,ZTrue)
- CALL Line25
- ZFileName$ = ZNewUserFile$
- ZStopInterrupts = ZTrue
- * ------[ first line different ]------
- IF ZRIPGraphics THEN ' DD062301
- CALL ResetGraphics ' DD062301
- END IF ' DD062301
- GOSUB 1790
- CALL SkipLine(1)
- RETURN
- '
- ' *** R - COMMAND FROM NEWUSER ROUTINE - REGISTER **
- '
- * REPLACING old line(s) by new
- 760 ZLastIndex = 0
- GOSUB 755
- CALL AllCaps (ZWasZ$)
- LSET ZPswd$ = ZWasZ$
- * ------[ first line different ]------
- CALL QuickTPut1 (ZFGF$ + ZBG5$ + _ ' DD090606
- "Please REMEMBER your password" + _ ' DD090606
- ZFG7$ + ZBG0$) ' DD090606
- ZMenuNewUsers = ZMenuNewUsers + 1 ' DD090901/MENU0
- ZUserTextColor = 37
- ZBoldText$ = "0" ' DD062301
- ZTempSecLevel = ZUserSecLevel
- CALL Protocol
- ZUserXferDefault$ = CHR$(78) 'N ' DD021301
- ZProtoPrompt$ = "None"
- LSET ZListNewDate$ = CHR$(91) + CHR$(1) + CHR$(1) ' UG070501
- CALL SetToggles ' DD062904
- IF ZNewUserSetsDefaults THEN ' DD011102
- ZBypassTimeCheck = ZTrue ' DD011102
- GOSUB 43000 ' DD011102
- GOSUB 42805 ' DD011102
- CALL NewUserToggles ' DD062903
- ZBypassTimeCheck = ZFalse ' DD011102
- END IF ' DD011102
- CALL SetGraphic (ZWasGR) ' DD061301
- CALL SetNewUserDef
- GOSUB 5135
- CALL DefaultU
- * REPLACING old line(s) by new
- 790 IF NOT ZNewUser THEN _
- GOTO 800
- ZFileName$ = ZNewUserQuestionnaire$
- GOSUB 11520
- LSET ZSecLevel$ = MKI$(ZUserSecLevel)
- UserSecLevel$ = STR$(ZUserSecLevel)
- * ------[ first line different ]------
- CALL Remove (UserSecLevel$,SPACE$(1)) ' DD021301
- '
- ' **** LOGIN ALL USERS ***
- '
- * REPLACING old line(s) by new
- 800 IF ZAdjustedSecurity THEN _
- GOSUB 5135
- IF ZOrigCnfg$ = ZCurDef$ THEN _
- ZMainUserFileIndex = ZUserFileIndex : _
- ZOrigSec = ZUserSecLevel : _
- * ------[ first line different ]------
- OrigFirstName$ = ZFirstName$ : _ 'Dgs-ALias
- ZOrigUserNameDgs$ = ZActiveUserName$ : _ 'Dgs-ALias
- ZUserSecSave = ZUserSecLevel : _
- ZOrigUserName$ = ZActiveUserName$
- ZTimesLoggedOn = CVI(MID$(ZUserOption$,1,2)) - _
- ((ZOrigCnfg$ <> ZCurDef$ OR NOT ZSubBoard) AND _
- (NOT ZPrivateDoor) AND (NOT ZExitToDoors))
- GOSUB 9500
- IF ZLocalUser THEN ' DD050903
- ZCBaud$ = "9600" ' DD050903
- END IF ' DD050903
- IF (NOT ZExitToDoors) AND (NOT ZSubBoard) THEN _
- CALL UpdtCalr (ZActiveUserName$ + " from " + ZWasCI$ + _
- " Lvl" + STR$(ZUserSecLevel) + _ ' DD051402
- SPACE$(1) + DATE$ + SPACE$(1) + TIME$,2) : _ ' DD051402
- CALL UpdtCalr ("Connect Speed: " + ZCBaud$ + " BPS",2) : _ ' DD032102
- CALL UpdtCalr ("Caller Number: " + STR$(ZCallsToDate!+1),2) ' DD040705
- PrevLastOn$ = ZLastDateTimeOn$
- IF ZLocalUser THEN _
- ZTalkToModemAt$ = "9600" : _
- ZBaudParity$ = "9600 BAUD,N,8,1" : _ ' Mpl090201
- ZModemInitBaud$ = "9600" : _
- ZSnoop = ZTrue : _
- ZLineFeeds = ZTrue
- CALL SetCrLf
- CALL SetPrompt
- CALL XferType (2,ZTrue)
- IF NOT ZSubBoard THEN _
- BoardCheckDate$ = PrevLastOn$
- CALL SetSysOp
- IF ZWasA THEN _
- ZActiveUserName$ = ZSysopFirstName$ + SPACE$(1) + ZSysopLastName$ : _ ' DD021301
- ZFirstName$ = ZSysopFirstName$ 'TS041492
- IF ZExitToDoors OR ZSubBoard THEN _
- GOTO 815
- CALL ExpiredPswd ' DD091501/PSWD
- CALL SkipLine (1) ' DD031302
- CALL QuickTPut1 (ZFGC$ + "Logging " + ZFGE$ + _ ' DD031302
- ZActiveUserName$ + ZFGC$ + " From " + _ ' DD080201
- ZFGE$ + ZCityState$ + ZEmphasizeOff$) ' DD080201
- ' ' DD070908
- ' * reset graphics if RIP was detected but user ' DD070908
- ' * does not have RIP graphics as default graphics ' DD070908
- ' ' DD070908
- IF ZRIPGraphics AND ZWasGR <> 4 THEN ' DD070908
- CALL PutCom (ZRIPGraphicsReset$) ' DD070908
- END IF ' DD070908
- ZMenuNewCalls = ZMenuNewCalls + 1 ' DD090901/MENU0
- ' CALL Talk (1,ZOutTxt$) ' DD060401
- GOSUB 465 ' DD070103
- ' IF (ZEightBit AND _ ' Mpl090201
- ' ZAutoDownDesired) OR _ ' Mpl090201
- ' ZAskID THEN _ ' Mpl090201
- ' CALL TestUser ' Mpl090201
- Temp$ = STR$(ZBaudTest!) + MID$(ZBaudParity$,INSTR(ZBaudParity$," B"))
- IF ZMaxNodes > 1 THEN ' JM092401/RCHAT
- CALL LogNewForChat (ZMaxNodes) ' JM092401/RCHAT
- END IF ' JM092401/RCHAT
- ' CALL SkipLine (1) ' DD090201
- Attempts = 0
- ZWasZ$ = ZActiveUserName$ + _
- " on at " + _
- ZCurDate$ + _
- ", " + _
- ZTime$ + _
- " from " + _
- ZWasCI$ + _
- ", " + Temp$ ' DD090201
- ZWasNG$ = ZWasZ$ + SPACE$(128 - LEN(ZWasZ$))
- '
- ' * ALWAYS RECORD THE HASH/INDIVIDUATING FIELD TO EACH RECORD LOGGED OUT
- '
- WasX$ = CHR$(123) + _ '{ ' DD021301
- HashValue$ + _
- CHR$(47) + _ '/ ' DD021301
- ZIndivValue$ + _
- CHR$(125) '} ' DD021301
- IF LEN(ZWasZ$) < 65 THEN _
- WasX = 65 _
- ELSE WasX = LEN(ZWasZ$) + 2
- MID$(ZWasNG$,WasX) = WasX$
- CALL Printit (SPACE$(2) + ZWasZ$) ' DD021301
- IF ZNewUser THEN _
- CALL UpdtCalr ("NEWUSER",1) ' DD062502
- ' CALL Muzak (2) ' DD062502
- '
- ' ***** NOTIFY CALLER IF ABLE TO "AUTODOWN" ****
- '
- ' IF ZEightBit AND ZAutoDownYes THEN _ ' Mpl090201
- ' ZOutTxt$ = CHR$(9) + _ ' Mpl090201
- ' ZReturnLineFeed$ + _ ' Mpl090201
- ' "You may use AUTODOWNLOADing!" : _ ' Mpl090201
- ' CALL RingCaller : _ ' Mpl090201
- ' CALL DelayTime(4) ' Mpl090201
- * REPLACING old line(s) by new
- 815 CALL SetUserUpDn
- IF ZCurDate$ <> LEFT$(ZLastDateTimeOnSave$,8) THEN _
- ZDLToday! = 0 : _
- ZBytesToday! = 0
- * ------[ first line different ]------
- IF ZExitToDoors THEN _ '08/17/91 lk fix for sxpr screwing banktime
- ZBankTime = ZTempBankTime '08/17/91 lk fixfor sxpr
- CALL SetGlobalUpDn
- GOSUB 827
- LSET ZUserOption$ = MKI$(ZTimesLoggedOn) + _
- MID$(ZUserOption$,3)
- LSET ZLastDateTimeOn$ = ZCurDate$ + _
- SPACE$(1) + _ ' DD021301
- ZTimeLoggedOn$
- MID$(ZUserRecord$,ZStartHash,ZLenHash) = HashValue$
- IF ZStartIndiv > 0 THEN _
- MID$(ZUserRecord$,ZStartIndiv,ZLenIndiv) = ZIndivValue$
- LSET ZUserName$ = ZOrigUserName$
- IF (NOT ZExitToDoors) AND NOT (ZOrigMsgFile$ = ZActiveMessageFile$ AND ZSubBoard) THEN _
- CALL AutoPage
- IF NOT ZSubBoard THEN _
- ZOrigUserFileIndex = ZUserFileIndex
- IF NOT ZConfMode THEN _
- IF ZOrigDateTimeOn$ = "" THEN _
- ZOrigDateTimeOn$ = ZLastDateTimeOn$ : _
- ZOrigTimeLoggedOn$ = ZTimeLoggedOn$ _
- ELSE ZLastDateTimeOn$ = ZOrigDateTimeOn$ : _
- ZTimeLoggedOn$ = ZOrigTimeLoggedOn$
- GOSUB 9440
- GOSUB 12991
- GOSUB 41000
- CALL AskMore ("",ZTrue,ZTrue,WasX,ZTrue)
- IF ZTurboLogon THEN _ ' Mpl090201
- GOTO 819
- IF SkipWelcomeScreen AND _
- (ZUserSecLevel >= ZAllowCallerTurbo) THEN _
- GOTO 818 ' DD062304
- IF NOT SameUser OR _ ' DD032204
- ZCurDate$ <> LEFT$(ZLastDateTimeOnSave$,8) THEN _ ' DD032204
- CALL DisplayWelcome : _ ' DD011601
- GOSUB 1791 ' DD011601
- ZBypassTimeCheck = ZFalse
- ZStopInterrupts = ZTrue
- '816 IF NOT ZNewUser THEN _ ' DD062304
- ' CALL QuickTPut1 ("Times on:" + STR$(ZTimesLoggedOn) + _ ' DD090201
- ' " Last on: " + PrevLastOn$) ' DD090201
- '817 IF NOT ZRemindFileXfers OR ZNewUser THEN _ ' DD062304
- ' GOTO 818 ' DD052001
- ' ZOutTxt$ = "Files Downloaded:" + _ ' DD090606
- ' STR$(ZDnlds) + _ ' DD090606
- ' " Uploaded:" + _ ' DD090606
- ' STR$(ZUplds) ' DD090606
- ' GOSUB 12977 ' DD090606
- ' CALL CheckRatio (ZFalse) ' DD090606
- * DELETING old line(s)
- 816
- 817
- * REPLACING old line(s) by new
- 819 CALL Trim (ZWasCI$)
- IF (ZNodeRecIndex < 2) THEN _
- GOTO 821
- GOSUB 4910
- GOSUB 24000
- GET 1,ZNodeRecIndex
- MID$(ZMsgRec$,1,31) = ZActiveUserName$ + _
- SPACE$(31 - LEN(ZActiveUserName$))
- MID$(ZMsgRec$,40,2) = " 0"
- MID$(ZMsgRec$,44,2) = RIGHT$(STR$(-ZBPS),2)
- MID$(ZMsgRec$,55,2) = " 0"
- * ------[ first line different ]------
- MID$(ZMsgRec$,57,1) = CHR$(65) ' DD021301
- MID$(ZMsgRec$,60,5) = ZTalkToModemAt$ + _
- SPACE$(5 - LEN(ZTalkToModemAt$))
- MID$(ZMsgRec$,72,2) = " 0"
- MID$(ZMsgRec$,79,5) = ZCBaud$ + SPACE$(5 - LEN(ZCBaud$)) ' KG012001
- MID$(ZMsgRec$,93,24) = ZWasCI$ + _
- SPACE$(24)
- PUT 1,ZNodeRecIndex
- GOSUB 12985
- * REPLACING old line(s) by new
- 821 IF ZExitToDoors THEN _
- IF ZTransferFunction = 3 THEN _
- ZNewUser = ZTrue : _
- * ------[ first line different ]------
- ZTurboLogon = ZFalse : _ ' Mpl090201
- SameUser = ZFalse : _
- ZTransferFunction = 0 : _
- GOTO 832 _
- ELSE GOTO 832
- GOSUB 1241
- IF (ZSubBoard AND (ZOrigMsgFile$ = ZActiveMessageFile$)) _
- OR ((ZUserSecLevel > ZMaxRegSec) AND (NOT ZNewUser)) THEN _
- GOTO 832
- ZWasZ$ = ZRegProgram$
- ZTransferFunction = 3
- CALL DoorExit (ZFalse)
- ZTransferFunction = 0
- GOTO 832
- '
- ' **** ESC PRESSED ON LOCAL CONSOLE ENTERS HERE ***
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 822 LOCATE ZLocalPageLength-1,1,1 ' DD021903/VGA
- CALL TakeOffHook
- ZLocalUser = ZTrue
- ZSnoop = ZTrue
- ZBPS = -7
- ZCBPS = -7 ' DD070201
- CALL CommInfo
- ' CALL Muzak (2) ' DD062502
- IF NOT ZEscapeInsecure THEN _
- GOTO 345
- ZActiveUserName$ = ZSecretName$
- ZFirstName$ = ZSysopPswd1$
- ZLastName$ = ZSysopPswd2$
- ZUserLogonTime! = TIMER
- ZTimeLoggedOn$ = TIME$
- ZLinesPrinted = 0
- ZSysop = ZTrue
- GOTO 457
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 827 IF ZLastMsgRead > ZHighMsgNumber THEN _ ' DD040707
- ZLastMsgRead = ZHighMsgNumber : _ ' DD040707
- IF ZLastMsgRead < LowMsgNumber THEN _ ' DD110401
- ZLastMsgRead = LowMsgNumber : _ ' DD110401
- CALL DefaultU ' DD012601
- RETURN
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 832 IF ZTurboLogon OR ZExitToDoors OR ZSubBoard THEN _ ' DD010201
- GOTO 833 ' DD010201
- TempStr$ = STR$(ZUserSecLevel) ' DD010209
- CALL Trim (TempStr$) ' DD010209
- ExpFile$ = ZHelpPath$ + "RGXP" + TempStr$ + ZHelpExtension$ ' DD010209
- CALL FindIt (ExpFile$) ' DD010209
- IF NOT ZOK THEN _ ' DD010209
- ExpFile$ = ZHelpPath$ + "RGXPIRE" + ZHelpExtension$ ' DD010209
- IF ZRestrictByDate AND ZDaysInRegPeriod > 0 THEN _
- IF ZRegDaysRemaining <= ZDaysToWarn AND _
- ZRegDaysRemaining > 0 AND ZUserSecLevel > ZTempExpiredSec THEN _
- CALL QuickTPut1 (ZFGF$ + ZBG4$ + "Registration " + _ ' DD082302
- "EXPIRES in" + ZFGE$ + _ ' DD082302
- STR$(ZRegDaysRemaining) + ZFGF$ + _ ' DD082302
- " days!" + ZEmphasizeOff$) : _ ' DD082302
- CALL BufFile(ExpFile$,WasX) : _ ' DD010209
- IF NOT ZOK THEN CALL DelayTime (5)
- * INSERTING new line(s)
- 833 IF ZReselectAll THEN ' DD070103
- CALL ReselectAll ' DD070103
- GOTO 834 ' DD070103
- END IF ' DD070103
- IF ZReselectGraphics THEN ' DD070105
- CALL ReselectGraphics ' DD070105
- END IF ' DD070105
- IF ZReselectProto THEN ' DD070905
- CALL QuickTPut (ZCRLf$ + ZFG2$ + _ ' DD070905
- "You must re-select your " + _ ' DD070905
- ZFGB$ + "File Transfer Protocol!" + _ ' DD070905
- ZEmphasizeOff$,2) ' DD070905
- ' DD070905
- GOSUB 42800 ' DD070905
- ZReselectProto = ZFalse ' DD071102
- END IF ' DD070905
- 834 IF (NOT ZReqQuesAnswered) AND _ ' DD070103
- ZReqQues$ <> "" THEN _
- ZFileName$ = ZReqQues$ : _
- GOSUB 11520 : _
- IF ZOK THEN _
- ZReqQuesAnswered = ZTrue
- * REPLACING old line(s) by new
- 842 CALL SetSessionTime
- ZSysop = (ZUserSecLevel >= ZSysopSecLevel)
- GOSUB 12987
- IF ZSubBoard THEN _
- GOTO 850
- GOSUB 12986
- GOSUB 23000
- * ------[ first line different ]------
- ZCallsToDate! = ZCallsToDate! + 1 + (ZSysop OR ZHasDoored) ' DD040705
- GOSUB 24000
- GOSUB 12985
- * REPLACING old line(s) by new
- 850 ZSubParm = 2
- CALL Line25
- * ------[ first line different ]------
- ' CALL SkipLine (1) ' DD090201
- IF ZTurboLogon OR ZExitToDoors OR ZSubBoard THEN _ ' DD081901
- GOTO 900 ' DD082201
- IF NOT ZBulletinsOptional OR ZCheckBulletLogon THEN ' DD070501
- ZStopInterrupts = ZFalse ' DD070501
- ZAnsIndex = 0 ' DD070501
- ZBulletinSave$ = ZBulletinMenu$ ' DD070501
- GOSUB 9760 ' DD070501
- GOTO 851 ' DD070501
- END IF ' DD070501
- * INSERTING new line(s)
- 851 IF ZNewUser OR NOT ZNewFilesCheck THEN _ ' DD070501
- GOTO 852 ' DGS050501/DS
- CALL SkipLine (1) ' DD050801
- DO ' DD050801
- ZOutTxt$ = ZFGB$ + "Check for NEW FILES" + _ ' DD050801
- ZEmphasizeOff$ + ZYesPrompt$ ' DD050801
- GOSUB 12999 ' DD050801
- CALL AllCaps (ZUserIn$) ' DD050801
- LOOP UNTIL ZWasQ = 0 OR INSTR("YN",ZUserIn$) <> 0 ' DD050801
- IF ZUserIn$ = "N" THEN ' DD050801
- GOTO 852 ' DD050801
- END IF ' DD050801
- CALL LoadNew (ZMsgPtr()) ' DGS050501/DS
- CALL CountNewFiles (ZWasLM$,ZMsgPtr(),LastNew,ListDateSearch$) ' DD052005
- IF LastNew > 0 THEN ' DD050801
- IF ZFMSDirectory$ <> "" THEN _ ' DD050801
- ZOutTxt$ = ZFG2$ + _ ' DD052005
- ZFGB$ + LTRIM$(STR$(LastNew)) + ZFGE$ + " NEW" + _ ' DD050801
- ZFG2$ + " file(s) since last checked!" + _ ' DD050801
- ZEmphasizeOff$ : _ ' DD050801
- GOSUB 12977 _ ' DD050801
- ELSE GOTO 852
- ELSE ' DGS050501/DS
- ZOutTxt$ = ZFG2$ + "No New Files!" + ZEmphasizeOff$ ' DD050801
- GOSUB 12977
- GOTO 852 ' DGS050501/DS
- END IF
- IF ZNewUser OR LastNew < 1 OR NOT ZNewFilesCheck THEN _
- GOTO 852
- WasL = LEN(ZDnldDrives$)
- SecNum = 19
- IF (NOT ZSkipFilesLogon) AND _
- ZUserSecLevel >= ZOptSec(SecNum) THEN _
- ZOutTxt$ = ZFG6$ + "List new files to download?" + _ ' DD082301
- ZEmphasizeOff$ + ZYesPrompt$ : _ ' DD071601
- GOSUB 12999 : _
- IF NOT ZNo THEN _ ' DD061902
- ZLastIndex = 3 : _
- ZAnsIndex = 1 : _
- ZWasQ = 3 : _
- ZUserIn$(2) = ListDateSearch$ : _ ' DD050303
- ZWasY$ = ZUserIn$(3) : _
- CALL BreakFileName (ZFMSDirectory$,DR$,ZWasY$,WasX$,ZFalse) : _
- ZUserIn$(3) = ZWasY$ : _
- TimeLockExempt = ZTrue : _
- GOSUB 20185 : _
- GOSUB 47000 : _ ' DD061301
- ZLastIndex = 0 : _
- TimeLockExempt = ZFalse
- * REPLACING old line(s) by new
- 856 IF NOT ZCheckBulletLogon THEN _
- ZAnsIndex = 0 : _
- GOSUB 9760 : _
- GOTO 900
- CALL SkipLine (1)
- * ------[ first line different ]------
- ZOutTxt$ = ZFG2$ + "Skip the bulletins?" + ZNoPrompt$ + _ ' DD082401
- ZEmphasizeOff$ ' DD071601
- GOSUB 12999
- IF ZYes THEN _
- GOTO 900
- * REPLACING old line(s) by new
- 900 ZNewUser = ZFalse
- * ------[ first line different ]------
- ActionFlag = (ZLogonMailLevel$ = CHR$(83)) 'S ' DD021301
- LogonMailNew = (ZLogonMailLevel$ = CHR$(78)) 'N ' DD021301
- GOSUB 1895
- IF ZActiveUserName$ = "SYSOP" AND NOT ZSysop THEN _
- ZActiveUserName$ = ZOrigUserName$
- LogonMailNew = ZFalse
- ZSubParm = 2
- CALL Line25
- ZSection$ = SPACE$(4) ' DD021301
- ZOutTxt$ = ""
- IF (NOT ZConfMode) AND (NOT ZSubBoard) AND _ ' DD122602
- NOT ZTurboLogon AND NOT ZSkipMailCheck THEN _
- MailCheckConfirm = ZTrue : _
- LinkNew = ZTrue : _
- GOSUB 5800
- MailCheckConfirm = ZFalse
- ZWasQ! = ZMinsInDoors * 60
- ZMinsInDoors = 0
- * REPLACING old line(s) by new
- 902 IF LogonPswdFailed THEN _
- ZExitToDoors = ZFalse : _
- CALL UpdateU (ZTrue) : _
- ZLogonErrorIndex = 4 : _
- GOTO 10620
- IF ZExitToDoors and ZDooredTo$ <> "" THEN _
- * ------[ first line different ]------
- CALL Graphic (ZOutTxt$(7)) : _ ' DD022102
- CALL BufFile (ZOutTxt$(7),WasX)
- ZDoorCarrierDropOK$ = CHR$(78) ' DD042401/DOORCARRIERDROP
- ZExitToDoors = ZFalse
- IF ZHomeConf$ = "" THEN _
- GOSUB 2350
- IF NOT ZPrivateDoor THEN _
- GOTO 955
- GOSUB 20165
- CALL SetSection
- ZPrivateDoor = ZFalse
- GOTO 1205
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 955 IF NOT ZTurboLogon THEN _
- IF NOT ZConfMode THEN _ ' DD082301
- GOSUB 4850 ' DD091204
- IF NOT ZTurboLogon THEN _ ' DD090401
- IF STR$(ZLastMsgRead) < STR$(ZHighMsgNumber) AND _ ' DD040707
- ZUserSecLevel => MsgSec THEN _ 'Pe 01/29/89
- GOSUB 4275 'PEASKMAIL
- SkipMain = ZFalse
- ZTurboLogon = ZFalse
- '
- ' * COMMAND PROCESSING
- '
- * REPLACING old line(s) by new
- 1205 IF ZSubParm < 0 THEN _
- GOTO 202
- ZSubParm = 1
- ZStopInterrupts = ZFalse
- ZWasQ = 0
- IF (NOT ConfMailJoin) AND (ZHomeConf$ = "" OR ZHomeConf$ = "MAIN") THEN _
- GOTO 1209
- * ------[ first line different ]------
- ZTurboLogon = LinkNext OR (NOT ConfMailJoin) ' Mpl090201
- ConfMailJoin = ZFalse
- ZFF = 8
- IF ZHomeConf$ = "MAIN" THEN _
- ZHomeConf$ = CHR$(77) 'M ' DD021301
- ZUserIn$(ZAnsIndex) = ZHomeConf$
- IF LinkNext THEN _
- ZUserIn$(ZAnsIndex + 1) = CHR$(82) : _ 'R ' DD021301
- ZLastIndex = ZAnsIndex + 1
- ZLastIndex = -ZLastIndex*(ZLastIndex > ZAnsIndex)-ZAnsIndex*(ZLastIndex <= ZAnsIndex)
- ZAnsIndex = ZAnsIndex - 1
- ZHomeConf$ = ""
- ZWasQ = ZLastIndex
- ZStoreParseAt = 1
- ZLastCommand$ = SPACE$(2) ' DD021301
- GOTO 1240
- * REPLACING old line(s) by new
- 1210 GOSUB 41000
- IF ZAnsIndex < ZLastIndex THEN _
- GOTO 1232
- * ------[ first line different ]------
- ' CALL Talk (10,ZOutTxt$) ' DD060401
- CALL AskMore ("",ZTrue,ZTrue,WasX,ZTrue)
- IF ZExpertUser THEN _
- GOTO 1230
- * REPLACING old line(s) by new
- 1212 ZLinesPrinted = -ZMenusCanPause * ZLinesPrinted
- IF ZCustomPUI THEN _
- GOTO 1230
- IF ZSubSection < ZBegFile THEN _
- * ------[ first line different ]------
- IF ZUserSecLevel >= ZSysopMenuSecLevel AND ZWasGR <> 4 THEN _ ' DD062001
- ZFileName$ = ZMenu$(1) : _
- GOSUB 43025
- ZFileName$ = ZMenu$(ZMenuIndex)
- ZDeleteInvalid = ZTrue
- ZStopInterrupts = ZTrue ' DD092101
- GOSUB 1790
- ZDeleteInvalid = ZFalse
- ZStopInterrupts = ZFalse ' DD092101
- * REPLACING old line(s) by new
- 1230 CALL Line25
- * ------[ first line different ]------
- IF ZSysopNext THEN ' DD040602
- CALL SysopNextMsg ' DD040602
- END IF ' DD040602
- IF ZLogOffPlease THEN ' DD041802
- CALL LogOffPlease ' DD041802
- END IF ' DD041802
- CALL CBCheck(WillChat) ' JM092401/RCHAT
- IF WillChat THEN GOTO 1600 ' JM092401/RCHAT
- CALL SaveUserActivity(CHR$(73), ZNodeRecIndex, ZFalse) 'I ' DD021301
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 1232 MID$(ZLastCommand$,2,1) = SPACE$(1) ' DD021301
- IF ZCustomPUI THEN _
- CALL UserFace : _
- GOSUB 12997 : _
- GOTO 1235
- ZOutTxt$ = ZFGE$ + ZConfName$ + + ZFG2$ + CHR$(58) + _ ' DD021301
- ZEmphasizeOff$ ' DD082401
- GOSUB 12978 'Pe 07/18/91
- ' CALL Talk (65,ZConfName$) ' DD060401
- CALL DispTimeRemain (MinsRemaining) 'Pe 02/03/90
- ' CALL Talk (ZMenuIndex, ZOutTxt$) ' DD060401
- ZOutTxt$ = ZFGF$ + ZCmdPrompt$ + ZEmphasizeOff$ ' DD082401
- GOSUB 12930
- IF ZWasQ = 0 THEN _
- GOTO 1230
- * REPLACING old line(s) by new
- 1235 ZWasZ$ = ZUserIn$(ZAnsIndex)
- IF ZWasZ$ = SPACE$(LEN(ZWasZ$)) THEN _
- GOTO 1230
- CALL SearchCmd (ZSubSection,ZFF)
- IF ZFF > 0 THEN _
- * ------[ first line different ]------
- GOTO 1240 ' DD060401
- IF ZWasQ > 0 THEN _
- ZOutTxt$ = ZFGA$ + "Unknown command " + ZFGE$ + _ ' DD082302
- CHR$(60) + ZFGB$ + ZWasZ$ + ZFGE$ + CHR$(62) + _ ' DD021301
- ZEmphasizeOff$ : _ ' DD082302
- GOSUB 12979 'DD
- CALL FlushKeys
- GOTO 1230
- '1239 CALL Talk (65,"OPTION "+ZWasZ$+" SELECTED") ' DD060401
- * DELETING old line(s)
- 1239
- * REPLACING old line(s) by new
- 1240 IF ZUserSecLevel < ZOptSec(ZFF) THEN _
- ZViolation$ = ZSection$ + _
- * ------[ first line different ]------
- SPACE$(1) + _ ' DD021301
- ZWasZ$ : _
- GOSUB 1380 : _
- GOTO 1205
- ' IF ZFF > 39 THEN _ ' Mpl090201
- ' ZDirExtension$ = ZLibDirExtension$ _ ' Mpl090201
- ' ELSE ZDirExtension$ = ZMainDirExtension$ ' Mpl090201
- ZDirExtension$ = ZMainDirExtension$
- ON ZFF GOSUB _
- 1400, _ ' 1 A)nswer questionnaire 1
- 9700, _ ' 2 B)ulletins
- 1800, _ ' 3 C)omments
- 10970, _ ' 4 D)oor (exit to)
- 2000, _ ' 5 E)nter a message
- 1275, _ ' 6 F)ile system (exit to)
- 1760, _ ' 7 I)nitial welcome redisplayed
- 5300, _ ' 8 J)oin a conference
- 3900, _ ' 9 K)ill a message
- 4700, _ '10 O)perator page
- 1892, _ '11 P)ersonal mail (look for) ' Mpl090201
- 4330, _ '12 R)ead messages
- 4340, _ '13 S)can message headers
- 4320, _ '14 T)opic msg scan
- 1285, _ '15 U)tilities (exit to)
- 5800, _ '16 V)iew a conference
- 9800, _ '17 W)ho's on other nodes displayed
- 10570, _ '18 G)oodbye ' DD092402/GOODBYE
- 20160, _ '19 D)ownload
- 10570, _ '20 G)oodbye
- 20155, _ '21 L)ist
- 20185, _ '22 N)ew
- 20180, _ '23 P)ersonal files
- 20175, _ '24 S)can
- 20170, _ '25 U)pload
- 20140, _ '26 V)iew ARC Contents
- 5500, _ '27 B)ank Time
- 9100, _ '28 W)ho Uploaded What ' DD090201
- 42850, _ '29 E)cho selection
- 42800, _ '30 F)ile transfer protocol
- 43000, _ '31 G)raphics
- 5200, _ '32 L)ines per page
- 10925, _ '33 M)essage margin
- 5110, _ '34 P)ersonal Info. Change
- 5400, _ '35 R)eview preferences
- 4850, _ '36 S)tatistics displayed
- 1500, _ '37 T)oggle
- 10090, _ '38 U)serlog displayed 12
- 30000, _ '39 A)rchive a Library disk 1 ' Mpl090201
- 30000, _ '40 C)hange a Library disk ' Mpl090201
- 30000, _ '41 D)ownload Library files ' Mpl090201
- 10570, _ '42 G)oodbye
- 30000, _ '43 L)ist a Library directory ' Mpl090201
- 30000, _ '44 S)can a Library disk directory ' Mpl090201
- 20140, _ '45 V)iew arc contents 7
- 1325, _ '46 H)elp 1
- 1330, _ '47 ?)help
- 1250, _ '48 Q)uit
- 4240, _ '49 X)expert toggle on/off 4
- 10070, _ '50 1) List comments file 1
- 10090, _ '51 2) List callers file
- 10390, _ '52 3) Recover a message
- 10530, _ '53 4) Erase comments
- 11000, _ '54 5) User file maintenance
- 4130, _ '55 6) Toggle page bell on/off
- 10930, _ '56 7) Exit to DOS 2.x or above 7 ' DD020602/SFILE
- 10950 '57 8) Sysop FMS Maintenance ' DD020602/SFILE
- GOTO 1205
- '
- ' *** NEWS file scan ***
- '
- * REPLACING old line(s) by new
- 1242 NewsDate# = 0
- * ------[ first line different ]------
- SameUser = ZFalse ' DD012501
- GOSUB 1245 ' DD012501
- GOTO 1244 ' DD012501
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 1243 GOSUB 1245 ' DD012501
- IF WasZ <> 0 THEN _
- RETURN
- FDate# = WasD + (100 * ZMsgPtr) + (10000# * (WasY + 1980))
- IF NewsDate# > FDate# THEN _
- RETURN
- IF ZTurboLogon THEN _ ' Mpl090201
- CALL SkipLine (1) : _ ' DD031302
- CALL QuickTPut1 (ZFGB$ + "NEWS " + ZFG3$ + _ ' DD031302
- "file updated since last call" + ZEmphasizeOff$) : _ ' DD082302
- RETURN
- * INSERTING new line(s)
- 1244 IF NOT SameUser THEN _ ' DD092601
- ZStopInterrupts = NOT ZNewsInterruptable : _ ' DD051001
- ZBypassTimeCheck = ZTrue : _ ' DD012501
- ZDisplayAsUnit = ZTrue : _ ' DD092601
- GOSUB 1790 : _ ' DD092601
- ZDisplayAsUnit = ZFalse : _ ' DD092601
- ZBypassTimeCheck = ZFalse ' DD092601
- ZStopInterrupts = ZFalse
- WasZ = 0
- RETURN ' LP01NEWS
- 1245 ZFileName$ = ZNewsFileName$ ' DD012501
- CALL RBBSFind (ZFileName$,WasZ,WasY,ZMsgPtr,WasD) ' DD012501
- RETURN ' DD012501
- '
- ' **** QUIT COMMAND (GLOBAL) ***
- '
- * REPLACING old line(s) by new
- 1250 IF ZExpertUser THEN _
- ZOutTxt$ = ZQuitPromptExpert$ _
- ELSE ZOutTxt$ = ZQuitPromptNovice$
- ZStackC = ZTrue
- GOSUB 12930
- IF ZWasQ = 0 THEN _
- * ------[ first line different ]------
- ZUserIn$(ZAnsIndex) = CHR$(77) 'M ' DD021301
- IF ZUserIn$(ZAnsIndex) = CHR$(77) AND ZConfName$ <> "MAIN" THEN _ ' DD021301
- ZUserIn$(ZAnsIndex) = CHR$(67) 'C ' DD021301
- ZWasZ$ = ZUserIn$(ZAnsIndex)
- CALL AllCaps (ZWasZ$)
- IF ZWasZ$ = CHR$(67) THEN _ ' DD021301
- ZWasZ$ = CHR$(77) : _ ' DD021301
- GOTO 5323
- IF ZWasZ$ <> SPACE$(LEN(ZWasZ$)) THEN _
- ON INSTR(ZQuitList$,ZWasZ$) GOTO 1275,1280,1285,10570,1283
- GOTO 1250
- * REPLACING old line(s) by new
- 1280 ZMenuIndex = 2
- GOTO 1295
- * ------[ first line different ]------
- '1283 ZMenuIndex = 6 ' DD062304
- ' ZActiveFMSDir$ = "" ' Mpl090201
- ' GOTO 1295 ' Mpl090201
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 1283 ZWasQ = 0 ' DD062304
- GOTO 1250
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 1295 ZPrevPui$ = "" 'Pe 07/19/92
- CALL SetSection
- RETURN
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 1300 CALL QuickTPut1 (ZFG2$ + "Message base " + _ ' DD082302
- ZFGE$ + ZConfName$ + ZEmphasizeOff$) ' DD082302
- RETURN
- '
- ' **** COMMON LOCAL DISPLAY PRINT ***
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 1397 ZOutTxt$ = ZFGF$ + ZBG4$ + "Sorry, " + _ ' DD082401
- ZFirstName$ + _
- ", " + _
- ZOutTxt$ + _ ' DD082401
- ZEmphasizeOff$ ' DD082401
- GOTO 12975
- '
- ' *** A - answer questionnaire
- '
- * REPLACING old line(s) by new
- 1400 WasA1$ = ZAnsMenu$
- * ------[ first line different ]------
- ' CALL Talk (13,ZOutTxt$) ' DD060401
- ReturnToPrompt = (ZWasQ > 1)
- * REPLACING old line(s) by new
- 1401 ZStackC = ZTrue
- * ------[ first line different ]------
- CALL SubMenu ("Which Questionnaires, L)ist" + ZPressEnterExpert$, _ ' UG070501
- WasA1$,ZQuesPath$,".DEF","",ZTrue,ZFalse,ZTrue,"",WasX,ZTrue)
- IF ZWasQ = 0 THEN _
- RETURN
- IF ZSubParm = -1 THEN _
- RETURN 10595
- QuestHold$ = ZWasZ$
- GOSUB 11520
- CLOSE 2
- CALL UpdtCalr (QuestHold$ + " questionnaire " + _
- MID$("answeredaborted",1 - 8 * ZQuestAborted,8),2)
- CALL SkipLine (1) ' UG070501
- IF ReturnToPrompt THEN _
- RETURN
- GOTO 1401
- '
- ' ***** Toggle COMMAND (UTILITIES) ****
- '
- * REPLACING old line(s) by new
- 1500 CALL CmndToggle
- RETURN
- '
- * ------[ first line different ]------
- * INSERTING new line(s)
- 1600 CALL CBTrueChat (ZMaxNodes) ' JM092401/RCHAT
- GOSUB 5344 ' JM092401/RCHAT
- GOTO 1205 ' JM092401/RCHAT
- '
- ' **** I - COMMAND FROM MAIN MENU (DISPLAY INITIAL WELCOME) ***
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 1760 CALL InitialMenus ' DD090901
- GOTO 1791
- * REPLACING old line(s) by new
- 1790 CALL Graphic (ZFileName$)
- CALL BufFile (ZFileName$,WasX)
- * ------[ first line different ]------
- * INSERTING new line(s)
- 1791 CALL Carrier
- IF ZSubParm = -1 THEN _
- RETURN 10595
- RETURN
- '
- ' *** C - COMMAND FROM MAIN MENU (LEAVE COMMENT FOR SYSOP) **
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 1801 MsgTo$ = ZSysopFirstName$ + SPACE$(1) + ZSysopLastName$ ' DD021301
- IF UCASE$(ZSecretName$) = LEFT$(MsgTo$,LEN(MsgTo$)-1) THEN _ ' DD030102
- MsgTo$ = LEFT$(MsgTo$,LEN(Msgto$)-1) ' DD030102
- Subject$ = OrigSubject$
- MsgFrom$ = ZActiveUserName$
- GOSUB 1893
- IF (ZActiveMessages >= MaxMsgs OR _ ' DD040706
- ((NOT ZMsgsCanGrow) AND _
- (ZNextMsgRec + 5 + ZMaxNodes > HighestMsgRecord)) OR _
- NOT ZCmntsAsMsgs ) THEN _
- ZOutTxt$ = ZFGE$ + "Want a Reply? " + ZFG2$ + "Use " + _ ' DD082401
- ZFGD$ + MID$(ZAllOpts$,5,1) + ZFG2$ + _ ' DD082401
- " instead. " + ZFGE$ + "Leave a comment? " + _ ' DD082401
- ZEmphasizeOff$ + ZNoPrompt$ : _ ' DD082401
- GOSUB 12999 : _
- IF NOT ZYes THEN _
- CALL SkipLine (1) : _
- RETURN _
- ELSE ZSysopComment = ZTrue : _
- GOTO 2007
- ZSysopComment = ZFalse
- ZSysopMsg = ZTrue
- ZMsgHeader$ = "Comment" ' UG070501
- GOTO 2010
- * REPLACING old line(s) by new
- 1850 WasBX = &H3
- ZWasEN$ = ZCmntsFile$
- GOSUB 12992
- * ------[ first line different ]------
- CALL OpenWorkA (2,ZCmntsFile$) ' DD040601
- ZOutTxt$ = ZFirstName$ + _
- ", Thanks for Your Comments!" ' DD091701
- GOSUB 12976
- CALL AMorPM
- CALL PrintWorkA (2,ZActiveUserName$+SPACE$(1)+ZCurDate$+SPACE$(1)+ZTime$+" Node "+ZNodeID$)' DD040601
- FOR WasX = 1 TO ZLinesInMsg
- CALL PrintWorkA (2,ZOutTxt$(WasX)) ' DD040601
- NEXT
- CALL PrintWorkA (2,ZCarriageReturn$) ' DD040601
- CLOSE 2
- IF ZErrCode <> 0 THEN _
- ZWasEL = 1850 : _
- GOTO 13000
- WasBX = &H3
- ZWasEN$ = ZCmntsFile$
- GOSUB 12993
- CALL UpdtCalr ("Left comment",1)
- REDIM ZOutTxt$(ZMsgDim)
- IF ZLogOff$ = CHR$(71) THEN 'G ' DD021301
- GetOut = Ztrue ' Mpl090201
- Zlogoff$ = CHR$(76) 'L ' DD021301
- GOTO 10562 ' DD090301
- END IF ' Pe 02/03/90
- RETURN
- '
- ' **** P - COMMAND FROM MAIN MENU (DISPLAY PERSONAL MAIL) ****
- '
- * INSERTING new line(s)
- 1892 ActionFlag = ZFalse ' DD082605
- GOTO 1900 ' DD082605
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 1895 IF ZTurboLogon or ZSkipMailCheck OR ZNonStop THEN _ ' DD031501
- RETURN
- CALL SkipLine (1) ' DD031302
- GOSUB 47100 ' DD070802
- ZOutTxt$ = ZFGB$ + "Check mail in " + _ ' DD031302
- ZConfName$ + "?" + ZEmphasizeOff$ + ZYesPrompt$ ' DD060101
- GOSUB 12930 ' KG012301
- IF ZNo THEN _
- SkipMain = ZTrue : _
- RETURN
- ZUserIn$(0) = LEFT$("NEW ",-4*LogonMailNew)
- * REPLACING old line(s) by new
- 1900 GOSUB 5344
- IF ZPrivateDoor THEN _
- ActionFlag = ZTrue
- ZPrevBase$ = ZActiveMessageFile$
- ShowActive = ZFalse
- * ------[ first line different ]------
- IF NOT ActionFlag THEN ' DD041303
- Action$ = "Checking " ' DD041303
- ShowActive = ZTrue ' DD041303
- ELSE ' DD041303
- Action$ = "Loading " ' DD041303
- END IF ' DD041303
- CALL QuickTPut (ZFG9$ + Action$ + "messages in " + ZFGB$ + _ ' DD041303
- ConfFileName$ + ZEmphasizeOff$,0) ' DD041303
- WasA1$ = ""
- MsgCt = 0
- MsgsFromUser = ZFalse
- ZActiveMessages = 0 ' DD040706
- MailReported = ActionFlag
- FirstOld = ZTrue
- GOSUB 23000
- MsgRec = FirstMsgRecord
- MaxMsgs = VAL(MID$(ZMsgRec$,89,7))
- NumDots = 0
- * REPLACING old line(s) by new
- 1906 IF ActionFlag OR (FirstOld AND NOT MailReported) THEN _
- * ------[ first line different ]------
- CALL MarkTime (NumDots) ' DD012602
- CALL Carrier
- IF ZSubParm = -1 THEN _
- RETURN 10595
- * REPLACING old line(s) by new
- 1915 GOSUB 4660
- IF MID$(ZMsgRec$,116,1) <> ZActiveMessage$ THEN _
- GOTO 1946
- WasX$ = MID$(ZMsgRec$,121,2)
- * ------[ first line different ]------
- IF WasX$ <> SPACE$(2) THEN _ ' DD021301
- IF CVI(WasX$) > ZUserSecLevel THEN _
- GOTO 1945
- IF ActionFlag THEN _
- GOTO 1935
- '
- ' ** ALLOW USERS WITH NAMES LONGER THAN 22 CHARS TO RECEIVE PRIVATE MAIL *
- '
- * REPLACING old line(s) by new
- 1925 ZWasA = VAL(MID$(ZMsgRec$,2,4))
- IF LogonMailNew THEN _
- IF ZWasA <= ZLastMsgRead THEN _
- GOTO 1935
- IF NOT ShowActive THEN _
- GOTO 1930
- MailReported = ZTrue
- FirstNew = (ZWasA > ZLastMsgRead)
- IF FirstNew THEN _
- MsgCt = 0 : _
- CALL SkipLine (1) : _
- * ------[ first line different ]------
- CALL QuickTPut1 (ZFGF$ + ZBG2$ + "New mail for you " + _ ' DD082302
- "(* = Private)" + ZEmphasizeOff$) _ ' DD082302
- ELSE IF FirstOld THEN _
- CALL SkipLine (1) : _
- CALL QuickTPut1 (ZFGF$ + ZBG6$ + "Old mail for you " + _' DD082302
- "(* = Private)" + ZEmphasizeOff$) : _ ' DD082302
- FirstOld = ZFalse
- ShowActive = NOT FirstNew
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 1930 CALL QuickTPut (ZFG2$ + LEFT$(ZMsgRec$,5) + ZEmphasizeOff$,0) ' DD082302
- MsgCt = MsgCt + 1
- IF MsgCt MOD 15 = 0 THEN _
- CALL SkipLine (1) : _
- CALL AskMore ("",ZTrue,ZTrue,WasX,ZTrue)
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 1945 ZActiveMessages = ZActiveMessages + 1 ' DD040706
- ZMsgPtr(ZActiveMessages,1) = MsgRec ' DD040706
- ZMsgPtr(ZActiveMessages,2) = VAL(MID$(ZMsgRec$,2,4)) ' DD040706
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 1950 CALL SkipLine (1) ' DD082605
- IF NOT MailReported THEN _
- ZOutTxt$ = ZFGB$ + "Sorry, " + _ ' DD082302
- ZFG2$ + ZFirstName$ + _ ' DD082302
- ZFGB$ + ", No " + ZFG2$ + _ ' DD031801
- LEFT$("NEW ",-4*LogonMailNew) + _ ' DD031801
- ZFGB$ + "mail for you" + _ ' DD082302
- ZEmphasizeOff$ : _ ' DD082302
- GOSUB 12975
- IF MsgsFromUser = 0 OR NOT ZMsgReminder THEN _
- GOTO 1961
- IF ActionFlag THEN _
- GOTO 1961
- ZOutTxt$ = ZFGF$ + ZBG5$ + "Mail you left:" + ZEmphasizeOff$ ' DD082302
- GOSUB 12976
- * REPLACING old line(s) by new
- 1960 WasK = 1
- FOR MsgCt = 1 TO MsgsFromUser
- * ------[ first line different ]------
- ZOutTxt$ = ZFG2$ + MID$(WasA1$,WasK,5) ' DD082302
- WasK = WasK + 5
- GOSUB 12978
- IF MsgCt MOD 15 = 0 THEN _
- CALL SkipLine (1) : _
- CALL QuickTPut (ZEmphasizeOff$,0) : _ ' DD082302
- CALL AskMore ("",ZTrue,ZTrue,WasX,ZTrue)
- NEXT
- WasA1$ = ""
- CALL SkipLine (1)
- IF ZUserSecLevel >= ZOptSec(9) THEN _
- CALL SkipLine (1) : _ ' DD031302
- CALL QuickTPut1 (ZFGF$ + ZBG4$ + _ ' DD031302
- "Please K)ill your old messages" + ZEmphasizeOff$) ' DD082702 ' DD082302
- CALL SmartPause ' DD091204
- * REPLACING old line(s) by new
- 1961 ActionFlag = ZFalse
- * ------[ first line different ]------
- ' CALL SkipLine (1) ' DD090201
- RETURN
- '
- ' **** E - COMMAND FROM MAIN MENU (ENTER MESSAGE) ***
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 2001 IF (LowMsgNumber > 0 AND ZActiveMessages >= MaxMsgs) _ ' DD040706
- OR ZHighMsgNumber >= 9999 THEN _ ' DD040707
- IF ZActiveMessageFile$ = ZMainMsgFile$ AND _
- ZActiveMessages = 1 THEN _ ' DD040706
- GOTO 5300 _
- ELSE ZOutTxt$ = ZFGF$ + ZBG4$ + _ ' DD091701
- "Message base full! Try again tomorrow" + _ ' DD091701
- ZEmphasizeOff$ : _ ' DD091701
- GOSUB 12975 : _
- GOTO 3650
- * REPLACING old line(s) by new
- 2008 IF ZSysopComment OR ZMsgsCanGrow THEN _
- ZWasY$ = "on disk" : _
- CALL FindFree : _
- GOTO 2009
- IF ZNextMsgRec + 5 + ZMaxNodes < HighestMsgRecord THEN _
- GOTO 2010
- ZWasY$ = "in file"
- * ------[ first line different ]------
- ZFreeSpace$ = CHR$(49) '1 ' DD021301
- * REPLACING old line(s) by new
- 2010 IF NOT QuotedReply THEN _
- * ------[ first line different ]------
- ZLinesInMsg = 0 : _ ' KG011201
- WasL = 0 : _
- WasX = 0 : _
- REDIM ZOutTxt$(ZMsgDim)
- IF ZGetExtDesc THEN _
- GOTO 2100
- GOSUB 1893
- RcvrRecNum = 0
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 2020 CALL SetWhoTo (-ZEnableCC*(ZUserSecLevel>=ZOptSec(5)),MsgTo$,MsgFrom$,RcvrRecNum,Found,INSTR(ZMsgSecCats$,"U")>0) ' KG012502
- IF MsgTo$ = "" THEN _
- RETURN
- IF ZSysopComment OR ZSysopMsg THEN _
- GOTO 2100
- IF ZReply OR MsgFwd THEN _
- Found = ZTrue : _
- CALL Trim (MsgTo$): _
- GOTO 2035 _
- ELSE Subject$ = ""
- GOSUB 2065
- * REPLACING old line(s) by new
- 2065 IF Subject$ <> "" THEN _
- ZOutTxt$ = "Change subject from " + _
- Subject$ + _
- " to" _
- * ------[ first line different ]------
- ELSE ZOutTxt$ = "Subject" + ZPressEnterExpert$ ' DD032501
- ZMacroMin = 99
- ZParseOff = ZTrue
- GOSUB 12932
- IF LEN(ZUserIn$) > 25 THEN _
- ZOutTxt$ = "Subject must be LESS than 25 Characters!" : _ ' DD090202
- GOSUB 12979 : _
- GOTO 2065
- IF ZWasQ = 0 THEN _
- IF Subject$ <> "" THEN _
- RETURN _
- ELSE GOSUB 2435 : _
- IF ZYes THEN _
- RETURN 5160 _
- ELSE GOTO 2065
- Subject$ = ZUserIn$
- CALL AllCaps (Subject$)
- OrigSubject$ = Subject$
- RETURN
- '
- ' ***** ENTER MAIN BODY OF MESSAGE ****
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 2100 IF ZGetExtDesc THEN GOTO 2120 ' Mpl090201
- CALL SaveUserActivity(CHR$(77), ZNodeRecIndex, ZFalse) ' DD021301/RCHAT
- IF NOT ZFullScreenEditor THEN ' Mpl090201
- GOSUB 43030 ' DD031302
- IF NOT ZYes THEN ' DD032201
- ANSIEdActive = ZFalse ' DD032201
- GOTO 2120 ' Ansied
- ELSE ' DD032201
- ANSIEdActive = ZTrue ' DD032201
- END IF ' DD032201
- End IF ' Ansied
- * INSERTING new line(s)
- 2110 CALL Ansied (MsgTo$, OrigSubject$, MsgLockLines) ' Ansied
- I = ZSubParm ' Ansied
- CALL SkipLine (1) ' Ansied
- IF I = -2 THEN ' Sleep Disconnect ' Ansied
- GOTO 10590 ' Ansied
- ELSEIF I = -1 THEN ' Lost Carrier ' Ansied
- GOTO 10595 ' Ansied
- ELSEIF I = 1 THEN ' Save Message ' Ansied
- GOTO 3400 ' Ansied
- ELSEIF I = 2 THEN ' Abort Message ' Ansied
- GOTO 2430 ' Ansied
- END IF ' Ansied
- 2120 IF ZGetExtDesc THEN ' DD030901
- CALL FindIt (ZNodeWorkDrvPath$ + "FILE_ID.DIZ") ' DD030901
- IF ZOK THEN RETURN ' DD030901
- CALL FindIt (ZNodeWorkDrvPath$ + "DESC.SDI") ' DD030901
- IF ZOK THEN RETURN ' DD030901
- IF ZWasGR > 1 THEN ' DD031007
- CALL SkipLine (1) ' DD031007
- CALL QuickTPut (ZFGE$ + "Use the " + ZFGB$ + _ ' DD031007
- "Full Screen Editor " + ZFGE$ + _ ' DD031007
- "for Your " + ZCRLf$ + _ ' DD031007
- ZFGB$ + ZMsgHeader$ + _ ' DD031007
- ZEmphasizeOff$,0) ' DD031007
- ZOutTxt$ = ZYesPrompt$ ' DD031007
- GOSUB 12930 ' DD031007
- IF ZNO THEN ' DD031007
- GOTO 2121 ' DD031007
- END IF ' DD031007
- END IF ' DD031007
- CALL Ansied (ZRBBSName$, ZMsgHeader$, MsgLockLines) ' DD031007
- I = ZSubParm ' DD031007
- CALL SkipLine (1) ' DD031007
- IF I = -2 THEN ' Sleep Disconnect ' DD031007
- GOTO 10590 ' DD031007
- ELSEIF I = -1 THEN ' Lost Carrier ' DD031007
- GOTO 10595 ' DD031007
- ELSEIF I = 1 THEN ' Save Message ' DD031007
- GOTO 3400 ' DD031007
- ELSEIF I = 2 THEN ' Abort Message ' DD031007
- GOTO 2430 ' DD031007
- END IF ' DD031007
- END IF ' DD031007
- 2121 ZOutTxt$ = "Enter Your " + _ ' DD031007
- ZMsgHeader$ + _ ' Ansied
- STR$(ZMaxMsgLines) + _ ' Ansied
- " Lines max" + _ ' DD102901
- ZCRLf$ + "(Press [ENTER] on Empty line for Menu)" ' DD102901
- GOSUB 12975
- GOSUB 3200
- * REPLACING old line(s) by new
- 2127 IF ZRemoteEcho OR ZLocalUser THEN _
- * ------[ first line different ]------
- ZOutTxt$ = RIGHT$(STR$(ZLinesInMsg),3) + _ ' DD022301
- ": " + _
- ZOutTxt$(ZLinesInMsg) _
- ELSE ZOutTxt$ = ZOutTxt$(ZLinesInMsg)
- GOSUB 12978
- CALL LineEdit(ZLinesInMsg,ZRightMargin + 1)
- IF ZWaitExpired THEN _
- GOTO 2300 _
- ELSE IF ZSubParm = -1 THEN _
- GOTO 10595
- CALL FindFKey
- IF ZSubParm < 0 THEN _
- GOTO 202
- IF ZOutTxt$(ZLinesInMsg) = "" THEN _
- ZLinesInMsg = ZLinesInMsg - 1 : _
- GOTO 2300
- * REPLACING old line(s) by new
- 2200 WasX = 0
- IF WasJ < (ZMaxMsgLines - 2) THEN _
- RETURN
- * ------[ first line different ]------
- ZOutTxt$ = ZFG4$ + "Warning: " + _ ' DD091701
- MID$("2 Lines LeftLast Line Full",12 * (WasJ-(ZMaxMsgLines - 2)) + 1,12) + _' DD091701
- CHR$(46) + ZEmphasizeOff$ ' DD021301
- WasX = (WasJ > (ZMaxMsgLines - 1))
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 2315 ZOutTxt$ = "Edit Function <A," + _ ' UG070501
- LEFT$("B,",-2 * (ZSysop OR ZLocalUser)) + _
- "C,D,E,I,L,M,R,S,?>"
- GOSUB 12930
- IF ZWasQ = 0 THEN _
- GOTO 2315
- CALL AraAllCaps (ZUserIn$(),ZAnsIndex)
- ZWasZ$ = ZUserIn$(ZAnsIndex)
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 2430 ZOutTxt$ = ZMsgHeader$ + " Aborted." ' UG070501
- GOSUB 12975
- GOTO 3650
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 2435 ZOutTxt$ = "Abort Your " + _ ' UG070501
- ZMsgHeader$ + _
- CHR$(63) + ZNoPrompt$ ' DD021301
- GOSUB 12930
- RETURN
- '
- ' ***** CHANGE SUBJECT OF A MESSAGE ****
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 2500 ZOutTxt$ = "Delete From" ' UG070501
- GOSUB 3300
- Mark1 = ZTestedIntValue
- IF ZAnsIndex < ZLastIndex AND ZUserIn$(ZAnsIndex+1) = CHR$(45) THEN _ ' DD031501
- ZAnsIndex = ZAnsIndex + 1 _ ' KG031101
- ELSE Temp = INSTR(ZUserIn$(ZAnsIndex),CHR$(45)) : _ ' DD031501
- IF Temp > 0 AND Temp < LEN(ZUserIn$(ZAnsIndex)) THEN _ ' KG031101
- ZUserIn$(ZAnsIndex) = MID$(ZUserIn$(ZAnsIndex),Temp+1) : _ ' KG031101
- ZAnsIndex = ZAnsIndex - 1 ' KG031101
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 2520 Temp$ = "Through Line #" ' UG070501
- CALL ChangeInt (ZFalse,Temp$,0,Mark1,ZLinesInMsg)
- IF ZWasQ = 0 THEN _
- Mark2 = Mark1 _
- ELSE Mark2 = ZTestedIntValue
- CALL SkipLine(1)
- GOTO 2530
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 2530 ZOutTxt$ = "Delete lines" + STR$(Mark1) + CHR$(45) + _ ' DD021301
- MID$(STR$(Mark2),2) + " (Y,[N],L)ist)"
- GOSUB 12930
- Temp$ = ZUserIn$(ZAnsIndex)
- CALL AllCaps(Temp$)
- IF Temp$ = CHR$(76) THEN GOTO 2522 'L ' DD021301
- IF NOT ZYes THEN _
- ZOutTxt$ = "NOT Deleted" : _
- GOSUB 12979 : _
- GOTO 2555
- * REPLACING old line(s) by new
- 2550 ZBlockSize = (Mark2 - Mark1) + 1
- EndOfBuffer = ZLinesInMsg + 1
- ZLinesInMsg = ZLinesInMsg - ZBlockSize
- FOR WasX = Mark1 TO ZLinesInMsg
- ZOutTxt$(WasX) = ZOutTxt$(WasX + ZBlockSize)
- NEXT
- FOR WasX = (ZLinesInMsg + 1) TO (EndOfBuffer)
- ZOutTxt$(WasX) = ""
- NEXT
- * ------[ first line different ]------
- ZOutTxt$ = MID$(STR$(ZBlockSize), 2) + " Line(s) Deleted." ' DD091701
- GOSUB 12979
- * REPLACING old line(s) by new
- 2800 IF ZLinesInMsg >= ZMaxMsgLines AND NOT ZSysop THEN _
- * ------[ first line different ]------
- ZOutTxt$ = "Message is Full." : _ ' UG070501
- GOSUB 12979 : _
- GOTO 2300
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 2840 ZOutTxt$ = RIGHT$(STR$(ZLinesInMsg),3) + _ 'Pe022193
- ": " + ZOutTxt$(ZLinesInMsg)
- GOSUB 12978
- CALL LineEdit(ZLinesInMsg,ZRightMargin + 1)
- IF ZOutTxt$(ZLinesInMsg) = "" THEN _
- GOTO 2920
- * REPLACING old line(s) by new
- 3010 ZStopInterrupts = ZFalse
- CALL SkipLine (1)
- IF (ZWasQ = 1 OR MsgFwd) AND NOT ZGetExtDesc THEN _
- WasL = 1 : _
- * ------[ first line different ]------
- ZOutTxt$ = ZFGC$ + "To: " + _ ' DD081801
- MsgTo$ + _
- ZFGB$ + " Re: " + _ ' DD081801
- Subject$ + ZEmphasizeOff$ : _
- GOSUB 12979 : _
- CALL QuickTPut (MID$(SPACE$(4),1,-4 * (NOT ZRemoteEcho)),0) : _ ' DD021301
- GOSUB 3200
- * REPLACING old line(s) by new
- 3020 IF ZGetExtDesc THEN WasL = 1
- * ------[ first line different ]------
- FOR WasX = WasL TO ZLinesInMsg
- CALL AskMore ("",ZTrue,ZTrue,WasXX,ZFalse)
- IF ZNo OR ZRet THEN _
- WasX = ZLinesInMsg + 1 _
- ELSE ZOutTxt$ = RIGHT$(STR$(WasX),3) + _ 'Pe022193
- ": " + _
- ZOutTxt$(WasX) : _
- GOSUB 12979
- NEXT
- RETURN
- '
- ' ***** CHANGE MARGIN WIDTH ****
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 3100 CALL ChangeInt (ZTrue,"Right Margin",ZRightMargin,8,72) ' UG070501
- IF ZWasQ <> 0 THEN _
- ZRightMargin = ZTestedIntValue
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 3200 ZOutTxt$ = CHR$(91) + _ '[ ' DD021301
- STRING$(ZRightMargin - 2,45) + _
- CHR$(93) '] ' DD021301
- IF ZRemoteEcho OR ZLocalUser THEN _
- ZOutTxt$ = SPACE$(4) + _ ' DD021301
- ZOutTxt$
- GOSUB 12975
- RETURN
- * REPLACING old line(s) by new
- 3405 IF ZSysopMsg THEN _
- MsgPswd$ = "^READ^" _
- ELSE Temp$ = MsgPswd$ : _
- CALL MsgProt (MsgTo$,Found,MsgPswd$) : _
- IF MsgPswd$ = "" THEN _
- MsgPswd$ = Temp$ : _
- * ------[ first line different ]------
- IF ZFullScreenEditor OR ANSIEDActive THEN _ ' DD032201
- GOTO 2110 _ ' JM092401/RCHAT
- ELSE _ ' JM092401/RCHAT
- GOTO 2300 ' JM092401/RCHAT
- SaveReplyStatus = ZReply
- ZReply = ZTrue
- ZSysopMsg = ZFalse
- ZReply = SaveReplyStatus
- GOSUB 4910
- MsgRecSave$ = ZMsgRec$
- MsgCorrected = ZFalse
- GOSUB 23100
- ZWasSL = 0
- ZWasN$ = ""
- ZLastIndex = 0
- ZHighMsgNumber = ZHighMsgNumber + 1 ' DD040707
- ZMenuNewMsgs = ZMenuNewMsgs + 1 ' DD090101/MENU0
- CALL TossLog ' DD032501
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 3410 ZActiveMessages = ZActiveMessages + 1 ' DD040706
- MsgNum$ = STR$(ZHighMsgNumber) + _ ' DD040707
- SPACE$(5 - LEN(STR$(ZHighMsgNumber))) ' DD040707
- IF MsgPswd$ = "^READ^" THEN _
- MID$(MsgNum$,1,1) = STRING$(1,42) : _ ' DD021301
- SecForMsg = ZPrivateReadSec _
- ELSE SecForMsg = ZPublicReadSec
- * REPLACING old line(s) by new
- 3530 Temp = ZNextMsgRec
- ZNextMsgRec = Temp + VAL(ZWasN$)
- LSET ZMsgRec$ = MsgRecSave$
- GOSUB 24000
- GET 1,Temp
- * ------[ first line different ]------
- ZMsgPtr(ZActiveMessages,1) = Temp ' DD040706
- ZMsgPtr(ZActiveMessages,2) = ZHighMsgNumber ' DD040707
- LSET ZMsgRec$ = MsgNum$ + _
- MsgFrom$ + _
- MsgTo$ + _
- ZCurDate$ + _
- Subject$ + _
- MsgPswd$ + _
- ZActiveMessage$ + _
- ZWasN$ + _
- SPACE$(4 - LEN(ZWasN$)) + _
- MKI$(SecForMsg)
- ' ---[ write out list of people msg is to ]---
- UserFileIndexSave = ZUserFileIndex
- UserRecordHold$ = ZUserRecord$
- CALL OpenWork (2,ZNodeWorkFile$)
- WHILE NOT EOF(2)
- CALL ReadParms (ZWorkAra$(),2,1)
- MID$(ZMsgRec$,37,22) = LEFT$(ZWorkAra$(1)+ SPACE$(22),22)
- RcvrRecNum = VAL(ZWorkAra$(2))
- PUT 1,Temp
- Temp = Temp + 1
- NumRecs = NumRecs - 1
- ' ---[ notify receiver that has new mail waiting ]---
- CALL SetUserFlag (RcvrRecNum, 512, "Mail") ' UG070501
- WEND
- ZWasN$ = ""
- ZOutTxt$ = "Saving Your Message as #" + _ ' UG070501
- STR$(ZHighMsgNumber) ' DD040707
- ' IF NOT ZLocalUser THEN _ ' DD021301
- CALL UpdtCalr (ZOutTxt$,1)
- GOSUB 12978
- ' NumDots = 0 ' DD021301
- FOR WasJ = 1 TO ZLinesInMsg
- ' CALL MarkTime (NumDots) ' DD021301
- ZWasN$ = ZWasN$ + _
- ZOutTxt$(WasJ)
- IF LEN(ZWasN$) > 127 THEN _
- LSET ZMsgRec$ = ZWasN$ : _
- PUT 1 : _
- ZWasN$ = MID$(ZWasN$,129)
- * REPLACING old line(s) by new
- 3650 QuotedReply = ZFalse
- MsgLockLines = 0
- IF ZReply OR MsgFwd THEN _
- ZReply = ZFalse : _
- ZAnsIndex = SaveAnsIndex : _
- GOTO 5344
- IF ZGetExtDesc THEN _
- ZLinesInMsg = 0
- * ------[ first line different ]------
- IF ZLogOff$ = CHR$(71) THEN 'G ' DD021301
- Getout = Ztrue ' Mpl090201
- ZLogoff$ = CHR$(76) 'L ' DD021301
- GOTO 10560 ' Mpl090201
- END IF 'Pe 02/03/90
- RETURN
- '
- ' **** K - COMMAND FROM MAIN MENU (KILL MESSAGE) ***
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 3930 ZOutTxt$ = "Kill Which Messages" + LEFT$(", M)arked",-9*(ZMarkedMsgs$ <> "")) + ZPressEnterExpert$ ' UG070501
- GOSUB 12932
- IF ZWasQ = 0 THEN _
- RETURN
- GOSUB 1893
- ZWasZ$ = ZUserIn$(ZAnsIndex) ' KGK020101
- CALL UnMarkItems (ZMarkedMsgs$,ZAnsIndex,ZLastIndex,Found,ZTrue)
- * REPLACING old line(s) by new
- 3950 GOSUB 5344
- * ------[ first line different ]------
- CALL KillMsg (MsgToKill,ZActiveMessages,ZconfName$) ' DD040706
- * REPLACING old line(s) by new
- 4240 CALL Toggle(9)
- RETURN
- '
- * ------[ first line different ]------
- ' **** New Message Read Option
- '
- * INSERTING new line(s)
- 4275 IF ZUserSecLevel < ZOptSec(12) THEN _ ' DD090101
- RETURN 'Pe 08/30/92
- ' ' DD063002
- ' * IF CONFIG is set to skip new mail and the user doesn't want to ' DD063002
- ' * read new mail then go back ' DD063002
- ' ' DD063002
- IF ZSkipMailCheck AND NOT ZReadNewMail THEN ' DD070102
- RETURN ' DD063002
- END IF ' DD063002
- GOSUB 47000 ' DD062304
- ZOutTxt$ = ZCRLf$ + ZFG2$ + "Read All New Messages" + _ ' DD052004
- ZEmphasizeOff$ + ZYesPrompt$ ' DD060101
- GOSUB 12999 'JABASKMAIL
- 4279 IF NOT ZNO THEN _ 'JABASKMAIL
- ZLastIndex = 2 : _ 'Pe 11/05/89
- ZAnsIndex = 1 : _ 'Pe 11/05/89
- ZWasQ = 2 : _ 'Pe 11/05/89
- ZUserIn$(2) = STRING$(1,42) : _ ' DD021301
- GOTO 4330 'Pe 11/05/89
- RETURN 'JABASKMAIL
- '
- ' **** T)opic - QUICK SCAN MESSAGES ***
- '
- * REPLACING old line(s) by new
- 4330 IF LinkNext THEN _
- LinkNext = ZFalse : _
- GOSUB 1893 : _
- GOSUB 5344 : _
- NumMsgsSelected = 1 : _
- ZAnsIndex = 1 : _
- MsgIndex = 1 : _
- ZLastIndex = 1 : _
- CanKill = (ZSysop OR ZUserSecLevel >= ZSecKillAny) : _
- IF LinkForward THEN _
- CurMsg = ZLastMsgRead + 1 : _
- GOTO 4450 _
- * ------[ first line different ]------
- ELSE CurMsg = ZHighMsgNumber : _ ' DD040707
- GOTO 4490
- QuickScanMsgs = ZFalse
- ReadMsgs = ZTrue
- Forward = ZFalse
- ZGlobalRead = ZFalse
- HiLiteRec = -1
- ScanMsgs = ZFalse
- MsgStart = 6
- MsgEnd = 100
- IF ZLocalUserMode OR NOT ZLocalUser THEN _
- IF ReadMsgIn$ <> ZActiveMessageFile$ THEN _
- ReadMsgIn$ = ZActiveMessageFile$ : _
- CALL UpdtCalr ("Read Messages in " + ZConfName$,1) ' DD050901
- GOSUB 1300
- GOTO 4350
- '
- ' **** S - COMMAND FROM MAIN MENU (SCAN MESSAGE HEADERS) ***
- '
- * REPLACING old line(s) by new
- 4350 SearchHeader$ = ""
- SubInHeader$ = ""
- * ------[ first line different ]------
- RIPFile$ = "RIPWINM" ' DD061301
- GOSUB 47010 ' DD062601
- * REPLACING old line(s) by new
- 4352 SearchString$ = ""
- DontPrint = ZFalse
- JustReplied = ZFalse
- QuotedReply = ZFalse
- CanKill = (ZSysop OR ZUserSecLevel >= ZSecKillAny)
- GOSUB 1893
- GOSUB 5344
- ZWasZ$ = ""
- * ------[ first line different ]------
- GOSUB 827 ' DD121401
- FOR WasI = 2 TO ZLastIndex ' KG012802
- IF INSTR("Ss*",ZUserIn$(WasI)) > 0 THEN _
- ZUserIn$(WasI) = MID$(STR$(ZLastMsgRead+1),2) + CHR$(43) ' DD021301
- IF INSTR("Ll",ZUserIn$(WasI)) > 0 THEN _
- ZUserIn$(WasI) = MID$(STR$(ZHighMsgNumber),2) + CHR$(45) ' DD040707
- IF INSTR("Gg",ZUserIn$(WasI)) > 0 THEN _
- GOSUB 4640 ' KG013001
- NEXT
- * REPLACING old line(s) by new
- 4360 ZWasLG$(11) = ZWasZ$
- NumMsgsSelected = ZLastIndex
- MsgIndex = ZAnsIndex
- ZLastIndex = 0
- AddressedToUser = ZFalse
- ToRequested = ZFalse
- FromRequested = ZFalse
- LinkNext = ZFalse
- * ------[ first line different ]------
- CALL SaveUserActivity(CHR$(77), ZNodeRecIndex, ZFalse) ' DD021301/CHAT
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 4380 WasA1$ = ZFGF$ + "Msg #" + ZFGE$ + _ ' DD091701
- STR$(LowMsgNumber) + ZFGF$ + _ ' DD091701
- CHR$(45) + ZFGE$ + _ ' DD021301
- MID$(STR$(ZMsgPtr(ZActiveMessages,2)),2) + ZEmphasizeOff$ + _' DD040706
- " (H)lp,S)ince,L)ast" + _
- LEFT$(",G)lobal",8*(ZLinkedConf$ ="" OR ZGlobalRead)+8)
- CALL SkipLine (-QuickScanMsgs) ' KG062301
- IF ZGlobalRead THEN _
- CALL QuickTPut1 (ZFG9$ + "Display Messages Globally " + _ ' DD091701
- "in Linked Conferences." + ZEmphasizeOff$) ' DD082302
- IF AddressedToUser OR ToRequested OR FromRequested THEN _
- ZWasY$ = LEFT$("To",-2*(ToRequested OR AddressedToUser)) + _ ' DD091701
- LEFT$(" or ",-AddressedToUser*4) + _ ' UG070501
- LEFT$("From",-4*(FromRequested OR AddressedToUser)) : _
- CALL QuickTPut1 (ZFG5$ + "Display Messages Only " + _ ' DD082302
- ZFGE$ + ZWasY$ + _ ' DD082301
- ZFG5$ + " You." + ZCRLf$ + _ ' DD082302
- ZFG2$ + "Read what msgs? " + ZFGB$ + "(? for help)" + _ ' DD082302
- ZEmphasizeOff$) _ ' DD082301
- ELSE WasA1$ = WasA1$ + ",T)o,F)rom,M)" : _
- IF ReadMsgs AND ZMarkedMsgs$ <> "" THEN _
- WasA1$ = WasA1$ + "arked" _
- ELSE WasA1$ = WasA1$ + "ine"
- IF SearchString$ = "" THEN _
- WasA1$ = WasA1$ + _
- ", text" _
- ELSE CALL QuickTPut1 (ZFG5$ + "Include only msgs with text " + _' DD082301
- ZFGB$ + SearchString$ + CHR$(46) + ZCRLf$ + _ ' DD021301
- ZFGE$ + "Read what msgs?" + ZFG3$ + _ ' DD082302
- " (? for help)" + ZEmphasizeOff$) ' DD082301
- * REPLACING old line(s) by new
- 4415 Forward = ZFalse
- Reverse = ZFalse
- FOR WasI = ZAnsIndex to ZLastIndex
- * ------[ first line different ]------
- IF INSTR("Gg",ZUserIn$(WasI)) > 0 THEN _ ' KG013001
- GOSUB 4640 ' KG020201
- NEXT
- IF ZAnsIndex <= ZLastIndex OR LEN(ZUserIn$(ZAnsIndex)) = 1 THEN _ ' DR020301
- IF INSTR("Ss*",ZUserIn$(ZAnsIndex)) > 0 THEN _
- CurMsg = ZLastMsgRead + 1 : _
- Forward = ZTrue : _
- GOTO 4430 _
- ELSE IF INSTR("Ll",ZUserIn$(ZAnsIndex)) > 0 THEN _
- CurMsg = ZHighMsgNumber : _ ' DD040707
- Reverse = ZTrue : _
- GOTO 4490 _
- ELSE IF INSTR("Gg",ZUserIn$(ZAnsIndex)) > 0 THEN _
- ZGlobalRead = ZTrue : _
- GOTO 4370
- * REPLACING old line(s) by new
- 4416 IF INSTR("Mm",ZUserIn$(ZAnsIndex)) = 0 THEN _
- GOTO 4418
- IF ReadMsgs THEN _
- * ------[ first line different ]------
- ZWasZ$ = CHR$(77) : _ 'M ' DD021301
- CALL UnMarkItems (ZMarkedMsgs$,MsgIndex,NumMsgsSelected,Found,ReadMsgs) : _
- MsgIndex = MsgIndex + Found _
- ELSE Found = ZFalse
- AddressedToUser = NOT Found
- GOTO 4370
- * REPLACING old line(s) by new
- 4418 ZWasA = INSTR("FfTt",ZUserIn$(ZAnsIndex))
- IF ZWasA > 0 THEN _
- ToRequested = (ZWasA > 2) : _
- FromRequested = (ZWasA < 3) : _
- GOTO 4370
- IF CurMsg = 0 THEN _
- IF SearchHeader$ <> "" THEN _
- GOTO 4370 _
- ELSE SearchString$ = ZUserIn$(ZAnsIndex) : _
- SearchCt = 0 : _
- CALL AllCaps (SearchString$) : _
- CALL Remove (SearchString$,CHR$(34) + CHR$(39)) : _
- SearchHeader$ = SearchString$ : _
- SubInHeader$ = SearchHeader$ : _
- GOTO 4370
- * ------[ first line different ]------
- CALL SkipLine (-ReadMsgs) ' KG062301
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 4430 IF RIGHT$(ZUserIn$(ZAnsIndex),1) = CHR$(43) THEN _ '+ ' DD021301
- Forward = ZTrue
- IF RIGHT$(ZUserIn$(ZAnsIndex),1) = CHR$(45) THEN _ '- ' DD021301
- Reverse = ZTrue : _
- GOTO 4490
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 4452 IF ZMsgDimIndex > ZActiveMessages THEN _ ' DD040706
- GOTO 4515
- IF ReadMsgs AND _
- ZMsgPtr(ZMsgDimIndex,2) = CurMsg THEN _
- GOTO 4520
- * REPLACING old line(s) by new
- 4490 ZMsgDimIndex = ZActiveMessages ' search REVERSE for current msg ' DD040706
- * REPLACING old line(s) by new
- 4515 IF Forward THEN _
- * ------[ first line different ]------
- ZOutTxt$ = ZCRLf$ + ZFGE$ + ZBG5$ + _ ' DD090606
- " No new messages " + ZEmphasizeOff$: _ ' DD090606
- ZLastMsgRead = ZHighMsgNumber : _ ' DD040707
- ZMailWaiting = ZFalse _
- ELSE ZOutTxt$ = ZFGE$ + ZBG5$ + _ ' DD090606
- " No such msg #" + _ ' DD090606
- STR$(CurMsg) + SPACE$(1) + ZEmphasizeOff$ ' DD021301
- IF SubInHeader$ = "" THEN _
- GOSUB 12979
- ZLastIndex = 0
- GOTO 4637
- * REPLACING old line(s) by new
- 4530 StartMsgIndex = ZMsgDimIndex
- * ------[ first line different ]------
- EndingMsgIndex = ZActiveMessages ' DD040706
- WasSO = 1
- GOTO 4550
- * REPLACING old line(s) by new
- 4563 CurMsg = VAL(MID$(ZMsgRec$,2,4))
- * ------[ first line different ]------
- OutRe$= " Re: "+MID$(ZMsgRec$,76,25) ' DD090802
- OutFrom$=" From: "+mid$(ZMsgRec$,6,31) ' DD090802
- OutTo$= " To: "+mid$(ZMsgRec$,37,22) ' DD090802
- OutNum$= "Message #"+mid$(ZMsgRec$,2,4) ' DD090802
- OutNumRecs=val(mid$(ZMsgRec$,117,4)) ' DD090802
- IF ToRequested THEN _
- IF NOT MsgToCaller THEN _
- GOTO 4629
- IF FromRequested THEN _
- IF NOT MsgFromCaller THEN _
- GOTO 4629
- IF AddressedToUser AND NOT UserInHeader THEN _
- GOTO 4629
- WasX$ = MID$(ZMsgRec$,121,2)
- IF WasX$ = SPACE$(2) THEN _ ' DD021301
- MsgSec = ZMinLogonSec _
- ELSE MsgSec = CVI(WasX$)
- IF ZUserSecLevel < MsgSec THEN _ ' DD032401
- GOTO 4629
- * REPLACING old line(s) by new
- 4581 IF MID$(ZMsgRec$,116,1) = ZDeletedMsg$ THEN _
- GOTO 4630
- * ------[ first line different ]------
- ZJustSearching = ZFalse 'Pe 05/30/91
- IF SearchHeader$ <> "" THEN _
- ZFF = INSTR(ZMsgRec$,SearchHeader$) : _
- IF ZFF >= MsgStart AND ZFF <= MsgEnd THEN _
- HiLitePos = ZFF : _
- SearchCt = 0 : _
- GOTO 4582 _
- ELSE IF ReadMsgs AND SearchString$ <> "" THEN _
- ZJustSearching = ZTrue : _ 'Pe 05/30/91
- GOTO 4582 _
- ELSE GOTO 4629
- * REPLACING old line(s) by new
- 4582 WasPG = ZFalse
- * ------[ first line different ]------
- IF MID$(ZWasZ$,1,1) = CHR$(33) THEN _ '! ' DD021301
- IF NOT CanKill THEN _
- WasPG = ZTrue : _
- ZPswdSave$ = MID$(ZWasZ$,2) + _
- SPACE$(1) : _ ' DD021301
- ZAttemptsAllowed = 0 : _
- ZSubParm = 1 : _
- CALL PassWrd
- * REPLACING old line(s) by new
- 4585 IF ZPswdFailed THEN _
- IF WasPG THEN _
- WasSJ$ = "<PASSWORD>" _
- * ------[ first line different ]------
- ELSE WasSJ$ = "<PRIVATE>" _ ' DD060101
- ELSE WasSJ$ = MID$(ZMsgRec$,76,25)
- * REPLACING old line(s) by new
- 4590 IF QuickScanMsgs THEN _
- * ------[ first line different ]------
- ZOutTxt$ = ZFG2$ + LEFT$(ZMsgRec$,5) + _ ' DD092104
- SPACE$(1) + _ ' DD021301
- ZFGB$ + LEFT$(WasSJ$,19) + _ ' DD092104
- SPACE$(1) + ZEmphasizeOff$ : _ ' DD021301
- CALL CheckColor (ZOutTxt$,SubInHeader$,ZEmphasizeOff$) : _
- GOSUB 12978 : _
- SecIndex = SecIndex + 1 : _
- IF SecIndex = 3 THEN _
- SecIndex = 0 : _
- CALL SkipLine (1) : _
- GOTO 4630 _
- ELSE GOTO 4630
- * REPLACING old line(s) by new
- 4600 IF ScanMsgs THEN _
- GOSUB 8020 : _
- GOTO 4630
- * ------[ first line different ]------
- IF NOT ZJustSearching THEN _ ' Mpl090201
- GOSUB 8000 : _
- IF QuotedReply THEN _
- QuotedReply = ZFalse : _
- GOTO 4602
- IF ZRet THEN _
- GOTO 4630
- CanChangeSec = (ZUserSecLevel => ZSecChangeMsg)
- ShowKill = - ((ZUserSecLevel >= ZOptSec(9)) AND (UserInHeader OR CanKill))
- IF ZNewUserDgs = ZTrue THEN ShowKill= ZFalse 'Dgs-NEw
- IF ZExpertUser THEN _
- WasA1$ = ",H" + _
- MID$(",R",1,- (ZUserSecLevel >= ZOptSec(5)) * 2) + _
- ",T,M,=,+,-" + _
- MID$(",F",1,- (UserInHeader OR CanChangeSec) * 2) + _
- MID$(",K",1,ShowKill * 2) + _
- MID$(",U",1,- (ZUserSecLevel >= ZOptSec(54)) * 2) + _
- MID$(",S",1, - CanChangeSec * 2) + _ ' DD090802
- MID$(",P",1, - ZSysop * 2) : _ ' DD090802
- GOTO 4601
- GOSUB 4617
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 4601 IF ZJustSearching OR NOT JustReplied THEN _ ' Mpl090201
- GOTO 4602 ' Mpl090201
- JustReplied = ZFalse ' Mpl090201
- CALL AskMore (WasA1$,ZTrue,ZFalse,ZAnsIndex,ZFalse) ' Mpl090201
- CALL SkipLine (1) ' Mpl090201
- IF ZNo THEN _ ' Mpl090201
- RETURN ' Mpl090201
- CALL AllCaps (ZUserIn$(1)) ' Mpl090201
- ZReply = (ZReply OR ZUserIn$(1) = CHR$(82)) 'R ' DD021301
- IF ZUserIn$(1) <> CHR$(61) THEN _ '= ' DD021301
- GOTO 4605 ' Mpl090201
- CALL SkipLine (1) ' Mpl090201
- * REPLACING old line(s) by new
- 4602 IF NOT ZPswdFailed THEN _
- GOTO 4603
- IF WasPG AND (NOT ZNonStop) THEN _
- ZAttemptsAllowed = 2 : _
- ZSubParm = 2 : _
- CALL PassWrd
- IF ZPswdFailed THEN _
- GOTO 4629
- * ------[ first line different ]------
- CALL QuickTPut1 (" Subj: " + MID$(ZMsgRec$,76,25)) ' DD061301
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 4603 IF NOT ZJustSearching THEN _ 'Pe 02/05/90
- CALL QuickTPut (ZFGE$ + STRING$(72,45) + ZEmphasizeOff$,1) ' DD063001
- GOSUB 9000
- JustReplied = ZFalse
- DontPrint = ZFalse
- IF ZJustSearching THEN _ ' Mpl090201
- GOTO 4629
- IF ZAnsIndex > NumMsgsSelected THEN _
- GOTO 4650
- CALL SkipLine (1)
- GOSUB 41000
- ZKillMessage = ZFalse
- ZReply = ZFalse
- * REPLACING old line(s) by new
- 4604 ZTurboKey = -ZTurboKeyUser
- CALL AskMore (WasA1$,ZTrue,ZFalse,WasXX,ZFalse)
- IF ZNo THEN _
- IF WasXX >= 32000 THEN _
- WasXX = 0 : _
- ZAnsIndex = ZLastIndex + 1 : _
- RETURN _
- ELSE GOTO 4637
- IF ZNonStop THEN _
- GOTO 4629
- CALL AraAllCaps(ZUserIn$(),1)
- * ------[ first line different ]------
- ZReply = (ZReply OR ZUserIn$(1) = CHR$(82)) 'R ' DD021301
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 4605 ON INSTR(" FUST+-KRH?=MP",LEFT$(ZUserIn$(1),1)) GOTO _ ' DD090802
- 4620,4606,4607,4608,4609,4610,4610, _ ' DD090802
- 4611,4621,4612,4614,4615,4652,4651 ' DD090802
- GOTO 4620
- * REPLACING old line(s) by new
- 4607 IF ZUserSecLevel < ZOptSec(54) THEN _ ' User edit
- GOTO 4620
- EditFromRead = 1
- ZReply=ZTrue
- CALL PutMsgAttr
- TempHashValue$ = MsgFrom$
- CALL Trim (TempHashValue$)
- IF TempHashValue$ = "SYSOP" THEN _
- TempHashValue$ = ZSecretName$
- * ------[ first line different ]------
- GOTO 11010 ' DD032701
- * REPLACING old line(s) by new
- 4608 IF CanChangeSec THEN _ ' Security to read
- CALL PutMsgAttr : _
- GOSUB 4665 : _
- ZReply = ZFalse : _
- QuotedReply = ZTrue : _
- CALL GetMsgAttr : _
- DontPrint = ZTrue : _
- * ------[ first line different ]------
- ZUserIn$ = CHR$(61) : _ '= ' DD021301
- JustReplied = ZTrue : _
- GOTO 4560
- GOTO 4620
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 4611 IF ((UserInHeader and NOT ZNewUserDgs) OR CanKill) THEN _ ' Kill Dgs-new
- IF ZUserSecLevel >= ZOptSec(9) THEN _
- CALL PutMsgAttr : _
- MsgToKill = CurMsg : _
- Temp = ZWasQ : _
- GOSUB 3950 : _
- CALL GetMsgAttr : _
- GOTO 4629 _
- ELSE ZViolation$ = "MORE KILL" : _
- GOSUB 1380 : _
- GOTO 4629
- GOTO 4620
- * REPLACING old line(s) by new
- 4617 WasA1$ = ",H)lp" + _
- MID$(",R)ply",1, - (ZUserSecLevel >= ZOptSec(5)) * 6) + _
- ",T)hrd,M)rk,=,+,-" + _
- MID$(",F)wd",1, - (UserInHeader OR CanChangeSec) * 5) + _
- MID$(",K)ill",1, ShowKill * 6) + _
- MID$(",U)sr",1,- (ZUserSecLevel >= ZOptSec(54)) * 6) + _
- * ------[ first line different ]------
- MID$(",S)ec",1, - CanChangeSec * 5) + _ ' DD090802
- MID$(",P)rn",1, - ZSysop * 5) ' DD090802
- RETURN
- * REPLACING old line(s) by new
- 4623 DontPrint = ZFalse
- CALL PutMsgAttr
- IF MsgFwd THEN GOTO 4624
- IF ZNoQuoting THEN GOTO 4627
- * ------[ first line different ]------
- ZOutTxt$ = ZEmphasizeOff$ + "Quote " + MsgTo$ + "'s message?" + ZNoPrompt$' DD082101
- GOSUB 12999
- IF ZRet OR NOT ZYes THEN _
- GOTO 4627
- * REPLACING old line(s) by new
- 4624 QuotedReply = ZTrue
- ZLinesInMsg = ZLinesInMsg - 1
- IF HiLitedLine > 0 THEN _
- ZOutTxt$(HiLitedLine) = ZOutTxt$(0) : _
- HiLitedLine = 0
- IF MsgFwd THEN _
- TempRightMargin = ZRightMargin _
- ELSE _
- TempRightMargin = ZRightMargin - 2
- CALL WordWrap (TempRightMargin,ZLinesInMsg,ZOutTxt$())
- IF ZLinesInMsg > ZMsgDim THEN _
- ZLinesInMsg = ZMsgDim : _
- * ------[ first line different ]------
- CALL QuickTPut1 (ZFG2$ + "Original message truncated to " + _' DD082302
- ZFGE$ + STR$(ZMsgDim) + _ ' DD082302
- ZFG2$ + " Lines!" + ZEmphasizeOff$) ' DD082302
- IF MsgFwd THEN GOTO 4625
- QuoteInit = INSTR(MsgTo$, SPACE$(1)) ' DD021301/QUOTE
- QuoteInit = QuoteInit + 1 ' DD081301/QUOTE
- QuoteMark$ = LEFT$(MsgTo$, 1) + _ ' DD081301/QUOTE
- MID$(MsgTo$, QuoteInit, 1) + CHR$(62) '> ' DD021301/QUOTE
- IF MsgTo$ = "SYSOP" THEN _ ' DD081301/QUOTE
- QuoteMark$ = LEFT$(ZSysopFirstName$, 1) + _ ' DD081301/QUOTE
- LEFT$(ZSysopLastName$, 1) + CHR$(62) '> ' DD021301/QUOTE
- FOR WasX = 1 TO ZLinesInMsg
- IF MID$(ZOutTxt$(WasX), 3, 1) = CHR$(62) THEN _ ' DD021301/QUOTE
- ZOutTxt$(WasX) = ZOutTxt$(WasX) _ ' DD081301/QUOTE
- ELSE ZOutTxt$(WasX) = QuoteMark$ + ZOutTxt$(WasX) ' DD081301/QUOTE
- NEXT
- * REPLACING old line(s) by new
- 4625 WasX$ = MsgTo$
- GOSUB 2001
- * ------[ first line different ]------
- IF (ZActiveMessages >= MaxMsgs) OR MsgTo$ = "" THEN _ ' DD040706
- GOTO 4628
- IF MsgFwd THEN _
- MsgFwd$ = ZActiveUserName$ : _
- CALL Trim (MsgFwd$) : _
- CALL Trim (WasX$) : _
- MsgFwd$ = "Msg was to " + WasX$ + _
- ", forwarded by " + MsgFwd$
- IF (MsgFwd AND CanChangeSec AND NOT MsgFromCaller) THEN _
- CALL Trim (MsgFrom$) : _
- ZOutTxt$ = "Message was from " + _
- MsgFrom$ + _
- ", change to " + _
- ZActiveUserName$ + _
- CHR$(63) + ZNoPrompt$ : _ ' DD021301
- GOSUB 12999 : _
- IF ZYes THEN _
- MsgFrom$ = ZActiveUserName$ : _
- CALL Trim (MsgFrom$) : _
- GOTO 4626
- IF MsgFwd AND NOT MsgFromCaller THEN _
- FOR MsgFwdCount = ZLinesInMsg TO 1 STEP -1 : _
- ZOutTxt$(MsgFwdCount + 2) = ZOutTxt$(MsgFwdCount) : _
- NEXT MsgFwdCount : _
- ZOutTxt$(1) = MsgFwd$ : _
- ZOutTxt$(2) = "" : _
- ZLinesInMsg = ZLinesInMsg + 2 : _
- IF NOT CanChangeSec THEN _
- MsgLockLines = 1
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 4626 ZWasZ$ = CHR$(76) 'L ' DD021301
- WasL = 1
- IF ZFullScreenEditor OR ANSIEdActive THEN ' DD032202
- GOSUB 2110 ' AnsiEd
- GOTO 4628 ' AnsiEd
- END IF ' AnsiEd
- IF NOT ZFullScreenEditor OR NOT ANSIEdActive THEN ' DD032202
- GOSUB 43030 ' DD031302
- IF ZYES THEN ' AnsiEd
- ANSIEdActive = ZTrue ' DD032201
- GOSUB 2110 ' AnsiEd
- ELSE ' AnsiEd
- ANSIEdActive = ZFalse ' DD032201
- IF ZLinesInMsg >= ZMaxMsgLines THEN _ ' Mpl090201
- CALL QuickTPut (ZFG5$ + "Message Must Be Shorter" + _' DD082302
- "Than" + ZFGE$ + STR$(ZMaxMsgLines) + _ ' DD082302
- ZFG5$ + " Lines!" + ZEmphasizeOff$,1) ' DD082302
- IF NOT MsgFwd THEN _ ' Mpl090201
- CALL QuickTPut1 (ZFGE$ + "Please delete unneeded " + _' DD082302
- "Quoted lines, then " + ZFGB$ + "[C] " + ZFGE$ + _' DD082302
- "continues reply" + ZEmphasizeOff$) ' DD082302
- GOSUB 3200 ' AnsiEd
- GOSUB 3020 ' AnsiEd
- GOSUB 2300 ' AnsiEd
- END IF ' AnsiEd
- END IF ' AnsiEd
- GOTO 4628
- * REPLACING old line(s) by new
- 4628 ZReply = ZFalse
- JustReplied = ZTrue
- QuotedReply = ZTrue
- CALL GetMsgAttr
- DontPrint = ZTrue
- * ------[ first line different ]------
- ZUserIn$ = CHR$(61) '= ' DD021301
- QuotedReply = ZTrue
- MsgFwd = ZFalse
- GOTO 4560
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 4630 MsgTemp$ = ",M)ark, #(s) to read" ' DD092102
- CALL AskMore (MsgTemp$,ZTrue,ZTrue,WasXX,ZFalse) ' DD092102
- IF ZMsgDimIndex = EndingMsgIndex AND NOT ReadMsgs THEN _ ' DD092102
- CALL SkipLine (-QuickScanMsgs) : _ ' DD092102
- CALL AskMore (MsgTemp$,ZTrue,ZFalse,WasXX,ZFalse) : _ ' DD092102
- IF UCASE$(ZUserIn$(1)) <> CHR$(77) THEN _ ' DD041004
- CALL QuickTPut (ZFGC$ + "Scanning Messages" + _ ' DD041004
- ZEmphaisizeOff$,0) ' DD041004
- IF ZWasQ = 0 OR ZYes THEN _
- GOTO 4631
- IF ZNo THEN _
- RETURN
- IF ZSubParm = -1 THEN _
- RETURN 10595
- IF ZRet THEN _
- RETURN
- ZWasZ$ = ZUserIn$(1)
- CALL AllCaps (ZWasZ$)
- IF ZWasZ$ = CHR$(77) THEN _ 'M ' DD021301
- ZLastIndex = ZWasQ : _
- ZAnsIndex = 1 : _
- CALL AskItems (CHR$(77),ZWasZ$,ZTrue,"msg",ZMarkedMsgs$) ' DD041004
- IF VAL(ZWasZ$) > 0 THEN _
- FOR WasI = ZWasQ TO 1 STEP -1 : _
- ZUserIn$(WasI + 1) = ZUserIn$(WasI) : _
- NEXT : _
- ZUserIn$(1) = MID$(ZAllOpts$,INSTR(ZOrigCommands$,CHR$(82)),1) : _ ' DD021301
- ZLastIndex = ZWasQ + 1 : _
- ZAnsIndex = 1 : _
- RETURN 1235
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 4631 IF NOT Forward AND NOT Reverse THEN _ ' KG062301
- GOTO 4370 ' KG062301
- CALL CheckCarrier ' KG062301
- IF ZSubParm THEN _
- RETURN 10595
- IF ZRet THEN _
- RETURN
- * REPLACING old line(s) by new
- 4635 IF WasSO = 0 THEN _ ' end msg read loop top is 4552
- WasSO = 1
- IF SearchString$ <> "" THEN _
- SearchCt = SearchCt + 1 : _
- IF SearchCt > 99 THEN _
- SearchCt = 0 : _
- ZOutTxt$ = "Searched for " + SearchString$ + " thru msg" + _
- * ------[ first line different ]------
- STR$(CurMsg) + " Continue?" + ZYesPrompt$ : _ ' DD060101
- GOSUB 12932 : _
- IF ZNo THEN _
- RETURN
- ZMsgDimIndex = ZMsgDimIndex + WasSO
- GOTO 4552
- * REPLACING old line(s) by new
- 4637 ZLastIndex = 0
- CALL SkipLine (1)
- IF Forward OR Reverse THEN _
- CALL NextConf (ZGlobalRead) : _
- IF ZHomeConf$ <> "" THEN _
- LinkNext = ZTrue : _
- LinkForward = Forward : _
- ConfMailJoin = ZTrue : _
- RETURN 1205
- IF ReadMsgs THEN _
- * ------[ first line different ]------
- ZPswdFailed = ZFalse : _ ' DD080701
- SearchString$ = "" : _
- SearchHeader$ = "" : _
- SubInHeader$ = "" : _
- ToRequested = ZFalse : _
- FromRequested = ZFalse : _
- AddressedToUser = ZFalse : _
- GOTO 4370
- * INSERTING new line(s)
- 4640 FOR WasJ = WasI to ZLastIndex-1 ' KG013001
- ZUserIn$(WasJ) = ZUserIn$(WasJ+1) ' KG013001
- NEXT ' KG013001
- ZGlobalRead = ZTrue ' KG013001
- ZLastIndex = ZLastIndex - 1 ' KG013001
- RETURN ' KG013001
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 4650 CALL AskMore ("",ZTrue,ZTrue,WasX,ZTrue) ' DD092102
- GOTO 4380 ' DD092102
- ' CALL QuickTPut1 ("--End Msgs--") ' DD092102
- ' RETURN ' DD092102
- * INSERTING new line(s)
- 4651 '**** print current message **** ' RS090802
- CALL PrintMsg(OutNum$,OutFrom$,OutTo$,OutRe$,OutRec,OutNumRecs) ' DD090802
- GOTO 4604 ' RS090802
- * REPLACING old line(s) by new
- 4665 CALL Trim (MsgFrom$)
- ZOutTxt$ = "Change sender's name from " + _
- MsgFrom$ + _
- " to"
- GOSUB 12995
- IF ZWasQ = 0 THEN _
- GOTO 4666
- IF LEN(ZUserIn$) > 30 THEN _
- * ------[ first line different ]------
- CALL QuickTPut1 (ZFGF$ + ZBG4$ + "30 Chars max" + _ ' DD082302
- ZEmphasizeOff$) : _ ' DD082302
- GOTO 4665
- CALL AllCaps (ZUserIn$)
- MsgFrom$ = ZUserIn$
- * REPLACING old line(s) by new
- 4666 CALL Trim (MsgTo$)
- ZOutTxt$ = "Change receiver's name from " + _
- MsgTo$ + _
- " to"
- GOSUB 12995
- IF ZWasQ = 0 THEN _
- GOTO 4667
- IF LEN(ZUserIn$) > 30 THEN _
- * ------[ first line different ]------
- CALL QuickTPut1 (ZFGF$ + ZBG4$ + "30 Chars max" + _ ' DD082302
- ZEmphasizeOff$) : _ ' DD082302
- GOTO 4666
- CALL AllCaps (ZUserIn$)
- MsgTo$ = ZUserIn$
- TempMsgTo$ = ZUserIn$
- CALL SetWhoTo (ZFalse,MsgTo$,MsgFrom$,RcvrRecNum,Found,ZTrue) ' KG012502
- IF MsgTo$ = "" THEN MsgTo$ = TempMsgTo$
- * REPLACING old line(s) by new
- 4667 CALL Trim (Subject$)
- ZOutTxt$ = "Change subject from " + _
- Subject$ + _
- " to"
- GOSUB 12995
- IF ZWasQ = 0 THEN _
- GOTO 4668
- IF LEN(ZUserIn$) > 25 THEN _
- * ------[ first line different ]------
- CALL QuickTPut1 (ZFGF$ + ZBG4$ + "25 Chars max" + _ ' DD082302
- ZEmphasizeOff$) : _ ' DD082302
- GOTO 4667
- CALL AllCaps (ZUserIn$)
- Subject$ = ZUserIn$
- * REPLACING old line(s) by new
- 4670 MsgTo$ = LEFT$(MsgTo$ + SPACE$(22),22)
- MsgFrom$ = LEFT$(MsgFrom$ + SPACE$(31),31)
- Subject$ = LEFT$(Subject$ + SPACE$(25),25)
- MsgPswd$ = LEFT$(MsgPswd$ + SPACE$(15),15)
- ZSubParm = 3
- CALL FileLock
- GET 1,CurHeader
- MID$(ZMsgRec$,37,22) = MsgTo$
- MID$(ZMsgRec$,6,31) = MsgFrom$
- MID$(ZMsgRec$,76,25) = Subject$
- MID$(ZMsgRec$,121,2) = MKI$(MsgSec)
- MID$(ZMsgRec$,101,15) = MsgPswd$
- IF LEFT$(MsgPswd$,6) = "^READ^" THEN _
- * ------[ first line different ]------
- MID$(ZMsgRec$,1,1) = STRING$(1,42) _ ' DD021301
- ELSE _
- MID$(ZMsgRec$,1,1) = SPACE$(1) ' DD021301
- PUT 1,CurHeader
- ZSubParm = 4
- CALL FileLock
- CALL QuickTPut1 (ZFGF$ + ZBG2$ + "Message header changed" + _ ' DD082302
- ZEmphasizeOff$) ' DD082302
- CALL SkipLine (1)
- RETURN
- '
- ' **** O - COMMAND FROM MAIN MENU (OPERATOR PAGE) ***
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 4700 CALL InitSysopChat ' DD091303
- IF ZSubParm < 0 THEN _
- GOTO 202
- IF ZPageStatus$ <> "PG!" THEN _ ' DD122607
- RETURN ' DD122607
- ZOutTxt$ = "Leave " + ZSysopFirstName$ + _ ' DD122607
- " a message?" + ZNoPrompt$ ' DD122607
- GOSUB 12999 ' DD122607
- IF NOT ZYes THEN _ ' DD122607
- RETURN ' DD122607
- CALL SkipLine (1) ' DD122607
- OrigSubject$ = "While You Were Gone" ' DD122607
- GOSUB 1801 ' DD122607
- RETURN
- '
- ' **** S - COMMAND FROM UTILITY MENU (STATISTICS) *** 'Pe 09/02/91
- '
- * DELETING old line(s)
- 4705
- 4708
- 4710
- 4730
- 4735
- 4740
- 4745
- 4747
- 4750
- 4755
- 4765
- 4770
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 4850 CALL ShowStatistics (HighestMsgRecord,CurUserCount,MaxMsgs) ' DD090401
- RETURN ' DD090203
- * DELETING old line(s)
- 4855
- 4857
- * REPLACING old line(s) by new
- 4900 CALL UpdtCalr ("Entered " + ZConfName$,3)
- * ------[ first line different ]------
- CALL SkipLine (1) ' DD031302
- CALL QuickTPut1 (ZFGF$ + ZBG1$ + "Welcome to " + _ ' DD031302
- ZFGE$ + ZConfName$ + ZEmphasizeOff$) ' DD082302
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 4905 IF NOT ZTurboLogon THEN _ ' Mpl090201
- GOSUB 1790
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 5110 CALL QuickTPut1 (ZUserLocation$ + " now " + ZWasCI$) ' DD012302
- WasA1$ = "Enter new " ' DD012302
- ZMacroMin = 99
- ZParseOff = ZTrue
- GOSUB 12960
- CALL NewPassword (ZFB2$ + "Enter new password" + _ ' DD062907
- ZEmphasizeOff$ + ZPressEnterExpert$,ZTrue) ' DD062907
- IF ZSubParm < 0 THEN _
- GOTO 202
- IF ZWasQ = 0 THEN _
- RETURN
- * REPLACING old line(s) by new
- 5125 IF ZMaxPswdChanges AND _
- ChangeThisSession > ZMaxPswdChanges AND _
- NOT ZSysop THEN _
- ZOutTxt$ = "No changes permitted" : _
- GOSUB 12975 : _
- RETURN _
- ELSE CALL SrchPasswrds (Found) : _
- IF NOT Found THEN _
- GOTO 5129 _
- ELSE ZOutTxt$ = "Temporary change" : _
- GOSUB 12975 : _
- ZPswd$ = ZTempPassword$ : _
- ZSecsPerSession! = ZTempTimeAllowed * 60 : _
- ZUserSecLevel = ZTempSecLevel : _
- GOSUB 41070 : _
- ZSysop = (ZUserSecLevel >= ZSysopSecLevel) : _
- CALL SetPrompt : _
- CALL XferType (2,ZTrue)
- IF ZActiveUserName$ = "SYSOP" THEN _
- * ------[ first line different ]------
- ZUserIn$(1) = STRING$(8,42) ' DD021301
- * REPLACING old line(s) by new
- 5129 IF ZOrigUserFile$ <> ZActiveUserFile$ THEN _
- * ------[ first line different ]------
- CALL QuickTPut1 (ZFGE$ + "Please Quit Conference to " + _ ' DD082302
- "change personal info" + ZEmphasizeOff$) : _ ' DD082302
- RETURN
- GOSUB 12989
- CALL OpenUser (ZHighestUserRecord)
- GOSUB 9450
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 5200 Call LinesPerPage ' DD030103
- RETURN
- * REPLACING old line(s) by new
- 5280 CALL BreakFileName (ZActiveMsgFile$,UserDrvPath$,ZWasDF$,ZWasY$,ZTrue)
- WasX$ = UserDrvPath$ + _
- ZConfName$ + _
- "U.DEF"
- CALL FindIt (WasX$)
- IF NOT ZOK THEN _
- * ------[ first line different ]------
- CALL BreakFileName (ZActiveUserFile$,UserDrvPath$,ZWasDF$,ZWasY$,ZTrue) : _
- WasX$ = UserDrvPath$ + _
- ZConfName$ + _
- "U.DEF"
- RETURN
- * REPLACING old line(s) by new
- 5290 CALL NextConf (ZTrue)
- IF ZHomeConf$ <> "" THEN _
- ConfMailJoin = ZTrue : _
- RETURN 1205
- IF ZLinkedConf$ = "" THEN _
- * ------[ first line different ]------
- CALL SkipLine (1) : _ ' DD031302
- CALL QuickTPut (ZFGF$ + ZBG1$ + _ ' DD031302
- "No conferences " + _ ' DD110501
- "Found to Join" + ZEmphasizeOff$,2) ' DD031302
- GOTO 5301
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 5300 GOSUB 45020 ' DD051404
- WasA1$ = ZConfMenu$
- CALL BreakFileName (ZActiveMessageFile$,MsgDrvPath$,WasX$,ZWasY$,ZTrue)
- ' CALL Talk (12,ZOutTxt$) ' DD060401
- * REPLACING old line(s) by new
- 5301 ZStackC = ZTrue
- * ------[ first line different ]------
- CALL SubMenu ("Join what, L)ist, M)ain, N)ext, S)ince P)ers, or Name ([Q]uit)",_ ' DD060101
- WasA1$,MsgDrvPath$,"M.DEF",",M,MAIN,N,S,P,Q,", _
- ZTrue,ZFalse,ZFalse,"C.DEF",WasX,ZFalse)
- IF ZWasQ = 0 THEN _
- RETURN
- CALL WordInFile (ZConfMailList$,ZWasZ$,ZOK) ' DD032401
- IF NOT ZOK THEN _ ' DD032401
- CALL QuickTPut1 (ZFGE$ + ZWasZ$ + ZFGC$ + _ ' DD032401
- " Not Found!" + ZEmphasizeOff$) : _ ' DD032401
- GOTO 5300 ' DD032401
- ZActiveUserName$ = ZOrigUserNameDgs$ 'Dgs-ALias
- ZFirstName$ = OrigFirstName$ 'Dgs-ALias
- IF ZSubParm = -1 THEN _
- RETURN 10595
- CALL SetSysOp ' Pe060893
- IF ZWasA THEN _ ' Pe060893
- ZActiveUserName$ = ZSysopFirstName$ + SPACE$(1) + ZSysopLastName$ : _ ' Pe060893
- ZFirstName$ = ZSysopFirstName$ ' Pe060893
- * REPLACING old line(s) by new
- 5323 IF ZWasZ$ = "MAIN" THEN _
- * ------[ first line different ]------
- ZWasZ$ = CHR$(77) 'M ' DD021301
- WasX = (ZWasZ$ = CHR$(77)) ' DD021301
- IF ZWasZ$ = ConfNameSave$ OR (WasX AND ZConfName$ = "MAIN") THEN _
- CALL QuickTPut1 (ZFGA$ + "You are already in " + _ ' DD082302
- ZFGB$ + ZConfName$ + ZEmphasizeOff$) : _ ' DD041703
- GOSUB 2350 : _ ' Pe042592
- RETURN
- IF ZUserIn$(ZAnsIndex+1) = "!" AND ZAnsIndex < ZLastIndex THEN _ ' KG012801
- ZTurboLogon = ZTrue : _ ' DD041702
- ZAnsIndex = ZAnsIndex + 1 ' KG012801
- ON INSTR("MNSPQ",ZWasZ$) GOTO 5350,5290,5292,5294,10550
- IF NOT ZOK THEN _
- GOTO 5300
- CLOSE 2
- '
- ' **** UPDATE PREVIOUS MESSAGE BASE CHECKPOINT RECORD ***
- '
- * REPLACING old line(s) by new
- 5328 WasX$ = ZConfName$ + _
- "C.DEF"
- CALL FindIt (WasX$)
- ZSubBoard = ZOK
- IF NOT ZSubBoard THEN _
- CALL BreakFileName (ZMainMsgFile$,MsgDrvPath$,ZWasDF$,ZWasY$,ZTrue) : _
- WasX$ = MsgDrvPath$ + WasX$ : _
- CALL FindIt (WasX$) : _
- ZSubBoard = ZOK
- IF ZSubBoard THEN _
- IF LEN(ZConfName$) = 6 THEN _
- * ------[ first line different ]------
- IF LEFT$(ZConfName$,4) = "RBBS" AND RIGHT$(ZConfName$,1) = CHR$(80) THEN _ ' DD021301
- ZSubBoard = ZFalse
- IF NOT ZSubBoard THEN _
- GOSUB 5280 : _
- ZFileName$ = ZWelcomeFileDrvPath$ + _
- ZConfName$ + _
- "W.DEF" _
- ELSE CALL ReadDef (WasX$) : _
- IF ZErrCode > 0 THEN _
- CALL UpdtCalr ("Error"+STR$(ZErrCode)+" reading config file "+WasX$,2) : _
- ZErrCode = 0 : _
- ZInConfMenu = ZFalse : _
- ZOutTxt$ = "error reading subboard" : _
- GOTO 5341 _
- ELSE WasX$ = ZMainUserFile$ : _
- ZFileName$ = "" : _
- CALL FindIt (ZMainMsgFile$) : _
- IF NOT ZOK THEN _
- ZOutTxt$ = "msg file missing for" : _
- ZInConfMenu = ZFalse : _
- GOTO 5341 _
- ELSE ZActiveMessageFile$ = ZMainMsgFile$ : _
- GOSUB 5343
- UpdateDate = ZTrue
- CALL FindIt (WasX$)
- IF ZOK THEN _
- GOTO 5330
- '
- ' ***** NO USER FILE - A PUBLIC CONFERENCE ****
- '
- ZMainUserFile$ = PrevMainUser$
- IF (ZUserSecLevel < AutoAddSec) THEN _
- GOTO 5340
- GOTO 5345
- 'WasX$ = ZMainUserFile$
- 'ZSysopPswd1$ = ""
- 'ZSysopPswd2$ = ""
- '
- ' **** CHECK CONFERENCE USER'S FILE ***
- '
- * REPLACING old line(s) by new
- 5335 IF Found THEN _
- GOSUB 9500 : _
- ZMainUserFileIndex = -(ZSubBoard * ZUserFileIndex)_
- -((NOT ZSubBoard) * ZMainUserFileIndex) : _
- Temp = -(ZSubBoard * ZMinLogonSec) _
- -((NOT ZSubBoard) * AutoAddSec) : _
- GOSUB 5135 : _
- GOSUB 5296 : _
- WasI = (ZUserSecLevel < OrigMainSec) : _
- WasJ = (ZUserSecLevel < Temp) : _
- WasK = (WasI AND WasJ) : _
- IF WasK THEN _
- ZOutTxt$ = "you have been locked out of" : _
- GOTO 5341 _
- ELSE GOSUB 5375 : _
- GOTO 5345
- '
- ' **** USER NOT FOUND. AUTO-ADD TO SUBBOARD IF SUFFICIENT SECURITY ***
- '
- ZNewUser = ZTrue
- IF ZSubBoard THEN _
- AutoAddSec = ZMinLogonSec
- IF (ZOrigSec >= AutoAddSec) AND _
- (ZUserFileIndex > 0) AND (ZMainUserFileIndex > 0) THEN _
- LSET ZUserRecord$ = UserRecordHold$ : _
- * ------[ first line different ]------
- CALL QuickTPut1 (ZFGE$ + "MEMBER " + ZFG2$ + _ ' DD082302
- "access granted in " + ZFGB$ + ZConfName$ + _ ' DD082302
- ZEmphasizeOff$) : _ ' DD082302
- MID$(ZUserOption$,3,2) = MKI$(0) : _
- MID$(ZUserOption$,1,2) = MKI$(0) : _
- ZActiveUserName$ = LEFT$(UserRecordHold$,30) : _
- CALL Trim (ZActiveUserName$) : _
- Temp = -(ZSubBoard * ZDefaultSecLevel) _
- -((NOT ZSubBoard) * ZUserSecSave) : _
- CALL SetSysOp : _
- Temp = -(ZWasA * ZSysopSecLevel) - ((NOT ZWasA) * Temp) : _
- LSET ZSecLevel$ = MKI$(Temp) : _
- ZUserSecLevel = Temp : _
- GOSUB 5375 : _
- ZPageLength = ZPageLengthDef : _
- GOSUB 12986 : _
- GOSUB 12630 : _
- UpdateDate = ZTrue : _
- Found = ZTrue : _
- GOTO 5335
- IF ZOrigSec >= AutoAddSec THEN _
- CALL QuickTPut1 (ZFGE$ + "GUEST " + ZFG2$ + _ ' DD082302
- "privileges granted in " + ZFGB$ + ZConfName$ + _ ' DD082302
- ZEmphasizeOff$) : _ ' DD082302
- ZActiveUserFile$ = PrevUser$ : _
- UpdateDate = ZFalse : _
- ZUserFileIndex = PrevIndex : _
- GOSUB 5382 : _
- ZUserFileIndex = 0 : _
- GOTO 5345
- ZNewUser = ZFalse
- * REPLACING old line(s) by new
- 5340 IF ZInConfMenu THEN _
- * ------[ first line different ]------
- ZOutTxt$ = "Conference NOT available with your Access Level!" _ ' DD081101
- ELSE ZOutTxt$ = "Security too low for Conference" ' UG062402
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 5341 ZOutTxt$ = ZOutTxt$ + SPACE$(1) + ZConfName$ + "." ' DD062402
- '
- ' **** CANNOT JOIN THE REQUESTED CONFERENCE. THEREFORE, GO BACK ***
- '
- GOSUB 1397
- ZConfName$ = PrevConfName$
- ConfFileName$ = ZConfName$
- IF ZSubBoard THEN _
- CALL ReadDef (PrevDef$)
- ZActiveMessageFile$ = PrevMsg$
- GOSUB 5343
- ZUserFileIndex = PrevIndex
- ZActiveUserFile$ = PrevUser$
- GOSUB 5382
- ZConfMode = ConfModeSave
- GOSUB 12987
- ZAnsIndex = 0
- ZLastIndex = 0
- GOTO 5301
- '
- ' **** RESTORE A MESSAGE BASE ***
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 5345 DgsStl$ = "" 'Dgs-ALias
- WHILE DgsAlias$ = "" 'Dgs-ALias
- CALL AliasDgs (ZConfName$,ZOrigUserNameDgs$,DgsAlias$, _ 'Dgs-ALias
- DgsStl$,DgsFileName$) 'Dgs-ALias
- WEND 'Dgs-ALias
- DgsAlias$ = "" 'Dgs-ALias
- ZNewsFileName$ = ZWelcomeFileDrvPath$ + ZConfName$ + ".NWS"
- CALL DeLink (ZConfName$)
- ConfNameSave$ = ZConfName$
- ZConfName$ = ZConfName$ + SPACE$(1) + MID$("ConferenceSubboard",1-10*ZSubBoard,10) ' DD021301
- IF ZGlobalSysop THEN _
- ZActiveUserName$ = "SYSOP"
- ZMarkedMsgs$ = ""
- ZMarkedFiles$ = "" 'Pe 03/21/92
- * REPLACING old line(s) by new
- 5348 GOSUB 12987
- GOSUB 12990
- * ------[ first line different ]------
- BoardCheckDate$ = LEFT$(STRING$(2,48) + CHR$(45) + STRING$(2,48) + _ ' DD021301
- CHR$(45) + STRING$(2,48),-ZNewUser*8) + _ ' DD021301
- LEFT$(ZLastDateTimeOn$,-(NOT ZNewUser)*8)
- IF ZSubBoard THEN _
- ZHasDoored = ZFalse : _
- ZActiveFMSDir$ = "" : _
- ZTimeLoggedOn$ = TIME$ : _
- RETURN 108
- ZNewUser = ZFalse
- GOSUB 827
- IF UpdateDate THEN _
- ZTimeLoggedOn$ = TIME$ : _
- LSET ZLastDateTimeOn$ = ZCurDate$ + _
- SPACE$(1) + _ ' DD021301
- ZTimeLoggedOn$ : _
- GOSUB 9440 : _
- GOSUB 12991
- IF PrevUSL <> ZUserSecLevel THEN _
- CALL SetPrompt
- GOSUB 1241
- RETURN 852
- '
- ' **** JOIN M)AIN ***
- '
- * REPLACING old line(s) by new
- 5350 IF ZConfName$ <> "MAIN" THEN _
- * ------[ first line different ]------
- CALL SkipLine (1) : _ ' DD031302
- CALL QuickTPut1 (ZFG2$ + "Rejoining " + ZFGB$ + _ ' DD031302
- OrigMsgName$ + ZEmphasizeOff$) ' DD082302
- ZActiveUserName$ = ZOrigUserNameDgs$ 'Dgs-ALias
- ZFirstName$ = OrigFirstName$ 'Dgs-ALias
- CALL DeLink (ZConfName$)
- ConfFileName$ = OrigMsgName$
- ZNewsFileName$ = OrigNewsFileName$
- ZTurboLogon = ZTrue ' Mpl090201
- ZMarkedMsgs$ = ""
- ZMarkedFiles$ = "" 'Pe 04/18/92
- ZWasQ = 0
- ZNewUser = ZFalse
- ZInConfMenu = ZTrue
- IF ZActiveUserName$ = "SYSOP" THEN _
- ZActiveUserName$ = ZSecretName$ : _
- CALL Trim (ZActiveUserName$)
- ZConfigFileName$ = ZOrigCnfg$
- CALL ReadDef (ZConfigFileName$)
- IF ZOrigMsgFile$ <> ZActiveMessageFile$ THEN _
- ZActiveMessageFile$ = ZOrigMsgFile$ : _
- GOSUB 5343
- IF ZOrigUserFile$ <> ZActiveUserFile$ THEN _
- GOSUB 5380 : _
- ZActiveUserFile$ = ZOrigUserFile$ : _
- ZActiveUserName$ = ZOrigUserName$ : _
- GOSUB 12598 : _
- GOSUB 12990 : _
- IF Found THEN _
- GOSUB 9500 : _
- ZMainUserFileIndex = ZUserFileIndex : _
- CALL SetPrompt : _
- CALL XferType (2,ZTrue) _
- ELSE ZUserFileIndex = 0 : _
- ZMainUserFileIndex = 0
- CALL UpdtCalr ("Exited " + ZConfName$,3) ' DD031101
- ZConfName$ = "MAIN"
- ConfNameSave$ = ZConfName$
- GOSUB 2350
- ZUplds = ZGlobalUplds
- ZDnlds = ZGlobalDnlds
- ZDLToday! = ZGlobalDLToday!
- ZBytesToday! = ZGlobalBytesToday!
- ZDLBytes! = ZGlobalDLBytes!
- ZULBytes! = ZGlobalULBytes!
- ZDropTimes = ZGlobalDropTimes ' DD091401/DROP
- ZBankTime = ZGlobalBankTime
- * REPLACING old line(s) by new
- 5380 IF ZUserFileIndex < 1 THEN _
- RETURN
- IF ZAdjustedSecurity AND NOT ZSysop THEN _
- LSET ZSecLevel$ = MKI$(ZUserSecLevel) : _
- ZUserSecSave = ZUserSecLevel
- * ------[ first line different ]------
- IF ZSubBoard THEN _ 'Dgs-ALias
- ZActiveUserName$ = ZOrigUserNameDgs$ : _ 'Dgs-ALias
- ZFirstName$ = OrigFirstName$ 'Dgs-ALias
- CALL UpdateU (ZFalse)
- RETURN
- '
- ' ***** RESTORE A USER RECORD ****
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 5400 CALL ReviewProfile ' DD090203
- RETURN ' DD090203
- '
- ' ***** B - COMMAND FROM UTILITY MENU (Bank Time) ****
- '
- * DELETING old line(s)
- 5410
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 5500 IF ZUserSecLevel < ZOptSec(27) OR _ ' DD070202
- ZTempMaxBank <= 0 THEN RETURN ' DD032902
- GOSUB 5501 ' DD031004
- CALL BankTime
- CALL SmartPause ' DD121501
- RETURN 'PE 02/11/89
- * INSERTING new line(s)
- 5501 CALL RptTime ' Mpl090201
- RETURN ' Mpl090201
- * REPLACING old line(s) by new
- 8030 MsgTo$ = MID$(ZMsgRec$,37,22)
- * ------[ first line different ]------
- IF (ZNewUserDGS AND INSTR(MsgTo$,"NEWUSER")) THEN _ 'DGS-NEW
- MsgTo$ = ZActiveUserName$ 'DGS-NEW
- CALL SmartText(MsgTo$,ZFalse,ZFalse,ZTrue) 'Pe 02/06/93
- CALL Trim (MsgTo$) ' Mpl090201
- IF ZNumHeaders > 1 THEN _
- MsgTo$ = MsgTo$ + " et al."
- * REPLACING old line(s) by new
- 8050 MsgFrom$ = MID$(ZMsgRec$,6,31)
- CALL Trim (MsgFrom$)
- IF LEN(MsgFrom$) < 23 THEN _
- MsgFrom$ = MsgFrom$ + _
- SPACE$(23 - LEN(MsgFrom$))
- * ------[ first line different ]------
- Year$ = MID$(STR$(ZMsgPtr(ZActiveMessages,2)),2) ' DD040706
- CALL Trim (Year$) ' DD020902
- IF ZUserSecLevel >= ZSecChangeMsg THEN _
- Year$ = Year$ + " SL:" + STR$(MsgSec) : _ ' DD020902
- CALL Trim (year$) ' DD020902
- IF MID$(ZMsgRec$,101,1) = CHR$(33) THEN _ '! ' DD021301
- MID$(ZMsgRec$,1,1) = CHR$(33) ' DD021301
- Year2$ = MID$(ZMsgRec$,2,4) ' DD020902
- CALL Trim (Year2$) ' DD020902
- IF LEFT$(ZMsgRec$,1) = SPACE$(1) THEN Year3$ = "Public" _ ' DD021301
- ELSE IF LEFT$(ZMsgRec$,1) = STRING$(1,42) THEN Year3$ = "Private" _' DD021301
- ELSE Year3$ = "Password" ' DD020902
- ZOutTxt$ = ZFG2$ + "Msg #: " + _ ' DD091901
- ZFGA$ + Year2$ + ZFG2$ + " of " + ZFGA$ + _ ' DD091901
- Year$ + SPACE$ (26-LEN(Year$)-LEN(Year2$)) + _ ' DD020902
- ZFG2$ + "Area: " + ZFGA$ + ZConfName$ ' DD020902
- Year$ = ZFG3$ + SPACE$(7) + "Sent: " + ZFGB$ + _ ' DD091901
- MID$(ZMsgRec$,68,8) + _ ' DD020902
- SPACE$(1) + _ ' DD021301
- MID$(ZMsgRec$,59,5) ' DD020902
- IF NOT ZRet THEN _
- IF ReadMsgs THEN _
- CALL QuickTPut1 (ZOutTxt$) : _ ' DD020902
- WasX$ = MsgFrom$ : _
- CALL NameCaps(WasX$) : _ 'SM091909
- CALL CheckColor (WasX$,SubInHeader$,ZFGE$) : _ ' DD081801
- CALL QuickTPut1 (ZFG3$ + " From: " + _ ' DD091901
- ZFGB$ + WasX$ + Year$) : _ ' DD091901
- GOSUB 8076 : _
- WasX$ = MsgTo$ : _
- CALL NameCaps(WasX$) : _ 'SM091909
- CALL CheckColor (WasX$,SubInHeader$,ZFGC$) : _ ' DD081801
- CALL QuickTPut1 (ZFG5$ + " To: " + ZFGD$ + _ ' DD091901
- WasX$ + SPACE$(2) + ZFG5$ + Year$) : _ ' DD021301
- CALL NameCaps(Subject$) : _ 'SM091909
- ZOutTxt$ = ZFG4$ + " Re: " + ZFGC$ + _ ' DD091901
- Subject$ + SPACE$ (26-LEN(Subject$)) + _ ' DD020902
- ZFG4$ + " Status: " + ZFGC$ + _ ' DD020902
- Year3$ + ZEmphasizeOff$ : _ ' DD020902
- CALL CheckColor (ZOutTxt$,SubInHeader$,ZFGC$) : _ ' DD030801
- CALL AllCaps (Subject$) _ 'SM091909
- ELSE ZOutTxt$ = ZFG2$ + LEFT$(ZMsgRec$,5) + _ ' DD090705
- SPACE$(1) + _ ' DD021301
- ZFGB$ + MID$(ZMsgRec$,68,5) + _ ' DD091901
- SPACE$(1) + _ ' DD021301
- + ZFGE$ + LEFT$(MsgFrom$,18) + _ ' DD091901
- ZFGF$ + " -> " + _ ' DD090705
- + ZFGD$ + LEFT$(MsgTo$,19) + _ ' DD091901
- SPACE$(1) + _ ' DD021301
- + ZFGC$ + LEFT$(Subject$,24) + ZEmphasizeOff$ : _ ' DD091901
- CALL CheckColor (ZOutTxt$,SubInHeader$,"") : _
- GOTO 8080
- IF QuickScanMsgs OR _
- ScanMsgs THEN _
- GOTO 8080 _
- ELSE GOTO 8077
- * REPLACING old line(s) by new
- 8076 IF MID$(ZMsgRec$,123,6) = STRING$(6,0) OR _
- MID$(ZMsgRec$,123,6) = SPACE$(6) THEN _
- * ------[ first line different ]------
- Year$ = SPACE$(5) + "Rcvd: " + ZFGD$ + "-NO-" : _ ' DD091901
- RETURN
- Year$ = SPACE$(5) + "Rcvd: " + ZFGD$ + _ ' DD091901
- RIGHT$(STR$(ASC(MID$(ZMsgRec$,123,1))),2) + _
- CHR$(45) + _ ' DD021301
- RIGHT$(STR$(ASC(MID$(ZMsgRec$,124,1))),2) + _
- CHR$(45) + _ ' DD021301
- RIGHT$(STR$(ASC(MID$(ZMsgRec$,125,1))),2) + _
- SPACE$(1) + _ ' DD021301
- RIGHT$(STR$(ASC(MID$(ZMsgRec$,126,1))),2) + _
- CHR$(58) + _ ' DD021301
- RIGHT$(STR$(ASC(MID$(ZMsgRec$,127,1))),2)
- FOR WasI = 12 + LEN(ZFGD$) TO 19 + LEN(ZFGD$) ' DD032801
- IF MID$(Year$,WasI,1) = SPACE$(1) THEN _ ' DD021301
- MID$(Year$,WasI,1) = CHR$(48) '0 ' DD021301
- NEXT
- FOR WasI = 21 + LEN(ZFGD$) TO 25 + LEN(ZFGD$) ' DD032801
- IF MID$(Year$,WasI,1) = SPACE$(1) THEN _ ' DD021301
- MID$(Year$,WasI,1) = CHR$(48) ' DD021301
- NEXT
- RETURN
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 9000 IF NOT ZJustSearching THEN _ 'Pe 05/31/91
- GOSUB 4656: _
- CALL SkipLine (1) : _
- ZLinesInMsg = 1 : _
- MsgDimXtra = 250 : _ 'was 150 ' DD021701
- REDIM ZOutTxt$(MsgDimXtra) : _
- Remain$ = "" : _
- HiLitedLine = 0
- RecToRead = ZMsgPtr(ZMsgDimIndex,1) + ZNumHeaders - 1
- OutRec = ZMsgPtr(ZMsgDimIndex,1) + ZNumHeaders - 1 ' RS090802
- FOR WasX = ZNumHeaders + 1 TO VAL(MID$(ZMsgRec$,117,4))
- WasJ = 1
- RecToRead = RecToRead + 1
- GET 1, RecToRead
- IF ZJustSearching THEN _ 'Pe 05/30/91
- ZOutTxt$ = ZMsgRec$ : _
- CALL AllCaps (ZOutTxt$) : _
- HiLitePos = INSTR(ZOutTxt$,SearchString$) : _
- IF HiLitePos > 0 THEN _
- SearchCt = 0 : _
- HiLiteRec = LOC(1) : _
- WasX = 9999 : _
- GOTO 9090 _
- ELSE GOTO 9090
- * REPLACING old line(s) by new
- 9085 IF LEFT$(ZOutTxt$,1) = ZStartOfHeader$ OR _
- LEFT$(ZOutTxt$,LEN(ZScreenOutMsg$)) = ZScreenOutMsg$ THEN _
- GOTO 9050
- ZOutTxt$(ZLinesInMsg) = ZOutTxt$
- IF Bracketed THEN _
- Bracketed = ZFalse : _
- HiLitedLine = ZLinesInMsg
- ZLinesInMsg = ZLinesInMsg + 1
- IF ZLinesInMsg > MsgDimXtra THEN _
- ZLinesInMsg = ZLinesInMsg - 1 : _
- CALL SkipLine (1) : _
- * ------[ first line different ]------
- CALL QuickTPut1 (ZFGC$ + "Message too long." + ZCRLf$ + _ ' DD082302
- "Truncated to " + ZFGF$ + STR$(MsgDimXtra) + _ ' DD082302
- ZFGC$ + " lines!" + ZEmphasizeOff$) : _ ' DD082302
- ZOutTxt$ = "" : _
- RETURN
- CALL CheckColor (ZOutTxt$,SubInHeader$,ZEmphasizeOff$) ' DD060702
- IF NOT DontPrint THEN _
- CALL SmartText(ZoutTxt$,ZFalse,ZFalse,ZTrue) : _ 'Pe 02/06/93
- GOSUB 12979 : _
- IF ZRet THEN _
- ZOutTxt$ = "" : _
- RETURN _
- ELSE CALL AskMore ("",ZTrue,ZTrue,ZAnsIndex,ZFalse) : _
- IF ZNo THEN _
- DontPrint = ZTrue
- GOTO 9050
- * REPLACING old line(s) by new
- 9090 NEXT
- IF DontPrint = ZTrue THEN _
- GOTO 5160
- * ------[ first line different ]------
- IF ZJustSearching AND HiLitePos > 0 THEN _
- ZJustSearching = ZFalse : _ 'PE 05/30/91
- GET 1,ZMsgPtr(ZMsgDimIndex,1) : _
- GOSUB 8000 : _
- GOTO 9000
- ZOutTxt$ = ""
- RETURN
- '
- ' * C - COMMAND FROM UTILITY MENU (Who Uploaded What?) ' DD090201
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 9100 CALL WhoDidIt ' Mpl090201
- CALL AskMore ("End of Listing",ZTrue,ZFalse,WasX,ZTrue) 'Pe 01/25/92
- RETURN ' Mpl090201
- '
- ' * WRITE A RECORD TO THE RBBS-PC "USER" FILE
- '
- * REPLACING old line(s) by new
- 9450 IF LOF(5) < 1 THEN _
- ZWasDF$ = ZActiveUserFile$ : _
- RETURN 13600
- FIELD 5,31 AS ZUserName$, _
- 15 AS ZPswd$, _
- 2 AS ZSecLevel$, _
- 14 AS ZUserOption$, _
- 24 AS ZCityState$, _
- * ------[ first line different ]------
- 1 AS MachineType$, _ ' DD091401/DROP
- 1 AS ZDropTimes$, _ ' DD091401/DROP
- 1 AS ZBankTime$,_
- 4 AS ZTodayDl$, _
- 4 AS ZTodayBytes$, _
- 4 AS ZDlBytes$, _
- 4 AS ZULBytes$, _
- 14 AS ZLastDateTimeOn$, _
- 3 AS ZListNewDate$, _
- 2 AS ZUserDnlds$, _
- 2 AS ZUserUplds$, _
- 2 AS ZElapsedTime$
- FIELD 5,128 AS ZUserRecord$
- RETURN
- '
- ' * GET USER DEFAULTS
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 9701 CALL SubMenu ("Read what bulletin(s), L)ist, S)ince, N)ews" + ZPressEnter$, _ ' DD123002
- WasA1$, ZBulletinPrefix$,"",ReturnOn$,_
- ZFalse,ZFalse,ZFalse,"",WasX,ZTrue)
- IF ZWasQ = 0 THEN _
- RETURN
- CALL CheckCarrier
- IF ZSubParm = -1 THEN _
- RETURN 10595
- IF (ZWasZ$ = STRING$(1,42) OR ZWasZ$ = CHR$(83)) THEN _ 'S ' DD021301
- ZPrevPrefix$ = "" : _
- GOTO 9760
- ZStopInterrupts = ZFalse
- IF ZWasZ$ = CHR$(78) THEN _ 'N ' DD021301
- GOSUB 1242 : _
- IF WasZ <> 0 THEN _
- CALL QuickTPut1 (ZFG3$ + "No " + ZFGB$ + "NEWS " + _ ' DD082302
- ZFG3$ + "available" + ZEmphasizeOff$) : _ ' DD082302
- GOTO 9701 _
- ELSE GOTO 9703
- CALL BufFile (ZFileName$,ZAnsIndex)
- * REPLACING old line(s) by new
- 9760 ' **** [entry when want review plus chance to read] *********
- GOSUB 9750
- * ------[ first line different ]------
- IF NumNewBullets > 0 THEN ' DD040804
- ZLastIndex = NumNewBullets + 1 ' DD040804
- DO ' DD040804
- ZOutTxt$ = ZFGD$ + "Read ALL new bulletins" + _ ' DD051701
- ZEmphasizeOff$ + ZNoPrompt$ ' DD051701
- GOSUB 12999 ' DD040804
- CALL AllCaps (ZUserIn$) ' DD040804
- LOOP UNTIL ZWasQ = 0 OR INSTR("YN",ZUserIn$) <> 0 ' DD051701
- IF ZWasQ > 0 AND ZUserIn$ <> "N" THEN ' DD051701
- GOSUB 9761 ' DD040804
- ZAnsIndex = 0 ' DD040804
- ZLastIndex = NumNewBullets ' DD040804
- GOTO 9700
- END IF ' DD040804
- END IF ' DD040804
- ZLastIndex = 0
- IF ZAnsIndex < 1 THEN _
- RETURN
- GOTO 9701
- * INSERTING new line(s)
- 9761 IF ZUserIn$ <> "Y" THEN _ ' DD051701
- NumNewBullets = ZWasQ _ ' KG012401
- ELSE _ ' KG012401
- FOR Temp = 1 TO NumNewBullets : _ ' KG012401
- ZUserIn$(Temp) = ZOutTxt$(Temp+1) : _ ' KG012401
- NEXT ' KG012401
- RETURN ' KG012401
- '
- ' * W - COMMAND FROM MAIN MENU (WHO'S ON THE OTHER NODES)
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 9800 CALL PageEm (ZNodeRecIndex - 1, ZMaxNodes)
- REM ** 'ZNodeRecIndex - 1' is the users actual node number.. is there
- REM ** already a variable for this?? I dunno..
- REM **
- REM ** PageEm will call WhosOn, then ask if they want to page someone
- REM ** if so, it'll call CBTrueChat
- REM ** etc..
- CLOSE 10 ' JM092401/RCHAT
- GOSUB 5344
- RETURN
- '
- ' * 1 - COMMAND FROM SYSOP MENU (DISPLAY COMMENTS)
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 10070 'CALL Muzak (7) ' DD062502
- ZFileName$ = ZCmntsFile$
- IF NOT ZStopInterrupts THEN _
- ZOutTxt$ = "* Ctrl-K(^K) / ^X aborts. ^S suspends, ^Q resumes *" : _
- GOSUB 12976
- GOSUB 20150
- GOSUB 10530 ' DD122402
- RETURN
- '
- ' * U - COMMAND FROM UTILITY MENU (DISPLAY USERS)
- ' * 2 - COMMAND FROM SYSOP MENU (DISPLAY USERS)
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 10090 'CALL Muzak (6) ' DD062502
- ZOutTxt$ = "List - U)sers, R)ecent callers"
- ZMacroMin = 2
- CALL SkipLine (1)
- GOSUB 12930
- IF ZWasQ = 0 THEN _
- RETURN
- CALL AraAllCaps (ZUserIn$(),ZAnsIndex)
- ON INSTR("UR",ZUserIn$(ZAnsIndex)) + 1 GOTO 10090,10096,10093
- * REPLACING old line(s) by new
- 10096 UserRecordHold$ = ZUserRecord$
- * ------[ first line different ]------
- ' GOSUB 12700 ' DD062304
- CALL OpenUser (ZHighestUserRecord)
- GOSUB 9450
- ZStopInterrupts = ZFalse
- WasI = 1
- ZWasZ$ = ZSecretName$
- * REPLACING old line(s) by new
- 10097 IF WasI > ZHighestUserRecord OR ZRet THEN _
- GOTO 10099
- GET 5,WasI
- WasX$ = MID$(ZUserRecord$,ZStartHash,ZLenHash)
- * ------[ first line different ]------
- IF ASC(WasX$)=0 OR LEFT$(WasX$,3)=SPACE$(3) THEN _ ' DD021301
- GOTO 10098
- IF INSTR(WasX$,ZWasZ$) > 0 OR ZSysopSecLevel <= CVI(MID$(ZUserRecord$,47,2)) THEN _
- IF NOT ZSysop THEN _
- GOTO 10098
- CALL AskMore ("",ZTrue,ZTrue,WasXX,ZFalse)
- IF ZNo OR ZSubParm = -1 THEN _
- GOTO 10099
- ZOutTxt$ = LEFT$(WasX$,36) + ZCityState$ + ZLastDateTimeOn$
- GOSUB 12979
- * REPLACING old line(s) by new
- 10391 CALL ChangeInt (ZFalse,"Recover Msg #",0,1,9999)
- IF ZWasQ = 0 THEN _
- RETURN
- MsgToRecover = ZTestedIntValue
- GOSUB 5344
- ActionFlag = ZFalse
- * ------[ first line different ]------
- CALL RecoverMsg (MsgToRecover,FirstMsgRecord,ActionFlag,ZConfName$) 'Pe 06/09/91
- MsgRecovered = MsgRecovered OR ActionFlag
- GOTO 10391
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 10530 ZOutTxt$ = "Delete comments" + ZNoPrompt$ ' DD091202
- GOSUB 12995
- IF ZYes THEN _
- CALL OpenOutW (ZCmntsFile$)
- CLOSE 2
- * REPLACING old line(s) by new
- 10553 CALL UpdtCalr ("Time limit exceeded",1)
- * ------[ first line different ]------
- CALL QuickTPut1 (ZFGF$ + ZBG4$ + "Sorry " + ZFGE$ + _ ' DD082302
- ZFirstName$ + ZFGF$ + " Your time limit " + _ ' DD082302
- "has expired" + ZEmphasizeOff$) ' DD082302
- GOTO 10562 'Pe 02/03/90
- '
- ' * Q - COMMAND FROM GLOBAL FUNCTIONS
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 10560 GOSUB 41000 'Pe 02/04/90
- IF ZExpertUser THEN ZLogoff$ = CHR$(76) 'L ' DD021301
- * INSERTING new line(s)
- 10562 'GOSUB 5501 ' DD051103
- 10563 GOSUB 44000 ' DD051103
- CALL UpdtCalr ("Logged off",1) ' DD050903
- ' CALL Muzak (4) ' DD062502
- GOTO 10595
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 10570 GOSUB 41000 'Pe 02/04/90
- ZLogoff$ = "" ' Mpl090201
- GOSUB 45020 ' DD051504
- CALL SkipLine (1) ' DD021301
- IF ZExpertUser THEN _ ' DD123001
- GOTO 10575 ' DD123001
- * INSERTING new line(s)
- 10571 ZStopInterrupts = ZTrue 'Pe 04/17/92
- ZDeleteInvalid = ZTrue ' DD022501
- IF ZTempMaxBank < 1 THEN _ ' DD022501
- HoldOpts$ = ZInvalidOpts$ : _ ' DD022501
- ZInvalidOpts$ = ZInvalidOpts$ + CHR$(66) ' DD022501
- ZFileName$ = ZWelcomeFileDrvPath$ + "LOGOFF.MNU" ' DD060403
- GOSUB 1790 ' DD022501
- IF HoldOpts$ <> "" THEN _ ' DD022501
- ZInvalidOpts$ = HoldOpts$ ' DD022501
- ZStopInterrupts = ZFalse 'Pe 04/17/92
- ZDeleteInvalid = ZFalse ' DD022501
- 10575 ZOutTxt$ = ZFGE$ + ZConfName$ + + ZFG2$ + CHR$(58) + _ ' DD021301
- ZEmphasizeOff$ ' DD123001
- GOSUB 12978 ' DD123001
- CALL DispTimeRemain (MinsRemaining) ' DD123001
- ZOutTxt$ = ZFGF$ + "LOGOFF " + ZFG2$ + "command" + ZEmphasizeOff$' DD123001
- IF NOT ZCmndsInPrompt THEN _ ' DD123001
- GOSUB 12999 : _ ' DD123001
- GOTO 10576 ' DD123001
- IF ZExpertUser THEN _ ' DD123001
- ZOutTxt$ = ZOutTxt$ + " (?,H,A" + _ ' DD123001
- MID$(",B",1, - (ZTempMaxBank > 0) * 2) + _ ' DD123001
- ",C,[G])" _ ' DD123001
- ELSE _ ' DD123001
- ZOutTxt$ = ZOutTxt$ + " (?,H)elp,A)bort" + _ ' DD123001
- MID$(",B)ank",1, - (ZTempMaxBank > 0) * 6) + _ ' DD123001
- ",C)omment,[G]oodbye)" ' DD123001
- GOSUB 12999 'Pe 04/25/92
- 10576 CALL AllCaps (ZUserIn$) ' Mpl090201
- WasX = INSTR("ABCGH?",ZUserIn$) ' DD123001
- IF ZUserIn$ = "" THEN _ ' Mpl090201
- GetOut = ZTrue : _ ' Mpl090201
- GOTO 10562 ' Mpl090201
- ON WasX GOTO 10580,10583,10581,10582,10571,10571 ' DD123001
- GOTO 10575 ' DD082001
- 10580 RETURN ' DD082001
- 10581 ZLogOff$ = CHR$(71) 'G ' DD021301
- GetOut = ZTrue ' Mpl090201
- GOSUB 1800
- 10582 GetOut = ZTrue ' DD082001
- ZLogOff$ = CHR$(76) 'L ' DD021301
- GOTO 10560 ' DD090203
- 10583 IF ZTempMaxBank <= 0 THEN GOTO 10575 ' DD032902
- GetOut = Ztrue ' DD062503
- ZLogOff$ = CHR$(76) ' DD021301
- IF ZTempMaxBank > 0 THEN CALL BankTime ' DD062503
- GOTO 10562 ' DD062503
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 10590 CALL UpdtCalr ("Sleep disconnect",1) ' DD050903
- ZSubBoard = ZFalse
- * REPLACING old line(s) by new
- 10595 CALL GetTime
- GOSUB 13700
- * ------[ first line different ]------
- IF ZDnldCompleted = ZTrue AND ZAutoEnd = 1 THEN _ 'AUTOLOGOFF MOD
- ZAutoLogoffReq = ZTrue : _ 'Pe 10/22/91
- GetOut = ZTrue : _ ' DD011103
- GOSUB 46000 'Pe 02/03/90
- ZSubParm = 0
- CALL Carrier
- IF ZSubParm = -1 THEN _
- GOTO 10597
- IF ZConfName$ = OrigMsgName$ THEN _
- GetOut = ZTrue
- IF (ZSubBoard AND _ ' DD071701
- (NOT GetOut) AND _ ' DD071701
- (NOT ZSleepDisconnect) AND _ ' DD071701
- (NOT ZAutoLogoffReq)) THEN ' DD071701
- GOSUB 5380 ' DD071701
- ZHomeConf$ = CHR$(77) 'M ' DD071701
- CALL QuickTPut1 (ZFGF$ + ZBG4$ + "Time limit " + _ ' DD082302
- "exceeded in " + ZFGE$ + ZConfName$ + _ ' DD082302
- ZEmphasizeOff$) ' DD071701
- ZSubBoard = ZFalse ' DD071701
- IF GetOut = ZFalse THEN ' DD071701
- GOTO 1205 ' DD010205
- END IF ' DD071701
- ELSE ' DD071701
- IF ZSubBoard AND ZAutoLogOffReq THEN ' DD071701
- GOSUB 44000 ' DD071701
- END IF ' DD071701
- END IF ' DD071701
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 10597 CALL SayGoodby ' DD051103
- IF NOT ZDontShowLogOff THEN ' DD062806
- GOSUB 5501 ' DD051103
- END IF ' DD062806
- CALL UpdateU (ZTrue)
- GOTO 13540
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 10698 'CALL Muzak (5) ' DD062502
- IF ZFunctionKey = 22 OR ZFunctionKey = 23 THEN _ ' DD092303/LINENOISE
- GOTO 13545
- ZOutTxt$ = ZFGE$ + ZBG4$ + " Access denied! " + ZFG7$ + ZBG0$ ' DD090602
- GOSUB 12976
- CALL DelayTime (8 + ZBPS)
- GOTO 13545
- '
- ' * M - COMMAND FROM UTILITY MENU (CHANGE MARGINS)
- '
- * REPLACING old line(s) by new
- 10930 IF (ZRequiredRings = 0 AND NOT ZNoDoorProtect) THEN _
- * ------[ first line different ]------
- CALL QuickTPut1 (ZFGF$ + ZBG4$ + _ ' DD082302
- "Remote DOS unavailable" + ZEmphasizeOff$) : _ ' DD082302
- RETURN
- * REPLACING old line(s) by new
- 10932 IF ZLocalUser AND NOT ZDebug THEN _
- * ------[ first line different ]------
- CALL QuickTPut1 (ZFGF$ + ZBG4$ + "Only for remote " + _ ' DD082302
- "SysOps" + ZEmphasizeOff$) : _ ' DD082302
- RETURN
- CALL DosExit
- ZSubParm = -9
- CALL FindFKey
- GOTO 202
- ' ' DD020602/SFILE
- ' * 8 - COMMAND FROM SYSOP MENU (FMS FILE MAINTENANCE) ' DD020602/SFILE
- ' ' DD020602/SFILE
- * INSERTING new line(s)
- 10950 CALL Sysop8 ' DD020602/SFILE
- IF ZGetExtDesc THEN
- GOSUB 2008
- GOTO 10950
- END IF
- RETURN ' DD020602/SFILE
- '
- ' * D - COMMAND FROM MAIN MENU (EXIT TO DOORS)
- '
- * REPLACING old line(s) by new
- 10970 IF NOT ZDoorsAvail OR _
- (ZRequiredRings = 0 AND NOT ZNoDoorProtect) THEN _
- * ------[ first line different ]------
- CALL QuickTPut1 (ZFGF$ + ZBG5$ + "No doors available" + _ ' DD082302
- ZEmphasizeOff$) : _ ' DD082302
- RETURN
- IF ZTimeLock AND 1 AND NOT ZHasDoored THEN _
- CALL TimeLock : _
- IF NOT ZOK THEN _
- RETURN
- * REPLACING old line(s) by new
- 10974 WasA1$ = ZMenu$(5)
- * ------[ first line different ]------
- ' CALL Talk (5,ZOutTxt$) ' DD060401
- ZStackC = ZTrue
- GOSUB 41000 ' JA010801
- CALL SubMenu ("Open which door, L)ist" + ZPressEnterExpert$, _
- WasA1$,"",".BAT","",_
- ZTrue,ZFalse,ZFalse,"",InMenu,ZFalse)
- IF ZWasQ = 0 THEN _
- RETURN
- IF ZSubParm = -1 THEN _
- RETURN 10595
- * REPLACING old line(s) by new
- 10986 ZWasZ$ = ZFileName$
- * ------[ first line different ]------
- ZMenuDoors = ZMenuDoors + 1 ' DD090901/MENU0
- CALL DoorExit (NOT InMenu)
- ' GOTO 10974 ' Mpl090201
- CALL SkipLine (1) ' DD031302
- CALL QuickTput (ZFGF$ + ZBG1$ + "Welcome back " + _ ' DD031302
- ZFirstName$ + CHR$(33) + ZFG0$,2) ' DD031302
- RETURN 1232 'Pe 07/12/92
- '
- ' * 5 - COMMAND FROM SYSOP MENU (USER FILE MAINTENANCE)
- '
- * REPLACING old line(s) by new
- 11000 EditFromRead = 0 ' DD032701
- * DELETING old line(s)
- 11001
- 11003
- 11005
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 11010 WasTU = ZUserFileIndex ' DD032701
- CALL DefaultU
- UserRecordHold$ = ZUserRecord$
- RegDateHold$ = ZRegDate$
- UserSecLevelSave = ZUserSecLevel
- CALL UserEd (EditFromRead,TempHashValue$,UserRecordHold$,RegDateHold$,UserSecLevelSave,WasTU) ' PE012301
- IF EditFromRead = 3 THEN GOTO 4560
- RETURN
- '
- ' * ALLOW USERS TO ANSWER A "QUESTIONNAIRE" BASED ON THE RBBS-PC SCRIPT
- '
- * DELETING old line(s)
- 11015
- 11107
- 11110
- 11115
- 11125
- 11127
- 11130
- 11160
- 11185
- 11190
- 11220
- 11290
- 11310
- 11311
- 11320
- 11325
- 11330
- 11340
- 11341
- 11342
- 11345
- 11380
- 11390
- 11395
- 11400
- 11420
- 11423
- 11450
- 11455
- 11490
- * REPLACING old line(s) by new
- 11520 CALL AskUsers
- IF NOT ZOK THEN _
- RETURN
- IF ZAdjustedSecurity THEN _
- GOSUB 12989 : _
- LSET ZSecLevel$ = MKI$(ZUserSecLevel) : _
- GOSUB 9440 : _
- GOSUB 12991 : _
- CALL SetPrompt : _
- CALL XferType (2,ZTrue) : _
- GOSUB 5135
- REDIM ZOutTxt$(ZMsgDim)
- IF ZSubParm = -1 THEN _
- RETURN 10595
- ZOK = ZTrue
- RETURN
- '
- * ------[ first line different ]------
- ' * GET USER First AND Last NAMES
- '
- * DELETING old line(s)
- 12300
- 12310
- 12311
- 12320
- 12330
- * REPLACING old line(s) by new
- 12500 IF Attempts > 5 THEN _
- ZFF = ZTrue : _
- RETURN
- * ------[ first line different ]------
- 12510'GOSUB 12700 ' DD062304
- Attempts = Attempts + 1
- ZOutTxt$ = WasA1$ + _
- ZFirstNamePrompt$
- CALL SkipLine (1)
- ZLogonActive = ZTrue
- GOSUB 12555
- ZLogonActive = ZFalse
- CALL Trim (ZWasZ$)
- ZFirstName$ = ZWasZ$
- * DELETING old line(s)
- 12510
- * REPLACING old line(s) by new
- 12540 CALL Trim (ZWasZ$)
- ZLastName$ = ZWasZ$
- IF LEN(ZLastName$) < 2 THEN _
- IF LEN(ZFirstName$) > 2 THEN _
- GOTO 12500
- IF (LEN(ZFirstName$) + LEN(ZLastName$)) > 30 THEN _
- GOTO 12500
- IF UserSecLevelSave < ZSysopSecLevel THEN _
- IF (LEN(ZFirstName$) < 2 OR LEN(ZLastName$) < 2) THEN _
- GOTO 12500 _
- * ------[ first line different ]------
- ELSE IF LEFT$(ZFirstName$,1)=SPACE$(1) OR LEFT$(ZLastName$,1)=SPACE$(1) THEN _ ' DD021301
- GOTO 12500
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 12550 ZActiveUserName$ = MID$(ZFirstName$ + SPACE$(1) + ZLastName$,1,31) ' DD021301
- IF HashIndiv > 1 THEN _
- IF ZWasQ < 3 THEN _
- GOSUB 12558 : _
- IF ZNo THEN _
- GOTO 12500
- ZWasZ$ = ZFirstName$
- RETURN
- '
- ' * CHECK FOR NAMES NOT ALLOWED
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 12558 CALL QuickTPut(ZFGE$ + "Are you '" + _ ' DD122101
- ZFGC$ + ZActiveUserName$ + _ ' DD122101
- ZFGE$ + "'?" + ZEmphasizeOff$,0) ' DD122101
- ZOutTxt$ = ZYesPrompt$ ' DD122101
- GOSUB 12995
- RETURN
- * REPLACING old line(s) by new
- 12600 GOSUB 4910
- GOSUB 12988
- IF ZInConfMenu THEN _
- * ------[ first line different ]------
- IF NOT ZPrivateDoor AND NOT ZSubBoard THEN _ ' DD020601
- CALL QuickTPut1 (ZFGB$ + "Checking " + ZFGA$ + _ ' DD091701
- ConfFileName$ + ZFGB$ + _ ' DD091701
- " Users..." + ZFG7$ + ZBG0$) ' DD082701
- * REPLACING old line(s) by new
- 12632 GOSUB 24000
- GOSUB 12985
- IF ZRememberNewUsers THEN _
- GOSUB 12989
- GOSUB 12990
- RETURN
- '
- ' * INFORM USER OF WHAT CONFERENCE USER FILE HE IS VIEWING
- '
- * ------[ first line different ]------
- '12700 IF ZConfMode THEN _ ' DD062304
- ' ZOutTxt$ = "Users of " + _ ' DD062304
- ' ZConfName$ + _ ' DD062304
- ' CHR$(58) : _ ': ' DD062304
- ' GOSUB 12979 ' DD062304
- ' RETURN ' DD062304
- '
- ' * GET PASSWORD FROM NEWUSER
- '
- * DELETING old line(s)
- 12700
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 12800 CALL SkipLine (1) ' DD031302
- CALL NewPassword (ZFG2$ + "Enter " + _ ' DD062907
- ZFGE$ + "PASSWORD " + _ ' DD062907
- ZFG2$ + "you'll use to logon again" + _ ' DD062907
- ZEmphasizeOff$,ZFalse) ' DD062907
- IF ZSubParm < 0 THEN _
- GOTO 202
- IF UserSecLevelSave < ZSysopSecLevel THEN _
- IF ZUserIn$ = SPACE$(LEN(ZUserIn$)) THEN _
- GOTO 12800
- LSET ZPswd$ = ZWasZ$
- RETURN
- '
- ' * GET HASH VALUE FOR CURRENT USER TO LOOK UP IN THE USER'S FILE
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 12960 ZOutTxt$ = ZCRLf$ + ZFG9$ + WasA1$ + _ ' DD062906
- ZFGB$ + ZUserLocation$ + ZEmphasizeOff$ ' DD062906
- IF NOT ZNewUser THEN _
- ZOutTxt$ = ZOutTxt$ + ZPressEnterExpert$ ' DD062906
- ZParseOff = ZTrue
- GOSUB 12932
- IF ZWasQ = 0 OR ZUserIn$ = SPACE$(LEN(ZUserIn$)) THEN _
- IF ZNewUser THEN _
- GOTO 12960 _
- ELSE RETURN
- CALL AllCaps (ZUserIn$)
- CALL QuickTPut1 (ZFGB$ + ZUserLocation$ + _ ' DD030104
- ZFG9$ + " Set to " + ZFGB$ + _ ' DD030104
- ZUserIn$ + ZEmphasizeOff$) ' DD030104
- LSET ZCityState$ = ZUserIn$
- ZWasCI$ = ZUserIn$
- RETURN
- '
- ' * CALLS INTO SEPARATELY COMPILED SUBROUTINES (RBBS-SUB)
- '
- '
- ' * STANDARD ENTRY FOR RBBS-PC'S COMMON TERMINAL OUTPUT ROUTINE
- '
- * DELETING old line(s)
- 12962
- 12963
- 12965
- 12966
- 12967
- 12968
- 12969
- 12970
- 12971
- 12972
- * REPLACING old line(s) by new
- 13000 IF ZDebug THEN _
- ZOutTxt$ = "DEBUG Trap ERL=" + _
- STR$(ZWasEL) + _
- " ERR=" + _
- STR$(ZErrCode) : _
- CALL Printit(ZOutTxt$) : _
- WasD$ = ZOutTxt$ : _
- GOSUB 1315
- IF ZWasEL = 1905 AND ZErrCode = 63 THEN _
- CLOSE 1 : _
- KILL ZActiveMessageFile$ : _
- GOTO 5350
- IF ZWasEL = 4371 AND ZErrCode = 6 THEN _
- GOTO 1200
- * ------[ first line different ]------
- ' IF ZWasEL = 4740 THEN _ ' DD091303
- ' GOTO 4745 ' DD091303
- * REPLACING old line(s) by new
- 13555 ZActiveMessageFile$ = ZOrigMsgFile$
- * ------[ first line different ]------
- CALL KillWork (ZArkViewPath$ + "*.*") ' DGS050601/DS
- GOSUB 12986
- GOSUB 5344
- GET 1,ZNodeRecIndex
- MID$(ZMsgRec$,57,1) = CHR$(73) 'I ' DD021301
- MID$(ZMsgRec$,40,2) = " 0"
- MID$(ZMsgRec$,72,2) = " 0"
- IF MID$(ZMsgRec$,101,2) = ZCarriageReturn$+ZCarriageReturn$ THEN _
- MID$(ZMsgRec$,101,2) = " 0"
- PUT 1,ZNodeRecIndex
- GOSUB 12985
- CLOSE 1,2,4,5,16 ' DD050701
- IF NOT ZFossil THEN _
- CLOSE 3
- ' IF ZRecycleToDos THEN _ ' DD052301
- ' GOTO 203 ' DD052301
- GOTO 203 ' DD052301
- ' WasJ = 60 ' DD052301
- ' ZMsgDim = 199 ' DD052701
- ' REDIM ZWorkAra$(WasJ) ' DD052301
- ' REDIM ZOutTxt$(ZMsgDim) ' DD052301
- ' REDIM ZUserIn$(ZMsgDim) ' DD052301
- ' RUN ' DD052301
- * REPLACING old line(s) by new
- 20140 CALL GetArc
- IF ZSubParm = -1 THEN _
- * ------[ first line different ]------
- GOTO 10595 'PE 10/22/91
- IF ZDenyAccess THEN _
- GOTO 1386
- RETURN
- '
- ' * GO TO THE FILE SYSTEM TO LIST THE SYSOP'S COMMENTS
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 20170 IF ZBatchProto OR LEFT$(ZProtoPrompt$,1) = CHR$(78) THEN _ ' DD031502
- ZOutTxt$ = "Will this be a BATCH Upload?" + ZNoPrompt$ : _ ' DD031502
- GOSUB 12995 : _ ' DD031502
- IF ZYes THEN _ ' DD090201
- GOTO 20195 ' DD090201
- ZFileSysParm = 5
- GOTO 20200
- '
- ' * GO TO THE FILE SYSTEM TO SCAN FILE SYSTEM DIRECTORIES
- '
- * REPLACING old line(s) by new
- 20190 ZFileSysParm = 9
- * ------[ first line different ]------
- GOTO 20200
- '
- ' * Go To the File System to Handle BATCH UPLOADS
- '
- * INSERTING new line(s)
- 20195 ZFileSysParm = 10
- '
- * REPLACING old line(s) by new
- 20200 CALL FileSystem
- * ------[ first line different ]------
- IF ZDnldCompleted AND ZAutoEnd = 1 AND ZAutoLogoffReq THEN _ 'Pe 122092
- GOTO 20235 'AUTO Loggoff Mod
- ON ZFileSysParm GOTO 20205, _
- 20210, _
- 20215, _
- 20220, _
- 20225, _
- 20230, _
- 20235
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 20205 ZFileSysParm = 0 ' DD031501
- IF ZDOZFile$ <> "" THEN ' DD070702
- CALL KillWork (ZUpldSubDir$ + CHR$(92) + ZDOZFile$) ' DD070702
- END IF ' DD070702
- RETURN
- * REPLACING old line(s) by new
- 23000 GET 1,1
- * ------[ first line different ]------
- ZHighMsgNumber = VAL(LEFT$(ZMsgRec$,8)) ' DD040707
- AutoAddSec = CVI(MID$(ZMsgRec$,9,2))
- ZCallsToDate! = VAL(MID$(ZMsgRec$,11,10)) ' DD040705
- ZMsgSecCats$ = LEFT$(CHR$(85),-(MID$(ZMsgRec$,21,1) <> CHR$(47))) + _ ' DD021301
- LEFT$(CHR$(82),-(MID$(ZMsgRec$,22,1) <> CHR$(47))) + _ ' DD021301
- LEFT$(CHR$(80),-(MID$(ZMsgRec$,23,1) <> CHR$(47))) + _ ' DD021301
- CHR$(69) ' DD021301
- IF ZUserSecLevel >= ZSecKillAny THEN _
- ZMsgSecCats$ = "URPE" ' Mpl090201
- IF ZMsgSecCats$ = CHR$(69) THEN _ 'E ' DD021301
- ZMsgSecCats$ = "UE" ' Mpl090201
- CurUserCount = VAL(MID$(ZMsgRec$,57,5))
- FirstMsgRecord = VAL(MID$(ZMsgRec$,68,7))
- ZNextMsgRec = VAL(MID$(ZMsgRec$,75,7))
- HighestMsgRecord = VAL(MID$(ZMsgRec$,82,7))
- IF ZActiveMessageFile$ = ZOrigMsgFile$ THEN _
- ZMaxNodes = VAL(MID$(ZMsgRec$,127))
- RETURN
- * REPLACING old line(s) by new
- 23100 GET 1,ZNextMsgRec
- * ------[ first line different ]------
- IF MID$(ZMsgRec$,61,1) = CHR$(58) THEN _ ': ' DD021301
- CALL CheckInt (MID$(ZMsgRec$,117,4)) : _
- IF ZErrCode = 0 AND (ZTestedIntValue > 1) AND _ ' DD082301
- (ZTestedIntValue < 100) THEN _ ' DD082301
- WasY = ZTestedIntValue : _
- CALL CheckInt (MID$(ZMsgRec$,2,4)) : _
- IF ZErrCode = 0 AND ZTestedIntValue > ZHighMsgNumber THEN _ ' DD040707
- ZHighMsgNumber = ZTestedIntValue : _ ' DD040707
- ZNextMsgRec = ZNextMsgRec + WasY : _
- CALL QuickTPut1 ("Fixing Msg Header") : _
- MsgCorrected = ZTrue : _
- GOTO 23100
- RETURN
- '
- ' * UPDATE MESSAGE HEADER RECORD DATA
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 24000 MID$(ZMsgRec$,1,8) = STR$(ZHighMsgNumber) ' DD040707
- MID$(ZMsgRec$,11,10) = STR$(ZCallsToDate!) ' DD040705
- MID$(ZMsgRec$,57,5) = STR$(CurUserCount)
- MID$(ZMsgRec$,68,7) = STR$(FirstMsgRecord)
- MID$(ZMsgRec$,75,7) = STR$(ZNextMsgRec)
- MID$(ZMsgRec$,82,7) = STR$(HighestMsgRecord)
- PUT 1,1
- RETURN
- '
- ' * A - COMMAND FROM Library MENU (ARCHIVE A SELECTED Library DISK)
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 30000 'ZSubParm = 4 ' Mpl090201
- ' CALL Library ' Mpl090201
- ' IF ZSubParm = -1 THEN _ ' Mpl090201
- ' RETURN 10595 ' Mpl090201
- RETURN
- '
- ' * C - COMMAND FROM Library MENU (CHANGE TO A Library DISK)
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 30100 'ZSubParm = 2 ' Mpl090201
- ' CALL Library ' Mpl090201
- ' RETURN ' Mpl090201
- '
- ' * D - COMMAND FROM Library MENU (DOWNLOAD A DISK/FILE FROM Library)
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 30200 'IF ZTimeLock AND 2 AND NOT ZHasPrivDoor THEN _ ' Mpl090201
- ' CALL TimeLock : _ ' Mpl090201
- ' IF NOT ZOK THEN _ ' Mpl090201
- ' RETURN ' Mpl090201
- ' IF ZLibDiskChar$ = STRING$(4,48) THEN _ ' DD021301
- ' CALL QuickTPut1 ("You must select a Library disk first!") : _ ' Mpl090201
- ' RETURN ' Mpl090201
- ' ZSubParm = 3 ' Mpl090201
- ' CALL Library ' Mpl090201
- ' GOTO 20160 ' Mpl090201
- '
- ' * CALCULATE TIME REMAINING FOR USER
- '
- * REPLACING old line(s) by new
- 41000 CALL CheckTimeRemain (MinsRemaining)
- * ------[ first line different ]------
- IF ZSubParm = -1 THEN ' DGS051504-DS
- CALL FindFile("XFER-" + ZNodeID$ + ".DEF", ZOK) ' DGS051504-DS
- IF ZOK THEN ' DGS051504-DS
- TempParm = ZFileSysParm ' DGS051504-DS
- ZFileSysParm = 4 ' DGS051504-DS
- CALL QuickTPut1(ZFGF$ + ZBG1$ + "Processing files " + _
- "before logging off" + ZFG0$) ' DGS051504-DS
- CALL FileSystem ' DGS051504-DS
- ZFileSysParm = TempParm ' DGS051504-DS
- END IF ' DGS051504-DS
- RETURN 10553
- END IF ' DGS051504-DS
- RETURN
- '
- ' * SHOW USER CURRENT ACCESS LEVEL
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 41070 ZOutTxt$ = ZFG2$ + "Granted access level" + _ ' DD082001
- ZFGB$ + STR$(ZUserSecLevel) + SPACE$(1) + _ ' DD021301
- ZFGF$ + ZBG1$ + MID$("(SYSOP)",1,-8 * _ ' DD082301
- (ZUserSecLevel >= ZSysopSecLevel)) + ZBG0$ ' DD082001
- GOSUB 12975
- RETURN
- '
- ' * NULLS SET FOR NEW USERS
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 42700 CALL SelectTurboKeys ' DD062904
- RETURN
- '
- ' * F - COMMAND FROM UTILITY MENU (FILE Transfer DEFALUT MODE)
- ' * FILE Transfer DEFAULT SET FOR NEW USERS
- '
- * REPLACING old line(s) by new
- 42800 ZFF = INSTR(ZDefaultXfer$,ZUserXferDefault$)
- IF ZFF = 0 THEN _
- * ------[ first line different ]------
- ZFF = INSTR(ZInternalEquiv$,CHR$(78)) 'N ' DD021301
- CALL QuickTPut1 (ZCRLf$ + ZFG2$ + "Current Protocol: " + _ ' DD070801
- ZFGE$ + ZProtoPrompt$ + ZEmphasizeOff$) ' DD082501
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 42805 ZOutTxt$ = ZFGE$ + "Default " ' DD082501
- CALL XferType (3,ZExpertUser)
- IF ZSubParm = -1 THEN _
- RETURN 10595
- ZUserXferDefault$ = ZWasFT$
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 42810 ZOutTxt$ = ZFG2$ + "Protocol: " + ZFGE$ + ZProtoPrompt$ + _ ' DD070801
- ZEmphasizeOff$ ' DD070801
- GOSUB 12979
- RETURN
- '
- ' * C - COMMAND FROM UTILITY MENU (CHANGE CASE Toggle)
- ' * UPPER/LOWER CASE SET FOR NEW USERS
- '
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 42850 CALL ChangeEchoToggle ' DD070904
- IF ZSubParm < 0 THEN _ ' DD011201
- GOTO 202 ' DD011201
- RETURN
- '
- ' * G - COMMAND FROM UTILITY MENU (GRAPHICS WANTED)
- ' * Graphic MENUS SELECTION SET FOR NEW USERS
- '
- * DELETING old line(s)
- 42851
- 42852
- * REPLACING old line(s) by new
- * ------[ first line different ]------
- 43000 CALL SetGraphicsWanted ' DD011201
- IF ZSubParm = -1 THEN _
- RETURN 10595
- RETURN
- * DELETING old line(s)
- 43005
- 43020
- 43022
- * REPLACING old line(s) by new
- 43025 CALL Graphic (ZFileName$)
- * ------[ first line different ]------
-
- '
- ' * DISPLAY NON-BREAKABLE TEXT FILES
- '
- * REPLACING old line(s) by new
- 43027 ZStopInterrupts = ZTrue
- CALL BufFile (ZFileName$,WasX)
- CALL Carrier
- IF ZSubParm = -1 THEN _
- RETURN 10595
- ZStopInterrupts = ZFalse
- RETURN
- * ------[ first line different ]------
- ' ' DD031302
- ' * Prompt to use Full Screen Editor ' DD031302
- ' ' DD031302
- * INSERTING new line(s)
- 43030 ZOutTxt$ = "Use the Full Screen Editor?" + ZNoPrompt$ ' DD031302
- GOSUB 12930 ' DD031302
- RETURN ' DD031302
- ' ' DD051103
- ' * Run Epilog File ' DD051103
- ' ' DD051103
- 44000 IF ZUserSecLevel < ZSecExemptFromEpilog THEN ' DD051103
- ZFileName$ = ZEpilog$ ' DD051103
- CALL Graphic (ZFileName$) ' DD051103
- GOSUB 11520 ' DD051103
- END IF ' DD051103
- RETURN ' DD051103
- '
- ' * MAKE INPUT STRING HIDDEN (USE *'S TO ECHO INPUT)
- '
- * REPLACING old line(s) by new
- 45010 ZHidden = ZTrue
- GOSUB 12995
- ZHidden = ZFalse
- RETURN
- * ------[ first line different ]------
- ' ' DD051504
- ' * MARKED FILES WARNING WHEN LOGGING OFF ' DD051504
- ' ' DD051504
- * INSERTING new line(s)
- 45020 IF ZMarkedFiles$ <> "" THEN ' DD051504
- CALL PutCom(ZBellRinger$) ' DD070402
- CALL SkipLine (1) ' DD051504
- CALL QuickTput1 (ZFGF$ + ZBG1$ + _ ' DD051504
- "You Have Marked Files!" + _ ' DD051504
- ZEmphasizeOff$) ' DD051504
- END IF ' DD051504
- RETURN ' DD051504
- ' ' Mpl090201
- ' * Maple AutoLogoff Routines *** ' Mpl090201
- ' ' Mpl090201
- 46000 ZSubParm = 1 ' Mpl090201
- IF ZAutoLogoffReq = ZFalse THEN _ ' Mpl090201
- ZAutoEnd = 0 : _ ' Mpl090201
- RETURN 1205 ' Mpl090201
- IF ZPersonalDnld THEN ' DD050703
- RETURN 10597 ' DD050703
- END IF ' DD050703
- CALL SkipLine (1) ' DD031302
- ZOutTxt$ = ZEmphasizeOff$ + _ ' DD031302
- "Press [G] for instant Logoff" + ZEmphasizeOff$ ' DD090602
- ZTurboKey = 2 ' Mpl090201
- CALL TGet ' Mpl090201
- CALL AllCaps (ZUserIn$) ' DD021301
- IF ZUserIn$ = CHR$(71) THEN _ ' DD021301
- GOTO 46050 _ ' Mpl090201
- ELSE _ ' Mpl090201
- CALL QuickTPut (ZFGF$ + ZBG1$ + "Log Off Aborted!" + _ ' DD082302
- ZEmphasizeOff$,1) : _ ' DD082302
- ZAutoLogoffReq = ZFalse : _ ' Mpl090201
- ZAutoEnd = 0 : _ ' Mpl090201
- RETURN 1205 ' Mpl090201
- 46050 GetOut = ZTrue ' Mpl090201
- CALL UpdtCalr ("Auto-logoff",1) ' DD050702
- RETURN 10597 ' Mpl090201
- ' ' DD061301
- '* RIP message text window display ' DD061301
- ' ' DD061301
- 47000 RIPFile$ = "RIPWINL" ' DD062601
- 47010 IF ZWasGR = 4 THEN ' DD062601
- CALL BufFile (ZWelcomeFileDrvPath$ + RIPFile$,WasX) ' DD061301
- END IF ' DD061301
- RETURN ' DD061301
- 47100 CALL MailWait ' DD071703
- RETURN ' DD071703
-