home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / CODE_UPLOAD5511552000.psc / New_Server.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2000-05-06  |  62.1 KB  |  1,841 lines

  1. VERSION 5.00
  2. Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
  3. Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
  4. Begin VB.Form frm_NewServer 
  5.    Caption         =   "[ Server / Client ] Multi - User Chat Program v1.0"
  6.    ClientHeight    =   6015
  7.    ClientLeft      =   270
  8.    ClientTop       =   750
  9.    ClientWidth     =   11790
  10.    Icon            =   "New_Server.frx":0000
  11.    LinkTopic       =   "Form2"
  12.    MaxButton       =   0   'False
  13.    ScaleHeight     =   6015
  14.    ScaleWidth      =   11790
  15.    StartUpPosition =   2  'CenterScreen
  16.    Begin VB.ListBox Database 
  17.       Height          =   5325
  18.       Left            =   13800
  19.       TabIndex        =   50
  20.       Top             =   480
  21.       Visible         =   0   'False
  22.       Width           =   1575
  23.    End
  24.    Begin TabDlg.SSTab SSTab1 
  25.       Height          =   5775
  26.       Left            =   120
  27.       TabIndex        =   0
  28.       Top             =   120
  29.       Width           =   11535
  30.       _ExtentX        =   20346
  31.       _ExtentY        =   10186
  32.       _Version        =   393216
  33.       TabHeight       =   520
  34.       BackColor       =   -2147483638
  35.       TabCaption(0)   =   "&Server"
  36.       TabPicture(0)   =   "New_Server.frx":030A
  37.       Tab(0).ControlEnabled=   -1  'True
  38.       Tab(0).Control(0)=   "Frame4"
  39.       Tab(0).Control(0).Enabled=   0   'False
  40.       Tab(0).Control(1)=   "Frame1"
  41.       Tab(0).Control(1).Enabled=   0   'False
  42.       Tab(0).Control(2)=   "Frame3"
  43.       Tab(0).Control(2).Enabled=   0   'False
  44.       Tab(0).Control(3)=   "Frame5"
  45.       Tab(0).Control(3).Enabled=   0   'False
  46.       Tab(0).Control(4)=   "Winsock3"
  47.       Tab(0).Control(4).Enabled=   0   'False
  48.       Tab(0).Control(5)=   "Winsock2(0)"
  49.       Tab(0).Control(5).Enabled=   0   'False
  50.       Tab(0).Control(6)=   "Timer1"
  51.       Tab(0).Control(6).Enabled=   0   'False
  52.       Tab(0).Control(7)=   "AServer"
  53.       Tab(0).Control(7).Enabled=   0   'False
  54.       Tab(0).ControlCount=   8
  55.       TabCaption(1)   =   "&Client"
  56.       TabPicture(1)   =   "New_Server.frx":0326
  57.       Tab(1).ControlEnabled=   0   'False
  58.       Tab(1).Control(0)=   "Frame2"
  59.       Tab(1).Control(1)=   "Frame7"
  60.       Tab(1).Control(2)=   "Frame9"
  61.       Tab(1).Control(3)=   "Frame10"
  62.       Tab(1).Control(4)=   "Winsock1"
  63.       Tab(1).Control(5)=   "fSend"
  64.       Tab(1).Control(6)=   "fReceive"
  65.       Tab(1).Control(7)=   "Timer2"
  66.       Tab(1).ControlCount=   8
  67.       TabCaption(2)   =   "&About"
  68.       TabPicture(2)   =   "New_Server.frx":0342
  69.       Tab(2).ControlEnabled=   0   'False
  70.       Tab(2).Control(0)=   "Label15"
  71.       Tab(2).Control(1)=   "Label17"
  72.       Tab(2).Control(2)=   "Label18"
  73.       Tab(2).Control(3)=   "Label19"
  74.       Tab(2).Control(4)=   "Label16"
  75.       Tab(2).Control(5)=   "Text3"
  76.       Tab(2).ControlCount=   6
  77.       Begin MSWinsockLib.Winsock AServer 
  78.          Left            =   2760
  79.          Top             =   120
  80.          _ExtentX        =   741
  81.          _ExtentY        =   741
  82.          _Version        =   393216
  83.          LocalPort       =   12340
  84.       End
  85.       Begin VB.Timer Timer2 
  86.          Interval        =   400
  87.          Left            =   -70560
  88.          Top             =   120
  89.       End
  90.       Begin VB.Timer Timer1 
  91.          Interval        =   400
  92.          Left            =   3240
  93.          Top             =   120
  94.       End
  95.       Begin MSWinsockLib.Winsock fReceive 
  96.          Left            =   -68160
  97.          Top             =   120
  98.          _ExtentX        =   741
  99.          _ExtentY        =   741
  100.          _Version        =   393216
  101.       End
  102.       Begin MSWinsockLib.Winsock fSend 
  103.          Left            =   -68640
  104.          Top             =   120
  105.          _ExtentX        =   741
  106.          _ExtentY        =   741
  107.          _Version        =   393216
  108.          LocalPort       =   30000
  109.       End
  110.       Begin MSWinsockLib.Winsock Winsock1 
  111.          Left            =   -71040
  112.          Top             =   120
  113.          _ExtentX        =   741
  114.          _ExtentY        =   741
  115.          _Version        =   393216
  116.       End
  117.       Begin MSWinsockLib.Winsock Winsock2 
  118.          Index           =   0
  119.          Left            =   720
  120.          Top             =   120
  121.          _ExtentX        =   741
  122.          _ExtentY        =   741
  123.          _Version        =   393216
  124.       End
  125.       Begin MSWinsockLib.Winsock Winsock3 
  126.          Left            =   240
  127.          Top             =   120
  128.          _ExtentX        =   741
  129.          _ExtentY        =   741
  130.          _Version        =   393216
  131.       End
  132.       Begin VB.TextBox Text3 
  133.          Appearance      =   0  'Flat
  134.          BackColor       =   &H80000004&
  135.          Height          =   1815
  136.          Left            =   -73200
  137.          Locked          =   -1  'True
  138.          MultiLine       =   -1  'True
  139.          ScrollBars      =   2  'Vertical
  140.          TabIndex        =   46
  141.          Text            =   "New_Server.frx":035E
  142.          Top             =   2880
  143.          Width           =   7695
  144.       End
  145.       Begin VB.Frame Frame10 
  146.          BeginProperty Font 
  147.             Name            =   "Arial"
  148.             Size            =   8.25
  149.             Charset         =   0
  150.             Weight          =   400
  151.             Underline       =   0   'False
  152.             Italic          =   0   'False
  153.             Strikethrough   =   0   'False
  154.          EndProperty
  155.          Height          =   1575
  156.          Left            =   -74760
  157.          TabIndex        =   33
  158.          Top             =   480
  159.          Width           =   5055
  160.          Begin VB.TextBox Text3_ 
  161.             Height          =   285
  162.             Left            =   240
  163.             TabIndex        =   37
  164.             Text            =   "127.0.0.1"
  165.             Top             =   480
  166.             Width           =   2655
  167.          End
  168.          Begin VB.TextBox Text4_ 
  169.             Height          =   285
  170.             Left            =   3120
  171.             TabIndex        =   36
  172.             Text            =   "20000"
  173.             Top             =   480
  174.             Width           =   1695
  175.          End
  176.          Begin VB.TextBox Text2_ 
  177.             Height          =   285
  178.             Left            =   3120
  179.             MaxLength       =   20
  180.             TabIndex        =   35
  181.             Text            =   "Password"
  182.             Top             =   1080
  183.             Width           =   1695
  184.          End
  185.          Begin VB.TextBox Text1_ 
  186.             Height          =   285
  187.             Left            =   240
  188.             MaxLength       =   40
  189.             MultiLine       =   -1  'True
  190.             TabIndex        =   34
  191.             Text            =   "New_Server.frx":0645
  192.             Top             =   1080
  193.             Width           =   2655
  194.          End
  195.          Begin VB.Label Label14 
  196.             Caption         =   "Server Hostname / IP Address :"
  197.             BeginProperty Font 
  198.                Name            =   "Arial"
  199.                Size            =   8.25
  200.                Charset         =   0
  201.                Weight          =   400
  202.                Underline       =   0   'False
  203.                Italic          =   0   'False
  204.                Strikethrough   =   0   'False
  205.             EndProperty
  206.             Height          =   255
  207.             Left            =   240
  208.             TabIndex        =   41
  209.             Top             =   240
  210.             Width           =   2295
  211.          End
  212.          Begin VB.Label Label13 
  213.             Caption         =   "Server Port :"
  214.             BeginProperty Font 
  215.                Name            =   "Arial"
  216.                Size            =   8.25
  217.                Charset         =   0
  218.                Weight          =   400
  219.                Underline       =   0   'False
  220.                Italic          =   0   'False
  221.                Strikethrough   =   0   'False
  222.             EndProperty
  223.             Height          =   255
  224.             Left            =   3120
  225.             TabIndex        =   40
  226.             Top             =   240
  227.             Width           =   1095
  228.          End
  229.          Begin VB.Label Label12 
  230.             Caption         =   "Password :"
  231.             BeginProperty Font 
  232.                Name            =   "Arial"
  233.                Size            =   8.25
  234.                Charset         =   0
  235.                Weight          =   400
  236.                Underline       =   0   'False
  237.                Italic          =   0   'False
  238.                Strikethrough   =   0   'False
  239.             EndProperty
  240.             Height          =   255
  241.             Left            =   3120
  242.             TabIndex        =   39
  243.             Top             =   840
  244.             Width           =   1095
  245.          End
  246.          Begin VB.Label Label11 
  247.             Caption         =   "Username  :"
  248.             BeginProperty Font 
  249.                Name            =   "Arial"
  250.                Size            =   8.25
  251.                Charset         =   0
  252.                Weight          =   400
  253.                Underline       =   0   'False
  254.                Italic          =   0   'False
  255.                Strikethrough   =   0   'False
  256.             EndProperty
  257.             Height          =   255
  258.             Left            =   240
  259.             TabIndex        =   38
  260.             Top             =   840
  261.             Width           =   1095
  262.          End
  263.       End
  264.       Begin VB.Frame Frame9 
  265.          BeginProperty Font 
  266.             Name            =   "Arial"
  267.             Size            =   8.25
  268.             Charset         =   0
  269.             Weight          =   400
  270.             Underline       =   0   'False
  271.             Italic          =   0   'False
  272.             Strikethrough   =   0   'False
  273.          EndProperty
  274.          Height          =   5055
  275.          Left            =   -66840
  276.          TabIndex        =   30
  277.          Top             =   480
  278.          Width           =   3135
  279.          Begin VB.ListBox IPList 
  280.             Height          =   4350
  281.             Left            =   1920
  282.             TabIndex        =   47
  283.             Top             =   480
  284.             Width           =   1095
  285.          End
  286.          Begin VB.ListBox UserList_ 
  287.             Height          =   4350
  288.             Left            =   120
  289.             TabIndex        =   31
  290.             Top             =   480
  291.             Width           =   1695
  292.          End
  293.          Begin VB.Label Label20 
  294.             Caption         =   "IP List :"
  295.             Height          =   255
  296.             Left            =   1920
  297.             TabIndex        =   48
  298.             Top             =   240
  299.             Width           =   855
  300.          End
  301.          Begin VB.Label Label10 
  302.             Caption         =   "User List :"
  303.             BeginProperty Font 
  304.                Name            =   "Arial"
  305.                Size            =   8.25
  306.                Charset         =   0
  307.                Weight          =   400
  308.                Underline       =   0   'False
  309.                Italic          =   0   'False
  310.                Strikethrough   =   0   'False
  311.             EndProperty
  312.             Height          =   255
  313.             Left            =   120
  314.             TabIndex        =   32
  315.             Top             =   240
  316.             Width           =   975
  317.          End
  318.       End
  319.       Begin VB.Frame Frame7 
  320.          BeginProperty Font 
  321.             Name            =   "Arial"
  322.             Size            =   8.25
  323.             Charset         =   0
  324.             Weight          =   400
  325.             Underline       =   0   'False
  326.             Italic          =   0   'False
  327.             Strikethrough   =   0   'False
  328.          EndProperty
  329.          Height          =   1575
  330.          Left            =   -69600
  331.          TabIndex        =   26
  332.          Top             =   480
  333.          Width           =   2655
  334.          Begin VB.CommandButton Command9 
  335.             Caption         =   "&Account"
  336.             Height          =   420
  337.             Left            =   1440
  338.             TabIndex        =   49
  339.             Top             =   330
  340.             Width           =   975
  341.          End
  342.          Begin VB.CommandButton Command7_ 
  343.             Caption         =   "&Connect"
  344.             Height          =   420
  345.             Left            =   240
  346.             TabIndex        =   29
  347.             Top             =   330
  348.             Width           =   975
  349.          End
  350.          Begin VB.Frame Frame8 
  351.             Caption         =   "Status :"
  352.             Height          =   615
  353.             Left            =   240
  354.             TabIndex        =   27
  355.             Top             =   840
  356.             Width           =   2175
  357.             Begin VB.Label Label6_ 
  358.                Caption         =   "Closed."
  359.                Height          =   255
  360.                Left            =   120
  361.                TabIndex        =   28
  362.                Top             =   240
  363.                Width           =   1935
  364.             End
  365.          End
  366.       End
  367.       Begin VB.Frame Frame2 
  368.          Height          =   3375
  369.          Left            =   -74760
  370.          TabIndex        =   22
  371.          Top             =   2160
  372.          Width           =   7815
  373.          Begin VB.TextBox Text6_ 
  374.             Height          =   315
  375.             Left            =   240
  376.             MaxLength       =   200
  377.             TabIndex        =   24
  378.             Top             =   2880
  379.             Width           =   7335
  380.          End
  381.          Begin VB.TextBox Text5_ 
  382.             Height          =   2295
  383.             Left            =   240
  384.             MultiLine       =   -1  'True
  385.             ScrollBars      =   2  'Vertical
  386.             TabIndex        =   23
  387.             Top             =   480
  388.             Width           =   7335
  389.          End
  390.          Begin VB.Label Label9 
  391.             Caption         =   "Chat Window :"
  392.             BeginProperty Font 
  393.                Name            =   "Arial"
  394.                Size            =   8.25
  395.                Charset         =   0
  396.                Weight          =   400
  397.                Underline       =   0   'False
  398.                Italic          =   0   'False
  399.                Strikethrough   =   0   'False
  400.             EndProperty
  401.             Height          =   255
  402.             Left            =   240
  403.             TabIndex        =   25
  404.             Top             =   240
  405.             Width           =   1575
  406.          End
  407.       End
  408.       Begin VB.Frame Frame5 
  409.          BeginProperty Font 
  410.             Name            =   "Arial"
  411.             Size            =   8.25
  412.             Charset         =   0
  413.             Weight          =   400
  414.             Underline       =   0   'False
  415.             Italic          =   0   'False
  416.             Strikethrough   =   0   'False
  417.          EndProperty
  418.          Height          =   1575
  419.          Left            =   5400
  420.          TabIndex        =   17
  421.          Top             =   480
  422.          Width           =   2655
  423.          Begin VB.CommandButton Command7 
  424.             Caption         =   "&Listen"
  425.             Height          =   420
  426.             Left            =   240
  427.             TabIndex        =   21
  428.             Top             =   330
  429.             Width           =   975
  430.          End
  431.          Begin VB.CommandButton Command6 
  432.             Caption         =   "&Close"
  433.             Height          =   420
  434.             Left            =   1440
  435.             TabIndex        =   20
  436.             Top             =   330
  437.             Width           =   975
  438.          End
  439.          Begin VB.Frame Frame6 
  440.             Caption         =   "Status :"
  441.             Height          =   615
  442.             Left            =   240
  443.             TabIndex        =   18
  444.             Top             =   840
  445.             Width           =   2175
  446.             Begin VB.Label Label6 
  447.                Caption         =   "Closed."
  448.                Height          =   255
  449.                Left            =   120
  450.                TabIndex        =   19
  451.                Top             =   240
  452.                Width           =   1935
  453.             End
  454.          End
  455.       End
  456.       Begin VB.Frame Frame3 
  457.          BeginProperty Font 
  458.             Name            =   "Arial"
  459.             Size            =   8.25
  460.             Charset         =   0
  461.             Weight          =   400
  462.             Underline       =   0   'False
  463.             Italic          =   0   'False
  464.             Strikethrough   =   0   'False
  465.          EndProperty
  466.          Height          =   5055
  467.          Left            =   8160
  468.          TabIndex        =   12
  469.          Top             =   480
  470.          Width           =   3135
  471.          Begin VB.ListBox UserList 
  472.             Height          =   4350
  473.             Left            =   120
  474.             TabIndex        =   14
  475.             Top             =   480
  476.             Width           =   1695
  477.          End
  478.          Begin VB.ListBox BanList 
  479.             Height          =   4350
  480.             Left            =   1920
  481.             TabIndex        =   13
  482.             Top             =   480
  483.             Width           =   1095
  484.          End
  485.          Begin VB.Label Label7 
  486.             Caption         =   "User List :"
  487.             Height          =   255
  488.             Left            =   120
  489.             TabIndex        =   16
  490.             Top             =   240
  491.             Width           =   735
  492.          End
  493.          Begin VB.Label Label3 
  494.             Caption         =   "Ban List :"
  495.             Height          =   255
  496.             Left            =   1920
  497.             TabIndex        =   15
  498.             Top             =   240
  499.             Width           =   735
  500.          End
  501.       End
  502.       Begin VB.Frame Frame1 
  503.          BeginProperty Font 
  504.             Name            =   "Arial"
  505.             Size            =   8.25
  506.             Charset         =   0
  507.             Weight          =   400
  508.             Underline       =   0   'False
  509.             Italic          =   0   'False
  510.             Strikethrough   =   0   'False
  511.          EndProperty
  512.          Height          =   1575
  513.          Left            =   240
  514.          TabIndex        =   5
  515.          Top             =   480
  516.          Width           =   5055
  517.          Begin VB.TextBox Text4 
  518.             Height          =   285
  519.             Left            =   3000
  520.             TabIndex        =   8
  521.             Text            =   "20000"
  522.             Top             =   480
  523.             Width           =   1815
  524.          End
  525.          Begin VB.TextBox Text2 
  526.             BackColor       =   &H80000000&
  527.             Height          =   285
  528.             Left            =   240
  529.             MaxLength       =   20
  530.             TabIndex        =   7
  531.             Top             =   480
  532.             Width           =   2535
  533.          End
  534.          Begin VB.TextBox Text1 
  535.             Height          =   285
  536.             Left            =   240
  537.             TabIndex        =   6
  538.             Text            =   "@Coozzzzz"
  539.             Top             =   1080
  540.             Width           =   4575
  541.          End
  542.          Begin VB.Label Label4 
  543.             Caption         =   "Server Port  :"
  544.             Height          =   255
  545.             Left            =   3000
  546.             TabIndex        =   11
  547.             Top             =   240
  548.             Width           =   1095
  549.          End
  550.          Begin VB.Label Label2 
  551.             Caption         =   "Server IP Address :"
  552.             Height          =   255
  553.             Left            =   240
  554.             TabIndex        =   10
  555.             Top             =   240
  556.             Width           =   2535
  557.          End
  558.          Begin VB.Label Label1 
  559.             Caption         =   "System Operator Name :"
  560.             Height          =   255
  561.             Left            =   240
  562.             TabIndex        =   9
  563.             Top             =   840
  564.             Width           =   1815
  565.          End
  566.       End
  567.       Begin VB.Frame Frame4 
  568.          Height          =   3375
  569.          Left            =   240
  570.          TabIndex        =   1
  571.          Top             =   2160
  572.          Width           =   7815
  573.          Begin VB.TextBox Text5 
  574.             Height          =   2295
  575.             Left            =   240
  576.             Locked          =   -1  'True
  577.             MultiLine       =   -1  'True
  578.             ScrollBars      =   2  'Vertical
  579.             TabIndex        =   3
  580.             Top             =   480
  581.             Width           =   7335
  582.          End
  583.          Begin VB.TextBox Text6 
  584.             Height          =   315
  585.             Left            =   240
  586.             TabIndex        =   2
  587.             Top             =   2880
  588.             Width           =   7335
  589.          End
  590.          Begin VB.Label Label5 
  591.             Caption         =   "Chat Window :"
  592.             BeginProperty Font 
  593.                Name            =   "Arial"
  594.                Size            =   8.25
  595.                Charset         =   0
  596.                Weight          =   400
  597.                Underline       =   0   'False
  598.                Italic          =   0   'False
  599.                Strikethrough   =   0   'False
  600.             EndProperty
  601.             Height          =   255
  602.             Left            =   240
  603.             TabIndex        =   4
  604.             Top             =   240
  605.             Width           =   4455
  606.          End
  607.       End
  608.       Begin VB.Label Label16 
  609.          Alignment       =   2  'Center
  610.          Caption         =   "Present..."
  611.          BeginProperty Font 
  612.             Name            =   "MS Sans Serif"
  613.             Size            =   8.25
  614.             Charset         =   0
  615.             Weight          =   700
  616.             Underline       =   0   'False
  617.             Italic          =   0   'False
  618.             Strikethrough   =   0   'False
  619.          EndProperty
  620.          Height          =   255
  621.          Left            =   -73200
  622.          TabIndex        =   51
  623.          Top             =   1800
  624.          Width           =   7695
  625.       End
  626.       Begin VB.Label Label19 
  627.          Caption         =   "http://TrickSoft.cjb.net"
  628.          BeginProperty Font 
  629.             Name            =   "MS Serif"
  630.             Size            =   13.5
  631.             Charset         =   0
  632.             Weight          =   400
  633.             Underline       =   -1  'True
  634.             Italic          =   0   'False
  635.             Strikethrough   =   0   'False
  636.          EndProperty
  637.          Height          =   375
  638.          Left            =   -68040
  639.          TabIndex        =   45
  640.          Top             =   5040
  641.          Width           =   2655
  642.       End
  643.       Begin VB.Label Label18 
  644.          Caption         =   "http://BCProd.cjb.net"
  645.          BeginProperty Font 
  646.             Name            =   "MS Serif"
  647.             Size            =   13.5
  648.             Charset         =   0
  649.             Weight          =   400
  650.             Underline       =   -1  'True
  651.             Italic          =   0   'False
  652.             Strikethrough   =   0   'False
  653.          EndProperty
  654.          Height          =   375
  655.          Left            =   -73200
  656.          TabIndex        =   44
  657.          Top             =   5040
  658.          Width           =   3015
  659.       End
  660.       Begin VB.Label Label17 
  661.          Caption         =   "[ Server / Client ] Multi - User Chat Program v1.0"
  662.          BeginProperty Font 
  663.             Name            =   "MS Sans Serif"
  664.             Size            =   18
  665.             Charset         =   0
  666.             Weight          =   400
  667.             Underline       =   0   'False
  668.             Italic          =   0   'False
  669.             Strikethrough   =   0   'False
  670.          EndProperty
  671.          Height          =   495
  672.          Left            =   -73200
  673.          TabIndex        =   43
  674.          Top             =   2160
  675.          Width           =   7695
  676.       End
  677.       Begin VB.Label Label15 
  678.          Alignment       =   2  'Center
  679.          Caption         =   "BC  +  TrickSoft Productions"
  680.          BeginProperty Font 
  681.             Name            =   "MS Sans Serif"
  682.             Size            =   24
  683.             Charset         =   0
  684.             Weight          =   400
  685.             Underline       =   0   'False
  686.             Italic          =   0   'False
  687.             Strikethrough   =   0   'False
  688.          EndProperty
  689.          Height          =   495
  690.          Left            =   -73080
  691.          TabIndex        =   42
  692.          Top             =   1080
  693.          Width           =   7455
  694.       End
  695.    End
  696.    Begin VB.Menu mnu_UserList 
  697.       Caption         =   "UserList"
  698.       Visible         =   0   'False
  699.       Begin VB.Menu mnu_OP 
  700.          Caption         =   "@"
  701.          Begin VB.Menu mnu_DEOP 
  702.             Caption         =   "DeOp @"
  703.          End
  704.          Begin VB.Menu mnu_line1 
  705.             Caption         =   "-"
  706.          End
  707.          Begin VB.Menu mnu_OP1 
  708.             Caption         =   "Level &1"
  709.          End
  710.          Begin VB.Menu mnu_OP2 
  711.             Caption         =   "Level &2"
  712.          End
  713.          Begin VB.Menu mnu_OP3 
  714.             Caption         =   "Level &3"
  715.          End
  716.          Begin VB.Menu mnu_line2 
  717.             Caption         =   "-"
  718.          End
  719.          Begin VB.Menu mnu_OPHelp 
  720.             Caption         =   "&Help"
  721.          End
  722.       End
  723.       Begin VB.Menu mnu_line5 
  724.          Caption         =   "-"
  725.       End
  726.       Begin VB.Menu mnu_ServerBan 
  727.          Caption         =   "Ba&n"
  728.          Begin VB.Menu mnu_ServerBanIP 
  729.             Caption         =   "&IP Address"
  730.          End
  731.          Begin VB.Menu mnu_ServerBanUsername 
  732.             Caption         =   "&Username"
  733.          End
  734.       End
  735.       Begin VB.Menu mnu_Boot 
  736.          Caption         =   "Boot"
  737.       End
  738.       Begin VB.Menu mnu_Warn 
  739.          Caption         =   "&Warn"
  740.       End
  741.       Begin VB.Menu mnu_line6 
  742.          Caption         =   "-"
  743.       End
  744.       Begin VB.Menu mnu_CopyIP 
  745.          Caption         =   "&Copy IP"
  746.       End
  747.    End
  748.    Begin VB.Menu mnu_UnbanTop 
  749.       Caption         =   "UnBan"
  750.       Visible         =   0   'False
  751.       Begin VB.Menu mnu_Unban 
  752.          Caption         =   "&Unban"
  753.       End
  754.    End
  755.    Begin VB.Menu mnu_UserList_ 
  756.       Caption         =   "UserList_"
  757.       Visible         =   0   'False
  758.       Begin VB.Menu mnu_Boot2 
  759.          Caption         =   "&Boot"
  760.          Enabled         =   0   'False
  761.       End
  762.       Begin VB.Menu mnu_Warn2 
  763.          Caption         =   "&Warn"
  764.          Enabled         =   0   'False
  765.       End
  766.       Begin VB.Menu mnu_line4 
  767.          Caption         =   "-"
  768.       End
  769.       Begin VB.Menu mnu_Games 
  770.          Caption         =   "&Games"
  771.          Begin VB.Menu mnu_TicTacToe 
  772.             Caption         =   "&Tic-Tac-Toe"
  773.          End
  774.       End
  775.       Begin VB.Menu mnu_line3 
  776.          Caption         =   "-"
  777.       End
  778.       Begin VB.Menu mnu_SendFile 
  779.          Caption         =   "&Send File..."
  780.       End
  781.    End
  782. Attribute VB_Name = "frm_NewServer"
  783. Attribute VB_GlobalNameSpace = False
  784. Attribute VB_Creatable = False
  785. Attribute VB_PredeclaredId = True
  786. Attribute VB_Exposed = False
  787. Dim cc As New frm_SendFile
  788. Dim dd As New frm_SendFile
  789. Dim tttPlayer1 As New frm_TTT
  790. Dim tttPlayer2 As New frm_TTT
  791. Dim ips(0 To 50) As Boolean
  792. Dim op As Boolean
  793. Dim pass$, port$, sFilename$, lasttext$
  794. Dim lPos&
  795. Dim buffer() As Byte
  796. Dim inc%, lastsec%
  797. Private Sub AServer_ConnectionRequest(ByVal requestID As Long)
  798. AServer.Close
  799. AServer.Accept requestID
  800. End Sub
  801. Private Sub AServer_DataArrival(ByVal bytesTotal As Long)
  802. Dim data$
  803. AServer.GetData data$
  804. If Mid(data$, 1, 5) = "@name" Then
  805. pos1% = InStr(1, data$, "@password")
  806. dbname$ = Mid(data$, 6, pos1% - 6)
  807. dbpw$ = Mid(data$, pos1% + 9)
  808. datasyn$ = dbname$ & " " & dbpw$
  809. For i = 0 To Database.ListCount
  810. If Database.List(i) = datasyn$ Then AServer.SendData "dupe": Exit Sub
  811. Next i
  812. Database.AddItem datasyn$
  813. AServer.SendData "success"
  814. End If
  815. If Mid(data$, 1, 5) = "@came" Then
  816. pos1% = InStr(1, data$, "@password")
  817. dbname$ = Mid(data$, 6, pos1% - 6)
  818. dbpw$ = Mid(data$, pos1% + 9)
  819. datasyn$ = dbname$ & " " & dbpw$
  820. For i = 0 To Database.ListCount
  821. If Database.List(i) = datasyn$ Then AServer.SendData "v": Exit Sub
  822. Next i
  823. AServer.SendData "nov"
  824. End If
  825. If Mid(data$, 1, 5) = "@chng" Then
  826. pos1% = InStr(1, data$, "@password")
  827. dbname$ = Mid(data$, 6, pos1% - 6)
  828. dbpw$ = Mid(data$, pos1% + 9)
  829. datasyn$ = dbname$ & " " & dbpw$
  830. For i = 0 To Database.ListCount
  831. If frm_NewServer.GetListData(Database, True, False, i) = dbname$ Then Database.List(i) = datasyn$: AServer.SendData "@changed": Exit Sub
  832. Next i
  833. AServer.SendData "nc"
  834. End If
  835. End Sub
  836. Private Sub BanList_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  837. If Button = 2 Then PopupMenu mnu_UnbanTop
  838. End Sub
  839. Private Sub Command6_Click()
  840. Unload Me
  841. End Sub
  842. Private Sub Command7_Click()
  843. If Command7.Caption = "&Listen" Then
  844. If Winsock3.State <> 0 Then Winsock3.Close
  845. Winsock3.LocalPort = Text4: Winsock3.Listen
  846. Command7.Caption = "&Stop"
  847. Text4.Enabled = False
  848. pass$ = Text2: port$ = Text4
  849. AServer.Listen
  850. Winsock3.Close
  851. AServer.Close
  852. For i = 0 To 50
  853. Winsock2(i).Close
  854. Next i
  855. Text4.Enabled = True:
  856. UserList.Clear
  857. Command7.Caption = "&Listen"
  858. End If
  859. End Sub
  860. Private Sub Command9_Click()
  861. Load frm_CreateAccount
  862. frm_CreateAccount.Show
  863. End Sub
  864. Private Sub Form_Load()
  865. UserList.Clear
  866. UserList_.Clear
  867. Me.Show
  868. Me.SetFocus
  869. For i = 1 To 50
  870. Load Winsock2(i)
  871. ips(i) = False
  872. Next i
  873. If Dir(App.Path & "/Database.db") = "" Then GoTo bottom2
  874. Open App.Path & "/Database.db" For Input As 1
  875. Do While Not EOF(1)
  876. Line Input #1, up
  877. If up <> "" And up <> " " Then Database.AddItem up
  878. Close 1
  879. bottom2:
  880. Text2 = Winsock3.LocalIP
  881. lPos = 1
  882. End Sub
  883. Private Sub Form_Unload(Cancel As Integer)
  884. For i = 0 To 50
  885. Winsock2(i).Close
  886. If i <> 0 Then Unload Winsock2(i)
  887. Next i
  888. Open App.Path & "\Database.db" For Output As 1
  889. For i = 0 To Database.ListCount
  890. If Database.List(i) <> "" Then Print #1, Database.List(i)
  891. Next i
  892. Close 1
  893. End Sub
  894. Private Sub fSend_SendProgress(ByVal bytesSent As Long, ByVal bytesRemaining As Long)
  895. Winsock1.SendData "@prog" & bytesRemaining & "@to" & fSend.RemoteHostIP
  896. dd.Text2 = "Bytes Remaining : " & bytesRemaining
  897. End Sub
  898. Private Sub IPList_Click()
  899. UserList_.Selected(IPList.ListIndex) = True
  900. End Sub
  901. Private Sub IPList_DblClick()
  902. If IPList.ListIndex = -1 Then Exit Sub
  903. MsgBox IPList.List(IPList.ListIndex), vbInformation
  904. End Sub
  905. Private Sub mnu_Boot_Click()
  906. If UserList.ListIndex = -1 Then Exit Sub
  907. pos1% = InStr(1, UserList.List(UserList.ListIndex), " ")
  908. If pos1% = 0 Then Exit Sub
  909. ctrl = Mid(UserList.List(UserList.ListIndex), 1, pos1% - 1)
  910. bname$ = GetListData(UserList, False, True, UserList.ListIndex)
  911. X$ = InputBox("Enter reason for booting this user.", "Reason?", "Flooded.")
  912. If Len(X$) = 0 Then
  913. Winsock2(ctrl).SendData "@boot"
  914. Winsock2(ctrl).SendData "@mboot" & X$
  915. End If
  916. Pause 0.1
  917. For i = 0 To 50
  918. If Winsock2(i).State = 7 Then Winsock2(i).SendData "@smsg" & " ** Server has booted user " & bname$ & " ** " & vbCrLf: Pause 0.1
  919. Next i
  920. End Sub
  921. Private Sub mnu_Boot2_Click()
  922. If UserList_.ListIndex = -1 Or Winsock1.State <> 7 Or op = False Then Exit Sub
  923. Winsock1.SendData "@userboot" & UserList_.List(UserList_.ListIndex)
  924. End Sub
  925. Private Sub mnu_CopyIP_Click()
  926. Clipboard.SetText IPList.List(IPList.ListIndex)
  927. End Sub
  928. Private Sub mnu_DEOP_Click()
  929. If UserList.ListIndex = -1 Then Exit Sub
  930. ctrl = GetListData(UserList, True, False, UserList.ListIndex)
  931. uname$ = GetListData(UserList, False, True, UserList.ListIndex)
  932. If Mid(uname$, 1, 1) = "@" Then
  933. Winsock2(ctrl).SendData "@OPtake"
  934. Pause 0.1
  935. For i = 0 To 50
  936. If Winsock2(i).State = 7 Then Winsock2(i).SendData "@old" & "@" & Mid(uname$, 2) & "@new" & Mid(uname$, 2): Pause 0.1
  937. Next i
  938. UserList.List(UserList.ListIndex) = ctrl & " " & Mid(uname$, 2)
  939. End If
  940. End Sub
  941. Private Sub mnu_OP1_Click()
  942. If UserList.ListIndex = -1 Then Exit Sub
  943. ctrl = GetListData(UserList, True, False, UserList.ListIndex)
  944. uname$ = GetListData(UserList, False, True, UserList.ListIndex)
  945. Dim wasop As Boolean
  946. If Mid(uname$, 1, 1) = "@" Then wasop = True
  947. If wasop <> True Then
  948. uname2$ = "@" & uname$
  949. uname2$ = uname$
  950. End If
  951. Winsock2(ctrl).SendData "@OPgive1"
  952. Pause 0.1
  953. For i = 0 To 50
  954. If Winsock2(i).State = 7 Then Winsock2(i).SendData "@old" & uname$ & "@new" & uname2$: Pause 0.1
  955. Next i
  956. UserList.List(UserList.ListIndex) = ctrl & " " & uname2$
  957. End Sub
  958. Private Sub mnu_OP2_Click()
  959. If UserList.ListIndex = -1 Then Exit Sub
  960. ctrl = GetListData(UserList, True, False, UserList.ListIndex)
  961. uname$ = GetListData(UserList, False, True, UserList.ListIndex)
  962. Dim wasop As Boolean
  963. If Mid(uname$, 1, 1) = "@" Then wasop = True
  964. If wasop <> True Then
  965. uname2$ = "@" & uname$
  966. uname2$ = uname$
  967. End If
  968. Winsock2(ctrl).SendData "@OPgive2"
  969. Pause 0.1
  970. For i = 0 To 50
  971. If Winsock2(i).State = 7 Then Winsock2(i).SendData "@old" & uname$ & "@new" & uname2$: Pause 0.1
  972. Next i
  973. UserList.List(UserList.ListIndex) = ctrl & " " & uname2$
  974. End Sub
  975. Private Sub mnu_OP3_Click()
  976. If UserList.ListIndex = -1 Then Exit Sub
  977. ctrl = GetListData(UserList, True, False, UserList.ListIndex)
  978. uname$ = GetListData(UserList, False, True, UserList.ListIndex)
  979. Dim wasop As Boolean
  980. If Mid(uname$, 1, 1) = "@" Then wasop = True
  981. If wasop <> True Then
  982. uname2$ = "@" & uname$
  983. uname2$ = uname$
  984. End If
  985. Winsock2(ctrl).SendData "@OPgive3"
  986. Pause 0.1
  987. For i = 0 To 50
  988. If Winsock2(i).State = 7 Then Winsock2(i).SendData "@old" & uname$ & "@new" & uname2$: Pause 0.1
  989. Next i
  990. UserList.List(UserList.ListIndex) = ctrl & " " & uname2$
  991. End Sub
  992. Private Sub mnu_OPHelp_Click()
  993. msg$ = "Level 1 - Enable Warning" & vbCrLf
  994. msg$ = msg$ & "Level 2 - Enable Booting" & vbCrLf
  995. msg$ = msg$ & "Level 3 - Enable Warning & Booting" & vbCrLf
  996. MsgBox msg$, vbInformation
  997. End Sub
  998. Private Sub mnu_SendFile_Click()
  999. If IPList.ListIndex = -1 Or IPList.List(IPList.ListIndex) = "" Or Winsock1.State <> 7 Then MsgBox "Please select a valid IP address.", vbInformation: Exit Sub
  1000. sFilename$ = OpenDialog(Me, "All Files|*.*", "Locate file to Send...", App.Path)
  1001. If Len(sFilename$) = 0 Then Exit Sub
  1002. If fSend.State <> 0 Then fSend.Close
  1003. fSend.Listen
  1004. data2send$ = "@fsip" & IPList.List(IPList.ListIndex) & "@file" & sFilename$
  1005. Winsock1.SendData data2send$
  1006. End Sub
  1007. Private Sub mnu_ServerBanIP_Click()
  1008. If UserList.ListIndex = -1 Then Exit Sub
  1009. pos1% = InStr(1, UserList.List(UserList.ListIndex), " ")
  1010. If pos1% = 0 Then Exit Sub
  1011. ctrl = Mid(UserList.List(UserList.ListIndex), 1, pos1% - 1)
  1012. IP$ = Winsock2(ctrl).RemoteHostIP
  1013. ippos$ = InStrRev(IP$, ".", -1)
  1014. For i = 0 To BanList.ListCount
  1015. If BanList.List(i) = Mid(IP$, 1, ippos$ - 1) Then Exit Sub
  1016. Next i
  1017. X$ = InputBox("Enter reason for banning this user.", "Reason?", "Flooded too many times.")
  1018. If Len(X$) = 0 Then
  1019. Winsock2(ctrl).SendData "@banned"
  1020. Winsock2(ctrl).SendData "@mbanned" & X$
  1021. End If
  1022. BanList.AddItem Mid(IP$, 1, ippos$ - 1)
  1023. End Sub
  1024. Private Sub mnu_ServerBanUsername_Click()
  1025. If UserList.ListIndex = -1 Then Exit Sub
  1026. bname$ = GetListData(UserList, False, True, UserList.ListIndex)
  1027. For i = 0 To BanList.ListCount
  1028. If BanList.List(i) = bname$ Then Exit Sub
  1029. Next i
  1030. X$ = InputBox("Enter reason for banning this user.", "Reason?", "Flooded too many times.")
  1031. If Len(X$) = 0 Then
  1032. Winsock2(ctrl).SendData "@banned"
  1033. Winsock2(ctrl).SendData "@mbanned" & X$
  1034. End If
  1035. BanList.AddItem bname$
  1036. End Sub
  1037. Private Sub mnu_TicTacToe_Click()
  1038. If IPList.ListIndex = -1 Or IPList.List(IPList.ListIndex) = "" Or Winsock1.State <> 7 Then MsgBox "Please select a valid IP address.", vbInformation: Exit Sub
  1039. Winsock1.SendData "@reqttt" & IPList.List(IPList.ListIndex) & "@from" & Text1_
  1040. End Sub
  1041. Private Sub mnu_Unban_Click()
  1042. If BanList.ListIndex = -1 Then Exit Sub
  1043. BanList.RemoveItem BanList.ListIndex
  1044. End Sub
  1045. Private Sub mnu_Warn_Click()
  1046. If UserList.ListIndex = -1 Then Exit Sub
  1047. pos1% = InStr(1, UserList.List(UserList.ListIndex), " ")
  1048. If pos1% = 0 Then Exit Sub
  1049. ctrl = Mid(UserList.List(UserList.ListIndex), 1, pos1% - 1)
  1050. X$ = InputBox("Warning Message", App.Title, "This is your 1st warning! Cease your actions immediately.")
  1051. Winsock2(ctrl).SendData "@warn" & X$
  1052. End Sub
  1053. Private Sub mnu_Warn2_Click()
  1054. If UserList_.ListIndex = -1 Or Winsock1.State <> 7 Or op = False Then Exit Sub
  1055. dat$ = InputBox("Warning Message", App.Title, "This is your 1st warning! Cease your actions immediately.")
  1056. If Len(dat$) = 0 Then Exit Sub
  1057. Winsock1.SendData "@userwarn" & UserList_.List(UserList_.ListIndex) & "@msg" & dat$
  1058. End Sub
  1059. Private Sub SSTab1_Click(PreviousTab As Integer)
  1060. If SSTab1.Caption = "&Server" Then
  1061. Text6.SetFocus
  1062. ElseIf SSTab1.Caption = "&Client" Then
  1063. Text6_.SetFocus
  1064. End If
  1065. End Sub
  1066. Private Sub Text4__Change()
  1067. stringcheck$ = "1234567890"
  1068. If Len(Text4_) = 0 Then Command7_.Enabled = False: Exit Sub
  1069. For i = 1 To Len(Text4_)
  1070. If InStr(stringcheck$, Mid(Text4_, i, 1)) = 0 Then Command7_.Enabled = False: Exit Sub
  1071. Next i
  1072. If Text4_ < 65000 And Text4_ > 0 Then
  1073. Command7_.Enabled = True
  1074. Command7_.Enabled = False
  1075. End If
  1076. End Sub
  1077. Private Sub Text4_Change()
  1078. stringcheck$ = "1234567890"
  1079. If Len(Text4) = 0 Then Command7.Enabled = False: Exit Sub
  1080. For i = 1 To Len(Text4)
  1081. If InStr(stringcheck$, Mid(Text4, i, 1)) = 0 Then Command7.Enabled = False: Exit Sub
  1082. Next i
  1083. If Text4 < 65000 And Text4 > 0 Then
  1084. Command7.Enabled = True
  1085. Command7.Enabled = False
  1086. End If
  1087. End Sub
  1088. Private Sub Text6_KeyPress(KeyAscii As Integer)
  1089. If KeyAscii = 13 Then
  1090. KeyAscii = 0
  1091. If Mid(Text6, 1, 1) = "/" Then
  1092. pos4% = InStr(1, Text6, " ")
  1093. If pos4% = 0 Then Text5 = Text5 & " ** Illegal Command **" & vbCrLf: Text5.SelStart = Len(Text5): Exit Sub
  1094. afterc$ = LCase(Mid(Text6, 2, pos4% - 2))
  1095. If afterc$ <> "msg" Then pos5% = 0: GoTo 9
  1096. pos5% = InStr(pos4% + 1, Text6, " ")
  1097. If pos5% = 0 Then
  1098. afterd$ = Mid(Text6, pos4% + 1)
  1099. afterd$ = Mid(Text6, pos4% + 1, pos5% - 5)
  1100. End If
  1101. If afterc$ <> "msg" Then afterd$ = LCase(afterd$)
  1102. aftere$ = Mid(Text6, pos5% + 1)
  1103. Select Case afterc$
  1104. Case "action"
  1105. Text5 = Text5 & Text1 & " " & afterd$ & vbCrLf: Text5.SelStart = Len(Text5)
  1106. datastring$ = "@action" & Text1 & " " & afterd$ & vbCrLf
  1107. Case "msg"
  1108. If pos5% = 0 Then Text5 = Text5 & " ** Not enough parameters **" & vbCrLf: Text5.SelStart = Len(Text5): Exit Sub
  1109. For i = 0 To UserList.ListCount
  1110. pos1% = InStr(1, UserList.List(i), " ")
  1111. If pos1% = 0 Then GoTo doover
  1112. ctrl = Mid(UserList.List(i), 1, pos1% - 1)
  1113. uname$ = Mid(UserList.List(i), pos1% + 1)
  1114. If Mid(afterd$, 1, Len(afterd$) - 1) = uname$ Then
  1115. Winsock2(ctrl).SendData "@2msg" & "@msg" & aftere$ & "@uname" & Mid(afterd$, 1, Len(afterd$) - 1) & "@fname" & Text1
  1116. Text5 = Text5 & " ** Message Sent to " & Mid(afterd$, 1, Len(afterd$) - 1) & " : " & aftere$ & msg$ & " ** " & vbCrLf: Text5.SelStart = Len(Text5)
  1117. If inc% > 50 Then Text5.Text = "": inc% = 0
  1118. inc% = inc% + 1
  1119. GoTo finishmsg
  1120. End If
  1121. doover:
  1122. Next i
  1123. Text5 = Text5 & " ** User does not exist **" & vbCrLf:: Text5.SelStart = Len(Text5): Exit Sub
  1124. Case Else
  1125. Text5 = Text5 & " ** Illegal Command **" & vbCrLf:: Text5.SelStart = Len(Text5): Exit Sub
  1126. End Select
  1127. If inc% > 50 Then Text5.Text = "": inc% = 0
  1128. inc% = inc% + 1
  1129. For i = 0 To 50
  1130. If Winsock2(i).State = 7 Then Winsock2(i).SendData datastring$: Pause 0.1
  1131. Next i
  1132. finishmsg:
  1133. Text6 = ""
  1134. Text5 = Text5 & Text1 & " > " & Text6 & vbCrLf: Text5.SelStart = Len(Text5)
  1135. If inc% > 50 Then Text5.Text = "": inc% = 0
  1136. inc% = inc% + 1
  1137. For i = 0 To 50
  1138. If Winsock2(i).State = 7 Then Winsock2(i).SendData "@msg" & Text1 & " > " & Text6 & vbCrLf: Pause 0.1
  1139. Next i
  1140. Text6 = ""
  1141. End If
  1142. End If
  1143. End Sub
  1144. Private Sub Timer1_Timer()
  1145. If AServer.State = 8 Or AServer.State = 9 Then
  1146. If Command7.Caption <> "&Listen" Then
  1147. AServer.Close
  1148. AServer.Listen
  1149. AServer.Close
  1150. End If
  1151. End If
  1152. For i = 0 To UserList.ListCount
  1153. pos1% = InStr(1, UserList.List(i), " ")
  1154. If pos1% = 0 Then GoTo checkstat
  1155. ctrl = Mid(UserList.List(i), 1, pos1% - 1)
  1156. If Winsock2(ctrl).State <> 7 And UserList.List(b) <> "" Then
  1157. uname$ = Mid(UserList.List(i), pos1% + 1)
  1158. For b = 0 To 50
  1159. If Winsock2(b).State = 7 And b <> ctrl And UserList.List(b) <> "" Then Winsock2(b).SendData "@del" & uname$: Pause 0.1
  1160. Next b
  1161. UserList.RemoveItem i
  1162. Winsock2(ctrl).Close
  1163. ips(ctrl) = False
  1164. End If
  1165. DoEvents
  1166. Next i
  1167. DoEvents
  1168. checkstat:
  1169. GetState Winsock3, Label6
  1170. For i = 0 To 50
  1171. If Winsock2(i).State <> 7 Then Winsock2(i).Close
  1172. Next i
  1173. End Sub
  1174. Private Sub Timer2_Timer()
  1175. If Winsock1.State = 9 Or Winsock1.State = 8 Then SetValues False
  1176. If fSend.State = 8 Then fSend.Close: Close 1, 2
  1177. If fReceive.State = 8 Then fReceive.Close: Close 1, 2: lPos = 1: cc.Command1.Enabled = True: cc.Text2 = "Done."
  1178. GetState Winsock1, Label6_
  1179. End Sub
  1180. Private Sub UserList__Click()
  1181. If UserList_.ListIndex = -1 Then Exit Sub
  1182. IPList.Selected(UserList_.ListIndex) = True
  1183. End Sub
  1184. Private Sub UserList__MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1185. If Button = 2 Then PopupMenu mnu_UserList_
  1186. End Sub
  1187. Private Sub UserList_Click()
  1188. If UserList.ListIndex <> -1 Then
  1189. pos1% = InStr(1, UserList.List(UserList.ListIndex), " ")
  1190. If pos1% = 0 Then Exit Sub
  1191. ctrl = Mid(UserList.List(UserList.ListIndex), 1, pos1% - 1)
  1192. End If
  1193. End Sub
  1194. Private Sub UserList_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1195. If Button = 2 Then PopupMenu mnu_UserList
  1196. End Sub
  1197. Private Sub Winsock3_ConnectionRequest(ByVal requestID As Long)
  1198. For i = 0 To 50
  1199. If Winsock2(i).State = 0 Then
  1200. Winsock2(i).Accept requestID
  1201. ips(i) = False
  1202. GoTo ending
  1203. End If
  1204. DoEvents
  1205. Next i
  1206. ending:
  1207. End Sub
  1208. Private Sub Winsock2_DataArrival(Index As Integer, ByVal bytesTotal As Long)
  1209. Dim data$
  1210. Winsock2(Index).GetData data$
  1211. ''''''''''''''''''''''''''''''''''''''''''
  1212. If Mid(data$, 1, 5) = "@pass" Then
  1213. IP$ = Winsock2(Index).RemoteHostIP
  1214. ippos$ = InStrRev(IP$, ".", -1)
  1215. pos1% = InStr(1, data$, "@name")
  1216. inname$ = Mid(data$, 6, Len(data$) - Len(Mid(data$, pos1%)) - 5)
  1217. inpass$ = Mid(data$, pos1% + 5)
  1218. For i = 0 To BanList.ListCount
  1219. If BanList.List(i) = Mid(IP$, 1, ippos$ - 1) Or BanList.List(i) = inname$ Then Winsock2(Index).SendData "@ubanned": Exit Sub
  1220. Next i
  1221. For z = 0 To Database.ListCount
  1222. outname$ = GetListData(Database, True, False, z)
  1223. outpw$ = GetListData(Database, False, True, z)
  1224. If inpass$ = outpw$ And inname$ = outname$ Then
  1225. For i = 0 To UserList.ListCount - 1
  1226. currname$ = GetListData(UserList, False, True, i)
  1227. If Mid(currname$, 1, 1) = "@" Then currname$ = Mid(currname$, 2)
  1228. If currname$ = inname$ Then
  1229. Winsock2(Index).SendData "@nameused"
  1230. Do Until Winsock2(Index).State <> 7
  1231. Pause 0.2
  1232. Winsock2(Index).Close: Exit Sub
  1233. End If
  1234. Next i
  1235. UserList.AddItem Index & " " & inname$
  1236. For i = 0 To 50
  1237. If i = Index Then GoTo skipit
  1238. If Winsock2(i).State = 7 Then Winsock2(i).SendData "@newuser" & inname$: Pause 0.1
  1239. skipit:
  1240. Next i
  1241. For i = 0 To UserList.ListCount - 1
  1242. pos1% = InStr(1, UserList.List(i), " ")
  1243. users$ = users$ & "@user" & Mid(UserList.List(i), pos1% + 1)
  1244. Next i
  1245. ips(Index) = True
  1246. Winsock2(Index).SendData users$
  1247. GoTo verified
  1248. End If
  1249. Next z
  1250. Winsock2(Index).SendData "@outpw": Exit Sub
  1251. End If
  1252. If ips(Index) = True Then
  1253. GoTo verified
  1254. Winsock2(Index).Close: Exit Sub
  1255. End If
  1256. verified:
  1257. If Mid(data$, 1, 4) = "@old" Then
  1258. pos9% = InStr(1, data$, "@new")
  1259. If pos9% = 0 Then Exit Sub
  1260. oldname$ = Mid(data$, 5, pos9% - 5)
  1261. newname$ = Mid(data$, pos9% + 4)
  1262. For i = 0 To UserList.ListCount
  1263. pos1% = InStr(1, UserList.List(i), " ")
  1264. If pos1% = 0 Then GoTo doover3
  1265. pname$ = Mid(UserList.List(i), 1, pos1%)
  1266. uname$ = Mid(UserList.List(i), pos1% + 1)
  1267. If uname$ = oldname$ Then UserList.List(i) = pname$ & newname$: GoTo next2
  1268. doover3:
  1269. Next i
  1270. next2:
  1271. For d = 0 To 50
  1272. If Winsock2(d).State = 7 Then Winsock2(d).SendData data$: Pause 0.1
  1273. Next d
  1274. End If
  1275. If Mid(data$, 1, 4) = "@msg" Then
  1276. Text5 = Text5 & Mid(data$, 5): Text5.SelStart = Len(Text5)
  1277. For i = 0 To 50
  1278. If Winsock2(i).State = 7 Then Winsock2(i).SendData "@msg" & Mid(data$, 5): Pause 0.1
  1279. Next i
  1280. End If
  1281. If Mid(data$, 1, 7) = "@action" Then
  1282. If inc% > 50 Then Text5.Text = "": inc% = 0
  1283. Text5 = Text5 & Mid(data$, 8): Text5.SelStart = Len(Text5): inc% = inc% + 1
  1284. For i = 0 To 50
  1285. If Winsock2(i).State = 7 Then Winsock2(i).SendData data$: Pause 0.1
  1286. Next i
  1287. End If
  1288. If Mid(data$, 1, 5) = "@2msg" Then
  1289. pos6% = InStr(5, data$, "@msg")
  1290. If pos6% = 0 Then Exit Sub
  1291. pos7% = InStr(5, data$, "@uname")
  1292. If pos7% = 0 Then Exit Sub
  1293. pos8% = InStr(5, data$, "@fname")
  1294. If pos8% = 0 Then Exit Sub
  1295. tmsg$ = Mid(data$, pos6% + 4, pos7% - 10)
  1296. tuname$ = Mid(data$, pos7% + 6, pos8% - pos7% - 6)
  1297. fname$ = Mid(data, pos8% + 6)
  1298. For i = 0 To UserList.ListCount
  1299. pos1% = InStr(1, UserList.List(i), " ")
  1300. If pos1% = 0 Then GoTo doover
  1301. ctrl = Mid(UserList.List(i), 1, pos1% - 1)
  1302. uname$ = Mid(UserList.List(i), pos1% + 1)
  1303. If fname$ = uname$ Then
  1304. Winsock2(ctrl).SendData "@2msg" & "@msg" & tmsg$ & "@uname" & tuname$ & "@fname" & fname$
  1305. If inc% > 50 Then Text5.Text = "": inc% = 0
  1306. inc% = inc% + 1
  1307. End If
  1308. doover:
  1309. Next i
  1310. End If
  1311. ''''''''''''''''''''''''''''''''''''''''''
  1312. If Mid(data$, 1, 8) = "@fdenied" Then
  1313. For i = 0 To UserList.ListCount
  1314. pos1% = InStr(1, UserList.List(i), " ")
  1315. If pos1% = 0 Then GoTo nextone2
  1316. ctrl = Mid(UserList.List(i), 1, pos1% - 1)
  1317. If Mid(data$, 9) = Winsock2(ctrl).RemoteHostIP Then
  1318. Winsock2(ctrl).SendData "@fdenied"
  1319. End If
  1320. nextone2:
  1321. DoEvents
  1322. Next i
  1323. End If
  1324. If Mid(data$, 1, 5) = "@fsip" Then
  1325. fpos1% = InStr(1, data$, "@file"): If fpos1% = 0 Then Exit Sub
  1326. fsip$ = Mid(data$, 6, fpos1% - 6)
  1327. fsfile$ = Mid(data$, fpos1% + 5)
  1328. For i = 0 To UserList.ListCount
  1329. If GetListData(UserList, True, False, i) = Index Then sname$ = GetListData(UserList, False, True, i): GoTo skip2:
  1330. Next i
  1331. skip2:
  1332. For i = 0 To UserList.ListCount
  1333. ctrl = GetListData(UserList, True, False, i)
  1334. If fsip$ = Winsock2(ctrl).RemoteHostIP And Winsock2(ctrl).State = 7 Then
  1335. Winsock2(ctrl).SendData "@fip" & Winsock2(Index).RemoteHostIP & "@file" & fsfile$ & "@from" & sname$: Exit Sub
  1336. End If
  1337. nextone:
  1338. DoEvents
  1339. Next i
  1340. End If
  1341. If Mid(data$, 1, 5) = "@prog" Then
  1342. pos1% = InStr(1, data$, "@to"): If pos1% = 0 Then Exit Sub
  1343. brem$ = Mid(data$, 6, pos1% - 6)
  1344. toip$ = Mid(data$, pos1% + 3)
  1345. For i = 0 To UserList.ListCount
  1346. ctrl = GetListData(UserList, True, False, i)
  1347. If Winsock2(ctrl).RemoteHostIP = toip$ Then Winsock2(Index).SendData "@fprog" & brem$
  1348. Next i
  1349. End If
  1350. '''' User @ Commands
  1351. If Mid(data$, 1, 6) = "@getip" Then
  1352. For v% = 0 To UserList.ListCount
  1353. If GetListData(UserList, False, True, v%) = Mid(data$, 7) Then Winsock2(Index).SendData "@ipuser" & Winsock2(GetListData(UserList, True, False, v%)).RemoteHostIP & "@username" & Mid(data$, 7)
  1354. DoEvents
  1355. Next v%
  1356. End If
  1357. If Mid(data$, 1, 9) = "@userboot" Then
  1358. For i = 0 To UserList.ListCount
  1359. pos0% = InStr(1, UserList.List(i), " ")
  1360. If pos0% = 0 Then GoTo nextone6
  1361. ctrl = Mid(UserList.List(i), 1, pos0% - 1)
  1362. usename$ = Mid(UserList.List(i), pos0% + 1)
  1363. If ctrl = Index Then tusername$ = usename$
  1364. nextone6:
  1365. DoEvents
  1366. Next i
  1367. For i = 0 To UserList.ListCount
  1368. pos1% = InStr(1, UserList.List(i), " ")
  1369. If pos1% = 0 Then GoTo nextone4
  1370. ctrl = Mid(UserList.List(i), 1, pos1% - 1)
  1371. If Mid(data$, 10) = Mid(UserList.List(i), pos1% + 1) Then
  1372. Winsock2(ctrl).SendData "@boot"
  1373. For c = 0 To 50
  1374. If Winsock2(c).State = 7 Then Winsock2(c).SendData "@smsg" & " ** " & tusername$ & " has booted user " & Mid(data$, 10) & " ** " & vbCrLf: Pause 0.1
  1375. Next c
  1376. Exit Sub
  1377. End If
  1378. nextone4:
  1379. DoEvents
  1380. Next i
  1381. End If
  1382. If Mid(data$, 1, 9) = "@userwarn" Then
  1383. pos2% = InStr(1, data$, "@msg")
  1384. If pos2% = 0 Then Exit Sub
  1385. usernam$ = Mid(data$, 10, pos2% - 10)
  1386. messag$ = Mid(data$, pos2% + 4)
  1387. For i = 0 To UserList.ListCount
  1388. pos1% = InStr(1, UserList.List(i), " ")
  1389. If pos1% = 0 Then GoTo nextone5
  1390. ctrl = Mid(UserList.List(i), 1, pos1% - 1)
  1391. If usernam$ = Mid(UserList.List(UserList.ListIndex), pos1% + 1) Then Winsock2(ctrl).SendData "@warn" & messag$
  1392. nextone5:
  1393. DoEvents
  1394. Next i
  1395. End If
  1396. ''''''''''' Tic - Tac - Toe
  1397. If Mid(data$, 1, 7) = "@reqttt" Then
  1398. pos13% = InStr(8, data$, "@from"): If pos13% = 0 Then Exit Sub
  1399. toip$ = Mid(data$, 8, pos13% - 8)
  1400. fromname$ = Mid(data$, pos13% + 5)
  1401. For i = 0 To UserList.ListCount
  1402. If Winsock2(GetListData(UserList, True, False, i)).RemoteHostIP = toip$ Then
  1403. Winsock2(GetListData(UserList, True, False, i)).SendData "@reqttt" & fromname$
  1404. Exit Sub
  1405. End If
  1406. Next i
  1407. End If
  1408. If Mid(data$, 1, 7) = "@accttt" Then
  1409. For i = 0 To UserList.ListCount
  1410. If GetListData(UserList, False, True, i) = Mid(data$, 8) Then Winsock2(GetListData(UserList, True, False, i)).SendData "@accttt" & Winsock2(Index).RemoteHostIP:  Exit Sub
  1411. Next i
  1412. End If
  1413. If Mid(data$, 1, 7) = "@denttt" Then
  1414. For i = 0 To UserList.ListCount
  1415. If GetListData(UserList, False, True, i) = Mid(data$, 8) Then Winsock2(GetListData(UserList, True, False, i)).SendData "@denttt": Exit Sub
  1416. Next i
  1417. End If
  1418. If Mid(data$, 1, 9) = "@tttclick" Then
  1419. pos1% = InStr(1, data$, "@spot")
  1420. playerip$ = Mid(data$, 10, pos1% - 10)
  1421. spotclick$ = Mid(data, pos1% + 5)
  1422. For i = 0 To UserList.ListCount
  1423. ctrl = GetListData(UserList, True, False, i)
  1424. If Winsock2(ctrl).RemoteHostIP = playerip$ Then Winsock2(ctrl).SendData "@tttclick" & spotclick$:  Exit Sub
  1425. Next i
  1426. End If
  1427. If Mid(data$, 1, 7) = "@tttend" Then
  1428. For i = 0 To UserList.ListCount
  1429. ctrl = GetListData(UserList, True, False, i)
  1430. If Winsock2(ctrl).RemoteHostIP = Mid(data$, 8) Then Winsock2(ctrl).SendData "@tttend": Exit Sub
  1431. Next i
  1432. End If
  1433. If Mid(data$, 1, 7) = "@tttwin" Then
  1434. pos1% = InStr(1, data$, "@who")
  1435. userip$ = Mid(data$, 8, pos1% - 7)
  1436. whowon$ = Mid(data$, pos1% + 4)
  1437. For i = 0 To UserList.ListCount
  1438. ctrl = GetListData(UserList, True, False, i)
  1439. If Winsock2(ctrl).RemoteHostIP = userip$ Then Winsock2(ctrl).SendData "@tttwin" & whowon$: Exit Sub
  1440. Next i
  1441. End If
  1442. End Sub
  1443. Private Sub Command7__Click()
  1444. If Command7_.Caption = "&Connect" Then
  1445. If Winsock1.State <> 0 Then Winsock1.Close
  1446. Winsock1.Connect Text3_, Text4_
  1447. Command7_.Caption = "&Disconn."
  1448. TextNable False
  1449. SetValues False
  1450. End If
  1451. End Sub
  1452. Sub TextNable(choice As Boolean)
  1453. Text1_.Enabled = choice
  1454. Text2_.Enabled = choice
  1455. Text3_.Enabled = choice
  1456. Text4_.Enabled = choice
  1457. End Sub
  1458. Private Sub fReceive_DataArrival(ByVal bytesTotal As Long)
  1459. Dim buffer2() As Byte
  1460. fReceive.GetData buffer2()
  1461. Put #2, lPos, buffer2()
  1462. lPos = lPos + UBound(buffer2) + 1
  1463. End Sub
  1464. Private Sub fSend_ConnectionRequest(ByVal requestID As Long)
  1465. fSend.Close
  1466. fSend.Accept requestID
  1467. dd.Show
  1468. dd.Caption = "Sending File..."
  1469. dd.Text1 = sFilename$
  1470. Open sFilename$ For Binary Access Read As 1
  1471. ReDim buffer(LOF(1))
  1472. Get #1, 1, buffer()
  1473. Close 1
  1474. fSend.SendData buffer()
  1475. End Sub
  1476. Private Sub fSend_SendComplete()
  1477. fSend.Close
  1478. ReDim buffer(0)
  1479. Text5_ = Text5_ & " ** Send File : File Sent **" & vbCrLf: Text5_.SelStart = Len(Text5_)
  1480. dd.Command1.Enabled = True
  1481. dd.Text2 = "Done."
  1482. End Sub
  1483. Private Sub Text1__Change()
  1484. txt$ = Text1_
  1485. Text1_ = StringChange(txt$)
  1486. End Sub
  1487. Private Sub Text6__KeyPress(KeyAscii As Integer)
  1488. If KeyAscii = 13 Then
  1489. KeyAscii = 0
  1490. If Winsock1.State <> 7 Then Text6_ = "": Exit Sub
  1491. If lasttext$ = Text6_ Then MsgBox "Why are you saying the same thing?", vbQuestion: Text6_ = "": Exit Sub
  1492. lasttext$ = Text6_
  1493. If Mid(Text6_, 1, 1) = "/" Then
  1494. pos4% = InStr(1, Text6_, " ")
  1495. If pos4% = 0 Then Text5_ = Text5_ & " ** Illegal Command **" & vbCrLf: Text5_.SelStart = Len(Text5_): Exit Sub
  1496. afterc$ = LCase(Mid(Text6_, 2, pos4% - 2))
  1497. If afterc$ <> "msg" Then pos5% = 0: GoTo 9
  1498. pos5% = InStr(pos4% + 1, Text6_, " ")
  1499. If pos5% = 0 Then
  1500. afterd$ = Mid(Text6_, pos4% + 1)
  1501. afterd$ = Mid(Text6_, pos4% + 1, pos5% - 5)
  1502. End If
  1503. If afterc$ <> "msg" And afterc$ <> "change" Then afterd$ = LCase(afterd$)
  1504. aftere$ = Mid(Text6_, pos5% + 1)
  1505. Select Case afterc$
  1506. Case "action"
  1507. datastring$ = "@action" & Text1_ & " " & afterd$ & vbCrLf
  1508. Case "msg"
  1509. If pos5% = 0 Then Text5_ = Text5_ & " ** Not enough parameters **" & vbCrLf: Text5_.SelStart = Len(Text5_): Exit Sub
  1510. For i = 0 To UserList_.ListCount
  1511. uname$ = UserList_.List(i)
  1512. If Mid(afterd$, 1, Len(afterd$) - 1) = uname$ Then
  1513. Winsock1.SendData "@2msg" & "@msg" & aftere$ & "@uname" & Text1_ & "@fname" & Mid(afterd$, 1, Len(afterd$) - 1)
  1514. Text5_ = Text5_ & " ** Message Sent to " & Mid(afterd$, 1, Len(afterd$) - 1) & " : " & aftere$ & msg$ & " ** " & vbCrLf: Text5_.SelStart = Len(Text5_)
  1515. If inc% > 50 Then Text5_.Text = "": inc% = 0
  1516. inc% = inc% + 1
  1517. GoTo finishmsg
  1518. End If
  1519. doover:
  1520. Next i
  1521. Text5_ = Text5_ & " ** User does not exist **" & vbCrLf: Text5_.SelStart = Len(Text5_): Exit Sub
  1522. Case "change"
  1523. oldname$ = Text1_
  1524. newname$ = StringChange(afterd$)
  1525. If Mid(newname$, 1, 1) = "@" Then newname$ = Mid(newname$, 2)
  1526. For i = 0 To UserList_.ListCount
  1527. currname2$ = UserList_.List(i)
  1528. If Mid(currname2$, 1, 1) = "@" Then currname2$ = Mid(currname2$, 2)
  1529. If currname2$ = newname$ Or currname1$ = newname$ Then Text5_ = Text5_ & " ** User already exists in list **" & vbCrLf: Text5_.SelStart = Len(Text5_): Exit Sub
  1530. Next i
  1531. If op = True Then newname$ = "@" & newname$
  1532. For i = 0 To UserList_.ListCount
  1533. If UserList_.List(i) = oldname$ Then UserList_.List(i) = newname$: Text1_ = newname$
  1534. Next i
  1535. Winsock1.SendData "@old" & oldname$ & "@new" & newname$: Text6_ = "": Exit Sub
  1536. Case Else
  1537. Text5_ = Text5_ & " ** Illegal Command **" & vbCrLf:: Text5_.SelStart = Len(Text5_): Exit Sub
  1538. End Select
  1539. If inc% > 50 Then Text5_.Text = "": inc% = 0
  1540. inc% = inc% + 1
  1541. If Winsock1.State = 7 Then Winsock1.SendData datastring$
  1542. finishmsg:
  1543. Text6_ = ""
  1544. If inc% > 50 Then Text5_.Text = "": inc% = 0
  1545. inc% = inc% + 1
  1546. If Winsock1.State = 7 Then Winsock1.SendData "@msg" & Text1_ & " > " & Text6_ & vbCrLf
  1547. Text6_ = ""
  1548. End If
  1549. Text6_.Enabled = False
  1550. Text6_ = "Sending Message..."
  1551. Pause 1.2
  1552. Text6_.Enabled = True
  1553. Text6_ = ""
  1554. Text6_.SetFocus
  1555. End If
  1556. End Sub
  1557. Private Sub winsock1_Connect()
  1558. data$ = "@pass" & Text1_ & "@name" & Text2_
  1559. Winsock1.SendData data$
  1560. End Sub
  1561. Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
  1562. Dim data$
  1563. Winsock1.GetData data$
  1564. '' Server Responses
  1565. If data$ = "@outpw" Then Winsock1.Close: MsgBox "Incorrect Username/Password.", vbInformation: SetValues False
  1566. If InStr(1, data$, "@nameused") > 0 Then Winsock1.Close: MsgBox "Name currently in use.", vbInformation: SetValues False
  1567. If data$ = "@ubanned" Then Winsock1.Close: MsgBox "Cannot connect  & Text1 " & vbCrLf
  1568. Msg2a File Sent *' Server Rea
  1569. Ife Then newname$ = "@tValues False
  1570. If InStr(1, rrival(ByVck1_DataArrivalN
  1571. If ,8= "@ubanned" Then Winsock
  1572. If pos1%8= "@uba,8= "@udma "@old" &  Winsock Then Winsock
  1573. If pos1%8= " &  UserList.Li_): Exip_xt iea
  1574. Ife Then newna8:t()
  1575. data$ = "@pass"  CrLfhThen newna8:t()
  1576. dl  Caption         =   "-"
  1577. Ilma "@ol0 To  me$ = sname$: Exi&"Canno1anno1an@pass"  CrLfhTheass"  CrLfhT w me$e_ & " ** xt5_ = Text5_ & " **  "-"
  1578. Ilma "@ol 5_ = Text5_ & " **  "-"
  1579. Ilma "@ol 5_ = Text5_ & " **  "-"
  1580. Ilma .Enabled = choice
  1581. Text3   Begind If
  1582. doover:sgBox "Cann%sTotal A Text5f otal text$ = Ttal A Te + 1)
  1583. on: Sete1.Closd") > 0 Then Winsock1.C.SendData "@wao0Wb
  1584. Private Sub winsock1_Connect()
  1585. data$ = "@pass" & Text1_ect()
  1586. Data datastring$
  1587. Dim data$
  1588. Winsock1.GetData data$
  1589. '' Server Responses
  1590. If ef pos1% = 0 Then GoTo d"@password")dlhe" Then
  1591. verified
  1592. East False
  1593. I**  "-"dn%sTotal A Ts1% - 1)
  1594. rip$ = f WinsocA Ts1% - 1)
  1595. rip$ = f 
  1596. dl  C) > 0 Then W.Closd")d" Then Winsock1.Close: Mpe
  1597. Text3   Begiu)lename$y1ext5_ & " **(ext3   Begiu)lename$y1ext5_ & " **(exd If
  1598. 0 **(ext3   Begiu)le Exip_xt iea
  1599. Ife Then newna8:t()
  1600.  **(%8= "@ubt iea
  1601. Ife Then _ + 5)
  1602. Fo Tet5_ = T Exip_xt iea
  1603. Ife Then new**(% = InStr(dc% = inc% +9[  Beg  Beg  BegtCount
  1604.   BegtCount
  1605.   BegtCo wname$, en newna8:t()
  1606.  **(%8= "@u(exext6_ = "": Exit5_): Exitd" Then Winsock1._ = Text5_ & " **  tn Winsock1._ = Text5_ &Tet5_ = T **  tn WinsockRegtCo wnamn1O
  1607. dl  C)If data$ = "@outpw" Then WiY1W5Ut5_ &T1f
  1608.   BegtCo w _ + 5)
  1609. Fo Tet5_ = T Exip
  1610. : _ + 5)
  1611. If&T1f
  1612.   BegtCo w _ + 5)W+ 1
  1613. If Winsock1.State = 7 Then Winsock1.SendData datastring$
  1614. rList.List(8a0Ilma2 newna8:t(ta data"WhyeDattringChange= Text5 & " **)Qonamn1O
  1615. dl  C) Then Wi
  1616. endi8f2ext3   Begiu)le Exips **)Qon1hange= Text5 & " **)Qonamn1O
  1617. dl  C) nsock1.GetDs1hange= Text5 & " **)Qo_gubanneewna data"WhyeDattsck1._ = Text5_  ppos1%)data$ = "@outpw" ptastrin C) nsock1.GetDs1hange= Text5 & "name$ = Getu& Text1_ & n6 & Text CrLfh7List.RemoveIormatpockf pos1% = 0 Then E+lc Winsock1.Close: Mpe
  1618. If veIormatpockf pos1% 
  1619. If v]vwveIormatpoeockf pos1% 
  1620. 9tart =se
  1621.  _ +f v]vwveIormat =se
  1622.  _ +f v]vwveIormat =se
  1623.  _ +f v]vwveIormat =se
  1624.  _ +f v]vwveIormat =se
  1625.  _ +f v]vwveIormat =s**)Qon1hange=  w _ + ct  & Text1 tart =*)Qon1hange=  w _ + ct  & Text1
  1626. If Winsock1.State <> 7 Then Text6_ = ""d
  1627. East False
  1628. I**  + ct  & Text1
  1629. If Winsock1.State <> 7u**  + ct  & Text1
  1630. :vI7pta$
  1631. Winkw> 7u** 
  1632. I**  +uest(BF1)
  1633. If&T1f
  1634.   Brx0s_ = ""d
  1635. East False
  1636. I**  + ct  & Text1
  1637. If Winsock1.State <> 7 i17oays" & Text1_eused")1.State <> 7n1hange=  w _  - 1
  1638. pos1% ="ocus
  1639. End If
  1640.  TextNable(choice As Boolean)
  1641. Text1_.EnabState <> 7 Then Text6_ = ""d
  1642. East False
  1643. I**  + ct  & Text1C _ +f v]A Ts1% - 1)
  1644. rip$ = f WinsocA Ts1% - 1)
  1645. rip$ = f 
  1646. If Mid(Teen WiY1W5Ut5_ &T1f
  1647.   BegtCo w _ + 5)
  1648. Fo Tet5_ = T Exip
  1649. : _ + 5)
  1650. If&T1f
  1651.    v]A Tf 
  1652. If Mid(Teen WiY1W5Ut5_ &Tna data"WhyeDattsck1._ = Text5_  ppos1% &Tna data"W8t5_ &Tnaattsck1._ = tCo wst =*)Qon1hangext$ = Ttal A Te + 1)
  1653. EBeg  Beg  Begt2sT1f
  1654.    v]A Tf 2(ippos$ = InStrRev(IP$, ".", -1)
  1655. pos1% = InStr(1, data$,5eg  Beg  BtCo wst =*)Qon1hanMid(Teen WiY1W5Ut5_ &T1f
  1656.   BegtCo w _ + 5)
  1657. Fo Tet,ct
  1658. 5_ &T1f
  1659.   k2(ctrl).SendData "@ttten
  1660.  Wif% + 19dMid(-
  1661. If&T1f
  1662. vt5_ Ts1% - 1C) nsoc WiY1W5e
  1663.  _ +f v]&"":insocA Ts1% C7erified
  1664. East False% 
  1665. SIPList.List(IPList.Lis _ + 5)
  1666. UserList.A5_ &Tna data"WiY1W5e
  1667.  _ +f ss"  CrLfhTheass"  CrLfhT w me$e_ & " ** xt5_ =ext1_.Enaip
  1668. : _ Seas8Text1
  1669. , 1, ippos$ iY1W5Ut5_ &Tu False% 
  1670. SIPdState  as8Text&T1f
  1671.   BegtCo w _ + 5)
  1672. Fo Tet,ct
  1673. 5_ &T1f
  1674.   k2(ctrl).SendData "@ttten
  1675.  Wif% + 19dMid(-
  1676. IWhyeDattsck1._ =to.ListIndex) = Trues, 5, postInn
  1677. IWhyeDattsck1._ =to.Li
  1678. drt = a@tt k2rt = a@ttyTeen WiY1W5Ut5_ &T1f
  1679.   Beg0c
  1680. For i = 0 TUd Su +f v]1% =  Beg0c
  1681. For i = 0 S1W5Ut5_ &T1f
  1682.   formation: SetValues False
  1683. If data$ = "@ubann data"WiY1W5e
  1684.  _ +f ss"  CrLfhTheass"  CrLfhT f
  1685.   k2(ct5_ = T Edata$, pos9% f6serLSub
  1686. 2Malse% 
  1687. 9BWQon1hange=u75choice 3aub wi% =  Beg,5eg  Beg  Bte% 
  1688. SIPdStatemation: S?u75ch5% =  Be4 "":ewna8:t(Rch5data$ = "@ubann data"pos9%   Be4 " = InStr(1, dZw"@ttt= "@uba"@outpw" UserLdata"pos9e, True, i) = Mid()rd$ = Mid(Text6id(Text6, pos4opupMenu mnu_U data$,5eg  Beg  Bt6cessag)n1hange= Text5 & " **)Qonamn1O
  1689. dl  C) nsock1.GetDs1hange= & " ** xse% N C) nsock(daistInde2SText1_ = newname$
  1690. Next i
  1691. nn data"WiY1W5e
  1692.  _ +f s1)
  1693. IWhyeDatts= Mid(data$, pos1% + 4)
  1694. For i = 0n da
  1695. Private Sub mnu_TicTacToe, "FloZUd Su +for ihR1Text1_ = n _ +f v]vw,i
  1696. End If
  1697.  Wik2(c If
  1698. F22 0 S1W5Ut5_ &T1f
  1699.   formation: SetValues False
  1700. If i = 0 To U]eues False
  1701. I0 mnusuccess"
  1702. End If
  1703. IMid(Text 1)
  1704. EietVal:
  1705. End If
  1706. IMid(Text 1)
  1707. EietV-(i), 1, pos1% - 1)
  1708. If Mid(da = 0 Then Gopd(Text6, pos4opupMenu mnu_U datb5 & Ti
  1709. EietV  v]A Tfe$, 1, 1) erList), 1, pos1% - 1)
  1710. dd.Show
  1711. dd.m9BWQon1hange=
  1712. CasegdIf Winsock1.State <> 7 i17oays"e Sub mn i = 0 Tv$
  1713. Next i
  1714. nn data"WiY1W5e
  1715.  _ +f s1)
  1716. IWxGopd(Text6, pos4opa:t(Rch5data$ =xit5_): Exitd" Then Winsock1._ = Text5_ & "e(da = 0 a$
  1717. End S+ ct  &-tpockf pos1% 
  1718. Iot5_ & "e(da k1.Stat
  1719. Dck1.Close: M...""""""tate <> 7 i17_mUsText1
  1720. hSvwve
  1721. Dck1.Close
  1722. cess"
  1723. Eio Usmtd" Then
  1724. cess"
  1725. hSvwve
  1726. Dck1.Close
  1727. cess"
  1728. Eio Usmsnsock1.
  1729. I)=02t1._ = Text5_ & "e(da = 0 aer2_p) ns_ & "e(da = 0 a$
  1730. End S+ ct  &-tpocnu_Warn2_ 0 a$,x((uvw,i
  1731. Ens4opupMe_Tn Text6_ =
  1732. I)=02ts@ubann data"pos9%   Be4 " = InStr(1, dZw"@ttt= "
  1733. Command7_.Caption Me_Tn Textw"@ttt= "
  1734. Command7_.Caption Me_Tn TWinsock1.State <> 7 Then Text6_ n TButton As Inr s1)
  1735. IWxGopEnd S 7 Thenan
  1736. & " ** Illegal CommanWion Me_T 7 Thent False
  1737. I**  + ct  & Text1
  1738. If Winsock1xt1
  1739. I**  + ct  & Text1
  1740. If Winsock1xt1
  1741. I**  + ct  & Text1
  1742. If Winsn = "@uba _ +f v +f v0:Rch5 Then Text6_1+f v0:R= "
  1743. Cotten
  1744.  Wif% + 19dMid(-
  1745. If&T1f
  1746. vt5_ Ts1% - 1C) nsoc WiY1W5e
  1747.  _ +f  aftxemation: S?u75ch5% =  Be4 "":ewna8:t(Rch5ot.ListIndex), " ")
  1748. If po S?u75ch1"rhT f
  1749.   Tfet(Rch5data$ = InStrRev( es1%8= " &  7u*te Sub mn.Close
  1750. xitd" ThcQText6, pos
  1751.  Wif% + 19dMid(-
  1752. IWhyeD+Tn Text6_ =
  1753. I)=02ts@ubann data"pos9%   Be4 " = I ="ocus
  1754. End If
  1755. 02ts@ubs9%   Be4 " = Ismta"pos9%   Be4 smta"pos9tt= "
  1756. CommrEos1% - 1)
  1757. dd.Show
  1758. dd.mserLdata"pos9e, True, i) = Mid()rd$ = Mf4% - 2))
  1759. If afters9%  3sep(u75ch1"rhT ffextioc W.Close
  1760. 19dMid(-
  1761. F1)82uo
  1762. 1, dZend": Exit Sub
  1763. Nextp fromname$
  1764. Exit Sub
  1765.   Be4 " = I =Valuefname$, 2)
  1766. If currname$ = inname$ Then
  1767. Winsock2(Index).SendData "@nameus Exit Sub1t5_ Ts1% - 1C) ns(id(-
  1768. F'pos9%   Be4 smt4 " = Ients
  1769. Next i
  1770. End If" 5)
  1771. If aftt5_ & "e(da = = Ients)ext5_ = Text5_   3sep(u75ch1"rhT ffextioc W"FloZUd)82uo
  1772. 1, dZend")s
  1773. If aaaaaaaaa Mid(Text6_ts
  1774. Next i
  1775. End If" 5)
  1776.  Wif% + 19endDxt1
  1777. Iactif" 5)
  1778.  Wif% )
  1779. DoEvei) = old
  1780. Iac 5)
  1781. If aaaaaaaaa Mi
  1782. Iac 5)
  1783. ))d S+ ct  &-tpocnu_Waaaaa Mi
  1784. Iac 5)
  1785. ))d2DoEvei) = old
  1786. Iac 5)
  1787. I) = old
  1788. ComsMid(-
  1789. If G)
  1790. _*  +ues
  1791. EasOr currBWQon1hange=
  1792. CasegdIf Winsock1.State <> 7 i17oays"e Sud.Text2 = f Wtart 1, pos1mmand7_.CaptsOr crrBWQon1hand2DoEvei) = old
  1793. Iac 5)
  1794. f af1)
  1795. EietQon1hand2Do1d
  1796. Iac 5)
  1797. f af1)
  1798. (1, UserList.List(i), " ")
  1799. If pos?u75ch1(Rch5ot.n Me old
  1800. 0ngle, Y"  Cch1"rhT ffextioc W"FloZUd)
  1801. If pos?u75c=o.n Me old
  1802. 0ngle, Y"  Cch1"rhT ffe}:
  1803. If ^t6_ = "S0mxt i
  1804. En|49BWQon1hange=u75choice 3aubemoteHostIP = Mid(data$, 8) Then Winsock2(ctrl).SendDaln1hange=
  1805. End If
  1806. o.n Me o
  1807.   1hange=
  1808. End If
  1809. Prihent False
  1810. I** Enabled = choMf4% - 2)) fromname$
  1811. d choa75c=o.n Mef
  1812. o.n Me o
  1813.   1h:lse
  1814. SetV fromname$
  1815. d fied
  1816. Ear " &  7u*te Sub mn.Close
  1817. x UserList.List(i), " ")
  1818. nabled = lse
  1819. on:ast(i), " ")
  1820. If poal Commate Su_]
  1821. End If
  1822. Prihent Fals(i), " ), " ")
  1823. If pos?u75ch1(RuU fro( af1)
  1824. EietQon1hand2Do1d
  1825. Iac- o( af1)
  1826. EiestIP 2Do1dT 7 Thent Fals1hange=
  1827. End Id Su +f v]1% = 8e)old
  1828. 0ng3f1)
  1829. EietQon1hand2Do1d
  1830. Iac Snd Sub
  1831. Private Sub IPList_Click()
  1832. Ux("Warning Message", App.Title, "This is your 1st warning! Ceasegiu)G2pp.Tit
  1833. Iac 5)
  1834. If aaaaaaaaa Mi
  1835. Iac 5)
  1836. ))el" & uname$  InStr(1, UserList.List(i)se
  1837. x Use$ Tv:s1hange=
  1838. End sf4% - 22 "e(da = 0 aR
  1839. oe$ Tv:s1hange=
  1840. End sf4% - 22 "e(da = 0 a_yVal b
  1841.