home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PCBOARD / PEPSTER.ZIP / HELLO.PPE (.txt) < prev    next >
PCBoard Programming Language Executable  |  1994-03-20  |  3KB  |  168 lines

  1. ;------------------------------------------------------------------------------
  2. ;                                                   .ss.
  3. ;                                                   `²²'
  4. ;             .,sS$Ss,,s$  .,sS$$$Ss.  .,sS$Ss,,s$ .ss.  .sSs.
  5. ;           .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
  6. ;           $$$'   .$$$' $$$²Sçsµ²' .$$$'   .$$$'.$$$' .$$$'  `$$b.
  7. ;           $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$'    ;$$$
  8. ;           `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
  9. ;                                    .sS²°$$$²²°"'       d²°'
  10. ;                                  .$$²  .$$'
  11. ;                                  $$$.,d$$'
  12. ;                                  `²S$$S²'
  13. ;------------------------------------------------------------------------------
  14. ; P.P.L.X. 2.OO                          (C)1996 - Lone Runner / AEGiS CoRP'96 
  15. ;------------------------------------------------------------------------------
  16. ; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
  17. ;------------------------------------------------------------------------------
  18.  
  19.     String   STRING001
  20.     String   STRING002
  21.     String   STRING003
  22.     String   STRING004
  23.  
  24. ;------------------------------------------------------------------------------
  25.  
  26.     STRING004 = Chr(13)
  27.     Cls
  28.     DispFile PPEPath() + "BYEG", 2 + 1 + 4
  29.     STRING002 = Date()
  30.     STRING001 = "01/01/90"
  31.     FOpen 2, PPEPath() + "DATETEST", 0, 2
  32.     If (Ferr(2)) Then
  33.         SPrintLn "ERROR, FILE DOESN'T EXIST!"
  34.     Endif
  35.     If (Ferr(2)) Goto LABEL001
  36.     FGet 2, STRING001
  37.     :LABEL001
  38.     FClose 2
  39.     If (CurSec() >= SysopSec()) Then
  40.         If (STRING001 < STRING002) Then
  41.             FCreate 1, PPEPath() + "BYEG", 1, 0
  42.             FPutLn 1, "@X04NO ONE HAS CALL FOR TODAY YET!"
  43.             FClose 1
  44.         Endif
  45.         End
  46.     Endif
  47.     KbdChkOff
  48.     If (STRING001 == STRING002) Then
  49.         FAppend 1, PPEPath() + "USERSG", 2, 3
  50.         FPut 1, "@X70│  @X71"
  51.         FPutPad 1, PcbNode(), -6
  52.         FPutPad 1, U_Name(), -20
  53.         FPutPad 1, Date(), 10
  54.         FPutPad 1, Time(), 10
  55.         FPutPad 1, Carrier(), 7
  56.         FPutPad 1, U_Logons(), 8
  57.         FPutPad 1, "            @X7F │", -18
  58.         FPutLn 1
  59.         FClose 1
  60.     ElseIf (STRING001 < STRING002) Then
  61.         FCreate 1, PPEPath() + "USERSG", 1, 0
  62.         FPut 1, "@X70│@X71  "
  63.         FPutPad 1, PcbNode(), -6
  64.         FPutPad 1, U_Name(), -20
  65.         FPutPad 1, Date(), 10
  66.         FPutPad 1, Time(), 10
  67.         FPutPad 1, Carrier(), 7
  68.         FPutPad 1, U_Logons(), 8
  69.         FPutPad 1, "            @X7F │", -18
  70.         FPutLn 1
  71.         FClose 1
  72.         FCreate 2, PPEPath() + "DATETEST", 1, 0
  73.         FPutLn 2, Date()
  74.         FClose 2
  75.     Endif
  76.     FCreate 4, PPEPath() + "BYEG", 1, 0
  77.     FPutLn 4, "@CLS@@X70┌────────────────────────────────────────────────────────────────────────────@X7F┐"
  78.     FPutLn 4, "@X70│@X74                      Previous Callers Log Ver 1.15                        @X7F │"
  79.     FPutLn 4, "@X70│@X71                         Written By John Pepp                               @X7F│"
  80.     FPutLn 4, "@X70│@X70                                                                            @X7F│"
  81.     FPutLn 4, "@X70│ @X74Node     @X70Name                  @X75Date      @X71Time     @X74Baud  @X70Total Calls       @X7F │"
  82.     FPutLn 4, "@X70│                                                                            @X7F│"
  83.     FOpen 1, PPEPath() + "USERSG", 0, 2
  84.     FGet 1, STRING003
  85.     :LABEL002
  86.     If (Ferr(1)) Goto LABEL003
  87.     FPutLn 4, STRING003
  88.     FGet 1, STRING003
  89.     Goto LABEL002
  90.     :LABEL003
  91.     FClose 1
  92.     FPutLn 4, "@X70│@X70                                                                            @X7F│"
  93.     FPutLn 4, "@X70│    @X75(313)421-9145         Open 24 Hours A Day     2400/9600/14000          @X7F │"
  94.     FPutLn 4, "@X70└@X7F────────────────────────────────────────────────────────────────────────────┘@X07 "
  95.     FClose 4
  96.     KbdChkOn
  97.     Color 7
  98.     End
  99.  
  100. ;------------------------------------------------------------------------------
  101. ;
  102. ; Usage report (before postprocessing)
  103. ;
  104. ; ■ Statements used :
  105. ;
  106. ;    2       End
  107. ;    1       Cls
  108. ;    1       Color 
  109. ;    9       Goto 
  110. ;    3       Let 
  111. ;    7       If 
  112. ;    1       DispFile 
  113. ;    4       FCreate 
  114. ;    2       FOpen 
  115. ;    1       FAppend 
  116. ;    7       FClose 
  117. ;    3       FGet 
  118. ;    2       FPut 
  119. ;    14      FPutLn 
  120. ;    14      FPutPad 
  121. ;    1       KbdChkOn
  122. ;    1       KbdChkOff
  123. ;    1       SPrintLn 
  124. ;
  125. ;
  126. ; ■ Functions used :
  127. ;
  128. ;    6       -
  129. ;    10      +
  130. ;    1       ==
  131. ;    2       <
  132. ;    1       >=
  133. ;    7       !
  134. ;    3       Ferr()
  135. ;    1       Chr()
  136. ;    4       Date()
  137. ;    2       Time()
  138. ;    2       U_Name()
  139. ;    2       U_Logons()
  140. ;    8       PPEPath()
  141. ;    2       PcbNode()
  142. ;    1       SysopSec()
  143. ;    1       CurSec()
  144. ;    2       Carrier()
  145. ;
  146. ;------------------------------------------------------------------------------
  147. ;
  148. ; Analysis flags : s
  149. ;
  150. ; s - Sysop level access ■ 5
  151. ;     Program is reading the sysop access level, this may be normal
  152. ;     but still it is very suspect. It is the best way to give a user
  153. ;     all priviledges. Check!
  154. ;     ■ Search for : SYSOPSEC()
  155. ;
  156. ;------------------------------------------------------------------------------
  157. ;
  158. ; Postprocessing report
  159. ;
  160. ;    0       For/Next
  161. ;    0       While/EndWhile
  162. ;    5       If/Then or If/Then/Else
  163. ;    0       Select Case
  164. ;
  165. ;------------------------------------------------------------------------------
  166. ;                 AEGiS Corp - Break the routines, code against the machines!
  167. ;------------------------------------------------------------------------------
  168.