home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PCBOARD
/
SUBSCR10.ZIP
/
SUBSCRIB.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-01-13
|
6KB
|
228 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Date DATE002
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
String STRING011
String STRING012
String STRING013
String STRING014
String STRING015
String STRING016
;------------------------------------------------------------------------------
GetUser
PrintLn
PrintLn "@POS:25@ @X0F░▒▓█ @X0ASUBSCRIB.PPE @X07v1.0@X0F █▓▒░ @X07"
PrintLn
PrintLn
PrintLn " ░▒▓█ by DM Soft █▓▒░"
PrintLn
PrintLn
FOpen 1, PPEPath() + "subscrib.cfg", 0, 0
FGet 1, STRING012
FGet 1, STRING009
FGet 1, STRING010
FGet 1, STRING011
FGet 1, STRING013
FGet 1, STRING014
FGet 1, STRING015
FGet 1, STRING006
FGet 1, STRING007
FGet 1, STRING008
DATE002 = "03-01-94"
If (Date() > DATE002) Then
PrintLn " @X0B┌─────────────────────────────────────────────────────────────────┐@X07"
PrintLn " @X0B │ @X0FPPE @X0Btrial period @X0Fhas @X0CEXPIRED@X0F - please ask @X0Esysop @X0Fto register it @X0B│@X07"
PrintLn " @X0B└─────────────────────────────────────────────────────────────────┘@X07"
PrintLn
End
Endif
PrintLn " ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓"
PrintLn " ▓▓" + "@POS:78@▓▓"
PrintLn " ▓▓@X0F This PPE is @X0EUNREGISTERED @X0F- please @X0Cregister @X0Fby " + String(DATE002) + " or it will @X0Dexpire@X07 ▓▓"
PrintLn " ▓▓" + "@POS:78@▓▓"
PrintLn " ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓"
PrintLn
Delay 180
STRING001 = ""
STRING005 = PPEPath() + "subscrib.inf"
If (Exist(STRING005)) DispFile STRING005, ""
PrintLn
:LABEL001
Newlines 3
InputStr " @X0F Would you like to @X0Csubscribe@X0F to@X0B " + ReadLine(PCBDat(), 94), STRING001, 14, 1, "YyNn", 2 + 8 + 4 + 64
Select Case (STRING001)
Case "N"
Return
Case ""
Goto LABEL001
Case "Y"
STRING001 = ""
STRING005 = PPEPath() + "subscrib.txt"
If (Exist(STRING005)) DispFile STRING005, ""
More
PrintLn
PrintLn " ┌──────────────────────────────────────┐"
PrintLn " │ @X0FWhich option would you like @X0B │"
PrintLn " ├──────────────────────────────────────┤"
PrintLn " │@X0F1. @X0EOne Year @X0Fsubscription for@X0C " + STRING007 + "@POS:58@@X0B│@X07"
PrintLn " @X0B│@X0F2. @X0EA half year @X0Fsubscription for@X0C " + STRING006 + "@POS:58@@X0B│@X07"
PrintLn " @X0B├──────────────────────────────────────┤@X07"
PrintLn " @X0B│ Select 1, 2, or Q)uit │@X07"
PrintLn " @X0B└──────────────────────────────────────┘@X07"
PrintLn
InputStr " @X0F (1,2,@X0EQ@X0F)@X07", STRING001, 14, 1, "12Qq", 2 + 4 + 8 + 64
PrintLn
End Select
STRING002 = ""
If (STRING001 == "Q") Return
If (STRING001 == "1") STRING004 = STRING007
If (STRING001 == "2") STRING004 = STRING006
:LABEL002
FAppend 2, PPEPath() + "subscrib.reg", 2, 0
PrintLn "@X0FChoose a @X0Bcredit card types @X0F(@X0DVisa, @X0BMaster Card, @X0EDiscover, @X0AAmerican Express@X0F)"
InputStr "@X0FInput your @X0Bcredit card @X0Enumber @X0Fnow @X0F(@X0EQ to quit@X0F)@X07", STRING002, 11, 20, "Qq0123456789", 2 + 4 + 256 + 128 + 8
If (STRING002 == "Q") Then
FClose 1
FClose 2
Goto LABEL001
ElseIf (ValCC(STRING002)) Then
PrintLn " " + Left(CCType(STRING002), 20), "@X0A -@X07 ", FmtCC(STRING002)
Else
PrintLn
PrintLn " @X0FThat @X0Ccard number @X0Fis not a valid card number"
Goto LABEL002
Endif
STRING016 = U_Name()
:LABEL003
InputStr " @X0FWhat is the @X0Bexpiration date @X07", STRING003, 12, 4, "0123456789-/", 2 + 4 + 64 + 256
If (STRING003 == "") Goto LABEL003
FPutLn 2, "*******************************************************************"
FPutLn 2, " Name: ", STRING016, " Date: ", Date(), " Time: ", Time()
FPutLn 2, " "
FPutLn 2, " Credit card number: " + STRING002 + " Expiration date: " + STRING003
FPutLn 2, " "
FPutLn 2, " Credit card type: " + CCType(STRING002), " Amount: ", STRING004
FPutLn 2, " "
Select Case (STRING001)
Case "1"
U_Sec = STRING009
U_ExpDate = Date() + 365
U_ExpSec = "10"
Case "2"
U_Sec = STRING010
U_ExpDate = Date() + 180
U_ExpSec = "10"
End Select
PutUser
PrintLn " @X0F Your @X0Asecurity@X0F has been raised to @X0C", U_Sec, "@X0F - expiration date: @X0D", U_ExpDate
PrintLn
Message 0, "Sysop", U_Name(), "Subscription access", "R", 0, 0, 0, "newsubsc.txt"
Wait
FClose 1
FClose 2
Return
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 2 End
; 1 More
; 1 Wait
; 17 Goto
; 15 Let
; 35 PrintLn
; 14 If
; 2 DispFile
; 1 FOpen
; 1 FAppend
; 4 FClose
; 10 FGet
; 7 FPutLn
; 1 GetUser
; 1 PutUser
; 4 InputStr
; 3 Return
; 1 Delay
; 1 Newlines
; 1 Message
;
;
; ■ Functions used :
;
; 33 +
; 10 ==
; 1 >
; 8 !
; 1 Left()
; 4 Date()
; 1 Time()
; 2 U_Name()
; 1 String()
; 1 PCBDat()
; 4 PPEPath()
; 1 ReadLine()
; 2 Exist()
; 1 ValCC()
; 1 FmtCC()
; 2 CCType()
;
;------------------------------------------------------------------------------
;
; Analysis flags : Wd
;
; W - Write user ■ 5
; Program writes a user record. Although this may be normal for a
; User Editor, it may also be a way to modify an account level.
; ■ Search for : PUTUSER
;
; d - Access PCBOARD.DAT ■ 2
; Program gets the full pathname to PCBOARD.DAT, this may be usefull
; for many PPE so they can find various informations on the system
; (system paths, max number of lines in messages, ...) but it may also
; be a way to gather vital informations.
; ■ Search for : PCBDAT()
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 3 If/Then or If/Then/Else
; 2 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------