##########################################################################
#	ReadMe-Server-Loginsystem.txt 	Blender 2.66a
#
#	Created by Florian Voelker (iFlowProduction)
#	Games, Downloads and co. at http://iflowproduction.de
#
#	Released under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0).
#	http://creativecommons.org/licenses/by-nc-sa/3.0/
#	
#	Feel free to change it for your own application(s), but leave this 
#	Header and inform others about the license.
#	If you use this code, please include this information header and don't change the license.
#
#	If you have any questions, please contact me.
#
#	Version 1.1
##########################################################################

Do everything shown on your own risk!
I point, that passwords will be saved and read unencrypted!

----

You ever wanted to include a verification/login system for your game?

Great.
This kit does exactly what you want.

If you want to test it, just open "Server-Loginsystem.blend" and start the game engine.
A working user is predefined.
(user with game-permission: "player", "123456789Game"; user without game-permission: "game", "1234Game")

You will need:
	- some experiences with source code and database-server,
	- an server with MySQL database,
	- an editor for changing some sourcecode (I prefer N++) and most important
	- Blender (www.blender.org)
	
Lets get started.

1. Create a database at your database-server included an table "user". (should look like in picture "User.png")
1.1. Note down your database-name (in my case "floyer00_Game-Login")
1.2. Ensure, that your database include the table "user" with the attributes "username"(it's an primary key!), "password" and at least "Game1"
1.3. Don't forget to enter an new dataset(row) (e.g. username: "player", password: "123456789Game", and Game1: "1" (for active = buyed or something else))

Now set up the file "login.php" in "Server/verification":
2. First change your login-informations for your database-server in line 25 ("$dbh=mysql_connect("localhost","Database-User","Database-Password");")
3. Change your database-name in line 28 ("mysql_select_db("floyer00_Game-Login");")
(3.1 If you have knowledge about, what you're doing, you could add more games after line 48)

4. Place the folder "verification" in "Server" on your server.
5. Note down the url for your server you had placed this folder in. (In my case "http://update_service.iflowproduction.de")
(5.1. Please notice, that the folder/file has to be public accessable.

Now set up the file "Loginsystem.py":
6. Change the url in line 32 to your url from line 51. (In my case "http://update_service.iflowproduction.de")

7. Place Loginsystem.py next to the default-blend and start it! :)