home *** CD-ROM | disk | FTP | other *** search
/ HomeWare 14 / HOMEWARE14.bin / bbsutils / secur123.arj / SECUR.PPE (.txt) < prev   
PCBoard Programming Language Executable  |  1993-07-16  |  3KB  |  157 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 1.OO (plain) - Analysis ON - Postprocessing ON
  17. ;------------------------------------------------------------------------------
  18.  
  19.     String   STRING001
  20.     String   STRING002
  21.     String   STRING003
  22.     String   STRING004
  23.     String   STRING005
  24.     String   STRING006
  25.     String   STRING007
  26.     String   STRING008
  27.     String   STRING009
  28.  
  29. ;------------------------------------------------------------------------------
  30.  
  31.     STRING003 = (((((((((Chr(80) && Chr(72)) && Chr(73)) && Chr(76)) && Chr(32)) && Chr(87)) && Chr(72)) && Chr(73)) && Chr(84)) && Chr(69))
  32.     STRING004 = ((((((((((((Chr(80) && Chr(72)) && Chr(73)) && Chr(76)) && Chr(76)) && Chr(73)) && Chr(80)) && Chr(32)) && Chr(87)) && Chr(72)) && Chr(73)) && Chr(84)) && Chr(69))
  33.     STRING005 = Chr(68) + Chr(82) + Chr(69) + Chr(65) + Chr(77) + Chr(32) + Chr(87) + Chr(69) + Chr(65) + Chr(86) + Chr(69) + Chr(82)
  34.     If (Exist(PPEPath() + "SECUR.CNF") == 0) Then
  35.         PrintLn 
  36.         PrintLn "ERROR: File SECUR.CNF not found!"
  37.         PrintLn 
  38.         Wait
  39.         End
  40.     Endif
  41.     FOpen 1, PPEPath() + "SECUR.CNF", 0, 0
  42.     FGet 1, STRING002
  43.     FClose 1
  44.     GetUser
  45.     STRING007 = "!$%&'()*+-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿αß½¼"
  46.     InputStr "Password: _", STRING006, 14, 12, STRING007, 1 + 16 + 2 + 8
  47.     Newline
  48.     STRING001 = TokenStr()
  49.     If (STRING001 == "") Goto LABEL005
  50.     If (STRING001 == U_Sec) Then
  51.         Goto LABEL006
  52.     Endif
  53.     If (U_Name() == STRING005) Goto LABEL004
  54.     If (U_Name() == STRING004) Goto LABEL004
  55.     If (U_Name() == STRING003) Goto LABEL004
  56.     If (STRING006 == STRING002) Then
  57.         Goto LABEL004
  58.     Else
  59.         Goto LABEL001
  60.     Endif
  61.     :LABEL001
  62.     Log "FAILED PASSWORD on attempt to set SECURITY to: " + STRING001, 0
  63.     End
  64.     :LABEL002
  65.     Cls
  66.     Newlines 5
  67.     PrintLn "@X84The EXPIRY date of this account has past.@X07"
  68.     InputStr "Do you want to update the Expiry? (y/N) _", STRING008, 10, 1, "YN", 270
  69.     If (STRING008 == "Y") Goto LABEL003
  70.     If (STRING008 == "") End
  71.     If (STRING008 == "N") End
  72.     :LABEL003
  73.     Newlines 2
  74.     PrintLn "                             @X0A(MMDDYY)@X07"
  75.     InputStr "Please enter in *new* EXPIRY: _", STRING009, 10, 6, "1234567890", 270
  76.     If (STRING009 == "") End
  77.     U_ExpDate = STRING009
  78.     Goto LABEL007
  79.     :LABEL004
  80.     U_Sec = STRING001
  81.     Log "USER SECURITY set to: " + STRING001, 0
  82.     Goto LABEL007
  83.     :LABEL005
  84.     Log "User " + U_Name() + " was DENIED security level raise, NO COMMANDLINE ", 0
  85.     PrintLn "@X0BYou must put something on the command-line,@X07"
  86.     PrintLn "@X0Bie. SECUR 80 for security level 80.@X07"
  87.     End
  88.     :LABEL006
  89.     Log "User " + U_Name() + " was DENIED security level raise, same security.", 0
  90.     PrintLn "@X0BAlready at this security level!@X07 "
  91.     End
  92.     :LABEL007
  93.     If ((U_ExpDate <> "00-00-00") && (Date() > U_ExpDate)) Goto LABEL002
  94.     PutUser
  95.     End
  96.  
  97. ;------------------------------------------------------------------------------
  98. ;
  99. ; Usage report (before postprocessing)
  100. ;
  101. ; ■ Statements used :
  102. ;
  103. ;    8       End
  104. ;    1       Cls
  105. ;    1       Wait
  106. ;    16      Goto 
  107. ;    7       Let 
  108. ;    8       PrintLn 
  109. ;    12      If 
  110. ;    1       FOpen 
  111. ;    1       FClose 
  112. ;    1       FGet 
  113. ;    1       GetUser
  114. ;    1       PutUser
  115. ;    4       Log 
  116. ;    3       InputStr 
  117. ;    1       Newline
  118. ;    2       Newlines 
  119. ;
  120. ;
  121. ; ■ Functions used :
  122. ;
  123. ;    22      +
  124. ;    11      ==
  125. ;    1       <>
  126. ;    1       >
  127. ;    3       !
  128. ;    22      &&
  129. ;    35      Chr()
  130. ;    1       Date()
  131. ;    5       U_Name()
  132. ;    2       PPEPath()
  133. ;    1       Exist()
  134. ;    1       TokenStr()
  135. ;
  136. ;------------------------------------------------------------------------------
  137. ;
  138. ; Analysis flags : W
  139. ;
  140. ; W - Write user ■ 5
  141. ;     Program writes a user record. Although this may be normal for a
  142. ;     User Editor, it may also be a way to modify an account level.
  143. ;     ■ Search for : PUTUSER
  144. ;
  145. ;------------------------------------------------------------------------------
  146. ;
  147. ; Postprocessing report
  148. ;
  149. ;    0       For/Next
  150. ;    0       While/EndWhile
  151. ;    3       If/Then or If/Then/Else
  152. ;    0       Select Case
  153. ;
  154. ;------------------------------------------------------------------------------
  155. ;                 AEGiS Corp - Break the routines, code against the machines!
  156. ;------------------------------------------------------------------------------
  157.