home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
pcboard
/
entr_msg.zip
/
ENTR_MSG.PPS
< prev
next >
Wrap
Text File
|
1993-03-24
|
6KB
|
177 lines
; *****************************************************************
; * *
; * Enter Message V1.0 *
; * *
; * *
; * Written in PPL for PCBoard *
; * *
; * Designed By: Steve Catmull *
; * *
; * Began development: 02-??-93 *
; * *
; *****************************************************************
;
; This executable will test messages in conferences 0 and 1 to see
; if they are addressed to ALL. If so, the user is warned that
; they are about to leave a message to ALL in a conference where
; all mail is forced to be private.
;
; In addition, this executable can ask in the Alpha and Beta
; conferences, if the message is a report regarding test software.
; If so, the caller is asked what software to user, etc.
;
STRING beta_report ; Used to determine if message is a beta report
INTEGER product ; Product number the beta report is for.
DATE exe_date
TIME exe_time
STRING to_who ; If not a report, check to see if addressing to ALL.
STRING user(8,2) ; Number of products in beta testing
STRING other_desc ; Description for "other product"
STRING valid_test ; valid chars for beta & alpha code
STRING type_test ; ALPHA or BETA
STRING why_all ; Used to store response if user address to ALL in priv.
STRING temp ; Used to get next command line token
STRING command_line; Used to store command line.
BOOLEAN error
;/* Initalize the Variables */
exe_date = 0
exe_time = 0
other_desc = ""
error = 0
why_all = "A"
GETUSER
IF (!(CURCONF()=6 | CURCONF()=7)) goto abort
IF (CURCONF()=6) type_test="BETA"
IF (CURCONF()=7) type_test="DevBeta"
IF (CURSEC() > 100 & !(U_NAME() = "STEVE CATMULL")) goto abort
PRINTLN
INPUTYN "Is this a "+type_test+" report",beta_report,0Eh
LOG "ENTR_MSG: Asked if alpha/beta report",0
IF (UPPER(beta_report)=YESCHAR()) GOTO yes_test
IF (UPPER(beta_report)=NOCHAR()) GOTO abort
IF (beta_report="") GOTO abort
END
:yes_test
IF (CURCONF()=6) valid_test="679"
IF (CURCONF()=7) valid_test="123456789"
product = LEFT(valid_test,1)
GOSUB Initialize_Products
DISPFILE PPEPATH()+LEFT(type_test,5)+"MSG",111b
INPUTSTR "Which product is the report for",product,0Eh,1,valid_test,110011110b
IF (product = 1) goto know_product
IF (product = 2) goto know_product
IF (product = 3) goto know_product
IF (product = 4) goto know_product
IF (product = 5) goto know_product
IF (product = 6) goto know_product
IF (product = 7) goto know_product
IF (product = 8) goto know_product
IF (product = 9) goto unknown
:abort
GETTOKEN temp
IF (temp = "") goto abort2
command_line=command_line+" "+temp
goto abort
:abort2
IF (!command_line = "") GOTO abort_params
IF (!(CURCONF() = 0 | CURCONF() = 1)) THEN
KBDSTUFF "E"+command_line+chr(13)
END
ENDIF
INPUTSTR " To (Enter)=`ALL'",to_who,0Eh,25,MASK_ASCII(),110011110b
IF (!(UPPER(to_who) = "ALL" | to_who = "")) THEN
PRINTLN "@X0AMaking sure message is not addressed to @X0FALL@X0A."+chr(13)
KBDSTUFF "E "+to_who+command_line+chr(13)+chr(13)
END
ENDIF
DISPFILE PPEPATH()+"PRIVALL",111b
LOG "Entr_Msg: Warned about addressing message to ALL",0
INPUTSTR "Would you like to (@X00@X0FC@XFF)ontinue or (@X00@X0FA@XFF)bort your message",why_all,0Eh,1,"CA",110011110b
IF (why_all = "C") KBDSTUFF "E ALL"+chr(13)+chr(13)
END
:abort_params
IF (!(CURCONF() = 0 | CURCONF() = 1)) THEN
KBDSTUFF "E"+command_line+chr(13)
END
ENDIF
IF (!UPPER(command_line) = " ALL") THEN
PRINTLN
PRINTLN "@X0AMaking sure message is not addressed to @X0FALL@X0A."+chr(13)
KBDSTUFF "E "+command_line+chr(13)+chr(13)
END
ENDIF
DISPFILE PPEPATH()+"PRIVALL",111b
INPUTSTR "Would you like to (@X00@X0FC@XFF)ontinue or (@X00@X0FA@XFF)bort your message",why_all,0Eh,1,"CA",110011110b
IF (why_all = "C") KBDSTUFF "E ALL"+chr(13)+chr(13)
END
:know_product
GOSUB date_time
KBDSTUFF "E"+chr(13)+user(product,1)+chr(13)+type_test+" report"+chr(13)+chr(13)+chr(13)
KBDSTUFF "@X40┌────────────────────────────────────────────────────────@X4C┐@X07"+chr(13)
KBDSTUFF "@X40│@X4F "+user(product,2)+" "+string(exe_date)+" "
IF (!exe_time = 0) KBDSTUFF string(exe_time)
KBDSTUFF "@X4C@POS:57@ │@X07"+chr(13)
KBDSTUFF "@X40└@X4C────────────────────────────────────────────────────────┘@X07"+chr(13)
KBDSTUFF chr(13)
END
:unknown
GOSUB date_time
INPUTSTR "Enter description of product",other_desc,0Eh,10,MASK_ALNUM(),000000010011110b
KBDSTUFF "E"+chr(13)+user(product,1)+chr(13)+user(product,2)+" "+other_desc+" "+string(exe_date)+" "
IF (!exe_time = 0) THEN
KBDSTUFF string(exe_time)+chr(13)
KBDSTUFF chr(13)
ENDIF
END
:date_time
NEWLINES 2
:not
error=0
INPUTDATE "Enter date of executable",exe_date,0Eh
IF (exe_date = 000000) error = 1
IF (error) THEN
PRINTLN chr(13)+"@X00@X0CYou must enter the date of the executable you are testing.@XFF"+chr(13)
GOTO not
ENDIF
PRINTLN
INPUTTIME "Enter time of executable",exe_time,0Eh
PRINTLN
RETURN
:Initialize_Products
user(1,1)="DAVID TERRY" ; Author of PCBoard
user(1,2)="PCBOARD.EXE -"
user(2,1)="DAVID TERRY" ; Author of PCBSetup
user(2,2)="PCBSETUP.EXE -"
user(3,1)="DAVID TERRY" ; Author of PCBSysMgr
user(3,2)="PCBSM.EXE -"
user(4,1)="DAVID TERRY" ; Author of PCBFiler
user(4,2)="PCBFILER.EXE -"
user(5,1)="LOUIS ZIRKEL" ; Author of PCBPack
user(5,2)="PCBPACK.EXE -"
user(6,1)="SCOTT ROBISON" ; Author of PCBEdit
user(6,2)="PCBEDIT.EXE -"
user(7,1)="SYSOP" ; Author of PCBModem
user(7,2)="PCBMODEM.EXE -"
user(8,1)="SCOTT ROBISON" ; Author of PPL/PPLC.EXE
user(8,2)="PPL(C): -"
user(9,1)="SYSOP" ; Author of Other Package
user(9,2)="OTHER: "
RETURN