Git Product home page Git Product logo

stats's Introduction

Installation

Download and Extract Script

You can obtain the lastest release from github repository the files are available in .tar.gz and .zip formats and can be extracted using most compression tools.

To download and extract the files, on a typical Unix/Linux command line, use the following commands:

wget https://github.com/JiLiZART/w3ghstats/tarball/master
mv master w3ghstats.tgz
tar -zxvf w3ghstats.tgz
cd w3ghstats
mkdir assets
mkdir app/runtime
chmod 775 assets
chmod 775 app/runtime
chmod 775 app/framework/zii/widgets/assets/

Database setup

You can edit configuration in path/to/w3ghstats/app/config/web.php fill 'title' and 'connectionString', 'user', 'password' in db section of array,

'db'=>array(
	'connectionString' => 'mysql:host=localhost;dbname=dos',
	'emulatePrepare' => true,
	'enableProfiling' => true,
	'username' => 'root',
	'password' => '1234',
	'charset' => 'latin1',
),

also you can edit params in 'params' section

'params'=>array(
	'dateFormat'=>'d.m.Y H:i',
	'newsPerPage'=>10,
	'gamesPerPage'=>10,
	'heroesPerPage'=>10,
	'bansPerPage'=>10,

	'heroGameHistoryPerPage'=>10,

	'showItemsMostUsedByHero'=>true,
	'showAllSlotsInGame' => true,
	'minPlayedRatio'=> '0.8',

	'headAdmin'=>'JiLiZART',
	// this is used in contact page
	'adminEmail'=>'[email protected]',
),

If you don't have a ghost database, you can create it on Linux/Unix command line, use the following commands:

mysql -uYOUR_USER -pYOUR_PASSWORD

you will be entered in mysql shell, now type

CREATE DATABASE `databasename`;

and hit ENTER, you will see:

Query OK, 0 rows affected (0.13 sec).

quit and ENTER.

All schema's located in app/data/ For clean install you need install 'ghost.schema.sql' first, after 'install.schema.sql' For import sql into your database on Linux/Unix command line, use the following commands:

mysql -uYOUR_USER -pYOUR_PASSWORD YOUR_DATABASE < install.schema.sql

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.