Go Back   Gaming Gutter > Non-Gaming > Programming > Source Code


Source Code - Have a source code/project files you want to post? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post Plastic Surgery Hell
Yesterday 08:02 PM
by Li-Shun
Last post by Hodizzle
Today 01:51 AM
11 Replies, 44 Views
Go to first new post What are you currently...
09-12-2008 04:16 PM
by Ocean
Last post by April<33
Today 01:36 AM
218 Replies, 1,404 Views
Go to first new post Lil Wayne
10-21-2008 09:33 PM
Last post by April<33
Today 01:34 AM
44 Replies, 365 Views
Go to first new post mOBSCENE's score sender...
Today 01:11 AM
Last post by April<33
Today 01:30 AM
3 Replies, 12 Views
Go to first new post Which Neopet hack makes...
11-09-2008 02:14 PM
by weezer
Last post by April<33
Today 01:26 AM
27 Replies, 835 Views
Reply
 
LinkBack Thread Tools Display Modes

 Home Made Ban System
Old 04-22-2007, 02:19 PM   #1 (permalink)
Banned

Bump J is offline
 
Join Date: Feb 2007
Posts: 100
GPoints: 20
iTrader: 0 / 0%
Bump J Is gaining popularity
Rep Power: 0
Home Made Ban System

This is my cheap home made ban system i have on my multi-trainer

first were gonna need a html page with some information, like the status,version and, banned members

open notepad and put this, change noodlepoodle and pimpster to the usernames you want to banned, and remember to seperate the banned usernames by _+_

Code:
Status=ON<br>
Version=0.4.2<br>
Banned Members = <b>noodlepoodle_+_pimpster</b>
save that as programstats.html and upload to ftp server and add this vb code in your auth form

Code:
Dim strHTML As String
Dim strBanned As String
Dim strBannedArray() As String
Dim strCount As Variant

Private Sub cmdDoAuth_Click()
cmdDoAuth.Enabled = False

strHTML = HTTP.GetWrapper("http://website.com/programstats.html")

If InStr(1, strHTML, "Status=ON") = 0 Then
    MsgBox "Program Is Offline"
    Unload Me
    
ElseIf InStr(1, strHTML, "Status=ON") <> 0 Then
    If InStr(1, strHTML, "Version=0.4.2") = 0 Then
        MsgBox "Version Outdated" & vbNewLine & vbNewLine & "Download The Latest Version At www.slopdog.com"
        Unload Me
        
    ElseIf InStr(1, strHTML, "Version=0.4.2") <> 0 Then
        strBanned = GetStringBetween(strHTML, "<b>", "</b>")
        strBannedArray = Split(strBanned, "_+_")

        For Each strCount In strBannedArray()
            If LCase(txtUser.Text) = LCase(strCount) Then
                MsgBox "You Are Banned From This Program"
                Unload Me
            End If
        Next
        stHTML = DoAuth (txtUser.Text, txtPass.Text) 'Replace this with forum auth or something
        If strHTML = AUTHORIZED Then
            Me.Hide
            Form1.Show
        Else
            MsgBox strHTML
        End If
    End If
End If
cmdDoAuth.Enabled = True
End Sub
  Reply With Quote

 
Old 06-22-2007, 07:08 AM   #2 (permalink)
Banned

Male Zetin is offline
 
Join Date: May 2007
Location: South-West Pacific
Posts: 478
GPoints: 25
iTrader: 0 / 50%
Zetin Is gaining popularity
Rep Power: 0
nice, its a good idea
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 01:56 AM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.24067092 seconds (100.00% PHP - 0% MySQL) with 19 queries