1. Create a database, username, and password for the plugin validation table.

////////////////////////////////////////////////////////////////////
2. Run the query to create the validation table. It is stored in Validation Database Table Creation Query.sql
	You can certainly add additional columns for keeping notes, as required. The notes column isnt actually used by the validation, so you can leave that out if you wish as well.

////////////////////////////////////////////////////////////////////
3. Edit lines 2-5 of validationdatabase_web.php to be the database information set up in step 1.

////////////////////////////////////////////////////////////////////
4. Edit the include for the plugin: servervalidation.inc
	Change the line: #define VALIDATION_PHP_URL "http://www.domain.com/servervalidation/validationdatabase_web.php"
	Set it to the path for wherever you installed the servervalidation folder.

////////////////////////////////////////////////////////////////////
5. Look for the following lines near the top of the plugin that is to be validated. If they dont exist, add them:

#if defined(VALIDATION_TIME) || defined(VALIDATION_IP) || defined(VALIDATION_HOSTNAME) || defined(VALIDATION_DATABASE)
	#include <servervalidation>
#endif

Directly above these lines, add this line:

#define VALIDATION_DATABASE

////////////////////////////////////////////////////////////////////
6. Search in the plugin for: public void OnPluginStart().
	Note: The word void may or may not be included in the line if it is old syntax.
	Inside of this function, add the following code (if it doesnt already exist):
	
#if defined(VALIDATION_TIME) || defined(VALIDATION_IP) || defined(VALIDATION_HOSTNAME) || defined(VALIDATION_DATABASE)
	ValidateServer("SOME PLUGIN KEY HERE");
#endif

	Note: Replace "SOME PLUGIN KEY HERE" with some custom key for further validation that is harder to spoof.
	Leave as empty quotes to exclude the additional check (though there is no reason not to use it).

////////////////////////////////////////////////////////////////////
7. Recompile the plugin.

////////////////////////////////////////////////////////////////////
8. In the database, insert a row with the server IP under `serveraddr`, the plugin file name under `pluginname`, and the key you made in step 6 under `pluginkey`.
	At this time, the port is not checked in the validation.
	For the plugin name, you dont need to include .smx, but it wont break the validation if you do.
	The validaiton query will look for the pluginname with wildcards on either side, so if the database has .smx included, it will still find a match.
	
	Note: The whole PHP page is coded using prepared statements to protect against SQL injection.
////////////////////////////////////////////////////////////////////
9. Install socket extension on the game server. This extension is used to communicate with the web page. You can find the extension here:
https://forums.alliedmods.net/showthread.php?t=67640

////////////////////////////////////////////////////////////////////
10. Put the plugin on the server and reload it via RCon (sm plugins reload YOUR_PLUGINS_NAME_HERE).
	If you changed anything in your databases.cfg file for the plugin, you will need to restart the server.
