SuperHero Mod Stats v2.0
Install documents

Configuration
First of all we have to edit the 'config.php' file. - Open this file with your favorite editor.
We need to set up the connection to the server. To do this, change the following lines:

// HOST
// Host IP (If the MYSQL server and Web server are hosted from the same box then this should be set as localhost or 127.0.0.1)
$dbhost = 'localhost';
$dbusername = 'root'; // Your MYSQL username ()
$dbpasswd = ''; // Your MYSQL Password
$database_name = 'sherodb'; // Your Database name

HOST:
In this case we use a web server located on the same computer as the Counter-Strike 1.6 server.

$dbhost:
This is the name of the database host. It should often be set to 'localhost', especially if you run your own web server.

$dbusername:
This is the username of the database.

$dbpassword:
This is the password of the database.

$database_name:
The database name need to be the same as the one you use to save the xp. The default is 'sherodb'.
If you don't know how to use mysql saving, go here.

Then we need to set your stats directory.
This is what $root_path is ment for. Set it to the directory your stats are in. (Default: www.yourdomain.com/stats/)
If you choose to run and change your configuration through the admin panel, set the $sql_config to "1".
If you do this, you do not have to edit anything else in the config file.
But if you choose to run the configuration directly from the config.php file, these are the lines to edit:
$maxxp = "151200";                  // Set the max amount of xp on your server
$levels = "20"; // Set the amount of levels you have on your server
$allow_dl = "1"; // Allow users to download the heroes - 1 = Yes | 0 = No
$servername = "SuperHero Server"; // Set the server name
$serverip = "localhost"; // Set server IP
$max = "20"; // How many players to show per page
$template = "blue"; // What template to use (Default: Blue, Red, Green)

To find the right number to the $maxxp, go to your superhero.ini file. Select the biggest number, in this case it will be 5500 if you use short term mode, and 51200 if you use long term mode.
## NUMLEVELS  - The total Number of levels to award players
## XPLEVELS - How much XP does it take to earn each level (0..NUMLEVELS)
## XPGIVEN - How much XP is given when a Level(N) player is killed (0..NUMLEVELS)
## LTXPLEVELS - Same as XPLEVELS but for Long-Term mode (sh_savexp 1)
## LTXPGIVEN - Same as XPGIVEN but for Long-Term mode (sh_savexp 1)
NUMLEVELS 10
XPLEVELS 0 100 300 600 1000 1500 2100 2800 3600 4500 5500
XPGIVEN 60 80 100 120 140 160 180 200 220 240 260
LTXPLEVELS 0 100 200 400 800 1600 3200 6400 12800 25600 51200
LTXPGIVEN 6 8 10 12 14 16 20 24 28 32 40

Look in your superhero.ini, to see how many levels you have on your server, in this case we have 10 levels.



-------------------------------------------------------------------------------------

Installation
When you have edited the 'config.php' file, you have to upload the files to your web server.
You can use a FTP program, or the FTP script in Internet Explorer to upload.

When you have uploaded all the files, simply open the '/install/index.php' page.
Now you have to verify the connection lines you made in the Configuration part.
If you get this text, and no errors, your stats system should be installed correct.
If You get no errors above this text, you have installed the tables correct.
And you should now delete the 'install' folder.
If you have any problems, go to www.SH-mod.tk

If you get errors, you have to check the 'config.php' file, and the information you wrote in the 'install/index.php' file again to verify that you have used the correct informations.
See the Configuration section.

-------------------------------------------------------------------------------------

Add Heroes
Now you are ready to add heroes.
Notice that the default heroes are already added, if the system is successfully.

-------------------------------------------------------------------------------------