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
- ;------------------------------------------------------------------------------
-
- Date DATE001
- Integer INTEGER001
- Integer INTEGER002
- Integer INTEGER003
- Integer INTEGER004
- String STRING001
- String STRING002
- String STRING003
- String STRING004
- String TSTRING005(100)
- String STRING006
- String STRING007
- String STRING008
- String STRING009
- String STRING010
- String STRING011
- String STRING012
- String STRING013
- String STRING014
- String STRING015
-
- ;------------------------------------------------------------------------------
-
- DATE001 = "10-24-93"
- PrintLn
- If (Date() > DATE001) Then
- PrintLn "@X0FPPE @X0Btrial period @X0Fhas @X0CEXPIRED@X0F - please tell @X0Esysop @X0Fto register it@X07"
- End
- Endif
- PrintLn "@X0FThis PPE is @X0EUNREGISTERED @X0F- please @X0Cregister @X0Fby " + String(DATE001) + " or it will @X0Dexpire@X07"
- PrintLn
- STRING007 = ReadLine(PCBDat(), 31)
- STRING008 = ReadLine(STRING007, 16)
- STRING009 = ReadLine(PCBDat(), 27)
- PrintLn "@X0B┌─────────────────────────────────────────────────────────────────────────┐@X07"
- PrintLn "@X0B│ @X0FThe @X0Enew @X0Afile @X0Dnames @X0Fwill automatically be placed in a downloadable list @X0B│@X07"
- PrintLn "@X0B│ @X0Fcalled @X0CNEWFILES.ZIP @X0Fand will be @X0Bflagged for download. │@X07"
- PrintLn "@X0B└─────────────────────────────────────────────────────────────────────────┘@X07"
- PrintLn
- PrintLn
- STRING014 = "flag.lst"
- STRING015 = "newfiles.lst"
- If (Exist(STRING014)) Delete STRING014
- If (Exist(STRING015)) Delete STRING015
- STRING010 = Strip(U_LDate(), "-")
- InputStr "@X0AWhat date to scan from @X0E(C/R for last date on)@X07 ", STRING010, 14, 6, "0123456789-", 2 + 4 + 256
- If (STRING010 == "") Then
- STRING010 = U_LDate()
- Else
- STRING010 = STRING010
- Endif
- STRING004 = ""
- STRING012 = ""
- PrintLn
- PrintLn " @X07E@X0Fnter the range of file directories you want to scan for new files."
- PrintLn " @X07Y@X0Fou may enter a @X0Esingle @X0Fdirectory, a @X0Erange @X0Fof directories or"
- PrintLn " @X0DU @X0Ffor the upload directory or @X0CA @X0Ffor all directories @X0EQ)uit@X07"
- PrintLn
- InputStr " @X0BFrom - (@X0Fdirectory to begin the scan or @X0Ainput a single directory@X0B) @X07", STRING004, 14, 3, "0123456789UuAa", 2 + 8 + 4 + 64
- Select Case (STRING004)
- Case ""
- End
- Case "A"
- Goto LABEL001
- Case "U"
- STRING011 = "U"
- Goto LABEL001
- Case "Q"
- End Select
- InputStr " @X0ATo - (@X0Fdirectory in range to end the scan - @X0EC/R if single dir@X0A) @X07", STRING012, 15, 3, "0123456789Uu", 2 + 8 + 4 + 128
- PrintLn
- If (STRING012 == "") Goto LABEL001
- STRING012 = "-" + STRING012
- :LABEL001
- PrintLn " T@X0Fhe @X0Afile directories @X07a@X0Fre @X07b@X0Feing @X07s@X0Fcanned @X07f@X0From @X0E(@X0F", STRING010, "@X0E)@X07"
- Newlines 2
- PrintLn " The range of directories scanned is @X0E(@X0F", STRING004, STRING012, "@X0E)@X07"
- PrintLn
- PrintLn " @X07M@X0Faking @X07N@X0Few @X07F@X0Files @X07L@X0Fist - @X07T@X0Fhis @X07m@X0Fay @X07t@X0Fake a @X07l@X0Fittle @X07t@X0Fime @X07@X07"
- Select Case (STRING004)
- Case "U"
- STRING011 = STRING004
- Case "A"
- STRING011 = STRING004
- Case Else
- STRING011 = STRING004 + STRING012
- End Select
- STRING014 = "newfilz" + String(PcbNode())
- STRING015 = ".zip"
- STRING013 = STRING008 + STRING014
- OpenCap "newfiles.lst", INTEGER001
- KbdStuff Chr(13)
- Dir "N;" + STRING010 + ";" + STRING011 + ";NS"
- CloseCap
- PrintLn
- PrintLn " @X0EZipping @X0FFile list and moving to upload directory@X07"
- PrintLn
- ShowOff
- Shell 1, INTEGER001, "PKZIP", " -ex " + STRING013 + " NEWFILES.LST"
- PrintLn
- ShowOn
- STRING004 = ""
- PrintLn " @X0F Would you like to @X0Aflag @X0Fthe @X0Bfile list @X0Fand @X0Aflag@X07"
- PrintLn
- InputStr " @X0Fthe files @X0Ffor @X0Edownload @X0F(up to 40 files) @X0Dautomatically@X07", STRING004, 14, 1, "YyNn", 2 + 4 + 8
- Newlines 2
- If (STRING004 == "Y") Goto LABEL002
- PrintLn
- PrintLn " @X0AYou can either download the list now or it will be @X0Eflagged @X0Afor later download@X07"
- PrintLn
- PrintLn
- PrintLn " @X0CPlease @X0Bdont forget to @X0Fdownload@X0E " + STRING014 + ".zip@X0F before logging off."
- PrintLn
- KbdStuff "flag " + STRING013 + STRING015
- End
- KbdStuff "d;NEWFILES.ZIP;z"
- Shell 1, STRING003, "dsz sz " + STRING008 + " newfiles.zip", ""
- PrintLn
- STRING004 = ""
- InputStr " Would you like to flag the new files for download now", STRING004, 14, 1, "YyNn", 2 + 4 + 8 + 256
- If (STRING004 == "") Goto LABEL006
- If (STRING004 == "Y") Goto LABEL002
- If (STRING004 == "N") Goto LABEL006
- :LABEL002
- PrintLn
- PrintLn " Currently @X0Bmaking @X0Fa list of files to @X0Cflag! @X0FPlease be patient@X07"
- PrintLn
- INTEGER004 = 1
- If (Exist("flag.lst")) Delete "flag.lst"
- FOpen 1, "newfiles.lst", 0, 0
- FOpen 2, "flag.lst", 2, 0
- INTEGER002 = 0
- INTEGER003 = 0
- :LABEL003
- If (Ferr(1)) Goto LABEL005
- INTEGER002 = INTEGER002 + 1
- INTEGER003 = INTEGER003 + 1
- INTEGER004 = INTEGER004 + 1
- FGet 1, STRING001
- STRING002 = Left(STRING001, 13)
- If (Left(STRING001, 13) == " ") Goto LABEL004
- If (Left(STRING001, 8) == "Scanning") Goto LABEL004
- TSTRING005(INTEGER002) = STRING002
- STRING002 = Upper(STRING002)
- STRING002 = Strip(STRING002, " ")
- STRING002 = RTrim(STRING002, "P")
- STRING002 = RTrim(STRING002, "I")
- STRING002 = RTrim(STRING002, "Z")
- STRING002 = RTrim(STRING002, ".")
- STRING002 = STRING002 + " "
- Print "."
- FPut 2, STRING002
- :LABEL004
- Goto LABEL003
- :LABEL005
- ShowOn
- INTEGER003 = 0
- For INTEGER003 = 1 To INTEGER002
- STRING006 = STRING006 + TSTRING005(INTEGER003)
- Next
- PrintLn
- PrintLn " The @X0BFiles @X0Fwill now be @X0Cflagged @X0Ffor @X0Adownload@X07"
- KbdStuff "flag"
- KbdFile "flag.lst"
- :LABEL006
- Delete "newfiles.lst"
- FClose 1
- FClose 2
-
- ;------------------------------------------------------------------------------
- ;
- ; Usage report (before postprocessing)
- ;
- ; ■ Statements used :
- ;
- ; 3 End
- ; 27 Goto
- ; 40 Let
- ; 1 Print
- ; 38 PrintLn
- ; 20 If
- ; 2 FOpen
- ; 2 FClose
- ; 1 FGet
- ; 1 FPut
- ; 4 Delete
- ; 5 InputStr
- ; 2 Newlines
- ; 2 Shell
- ; 4 KbdStuff
- ; 1 Dir
- ; 1 KbdFile
- ; 1 OpenCap
- ; 1 CloseCap
- ; 2 ShowOn
- ; 1 ShowOff
- ;
- ;
- ; ■ Functions used :
- ;
- ; 37 +
- ; 14 ==
- ; 1 <
- ; 1 <=
- ; 1 >
- ; 2 >=
- ; 10 !
- ; 2 &&
- ; 1 ||
- ; 1 Upper()
- ; 3 Left()
- ; 1 Ferr()
- ; 1 Chr()
- ; 4 RTrim()
- ; 1 Date()
- ; 2 U_LDate()
- ; 2 Strip()
- ; 2 String()
- ; 2 PCBDat()
- ; 1 PcbNode()
- ; 3 ReadLine()
- ; 3 Exist()
- ;
- ;------------------------------------------------------------------------------
- ;
- ; Analysis flags : Sd
- ;
- ; S - Shell to DOS ■ 5
- ; This may be normal if the PPE need to execute an external command,
- ; but may be actually anything... nasty (formating HD, rebooting,...)
- ; or usefull (sorting, maintenance,...). Check!
- ; ■ Search for : SHELL
- ;
- ; 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
- ;
- ; 1 For/Next
- ; 0 While/EndWhile
- ; 2 If/Then or If/Then/Else
- ; 2 Select Case
- ;
- ;------------------------------------------------------------------------------
- ; AEGiS Corp - Break the routines, code against the machines!
- ;------------------------------------------------------------------------------
-