* ------------[ BLED merge (c) Ken Goosens ]------------- * Merge this against D:\172B\RBBSSUB2.BAS to produce RBBSSUB2.BAS * D:\172B\RBBSSUB2.BAS: Date 2-10-1990 Size 134325 bytes * ------------[ Created 05-20-1990 20:25:33 ]------------ * REPLACING old line(s) by new 1628 CALL VerifyAns IF NOT ZOK THEN _ CALL QuickTPut1 ("Invalid answer <" + ZUserIn$(1) + ">") : _ GOTO 1500 HoldA$ = "" ZForceKeyboard = ZFalse IF ZMacroSave > 0 THEN _ ZGSRAra$(ZMacroSave) = ZUserIn$ : _ ZMacroSave = 0 : _ GOTO 1632 IF (ZDistantTGet > 0) OR (ZMacroTemplate$ <> "") THEN _ CALL WipeLine (38) : _ IF NOT ZNo THEN _ GOTO 1632 _ ELSE ZWasQ = 0 : _ ZMacroTemplate$ = "" : _ ZDistantTGet = 0 : _ ZNo = ZFalse : _ GOTO 1633 IF ZMacroActive THEN _ ZLastIndex = ZWasQ : _ FirstIndex = 1: _ * ------[ first line different ]------ ZMacroActive = NOT EOF(6) : _ ' KG021501 EXIT SUB IF ZAnsIndex > 255 OR ((NOT InStack) AND INSTR(ZUserIn$,".") > 0) THEN _ EXIT SUB IF MacroIndex THEN _ MacroIndex = 1 _ ELSE MacroIndex = ZAnsIndex CALL NoPath (ZUserIn$(MacroIndex),Found) IF Found THEN _ EXIT SUB CALL CheckMacro (ZUserIn$(MacroIndex),Found) IF Found THEN _ ZStoreParseAt = ZAnsIndex : _ GOTO 1525 EXIT SUB * REPLACING old line(s) by new 10983 ' $SUBTITLE: 'DoorExit -- Setup to exit to a "door"' ' $PAGE ' NAME -- DoorExit ' ' INPUTS -- PARAMETER MEANING ' ZMultiLinkPresent ' ZNodeID$ ' ZRBBSBat$ ' ZWasZ$ ' ' OUTPUTS -- ZWasQ NUMBER OF LINES TO WRITE OUT TO ' ZRCTTYBat$ ' ZUserIn$() LINES TO WRITE OUT TO ZRCTTYBat$ ' ' PURPOSE -- Set up ZUserIn$() and ZWasQ in order to call "EXITRBBS" and ' exit RBBS-PC to invoke another program ' * ------[ first line different ]------ SUB DoorExit (ReqDoorsDef) STATIC ' KG032502 IF ZWasZ$ = "" OR _ ZWasZ$ = "NONE" THEN _ EXIT SUB CALL FindIt (ZWasZ$) IF NOT ZOK THEN _ GOTO 10986 CALL BreakFileName (ZWasZ$,WasX$,ExitTo$,ExitMethod$,ZFalse) ' KG032501 ExitMethod$ = "" ZDooredTo$ = ExitTo$ CALL FindIt (ZDoorsDef$) IF NOT ZOK THEN _ IF ReqDoorsDef THEN _ ' KG032502 EXIT SUB _ ' KG032502 ELSE ExitTo$ = ExitTo$ + " " + ZNodeID$ : _ ' KG032502 GOTO 10989 ' KG032502 * REPLACING old line(s) by new 10985 CALL ReadParms (ZOutTxt$(),8,1) IF ZErrCode > 0 THEN _ * ------[ first line different ]------ IF ReqDoorsDef THEN _ ' KG032502 EXIT SUB _ ' KG032502 ELSE ExitTo$ = ExitTo$ + " " + ZNodeID$ : _ ' KG032502 GOTO 10989 ' KG032502 IF ExitTo$ <> ZOutTxt$(1) THEN _ GOTO 10985 CALL CheckInt (ZOutTxt$(2)) IF ZErrCode > 0 THEN _ ZErrCode = 0 : _ GOTO 10985 IF ZUserSecLevel < ZTestedIntValue THEN _ CALL QuickTPut1 ("Insufficient security for door") : _ EXIT SUB WasX$ = LEFT$(ZOutTxt$(5),INSTR(ZOutTxt$(5)+" "," ")-1) CALL FindIt (WasX$) IF NOT ZOK THEN _ GOTO 10986 ZFileName$ = ZOutTxt$(3) ExitMethod$ = ZOutTxt$(4) ExitTemplate$ = ZOutTxt$(5) ZDoorDisplay$ = ZOutTxt$(7) DoorTime$ = ZOutTxt$(8) CALL AskUsers CALL SmartText (ExitTemplate$,ZFalse,ZFalse) CALL MetaGSR (ExitTemplate$,ZFalse) ExitTo$ = ExitTemplate$ GOTO 10989 * REPLACING old line(s) by new 20143 ZWasZ$ = ZUserIn$(ZAnsIndex) * ------[ first line different ]------ WasZ$ = ZWasZ$ ' KG022205 CALL AllCaps (ZWasZ$) CALL BreakFileName (ZWasZ$,Drive$,Prefix$,Ext$,ZFalse) IF Ext$ = "" THEN _ Ext$ = ZDefaultExtension$ : _ ZWasZ$ = ZWasZ$ + "." + ZDefaultExtension$ ZFileNameHold$ = ZWasZ$ ZFileName$ = ZWasZ$ CALL BadFile (Prefix$,BadFileNameIndex) ON BadFileNameIndex GOTO 20144,20146,20147 * REPLACING old line(s) by new * ------[ first line different ]------ 20145 CALL RotorsDir (ZFileName$,ZSubDir$(),ZSubDirCount + (NOT ZSysop),ZTrue,"V") ' KG022204 IF ZOK THEN _ GOTO 20148 * REPLACING old line(s) by new * ------[ first line different ]------ 20146 ZWasZ$ = WasZ$ + _ ' KG022205 " not found!" CALL UpdtCalr (ZWasZ$,2) ZOutTxt$ = ZWasZ$ + _ " Type correct filename" + ZPressEnterExpert$ ZSubParm = 1 CALL TGet IF ZSubParm = -1 OR ZWasQ = 0 THEN _ RETURN ZUserIn$(ZAnsIndex) = ZUserIn$(1) GOTO 20143