Page 1 of 1

Statistics Website

Posted: 06 Feb 2019, 20:42
by Mohamed Alaa
As we have too many plugins running MySQL so we thought that we should provide a script to gather all those information in 1 page.


| You will need:
  1. A server running PHP & MySQL.
  2. Level System (Optional).
  3. Escapes (Optional).
  4. Infects (Optional).

First of all, you will need to edit config.php for those information:
  • Code: Select all

        // Host to connect to
        define("DB_HOST", "localhost");
    
        // Database user
        define("DB_USER", "root");
    
        // User's password
        define("DB_PASSWORD", "");
    
        // Database name
        define("DB_DATABASE_NAME", "test");
    
        // Name of the table where all information stored in such as: escape coins, steamid, etc..
        define("TABLE_NAME", "test");
    
        // Are you using level system and want to view level information?
        define("USING_LEVELS", false);
    
        // Are you using infects counter and want to view infects?
        define("USING_INFECTS", true);
    
        // Are you using escapes counter and want to view infects?
        define("USING_ESCAPES", true);
    
        // How many players you want to view in the home page
        define("MAX_PLAYERS", 3);

Once done, head to: yourwebsitedns/stats/

If everything is being done correctly, you should see something like in this screenshot:
  • screen.png
If you have faced any issues, just comment down below.

| Download:

Re: Statistics Website

Posted: 24 Aug 2019, 17:14
by Mohamed Alaa
Updated.

Re: Statistics Website

Posted: 25 Aug 2019, 08:50
by Muhammet20
Nice Work Bro, Thanks this is will help me too much, i waiting this from a long time