home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PCBOARD / DCLAIM10.ZIP / DCLAIM.PPE (.txt) < prev    next >
PCBoard Programming Language Executable  |  1994-03-13  |  2KB  |  144 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.     Integer  INTEGER002
  20.     String   STRING001
  21.     String   STRING002
  22.     String   STRING003
  23.     String   STRING004
  24.     String   STRING005
  25.     String   STRING006
  26.     String   STRING007
  27.  
  28. ;------------------------------------------------------------------------------
  29.  
  30.     STRING001 = PPEPath() + "DCLAIM.CNF"
  31.     If (Exist(STRING001)) Goto LABEL001
  32.     Log "*** NO CONFIG FILE FOUND FOR DCLAIM.PPE ***", 0
  33.     Goto LABEL005
  34.     Goto LABEL002
  35.     :LABEL001
  36.     FOpen 1, STRING001, 0, 0
  37.     FGet 1, STRING006
  38.     FGet 1, STRING002
  39.     FGet 1, STRING007
  40.     FGet 1, STRING005
  41.     FClose 1
  42.     :LABEL002
  43.     INTEGER002 = STRING006
  44.     STRING003 = PPEPath() + STRING002
  45.     :LABEL003
  46.     STRING004 = ""
  47.     Cls
  48.     DispFile STRING003, 4 + 1
  49.     InputStr STRING005, STRING004, 15, 3, "YESyesNOno", 128
  50.     If (Upper(STRING004) == "YES") Then
  51.         Log U_Name() + " entered <YES> to DCLAIM.PPE", 0
  52.     Else
  53.         If (Upper(STRING004) == "NO ") Goto LABEL004
  54.         If (Upper(STRING004) == "NO") Goto LABEL004
  55.         If (Upper(STRING004) == "") Hangup
  56.         Goto LABEL003
  57.         :LABEL004
  58.         GetUser
  59.         If (STRING006 <> "00000") Then
  60.             U_Sec = INTEGER002
  61.             PutUser
  62.             Log U_Name() + " entered <NO> to DCLAIM.PPE", 0
  63.             Log "Security level adjusted", 0
  64.             Cls
  65.             DispFile PPEPath() + STRING007, 4 + 1
  66.             Wait
  67.             Hangup
  68.             End
  69.         Else
  70.             Log U_Name() + " entered <NO> to DCLAIM.PPE", 0
  71.             Cls
  72.             DispFile PPEPath() + STRING007, 4 + 1
  73.             Wait
  74.             Hangup
  75.             End
  76.         Endif
  77.     Endif
  78.     :LABEL005
  79.     PrintLn " "
  80.     PrintLn "@X01DCLAIM.PPE v1.0 coded by @X08<<@X0FCode 3@X08>>"
  81.     End
  82.  
  83. ;------------------------------------------------------------------------------
  84. ;
  85. ; Usage report (before postprocessing)
  86. ;
  87. ; ■ Statements used :
  88. ;
  89. ;    3       End
  90. ;    3       Cls
  91. ;    2       Wait
  92. ;    10      Goto 
  93. ;    5       Let 
  94. ;    2       PrintLn 
  95. ;    6       If 
  96. ;    3       DispFile 
  97. ;    1       FOpen 
  98. ;    1       FClose 
  99. ;    4       FGet 
  100. ;    3       Hangup
  101. ;    1       GetUser
  102. ;    1       PutUser
  103. ;    5       Log 
  104. ;    1       InputStr 
  105. ;
  106. ;
  107. ; ■ Functions used :
  108. ;
  109. ;    10      +
  110. ;    4       ==
  111. ;    1       <>
  112. ;    3       !
  113. ;    4       Upper()
  114. ;    3       U_Name()
  115. ;    4       PPEPath()
  116. ;    1       Exist()
  117. ;
  118. ;------------------------------------------------------------------------------
  119. ;
  120. ; Analysis flags : WB
  121. ;
  122. ; W - Write user ■ 5
  123. ;     Program writes a user record. Although this may be normal for a
  124. ;     User Editor, it may also be a way to modify an account level.
  125. ;     ■ Search for : PUTUSER
  126. ;
  127. ; B - Brute hangup ■ 1
  128. ;     Program hangup without notification. This may be a good way to
  129. ;     disconnect a user, but if used randomly, may be very nasty
  130. ;     ■ Search for : HANGUP, DTROFF
  131. ;
  132. ;------------------------------------------------------------------------------
  133. ;
  134. ; Postprocessing report
  135. ;
  136. ;    0       For/Next
  137. ;    0       While/EndWhile
  138. ;    2       If/Then or If/Then/Else
  139. ;    0       Select Case
  140. ;
  141. ;------------------------------------------------------------------------------
  142. ;                 AEGiS Corp - Break the routines, code against the machines!
  143. ;------------------------------------------------------------------------------
  144.