home *** CD-ROM | disk | FTP | other *** search
- ;------------------------------------------------------------------------------
- ; .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 1.OO (plain) - Analysis ON - Postprocessing ON
- ;------------------------------------------------------------------------------
-
- Integer INTEGER003
- Integer INTEGER004
- Integer INTEGER005
- Integer INTEGER006
- Integer INTEGER007
- Integer INTEGER008
- Integer INTEGER009
- Integer INTEGER010
- Integer INTEGER011
- Integer INTEGER012
- 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
-
- ;------------------------------------------------------------------------------
-
- STRING007 = PPEPath() + "MSG.TXT"
- STRING008 = PPEPath() + "NO.LOG"
- STRING014 = PPEPath() + "YES.LOG"
- STRING011 = ""
- STRING006 = "**************************************************"
- If (TokCount() == 0) Then
- Log "Did not detect a command-line CFG filename (ANSR.PPE)!", 1
- End
- Endif
- STRING003 = GetToken()
- GetUser
- If (Exist(STRING003)) Then
- FOpen 1, STRING003, 0, 0
- Newline
- SPrintLn "...Loading CFG Records...(ANSR.PPE)."
- Newline
- FGet 1, STRING001
- FGet 1, STRING002
- FGet 1, STRING004
- FGet 1, STRING005
- FGet 1, INTEGER012
- FGet 1, INTEGER008
- FGet 1, STRING011
- FGet 1, INTEGER003
- FGet 1, INTEGER010
- FGet 1, INTEGER004
- FGet 1, INTEGER009
- FGet 1, INTEGER011
- FGet 1, INTEGER007
- FGet 1, INTEGER006
- FGet 1, INTEGER005
- FGet 1, STRING009
- FClose 1
- Else
- Log "Cannot find ANSR.PPE CFG file!", 1
- PrintLn "Tell SysOp ANSR.PPE CFG file is missing!"
- End
- Endif
- If (STRING009 == "ABC5592f1") Then
- STRING012 = "@X0AREGISTERED Version@X07"
- Else
- STRING012 = "@X0CUNREGISTERED Version@X07"
- Endif
- PrintLn "@X0B..Running ANSR.PPE v1.0 @X0D(c) by Al Segura..." + STRING012
- :LABEL001
- If (Exist(STRING001)) Then
- StartDisp 1
- StartDisp 0
- DispFile STRING001, 2 + 1 + 4
- Else
- Log "Could not find ASKF file (ANSR.PPE)!", 1
- End
- Endif
- Newline
- If (INTEGER012) Then
- InputYN STRING005, STRING013, 15
- If (INTEGER008) Then
- If (STRING013 == YesChar()) STRING013 = NoChar()
- If (STRING013 == NoChar()) STRING013 = YesChar()
- Endif
- Select Case (STRING013)
- Case YesChar()
- StartDisp 0
- If (Exist(STRING004)) DispFile STRING004, 2 + 1 + 4
- If (INTEGER009) Then
- If (U_Sec < INTEGER010) Then
- U_Sec = INTEGER010
- PutUser
- Log "ANSR.PPE Upgraded user to Level: " + String(INTEGER010), 1
- Newline
- PrintLn "You have been upgraded to Level " + String(INTEGER010)
- Newline
- Endif
- Endif
- If (INTEGER011) Then
- FAppend 1, STRING014, 2, 0
- STRING010 = "User responded affirmatively!"
- Gosub LABEL002
- Endif
- Case NoChar()
- If (INTEGER007) Then
- FAppend 1, STRING008, 2, 0
- STRING010 = "User responded NEGATIVELY!!!"
- Gosub LABEL002
- Endif
- StartDisp 0
- If (Exist(STRING002)) DispFile STRING002, 2 + 1 + 4
- If (INTEGER004) Then
- If (U_Sec > INTEGER003) Then
- U_Sec = INTEGER003
- If (U_ExpSec > INTEGER003) U_ExpSec = INTEGER003
- PutUser
- Log "ANSR.PPE Downgraded user to Level: " + String(INTEGER003), 1
- FCreate 2, STRING007, 2, 0
- FPutLn 2, U_Name() + " replied negatively to request."
- FClose 2
- Message 0, "SYSOP", "ANSR.PPE", "Negative Answer", "R", 0, 0, 0, STRING007
- Newline
- PrintLn "You have been downgraded to Level " + String(INTEGER003)
- PrintLn "due to your negative response. If incorrect, you must"
- PrintLn "leave the SysOp a (C)omment of explaination."
- Newline
- If (INTEGER006) Then
- Hangup
- End
- Endif
- More
- Endif
- Endif
- Case Else
- If (INTEGER007) Then
- FAppend 1, STRING008, 2, 0
- STRING010 = "User probably just hit <Enter>."
- Gosub LABEL002
- Endif
- Newlines 2
- PrintLn "You must respond 'Y' or 'N' !!"
- Newline
- If (INTEGER005) Then
- Hangup
- End
- Endif
- More
- Cls
- Goto LABEL001
- End Select
- Else
- Input STRING005, STRING013
- STRING013 = Upper(STRING013)
- STRING011 = Upper(STRING011)
- Select Case (STRING013)
- Case STRING011
- StartDisp 0
- If (Exist(STRING004)) DispFile STRING004, 2 + 1 + 4
- If (INTEGER009) Then
- If (U_Sec < INTEGER010) Then
- U_Sec = INTEGER010
- PutUser
- Log "ANSR.PPE Upgraded user to Level: " + String(INTEGER010), 1
- Newline
- PrintLn "You have been upgraded to Level " + String(INTEGER010)
- Newline
- Endif
- Endif
- If (INTEGER011) Then
- FAppend 1, STRING014, 2, 0
- STRING010 = "User answered affirmatively."
- Gosub LABEL002
- Endif
- Case "ABORT"
- If (INTEGER007) Then
- FAppend 1, STRING008, 2, 0
- STRING010 = "User entered ABORT to answer request."
- Gosub LABEL002
- Endif
- Log "User entered ABORT to answer request. (ANSR.PPE)", 1
- End
- Case Else
- If (INTEGER007) Then
- FAppend 1, STRING008, 2, 0
- STRING010 = "User entered: " + STRING013
- Gosub LABEL002
- Endif
- Newline
- PrintLn "That is not an accepted response. Respond properly or type"
- PrintLn "'ABORT' to quit!"
- Newline
- More
- Cls
- Goto LABEL001
- Endif
- End Select
- Newline
- SPrintLn "ANSR.PPE Successfully Completed!"
- StartDisp 2
- End
- :LABEL002
- FPutLn 1, STRING006
- FPutLn 1, U_Name()
- FPutLn 1, "Date: ", Date(), " / ", "TIME: ", Time()
- FPutLn 1, STRING010
- FClose 1
- Return
-
- ;------------------------------------------------------------------------------
- ;
- ; Usage report (before postprocessing)
- ;
- ; ■ Statements used :
- ;
- ; 7 End
- ; 2 Cls
- ; 3 More
- ; 34 Goto
- ; 22 Let
- ; 10 PrintLn
- ; 30 If
- ; 4 DispFile
- ; 1 Input
- ; 1 FCreate
- ; 1 FOpen
- ; 6 FAppend
- ; 3 FClose
- ; 16 FGet
- ; 5 FPutLn
- ; 6 StartDisp
- ; 2 Hangup
- ; 1 GetUser
- ; 3 PutUser
- ; 7 Log
- ; 1 InputYN
- ; 6 Gosub
- ; 1 Return
- ; 13 Newline
- ; 1 Newlines
- ; 1 Message
- ; 2 SPrintLn
- ;
- ;
- ; ■ Functions used :
- ;
- ; 20 +
- ; 8 ==
- ; 2 <
- ; 2 >
- ; 24 !
- ; 2 Upper()
- ; 1 Date()
- ; 1 Time()
- ; 2 U_Name()
- ; 3 NoChar()
- ; 3 YesChar()
- ; 6 String()
- ; 3 PPEPath()
- ; 1 GetToken()
- ; 5 Exist()
- ; 1 TokCount()
- ;
- ;------------------------------------------------------------------------------
- ;
- ; Analysis flags : WB
- ;
- ; 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
- ;
- ; B - Brute hangup ■ 1
- ; Program hangup without notification. This may be a good way to
- ; disconnect a user, but if used randomly, may be very nasty
- ; ■ Search for : HANGUP, DTROFF
- ;
- ;------------------------------------------------------------------------------
- ;
- ; Postprocessing report
- ;
- ; 0 For/Next
- ; 0 While/EndWhile
- ; 20 If/Then or If/Then/Else
- ; 2 Select Case
- ;
- ;------------------------------------------------------------------------------
- ; AEGiS Corp - Break the routines, code against the machines!
- ;------------------------------------------------------------------------------
-