home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PCBOARD / WHOC703.ZIP / WHOINFO.PPE (.txt) < prev    next >
PCBoard Programming Language Executable  |  1994-03-13  |  2KB  |  122 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  INTEGER001
  20.     String   STRING002
  21.     String   STRING003
  22.     String   STRING004
  23.     String   STRING005
  24.     String   STRING006
  25.     String   STRING007
  26.  
  27. ;------------------------------------------------------------------------------
  28.  
  29.     STRING004 = GetEnv("WHOHOME")
  30.     PrintLn 
  31.     PrintLn "Standby Please, Posting User Statistics . . ."
  32.     PrintLn 
  33.     If (Psa(3)) Then
  34.         GetUser
  35.         STRING005 = STRING004 + "\addinfo." + String(PcbNode())
  36.         FOpen 1, STRING005, 1, 0
  37.         FPutLn 1, U_Addr(0)
  38.         FPutLn 1, U_Addr(1)
  39.         FPutLn 1, U_Addr(2)
  40.         FPutLn 1, U_Addr(3)
  41.         FPutLn 1, U_Addr(4)
  42.         FPutLn 1, U_Addr(5)
  43.         FClose 1
  44.     Endif
  45.     STRING006 = STRING004 + "\whologon.bat"
  46.     Shell 1, INTEGER001, STRING006, ""
  47.     STRING003 = STRING004 + "\whoinfo." + String(PcbNode())
  48.     STRING007 = STRING004 + "\whoinfo.hdr"
  49.     FOpen 1, STRING007, 0, 0
  50.     :LABEL001
  51.     If (Ferr(1)) Goto LABEL002
  52.     FGet 1, STRING002
  53.     PrintLn STRING002
  54.     Goto LABEL001
  55.     :LABEL002
  56.     FClose 1
  57.     FOpen 1, STRING003, 0, 0
  58.     If (Ferr(1)) Then
  59.         PrintLn "Error!, Exiting!"
  60.         End
  61.     Endif
  62.     :LABEL003
  63.     If (Ferr(1)) Goto LABEL004
  64.     FGet 1, STRING002
  65.     PrintLn STRING002
  66.     Goto LABEL003
  67.     :LABEL004
  68.     FClose 1
  69.     End
  70.  
  71. ;------------------------------------------------------------------------------
  72. ;
  73. ; Usage report (before postprocessing)
  74. ;
  75. ; ■ Statements used :
  76. ;
  77. ;    2       End
  78. ;    6       Goto 
  79. ;    5       Let 
  80. ;    6       PrintLn 
  81. ;    4       If 
  82. ;    3       FOpen 
  83. ;    3       FClose 
  84. ;    2       FGet 
  85. ;    6       FPutLn 
  86. ;    1       GetUser
  87. ;    1       Shell 
  88. ;
  89. ;
  90. ; ■ Functions used :
  91. ;
  92. ;    6       +
  93. ;    4       !
  94. ;    3       Ferr()
  95. ;    2       String()
  96. ;    2       PcbNode()
  97. ;    1       GetEnv()
  98. ;    1       Psa()
  99. ;
  100. ;------------------------------------------------------------------------------
  101. ;
  102. ; Analysis flags : S
  103. ;
  104. ; S - Shell to DOS ■ 5
  105. ;     This may be normal if the PPE need to execute an external command,
  106. ;     but may be actually anything... nasty (formating HD, rebooting,...)
  107. ;     or usefull (sorting, maintenance,...). Check!
  108. ;     ■ Search for : SHELL
  109. ;
  110. ;------------------------------------------------------------------------------
  111. ;
  112. ; Postprocessing report
  113. ;
  114. ;    0       For/Next
  115. ;    0       While/EndWhile
  116. ;    2       If/Then or If/Then/Else
  117. ;    0       Select Case
  118. ;
  119. ;------------------------------------------------------------------------------
  120. ;                 AEGiS Corp - Break the routines, code against the machines!
  121. ;------------------------------------------------------------------------------
  122.