EventScripts Forums
Mattie's EventScripts and Source Forums
Mattie recommends...
Premier Sponsor:Platinum Sponsor:
 
Script Categories
addon (49) admin (269) admins (14) advert (15) adverts (19) afk (15) alerts (12) ammo (23) anti (15) auth (16) automatic (12) awp (23) ban (18) ba_jail (17) bhop (19) block (19) bomb (40) bonus (23) bot (24) bot-management (19) bots (17) bunnyhop (11) Buy (21) cash (65) chat (57) cheat (11) clan (16) classes (22) color (21) colors (18) command (20) commands (18) config (22) connect (42) CS:S (16) css (2498) Damage (35) database (11) dead (15) death (19) deathmatch (70) deathrun (12) disconnect (18) Dissolve (11) dm (20) dod:s (11) dods (386) easy (17) effects (120) English (15) entity (21) es_tools (12) Eventscript (12) flashbang (25) français (99) french (36) fun (286) funny (16) Gabeee (11) gameplay (174) give (16) gravity (11) grenade (25) grenades (29) gun (14) GunGame (26) GunGame5 (11) guns (17) Hack (15) headshot (32) health (54) hegrenade (13) hl2dm (329) HP (13) info (48) information (16) jail (26) jailbreak (11) join (23) jump (12) kick (23) kill (44) kills (22) knife (57) leveling (36) management (14) mani (15) map (25) map-management (27) maps (15) match (17) menu (106) message (20) messaging (52) mod (109) model (14) models (32) money (42) motd (12) music (29) mute (18) nades (18) name (13) noblock (35) player (40) player-management (31) player-tracking (28) popup (55) props (23) protection (27) punishment (50) python (63) quake (18) radio (21) random (36) rank (35) rates (16) rcon (13) realism (21) respawn (61) restrict (36) round (20) rpg (24) rules (42) say (11) scout (19) Script (20) script-helper (25) scriptpack (33) sdk (149) server (44) server-tools (42) shop (12) silly (31) simple (27) skins (24) slay (13) soccer (11) sound (45) sounds (92) spawn (62) speed (25) statistics (13) stats (48) STEAMID (23) Superhero (13) surf (31) Team (25) team-balance (14) teleport (11) text (14) TF2 (143) time (17) timer (14) tools (15) tracers (17) triggers (11) uedi (18) uses_auth (18) utility (11) vip (11) vote (36) voting (22) war (20) wcs (24) wcs:Python (32) weapon (77) weapons (114) web (14) welcome (12) zm (24) zombie (90) zombiemod (51) zombies (11)
Script Authors
*XYZ*SaYnt (12) .:MiB:. (11) .eMko* (6) 101satoon101 (10) 3R10N (24) 4u571n91 (5) 7355608 (9) Absolute (8) Ace Rimmer (40) adminc (5) Adz (8) AgathaKnuppelkuh (8) aidden (8) ajax (5) ak_47 (6) Al3c Tr3v3lyan (6) allstareng (5) ashbash1987 (9) ATAMAH (7) aznone (5) B00M (5) BackRaw (41) BFH_RedBull (8) bigfabi (7) Bioko (7) Blade (10) bladesback (13) bobdole (11) bodzsar1 (8) bonbon (36) Brainsucker (30) cagemonkey (8) carbon-14 (10) CaskioUTF (5) cbirou (15) ChaCaLz2psy4 (5) CharlesT (5) Chrisber (5) chrismrulz (9) Chun (6) cladiron (10) clipz934 (8) Colster (21) Cookieman8 (7) craziest (10) DanielB (19) Darkness123 (8) Dave (9) dbozan99 (7) deathx9 (5) Deathyy (15) dhack (16) Di[M]aN (12) DoCky (27) Don (15) dordtcore (8) DragonFreddo (8) Drassil (5) Einlanzers (42) EmbouT (10) emilplov (7) Errant (10) Eun (6) Fantole (9) Franc1sco (9) freddukes (18) Frequency (6) Fulmine (5) GAMEREN2 (8) german9114 (13) GODJonez (38) GoodfellaDeal (5) Hansi (6) HitThePipe (7) HOLLDIDAY (9) Icetouch (6) ichthys (25) infamous1 (9) Jeff91 (45) JoeyT2006 (30) Juba_PornBorn (12) jxl180 (10) KDBFame (6) L'In20Cible (7) Largo Usagi (10) Lobe (11) loKkdoKk (7) lolo-le-haricot (7) LosNir (5) Lumpi@Work (9) M4rc3L-XCN (7) macshot (6) Matth (5) Mattie (20) MBchrono (15) McFly (20) Medda (5) Memphis-84 (10) Messiah93 (12) Mickyy (5) micmacx (6) Mitchell (5) Mordavolt (7) MrScriptaz (5) mryoung (6) Nicolous (26) ojii (31) Omega_K2 (6) Owned|Myself (8) P3N (7) pand3mic (5) parsimba (5) Pascal257 (9) PatPeter (7) PDrop (10) Phaedrus (18) PhantOm Fury (7) phoenix131 (8) pinkyyy -.- (5) pitbull0993 (7) randomknifer (9) Ratzee (6) ReaCtioN2oo9 (6) Rennnyyy (17) revolutionfighters (6) RideGuy (12) Rio (9) Roeliekt (6) runamagic (13) sandking220 (6) Sarcasm_Poisoning (10) saRs| Johnny-5 (13) Schubaal (10) sea212 (5) sega74rus (7) sgt.angel (6) sicilia (5) sicman_adrian (22) skillz92 (7) sn4k3 (18) snake38 (10) sonicsight (7) spoonman184 (8) stabby (22) stas (22) Strontium Dog (30) SumGuy14 (25) SuperDave (45) surfteam (5) TaCo (5) TanaToS (17) Tealk (6) teowow (16) TheCheeTaH (20) TheDonFather (5) theresthatguy (6) Tiny Tod (7) Totyahun (9) uedi (38) Undead (25) usernamesaretaken (15) Warren (13) westham (6) WhiteAvenger (7) Wonder (14) X-Mania (5) XE_ManUp (13) xfalcon61 (5) zSweetXz (5) [Cs]Lord_Inferno2 (11) [NATO]Hunter (28) ||Wolf|| (10)
Search

Post new topic Reply to topic
Go to page 1, 2, 3, 4, 5 ... 97  Next
Author Message
User avatar
Power User
Profile

Posts: 620
 
New postPosted: 2007-05-28, 11:04 pm 
   Post subject: GlobalBan v3.4.1 [Updated 12/01/2008] (Source and OrangeBox)

Purpose:
This combination of es scripts and php scripts allows you and your fellow admins to ban players from ALL your servers in-game or out of game. All bans are stored in a MySQL database on your webserver, no more need to mess with valve's banned_users.cfg file! I have encompassed as much as possible into the web front end as possible, much more will be added as time goes on. If you use steambans, then this script probably is not for you, this script was written for those that wish to maintain their own ban system.

Note: Minor versions only require replacing files. A minor version is 3.x.x. A major version is 3.x. Minor versions only are released to improve performance or for emergency security fixes. Major versions are only released for new features.

Changelog:
  • 12/01/2008 - v3.4.1
    • Fix to the .php.rar file upload exploit.
  • 07/05/2008 - v3.4
    • GlobanBan works with the orangebox now.
    • Servers can now be grouped together with server groups. This allows you to apply 1 list of admins to multiple servers.
    • Admin Groups are now implemented. You can specify GlobalBan, Mani, and SourceMod powers within a group. You then can set an admin to this group. Click on the admins icon on the Server Page to edit their powers.
    • A new Bad Name list has been added. Any names that contain the bad name will be auto-kicked. For example, you can add myg0t to have anyone that connects with that tag to be kicked.
    • New script command gb_consoleBanUser allows a scripter to use this command to autoban. This lets GlobalBan know it was done by a script rather than an admin. Refer to GlobalBan.py to see an example.
    • Mani and SourceMod support is in place. If you plan to use it, you must disable Mani's database usage. The same is true for SourceMod. GlobalBan writes the admins lists to flat files. Please be sure to backup those files before using GlobalBan to manage your lists.
  • 01/25/2008 - v3.3
    • Threading removed. Replaced with wget and requires your webserver to be able to send rcon commands to your servers.
    • Banlist now hides expired bans to normal users, admins can still see all bans.
    • Top menu changed in preparation for new features in 3.4.
    • gb_externalBanUser has been modified. It now accepts either the admin's ingame userid, or the admin's steam id.
    • Admins can be enabled or disabled.
    • Mouseover explainations added to most admin functions (green ticks and red x's).
    • Admins can now disable their own bans.
  • 12/21/2007 - v3.2
    • Admin list, ban lengths, and ban reasons automatically retrieved from web server on script load and map change. No longer required to click "Save to Server" for these 3. "Save Configuration" is still a requirement.
    • Server List page improved. Server status (online/offline) is now shown with an icon and mouseover. Player information now show as well. Known bug that connect time shows incorrectly.
    • Installer improved drastically and designed to look like the "Configuration" page. Super user is now created during install process.
    • RCON password is now ALWAYS required whenever updating a server. RCON password is also masked and requires the current password to change it.
    • Sample GlobalBan.cfg file and class.Config.php files added incase these files do not get created due to permission issues or firewall issues.
    • Ban history is now viewable to admins when viewing an individual ban.
    • Some minor display fixes on various pages.
  • 11/17/2007 - v3.1
    • Threading in GlobalBan ES script improved to fix odd delays.
    • New way to define ban lengths. Ban lengths can be in minutes, hours, days, weeks, or months. All done through web.
    • New Configuration page added to web. Saving the configuration will automatically generate the GlobalBan.cfg file on all CSS servers. No need to touch the CSS server to configure!
    • Other minor bugs fixed.
  • 11/04/2007 - v3.0
    • GlobalBan es script converted to python for Eventscripts 2.0!
    • clan_db script merged into GlobalBan, no longer need clan_db.
    • Mattie's system plugin no longer needed due to added functionality in ES2.0.
    • The webpage database/tables and configurations can now be done by executing install.php after placing the pages on your webserver. Execute upgrade.php if you are upgrading from GlobalBan 2.2.

Requirements:

Download:
Installation:
Installation (Full Install): I have done my best to be as descriptive as possible with installation of this ban application. Either post or email if any step is unclear. It is assumed that you already have knowledge with mysql and installing websites. If you are upgrading, skip down to the upgrade section.
Web Server (Full Install):
  1. Within the GlobalBan zip file, there is a "banned" folder. Save this folder to your webserver. If you save it to htdocs everything will be in htdocs/banned. You should then be able to access the web front end by going to yourdomain.com/banned. If you wish to use SMF integration, extract banned folder to your SMF folder.
  2. Once extracted, point your browser to http://www.yourdomain.com/banned/install.php and enter the input it asks for. (if you use an external web host, you may need to set config/class.Config.php as writable)
  3. Login and add your servers through the "Server List" link.
  4. (SMF users can skip this step) At this point you can get all your other "members" to create a user, but you will need to give them the basic user create code. This will create them as a basic user. You modify their level of admin rights on the webpages through the "Manage Admins" link. (This is an optional step if they wish to be able to add bans through the website).
  5. There are now multiple css style sheets in the css folder. Pick one you want by re-naming it to banned.css
  6. Before saving your configuration through the web, be sure to install and load the GlobalBan ES script
Note: Make sure you have outgoing UDP/TCP port 27015 (or whatever port you server is on) open on your web server. This will require you to ask you web host to open the port.

CSS Server (Full Install):
  1. Make sure ES 2.0 is installed.
  2. Within the GlobalBan zip file, there is an eventscripts folder.
  3. Save GlobalBan to your addons/eventscripts folder.
  4. Add all your admins/members through the web application (if you wish for them to be able to access the website you must have them sign up with the special code or enter in an email address for each of them and execute the "reset password" to send them a password to login). Those flagged as "admin" or higher will be allowed to add bans right away, however memebers who add a ban greater than 1 day are placed in "pending" mode for review (config value determines if the banned person is banned during the pending period for X days; if X days is set to 0, the banned person can rejoin until the pending flag is removed).
  5. Add es_load GlobalBan to your autoexec.cfg
  6. Restart your server OR exec the above two es_loads through rcon.
  7. All members can access the banmenu buy typing !banmenu in say.
  8. Once on you CSS server and loaded, add the server(s) through the web and then click "Save Configuration" on the Configuration page. This will sync all of your CSS servers with the GlobalBan webapp. If you modified the Ban Reasons or Ban Lengths, be sure to save those as well.
  9. At this point, it is recommended to change maps or execute es_reload GlobalBan.
  10. You may need to reload GlobalBan twice if you add an admin group with Mani or SourceMod powers.

Installation (Upgrade from 2.2+ to 3.4):
Web Server (Upgrade):
  1. Point your browser to http://www.yourdomain.com/banned/upgrade.php, select the right upgrade option for you and click upgrade!
  2. The web upgrade is now complete!
CSS Server (Upgrade):
  1. Extract the new GlobalBan files into the GlobalBan folder.
  2. Delete or rename es_GlobalBan.txt if it still exists
  3. Reload your admins through the webapp at the end of this upgrade guide if you are upgrading from 2.2
  4. You can now remove clan_db completely if you upgraded from 2.2.
  5. On the Configuration Page, do a "Save Configuration". On the Ban Reasons and Ban Lengths pages, do a "Save to CSS Servers".
  6. You may need to reload GlobalBan twice if you add an admin group with Mani or SourceMod powers.
  7. The upgrade is complete!


Levels of Power:
Super User - Full access to the web site (setting up servers, managing admins) and full ban privs.
Ban Manager - They can modify ALL bans and recieve email notifications for bans and/or demos and full ban privs.
Admins - They can only modify their own bans only and have full ban privs (includes ip banning)
Members - They can only modify their own bans, and any ban they do that is greater than 1 hour is placed in "pending mode" if you have the pending day variable > 0. If it's pending, the ban is only active for x days. If no action is taken (the pending not removed), the banned person is able to re-join the server after x days.

Reporting Bugs:
Report all bugs to http://code.google.com/p/esglobalban/issues/list

Subversion Repository for the latest working version:
http://code.google.com/p/esglobalban/

This application has been tested on both windows and linux as well as on mysql 4.1 and 5 and php 4 and 5.

FAQ:
Question: I get a blank page after running the install.php page, why?
Answer: This means the installer successfully installed the database tables and created your super-user, however, due to permissions with your webserver, it failed to write the class.Config.php file to the config directory. To fix this, copy or rename class.Config.php.sample to class.Config.php and manually edit that file to suit your needs. Next, set the permission of that file to 777 so that it can be saved to in the future.

Question: All of my db files in the GlobalBan folder are 0 bytes! Why?
Answer: This is an access issue on your webserver. Please make sure you have a .htaccess file setup correctly that allows appropriate access.

Question: I banned a player and it shows up on the website, but they don't get kicked when they re-join, why?
Answer: You did not read the installation instructions fully. There is a note right after step 6 of the web install.


Last edited by Soynuts on 2008-12-01, 10:44 pm, edited 70 times in total.




User avatar
Regular
Profile

Posts: 128
Location:
Paso Robles, CA
 
New postPosted: 2007-05-29, 10:24 am 

Very cool. +woot

_________________
My Scripts


User avatar
New User
Profile

Posts: 13
Location:
Riverview, NB, CA
 
New postPosted: 2007-05-29, 2:50 pm 

Finally! :) Good tos ee you finlly released it. Seems to be working okay on one of my sites so far. I'll let you know if I run into any issues.

Congrats again on a great script!


User avatar
Regular
Profile

Posts: 185
 
New postPosted: 2007-05-29, 5:29 pm 

Only issue I am having so far is trying to create a new user. I see no where to put my steamid and it keeps saying invalid steamid

_________________
Image


User avatar
Power User
Profile

Posts: 620
 
New postPosted: 2007-05-29, 6:25 pm 

HnyBear wrote:
Only issue I am having so far is trying to create a new user. I see no where to put my steamid and it keeps saying invalid steamid


What does the screen look like? It should look like http://unbuinc.net/public/banned/index.php?page=newuser

I use a regular expression to determine if the steamid is valid or not, which is /^STEAM_[01]:[01]:\d{0,10}$/

From your wording, it sounds like the steam id box is not visible or something? Or am I mis-interpretting you?


User avatar
Regular
Profile

Posts: 185
 
New postPosted: 2007-05-29, 6:31 pm 

nope I see exactly that but there is no where to input your steamid.

_________________
Image


User avatar
Power User
Profile

Posts: 620
 
New postPosted: 2007-05-29, 6:57 pm 

HnyBear wrote:
nope I see exactly that but there is no where to input your steamid.


The field right after username is steam id which is followed by password.


User avatar
Power User
Profile

Posts: 620
 
New postPosted: 2007-05-30, 4:03 am 

Web pages have been updated to fix the paging bug. Visit my test site at http://unbuinc.net/public/banned/index.php?page=banlist to see what the new paging system looks like.


User avatar
Newbie
Profile

Posts: 51
Location:
Russia
 
New postPosted: 2007-05-30, 4:56 am 

System plugin + wget is a good idea, but i think it is better to use http://forums.mattie.info/cs/forums/vie ... hp?t=13605 (Source Utils). A MySQL plugin for ES.


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 3397
Location:
England
 
New postPosted: 2007-05-30, 6:04 am 

exvel wrote:
System plugin + wget is a good idea, but i think it is better to use http://forums.mattie.info/cs/forums/vie ... hp?t=13605 (Source Utils). A MySQL plugin for ES.


If you like having to connect every time you want to make a query then it's fine.


User avatar
Newbie
Profile

Posts: 51
Location:
Russia
 
New postPosted: 2007-05-30, 6:28 am 

Not a problem. ;)


User avatar
Power User
Profile

Posts: 620
 
New postPosted: 2007-05-30, 7:04 am 

Wonder wrote:
exvel wrote:
System plugin + wget is a good idea, but i think it is better to use http://forums.mattie.info/cs/forums/vie ... hp?t=13605 (Source Utils). A MySQL plugin for ES.


If you like having to connect every time you want to make a query then it's fine.


And what happens if the web server that you are potentially trying to connect to does not allow outside connections through port 3306 or whatever the default port is for mysql? I know I've been with some web server providers where you just could not access the database like that and all sql connections had to be done locally on the webpage.

The other issue would be double configuration of database connection information. I'ld rather the user just set that all up once on the webpage instead of doing it in multiple places; in the script and the webpge.


User avatar
Reader
Profile

Posts: 88
 
New postPosted: 2007-05-31, 12:05 am 

If an admin bans through an admin program that adds to the ban_user.cfg will this be added to the sql data base?


User avatar
Power User
Profile

Posts: 620
 
New postPosted: 2007-05-31, 12:52 am 

No. However, you can import all bans that you currently have added to banned_users.cfg through my web front end (with a super-user account only). Once that is done, there is no reason to use any other admin banner as I provide es scripts for this sole purpose. I, myself, have totally stopped using banned_users.cfg and don't even bother to exec that file in my server.cfg file anymore and I don't allow banning through mani anymore.

This is an all in one Ban application that applies to ALL servers you choose to run it on. It allows you to ban in-game and it allows you ban out of game if the person you wanted to ban left or if someone reports a hacker with a demo.

I should note, you don't have to have every admin sign-up on the webiste. The only reason to have them do so is to that they can add bans through the website or to edit a ban they have done. If the admin is registered to ban through my in-game es scripts but not on the webapp, it will still ban the person, but it will just say that the banner was "blank".


User avatar
Reader
Profile

Posts: 88
 
New postPosted: 2007-05-31, 2:15 am 

Thanks for the clarification. 8)


User avatar
Power User
Profile

Posts: 620
 
New postPosted: 2007-05-31, 10:11 am 

I've just been informed by one of my testers that the person does have to be registered on the web site in-order for in-game bans to register properly. So I will be making modifications so that that does not have to be the case and will hopefully have a new version for this in a couple of days.

My initial intention of adding admins to the website was to both show who the banner really was (ie, if the admin was actually incongito) and to allow admins to add bans through the website. But there has been interest in just making it so that they don't have to be registered on the site in order to add bans in game to the database. I'm still working out the details on how exactly I want to handle this. Maybe I'll add an import method so that you can import admins from the es_clanMembers_db.txt file, add an "add new admin" area to the website, and an export button to generate es_clanMembers_db.txt. That way server admins can keep both areas consistent easily, either consistent by the es db file or consistent by the mysql database tables.


User avatar
Regular
Profile

Posts: 185
 
New postPosted: 2007-05-31, 10:16 am 

Is there anyway to create this plugin without the need for Mani's System plugin or wget both of which my server provider will not allow to be installed.

_________________
Image


User avatar
Power User
Profile

Posts: 620
 
New postPosted: 2007-05-31, 11:53 am 

HnyBear wrote:
Is there anyway to create this plugin without the need for Mani's System plugin or wget both of which my server provider will not allow to be installed.


If there was I would have used it.


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1741 posts ]  Go to page 1, 2, 3, 4, 5 ... 97  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group