Navigate your browser to http://yourdomain.com/your_sourcebans/install and follow all of the directions on the screen.Note: You will need a database already setup before you start the installation

Depending on the status of your file permissions, you may come to a screen telling you copy some text into your config.php file. You must do this when it tells you, or any AMX imports you need to do, will fail.

You will always get some code to add to /addons/sourcemod/configs/databases.txt (on your GameServer) it is important to add before you install the SourceBans plugin, or the plugin will not be able to contact the database.

Once you come to the end of the installation, you need to delete the /install folder from your server. Once you have done this, your sourcebans install will be done

SourceBans Plugin

Upload the content of the game_upload folder to your gameserver

Add a "sourcebans" section to your databases.cfg as the installer tells you

Adjust the /configs/sourcebans/sourcebans.cfg to your needs. Make sure you set the correct ServerID for your server.

Updating
Updating is real easy. Just upload all the files to your FTP, and then navigate to http://yourdomain.com/your_sourcebans/updater. Now your database is updated to the latest version.

(21/09/12): Version 1.4.10
-----------------------
01. * Added support for global overrides
02. * Added support for group overrides
03. * Added option to add admins without a password and email set, if they don't have any web permissions
04. * Added mod support for CS:GO
05. * Added basic link parsing in comments. Pasted links are now clickable
06. + Fixed trying to unban badly formated steamids for games not using STEAM_0: but STEAM_1: or similar. Steam Universe is specified per mod.
07. + Added filesize of demo on download to enable browsers estimate the download time
08. + Trimmed whitespace from submission form input
09. + Added option to add disabled mods
10. + Servers are now sorted by serverid in the server list
11. + (Plugin) Enhanced sm_ban to use everything after the 2nd argument (time) as the reason. No "quotes" required.
12. ! (Plugin) Fixed creating another admin user if there already is one
13. ! Fixed a XSS vulnerability in the breadcrumbs. (Thanks NightlyDev)
14. ! Fixed LFI exploit for root admins
15. ! Fixed not rehashing all servers on some installs
16. ! Fixed case-sensitive search for "rcon_password" in rcon console
17. ! Fixed not showing expired bans as expired if the timezone of mysql and php differs. (That should NEVER be the case!)
18. ! Fixed visual glitch on the theme selection page showing an empty theme
19. ! Fixed community group banning failing for groups with more than 50 members
20. ! Fixed sql error when editing server rcon, if password contains a '?'
21. ! Fixed not showing players with quotes in their name on the server player list
22. ! Fixed not being able to kick/ban some players from the web directly. (not on the server anymore, while they actually are)
23. ! Fixed not checking for duplicated mods on mod edit/add
24. ! Fixed trying to use an invalid socket in CServerInfo causing ugly ajax errors instead of a clean "Error connecting"
25. ! Fixed showing 1.1.1970 as last login time, if user never logged in before
26. ? Removed unnecassary query in admingroup editform
27. ? Added link to FAQ to "Error connecting" message for admins
28. ? Updated IpToCountry.csv

(09/06/08): Version 1.1.1c
-----------------------------
This is a maintenance release, and contains no new features.
01. ! OS icons have the wrong path on installs that aren't the webroot
02. ! OS icons sometimes are blank for servers that use a different rcon protocol
03. ! Installer now sucessfully completes with modifying the SQL structure file by hand
04. ! Various fixes in the installer on how it operates
05. ! Fixed the plugin so that perminate bans are not added as perm bans to the local host. They are added as 5 minute temporary bans like the rest.

(27/05/08): Version 1.1.1
-----------------------------
01. ! Fixed blank page on admin page on new installs
02. + Added a check so only root admins, can set root admin (thx lomax)

(25/05/08): Version 1.1.0
-----------------------------
01. + HUGE! performance boost on banlist page
02. ? Updated Smarty and ADODB (PHP5 only!)
03. ! Fixed expired bans saying 'unbanned'
04. ! Fixed unnecisarry checks for country flags against the csv when it was in the db
05. ! Fixed unban/delban buttons showing on bans that had already expired
06. * Added icons for VAC and OS to the serverlist
07. ! Added ID column to the admin serverlist. This will be used with the plugin if you have the 'unknown sid' problem.
08. ! Fixed SourceMod error when trying to ban bots
09. ! Fixed some bans showing 3 times on the banlist
10. ! Fixed 'sid cannot be null' error in plugin! (FINALLY)
11. ! Fixed version number not showing in `sb plugins list`
12. ! Fixed problem with plugin where it would not show the mySQL error
13. ! Fixed group immunity not being inherited by admins

(svn - nodate): Version 1.0.0 RC2
-----------------------------
01. ! Fixed login button
02. ! Added in various undefined variable fixes
03. ! Fixed admins adding with invalid passwords
04. ! Fixed problem with admin server access
05. ! Fixed some pages using the old user system
06. ! Fixed some undefined vars in homepage and servers page
07. + Added an install-time check for prefixes longer than 9 chars
08. ! fixed cookie check
09. ! Fixed problem quotes round steam id with a new ban
10. ! Fixed some problems with the new buttons not working
12. + Changed a lot of SQL queries to use ADODB escaping
13. * Added developer mode that bypasses install dir check and shows all errors
14. ! Fixed inconsistencies in the banlists date display (Format is now: m-d-y)
15. * Fixed all the notices within the banlist page
16. + Optimized the banlist page, and removed a few security issues from it as well
17. + The banlist display now queries servers as it finds them, rather then querying all servers
18. ! Fixed the menu in 'your account' page
19. ! fixed some undefinded vars and small bugs in your account
20. ! Changed "databases.txt" to "databases.cfg" in stage 5 of installer
21. + added footer debug define check
22. ! fixed CServerInfo notices (skips player on invalid data from proxy)
23. ! fixed the PrintArray() on the server overview page, fixed the admin server groups page
24. ! Fixed logging in (undefined indexes)
25. ! Fixed banlist search
26. ! Fixed banlist search again
27. ! Fixed a problem lost password
28. ! Fixed problem with errors on creating a log entry when the user is a guest
29. + Improvements to the admin server permissions. If no servers or groups are added, a message tell you to add servers
30. ! Fixed admin password always being set in server
31. ! fixed an undefined index on page.banlist <devnull, is the query getting the right row_type?>
32. + refactored CUserManager sql interface, added aid index
33. ! fixed misc protest submit bugs (see prev. entry)
34. ! various installer index fixes
35. ! Fixed 'Warning: fsockopen() [function.fsockopen]: unable to connect to udp://:0 (Failed to parse address "")' showing on some bans
36. ! Fixed server config link being shown to everyone
37. * Added a warning on viewing the server config for locahost, as it may need changing unless its same box as gameserver
38. * Server querying will now be performed on YOUR server (pre RC1d) unless there is a problem, ie blocked portes etc. In which case we will use the query proxy (RC1d)
39. * Version info now includes SVN revision stuff (Only if you are using an SVN version)
40. + Updated the version checker to use ajax to speed admin page up
41. * Updated version checker to display new SVN revisions if they are available
42. ! Fixed major sourcebans serverside handle leak
43. ! fixed a little wtf in the admin server edit page
44. * added safe mode check in install init to prevent safe mode errors
45. ! Fixed the " " around commands in rcon.
46. ! Minor init fixes for undefined indexes
47. ! minor plugin changes, no new plugin compiled
48. * Applied sparky's bug report
49. ! Fixes FS#181, misc banlist changes
50. ! Fixed logout, fixed minor admingroup edit issue
51. ! Fixed some undefs in css.php
52. ! Fixed problem with quotes and slashes showing on dashboard text
53. - Removed the CUser class, as it is depricated
54. ! Fixed country flags not showing on some Linux webservers
55. ! Fixed problem when editing server groups removing all group links
56. ! Fixed big problems with admin version of banlist not showing controls for anyone :(
57. ! Fixed lots of small bugs with the banlist
58. ! Fixed major lag bug where any person still banned would have their country queried ALWAYS
59. ! Fixed unbanning problem where 'RemovedBy' was missing from the query
60. + Added some extra error checking in the unban/delban code
61. * Removed the banlist from the admin panel, and added all admin controls and search box onto the main banlist. All associated code removed.
62. ! Fixed some small problems with the advanced search not working
63. + Changed some folder names to allow for templating stuff
64. * Converted all pages to now be smarty templates. Now php and html are totally seperated
65. * Added a themes page inside the sb settings page to choose the theme for the website
66. ! Fixed some problems with the server data proxy returning blank data
67. ! Hopefully fixed the 'Error Connecting...' message on servers
68. ! Fixed lots of JS problems in Internet Explorer
69. ! Fixed problem with the emailer not sending emails
70. ! Fixed problem when submitting a ban protest saying user is already banned
71. + Improved UTF-8 support for banned player names
72. * The Clear Logs button in the system logs page works now
73. + Used AJAX more to insert server hostnames, helps speed up page loads
74. + Added a session cache for server hostnames, speeds up page, and doesnt spam gameserver (Thanks to cwm9 for the idea)
75. ! Fixed problems with 'Possible hacking attempt (URL Key mismatch)'
76. + Improved code for dialog messages, also improved the look
77. + Dialog messages are now more flexable, and can be any size
78. ! Fixed some problems with unban/delete ban if your not root admin
79. * Added SourceBans ban menu to SourceMod admin menu
80. + Improved the active tab image to have better Anti-Aliasing
81. * Changed 'previous bans' to Total Bans to reflect new ban limit feature
82. * Added new feature: Ban Limit - If player gets banned [banlimit] times - they will get a permanent ban
83. ! Fixed problem with non-defined functions when uploading demo, or icons
84. ! Fixed demo review button pointing to IP instead of banid sometimes
85. + Changed the main logo to a transparent PNG for better theme support
86. + Improved 'mouseover' code for clickable table rows to use classes instead of hardcoded colour values
87. ! Removed some code that would force default sourcebans colours, even when css changed
88. * Added a new theme 'sourcebans dark' only created to show example of themeing stuff
89. ! Fixed servers page header, and dashboard header using different classes to other headers
90. + Improved system log backtrace to help with debugging
91. + Improved the invalid XMLResponse message to use new dialog windows, and use html formatting to make it easier to read the error message.
92. * Player list on servers page now orders the players by Kills in descending order
93. ! Fixed player data being WAY off on the server page, it now shows correct score and playing time. /me slaps devicenull
94. * Added a new option in sourcebans.cfg for the server plugin to stop servers being added to sourcebans automatically. If this is enabled, you MUST specify an IP:port in the config
95. ! Fixed screenshots not being displayed in non relative paths
96. ! Fixed edit details button not linking to correct page
97. * Added IP to edit fields for a ban, also resets the country flag to requery country
98. ! Fixed log type images not showing for non relative paths
99. ! Fixed Bans not being added because of 'country' not having default value
100. ! Fixed the ban from menu option
101. ! Fixed lots of other server plugin problems
102. ! Fixed Ban protests not getting removed if the person is already unbanned
103. * Added new config option to specify if you want the plugin to re-write the admins.cfg, and admin_groups.cfg files
104. * Added new config option to specify if admins are handled with this plugin.
105. !Fixed lots of problems with installer
106. -Removed adodb library from install folder, uses the main adodb folder now
107. -Removed tinymce from install folder, no idea why this was here
108. *Added check for /themes_c to be writable
109. *Added check for /icons to be writable
110. *Added check for input on page 5 (setup)
111. !Fixed player list not showing up in IE (pages load slower, so IE has ruined it for all of us >:/) - http://www.getfirefox.com ;)
112. !Fixed a problem when getting data from the Proxy
113. !The Proxy server for hostnames, and player info is ONLINE!
114. *Added new native (SBBanPlayer) for external plugins to ban through SourceBans
115. !Fixed SQL query being shown in console, and logged when sm_rehash was run
116. !Fixed bug that would cause admins.cfg files to become corrupt, and no admins would be loaded
117. !Fixed bug that would always try and add a blank admin (Admin () has 0 immunity)
118. !Fixed plugin trying to add admins to a blank group (Unknown group "")
Number's 119 - 135 With thanks to Berni for sumbitting a patch containing the fixes
119. !Hopefully fixed the bans getting added 3 times when the plugin prunes the bans
120. !Fixed server's added by domain names not resolving as they should
121. !Fixed unban and delban being swapped in some places
122. !Fixed problem with retrieving admin flags
123. *Added date format stuff to admin panel, and bans
124. !Fixed admins changing their own details in the admin panel, users need to use the changepass thing in Your account to change password
125. !Fixed some problems with permission checkboxes in the admin panel
126. !Fixed some formatting problems with the ban details on the banlist
127. !Fixed ban length problem on banlist
128. +Exact time used so more specific than just date
129. -Removed ban/edit ban for unbanned players, as this just causes an error
130. *Added EU flag
131. +Missing flags are now always replaced with the 'unknown country' flag
132. !Ban length is correctly default-selected when editing a ban
133. ?The STEAMID is no longer required on the submit ban, admins can go by name too
134. !Fixed bug where admin passwords dont get changed in the DB
135. !Fixed the default port ALWAYS showing when editing a server, even if the server uses a different port
136. !Fixed problem where some log messages from the plugin wouldn't get put in the sourcemod logs, or sourcebans.log
137. *Added a timezone setting in the settings page, this will default all of the times displayed to the setting.
138. !Fixed ban submissions showing up as protests in emails
Numbers 139 - 157 were fixed/added by Peace-Maker
139. !Fixed settings page not refreshing after being updated
140. !Fixed installer not creating a config file
141. !Fixed demo links not being shown to public
142. *Added a search for IP
143. !Fixed ban protests showing wrong number
144. !Fixed ban protests not being deleted from db
145. !Fixed links sent to e-mails not being right
146. !Fixed links in system log linking to themes page
147. !Fixed being able to add a submission while already banned
148. *Added function to download all perma bans to a config file
149. +Added some extra logging to the syslog (ban length change, and unbanning)
150. +Send an email to the sumbitter of submission or protest when the ban is added or denied
151. !Fixed any admin being able to change settings of any admin
152. !Fixed some passwords not getting compared
153. *Added last visited field to admin list
154. *Added ban count to admin list
155. !Fixed problems with hacking menu in plugin
156. !Fixed submit button not showing if you only have one server
157. !Fixed 30min bans showing as 1hr

1.0.0 RC1d 30.sept.2007 - 23:40
--------------------------------
* Huge overhaul of the user system, pages should load much faster & less bugs?
* Fixed all groups on admin page saying 'No Group/Individual Permissions'
* Fixed lots of problems when register_globals was on. It now doesnt matter if
its on or not
* Removed the .htaccess from the package as it caused problems on some setups
* Fixed lots of sql injection stuff (thx WhiteWlf)
* SQL Change: removed *_srvadmins as lots of the data is duplicated in *_admins
NOTE: you must run rc1c-rc1d_update.php or you will have LOTS of problems
* Fixed SQL errors not showing or logging in last version
* Added a more 'button' like look to submenu items in admin panel
* Fixed lots of logic problems when adding admins
* Fixed problem with password not being set in server admin
* Improved some of the error logging, and messages.
* Updated the server plugin to work with new SQL structure
* Fixed the server plugin version not being a public cvar
* Fixed admin side buttons not working properly when some options are disabled
* Fixed some links in emails being incorrect
* Fixed a few more problems with server incompatability
* Fixed admins with quotes showing '\' in the name
* Fixed incorrect admin count because of hidden system user
* Fixed problems with adding some admins
Note: People using SVN versions need to run rc1c-rc1d_update.php again
* Fixed lots of code shown on ban protest and submissions pages on some setups
* Fixed broken links in admin panel sub-menu
* Fixed not allowing a second ban quickly after a ban expires (plugin and web)
* Added better logic for if queries were successfull or not
* Fixed problems with display after some items were deleted from the db
* Fixed unban and delete ban permissions being reversed
* Started implimenting a UI class to handle the UI elements easier
* Fixed problem with some hosts blocking ports needed to query server data.
This has been fixed by using sourcebans.net to act as a sort of proxy
* Player data isnt called on the server list unless you click the server row
to open up the players list
* Some other stuff to speed up the server display
* Added French plugin translation (thanks to exa)
* truncated names on dashboard which could mis-shape the layout
* Fixed truncation on blocked players being too short
* Fixed problem with web settings not being updated properly
* Log info is now more helpful on sql problems
* Fixed some security problems in settings page
* Applied some more security stuffs (thx WhiteWlf)

1.0.0 RC1c 19.sept.2007 - 20:40
--------------------------------
* Fixed admin to seeming not be added when you dont choose from the dropdown
* Added a 'no permissions' selection when adding an admin
* Fixed not needing a DB password in installer
* Fixed an incorrect message in the installer
* Added a message box to show if there are errors adding an admin, so you dont
need to scroll all the way up
* Fixed submit ban now allowing zip files (thx Elbandi)
* Fixed adding a demo to existing ban allowing any filetypes
* Fixed 'No Group' showing for server admins
* Fixed strange stuff happening when adding a new group
* Fixed immunity not being set right on editing groups and admins
* Fixed server groups not getting added into the db
* Fixed tabs not changing color in the header
* Fixed RCON outputting to one line from linux servers
* Fixed SQL error when adding a log entry with no SQL query
* Fixed send button not enabling again after typing 'clr'
* Added a link on the list servers page to show the databases.cfg you need
to upload to the gameserver.
* Removed 'Config' link from server page as plugin hasnt required this cfg
for a long time.
* Fixed trying to get a server query for a server that doesnt exist
* Fixed `WriteLogEntries()' ?>` being show in the footer in some setups
* Fixed flags not showing on the main ban table
* Fixed some country's flag being blank on linux servers
* Flags now show on admin banlist
* Fixed lots of other flag related bugs
* Fixed banlist layout problems in Opera
* Added a blank flag for if the IP isnt in the database
* Forgot to upload the country database
* Fixed some spelling mistakes (lOL)