home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 005 / wildpack.zip / FORCEBUL.WCX (.txt) < prev    next >
Wildcat! WCX  |  1994-12-05  |  4KB  |  345 lines

  1. '! Decompiled with wccNosy version 4.20f (freeware)
  2. '! Input File: in.wcx  3793 bytes  02/01/123  06:46:18am
  3. '! Code Segment Size  :2892 bytes
  4. '! Data Segment Size  :5897 bytes
  5. '! String Segment Size:901 bytes
  6. '! Compiled with WCC version 4.01
  7.  
  8.       Type Type27
  9.         s0 As String*50
  10.         Filler50(1 To 122) As Byte
  11.         s172 As String*60
  12.         s232 As String*10
  13.       End Type
  14.  
  15.       Type Type26
  16.         Filler0(1 To 1) As Byte
  17.         s1 As String*1
  18.         i2 As Integer
  19.       End Type
  20.  
  21.       Declare Function Func333 As Boolean
  22.       Declare Sub Sub1560
  23.       Declare Function Func1893 As String
  24.       Declare Sub Sub2237
  25.       Declare Sub Sub2418
  26.       Declare Sub Sub2445(s65534 As String)
  27.       Declare Sub Sub2740
  28.  
  29.       Dim t26_4463(1 To 260) As Type26
  30.       Dim t27_5503 As Type27
  31.       Dim s5745 As String*140
  32.       Dim o5885 As Boolean
  33.       Dim b5886 As Byte
  34.       Dim b5887 As Byte
  35.       Dim i5888 As Integer
  36.       Dim s5890 As String
  37.       Dim b5894 As Byte
  38.       Dim i5895 As Integer
  39.  
  40.       s5745 = ProgPath + "forcebul.ini"
  41.       b5886 = 1
  42.       b5887 = 0
  43.       i5888 = 0
  44.       i5895 = 0
  45.       o5885 = Func333
  46.       If Not Exists(s5745) Then
  47.         Sub2237
  48.       End If
  49.   115 Sub1560
  50.       Open s5745 For Input As 1
  51.   142 Do While i5895 = 0
  52.         s5890 = Func1893
  53.         If EOF(1) Then
  54.           i5895 = -1
  55.         End If
  56.   185   If i5895 = 0 Then
  57.           If s5890 = "times" Then
  58.             If b5887 < User.TimesOn Then
  59.               Sub2418
  60.             End If
  61.   245       s5890 = Func1893
  62.           End If
  63.   255     b5894 = 1
  64.           If Not Exists(s5890) Then
  65.             b5894 = 0
  66.           End If
  67.   283     If b5894 = 1 Then
  68.             Sub2445(s5890)
  69.           End If
  70.         End If
  71.   307 Loop
  72.   313 Sub2740
  73.       Close 1
  74.       End 
  75.  
  76. '! Called 1 time
  77.       Function Func333 As Boolean
  78.         Dim l65476 As Long
  79.         Dim i65480 As Integer
  80.         Dim l65482 As Long
  81.         Dim i65486 As Integer
  82.         Dim l65488 As Long
  83.         Dim i65492 As Integer
  84.         Dim b65494 As Byte
  85.         Dim o65495 As Boolean
  86.         Dim s65496(1 To 3) As String
  87.         Dim s65508 As String
  88.         Dim s65512 As String*1
  89.         Dim i65513 As Integer
  90.         Dim i65515 As Integer
  91.         Dim s65517 As String
  92.         Dim s65521 As String
  93.         Dim i65525 As Integer
  94.         Dim i65527 As Integer
  95.         Dim i65529 As Integer
  96.         Dim s65531 As String
  97.  
  98.         s65531 = ProgPath + "tvs.key"
  99.         i65529 = 69
  100.         s65521 = Chr(255)
  101.         s65512 = Chr(0)
  102.         i65515 = 0
  103.         b65494 = 0
  104.         s65508 = ProgPath + "tvs.cfg"
  105.         o65495 = 0
  106.         Func333 = 0
  107.         If Not Exists(s65531) Then
  108.           Func333 = 0
  109.         Else
  110.   447     If Not Exists(s65508) Then
  111.             Func333 = 0
  112.           Else
  113.   474       Open s65531 For Random As 1 Len = 4 '! This value should probably be replaced with a "SizeOf" expression
  114.   515       For i65515 = 1 To 260 Step 1
  115.               Get 1, i65515, t26_4463(i65515) '! 4 bytes
  116.             Next
  117.   633       i65527 = i65529
  118.             i65515 = 0
  119.             i65513 = 1
  120.   656       Do While t26_4463(i65527).s1 <> s65521 And i65515 < 255
  121.               If t26_4463(i65527).s1 = s65512 Then
  122.                 If i65513 = 1 Then
  123.                   t27_5503.s0 = s65517
  124.                 End If
  125.   798           If i65513 = 7 Then
  126.                   t27_5503.s172 = s65517
  127.                 End If
  128.   827           s65517 = ""
  129.                 i65513 = i65513 + 1
  130.               End If
  131.   850         s65517 = s65517 + t26_4463(i65527).s1
  132.               i65525 = t26_4463(i65527).i2
  133.               i65527 = i65525
  134.               i65515 = i65515 + 1
  135.             Loop
  136.   974       t27_5503.s232 = s65517
  137.             Close 1
  138.             If s65517 = "" Then
  139.               Func333 = 0
  140.             Else
  141.  1022         Open s65508 For Input As 2
  142.  1062         For i65527 = 1 To 3 Step 1
  143.                 Input #2, s65496(i65527)
  144.               Next
  145.  1171
  146.  1192         For i65515 = 1 To 3 Step 1
  147.                 If InStr(UCase(t27_5503.s0), UCase(s65496(i65515))) > 0 Then
  148.                   b65494 = b65494 + 1
  149.                 End If
  150.  1313           If InStr(UCase(t27_5503.s172), UCase(s65496(i65515))) > 0 Then
  151.                   b65494 = b65494 + 1
  152.                 End If
  153.  1388           If InStr(UCase(s65496(i65515)), UCase(t27_5503.s232)) > 0 Then
  154.                   b65494 = b65494 + 1
  155.                 End If
  156.  1463         Next
  157.  1486         If b65494 = 3 Then
  158.                 o65495 = -1
  159.               End If
  160.  1509         Close 2
  161.               Func333 = o65495
  162.             End If
  163.           End If
  164.         End If
  165.  1524
  166.       End Function
  167.  
  168. '! Called 1 time
  169.       Sub Sub1560
  170.         Dim i65388 As Integer
  171.         Dim s65392 As String
  172.         Dim s65396 As String*140
  173.  
  174.         i65388 = -1
  175.         If ANSIEnabled Then
  176.           s65396 = ProgPath + "disp\" + "forcebul.scr"
  177.           If Not Exists(s65396) Then
  178.             s65396 = ProgPath + "disp\" + "forcebul.bbs"
  179.             If Not Exists(s65396) Then
  180.               Cls 
  181.               Print "@0E@You will need to view some files as chosen by the SysOp"
  182.               Print "This is mandetory. Thank you."
  183.               Print
  184.               Print "                                    @0A@The Management"
  185.               Print
  186.               WaitEnter 
  187.               i65388 = 0
  188.             End If
  189.           End If
  190.  1709   Else
  191.  1715     s65396 = ProgPath + "disp\" + "forcebul.bbs"
  192.         End If
  193.  1738   If i65388 = -1 Then
  194.           Open s65396 For Input As 2
  195.           i5888 = 0
  196.           Input #2, s65392
  197.  1788     Do While Not EOF(2)
  198.             Print s65392
  199.             Input #2, s65392
  200.             i5888 = i5888 + 1
  201.             If i5888 >= User.LinesPerPage - 3 Then
  202.               WaitEnter 
  203.               i5888 = 0
  204.               Cls 
  205.             End If
  206.  1869     Loop
  207.  1875     WaitEnter 
  208.         End If
  209.  1878   Print s65392
  210.       End Sub
  211.  
  212. '! Called 2 times
  213.       Function Func1893 As String
  214.         Dim s65521 As String
  215.         Dim i65525 As Integer
  216.         Dim b65527 As Byte
  217.         Dim s65528 As String
  218.  
  219.         b65527 = 0
  220.         i65525 = -1
  221.         Input #1, s65528
  222.         If EOF(1) Then
  223.           Sub2418
  224.         End If
  225.  1940   If InStr(";", s65528) = 1 Or InStr(" ", s65528) = 1 Or s65528 = "" Then
  226.           b5886 = b5886 + 1
  227.         End If
  228.  2007   If b5886 > 1 And b5887 = 0 Then
  229.           Sub2237
  230.         End If
  231.  2038   If b5886 = 1 Then
  232.           b5887 = Val(s65528)
  233.           If b5887 < 0 Or b5887 > 10 Then
  234.             End 
  235.           End If
  236.  2091     Func1893 = "times"
  237.           i65525 = 0
  238.         End If
  239.  2106   b5886 = b5886 + 1
  240.         If i65525 = -1 Then
  241.           s65521 = s65528 + ".scr"
  242.           s65528 = s65528 + ".bbs"
  243.           If ANSIEnabled Then
  244.             If Exists(s65521) Then
  245.               s65528 = s65521
  246.             End If
  247.           End If
  248.  2196     Func1893 = s65528
  249.           b5886 = b5886 + 1
  250.         End If
  251.  2218
  252.       End Function
  253.  
  254. '! Called 2 times
  255.       Sub Sub2237
  256.         Dim d65394 As Date
  257.         Dim s65396 As String*140
  258.  
  259.         s65396 = ProgPath + "errorfb.log"
  260.         CurrentDate d65394
  261.         If Exists(s65396) Then
  262.           Open s65396 For Append As 4
  263.         Else
  264.  2310     Open s65396 For Output As 4
  265.         End If
  266.  2331   Beep 
  267.         Cls 
  268.         Print "@0C@Error @0E@has occured in FORCEBUL.WCX."
  269.         Print
  270.         Print "@0E@Please inform the Sysop of this error."
  271.         WaitEnter 
  272.         Print #4, "Error has occured with FORCEBUL.INI on "; FormatDate(d65394, "MM/DD/YYYY")
  273.         Print #4, "Please check that FORCEBUL.INI exists AND that it is formatted"
  274.         Print #4, "properly. Consult the documentation for further information"
  275.         Print #4,
  276.         Close 4
  277.         WaitEnter 
  278.         End 
  279.       End Sub
  280.  
  281. '! Called 2 times
  282.       Sub Sub2418
  283.         Sub2740
  284.         Close 1
  285.         Cls 
  286.         End 
  287.       End Sub
  288.  
  289. '! Called 1 time
  290.       Sub Sub2445(s65534 As String)
  291.         Dim s65530 As String
  292.  
  293.         If o5885 = 0 Then
  294.           If RIPDetected Then
  295.             s65534 = ProgPath + "bull\bull1.rip"
  296.           Else
  297.  2499       If ANSIDetected Then
  298.               s65534 = ProgPath + "bull\bull1.scr"
  299.               If Not Exists(s65534) Then
  300.                 s65534 = ProgPath + "bull\bull1.bbs"
  301.               End If
  302.  2557       Else
  303.  2563         s65534 = ProgPath + "bull\bull1.bbs"
  304.             End If
  305.           End If
  306.         End If
  307.  2579   Open s65534 For Input As 3
  308.         i5888 = 0
  309.         Input #3, s65530
  310.  2613   Do While Not EOF(3)
  311.           Print s65530
  312.           Input #3, s65530
  313.           i5888 = i5888 + 1
  314.           If i5888 >= User.LinesPerPage - 3 Then
  315.             i5888 = 0
  316.             WaitEnter 
  317.             Cls 
  318.           End If
  319.  2694   Loop
  320.  2700   If s65530 <> "" Then
  321.           Print s65530
  322.         End If
  323.  2725   WaitEnter 
  324.         Close 3
  325.       End Sub
  326.  
  327. '! Called 2 times
  328.       Sub Sub2740
  329.         If o5885 = 0 Then
  330.           t27_5503.s0 = "@8C@<UNREGISTERED>"
  331.           t27_5503.s172 = "@8C@<UNREGISTERED>"
  332.         End If
  333.  2789   Cls 
  334.         Print "@0B@ForceBulletin:@0E@ Bulletin reader for New Users version 1.0.401"
  335.         Print
  336.         Print "@0E@Brought to you by @09@TVS Software."
  337.         Print "@0E@Compiled on: 3\12.1994  @08@(December 3, 1994)"
  338.         Print
  339.         Print "@0E@This Software is Registered to: "
  340.         Print Tab(26); "@0E@SysOp:@0A@ "; t27_5503.s0
  341.         Print Tab(26); "  @0E@BBS:@0A@ "; t27_5503.s172
  342.         Print
  343.         WaitEnter 
  344.       End Sub
  345.