BUGFIX: better default for selecting players in a new game
[e-DoKo.git] / INSTALL
1
2 Installation
3 ------------
4
5 -1) What you need
6    all you need is PHP and MYSQL
7
8 0) Get files
9
10   get all files from
11
12   http://nubati.net/git/e-DoKo
13
14 1) Create database
15
16   create a mysql database using the provided file
17
18   mysql < create_database.sql
19
20   use user, password, database and host option of mysql as needed
21
22 2) Configure
23
24   Copy config.php_template to config.php and edit it. These variables need to be set:
25
26   $HOST:  for example "http://localhost"
27   $INDEX: the absolute web path to your index.php file e.g. "/mypath/index.php"
28   $STATS: the absolute web path to your stats.php file e.g. "/mypath/stast.php"
29
30   database info:
31
32     $DB_host
33     $DB_user
34     $DB_password
35     $DB_database
36
37   working on the database:
38     in case you need to work on the database for some reason, you can suspend the game
39     by setting $DB_work to 1
40
41   debug mode:
42     you can also turn the debug mode on by defining:
43     $debug=1;
44
45     this will give some extra output and won't send out emails, but
46     display them in the browser
47
48   timezone problem:
49     If you hvae problem with the timezone, that is an older PHP version,
50     try adding this in config.php
51
52     function    date_default_timezone_set($zone)
53     {
54        return;
55     }
56
57 3) Log in and enjoy ;)
58
59 Arun