-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.php
86 lines (69 loc) · 3.36 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
/*
This file is part of WebChess. http://webchess.sourceforge.net
Copyright 2010 Jonathan Evraire, Rodrigo Flores
WebChess is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
WebChess is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with WebChess. If not, see <http://www.gnu.org/licenses/>.
*/
$_CONFIG = true;
/* database settings */
$CFG_SERVER = "localhost";
$CFG_USER = "WebChessUser";
$CFG_PASSWORD = "12345"; //change at least this!
$CFG_DATABASE = "WebChess_DB";
//better to move the database settings to somewhere else than www-root
//require '/www/include/webchess-db.inc';
/* server settings */
$CFG_SESSIONTIMEOUT = 900; /* session times out if user doesn't interact after 900 secs (15 mins) */
$CFG_EXPIREGAME = 90; /* number of days before untouched games expire */
$CFG_MINAUTORELOAD = 10; /* min number of secs between automatic reloads reloads */
/* email notification requires PHP to be properly configured for */
/* NOTE: in chessutils.php a line is commented containing:
$headers .= "To: ".$msgTo."\r\n";
Some MTAs may require for you to uncomment such line. Do so if mail notification doesn't work */
$CFG_USEEMAILNOTIFICATION = false; /* SMTP operations. This flag allows you to easily activate
or deactivate this feature. It is highly recommended you test
it before putting it into production */
/* email address people see when receiving WebChess generated mail */
$CFG_MAILADDRESS = "WebChess@webchess.org";
/* This URL is displayed in the email notices */
$CFG_MAINPAGE = "http://webchess.sourceforge.net/webchess/";
$CFG_MAXUSERS = 5000;
$CFG_MAXACTIVEGAMES = 10000;
$CFG_NICKCHANGEALLOWED = false; /* whether a user can change their nick from the main menu */
$CFG_NEW_USERS_ALLOWED = true;
/* Application constants */
define('APP_NAME', 'WebChess'); // The name of the app that is shown in the title
define('APP_VERSION', '1.0.3rc'); // The version of the app
/* I18N constants */
define('I18N_GETTEXT_SUPPORT', false); // enable gettext for fetching translations
define('I18N_LOCALE', 'de_DE'); // locale to use (requires the webchess.mo file for the locale)
/* mysql table names */
define('communication', 'communication');
define('history', 'history');
define('games', 'games');
define('messages', 'messages');
define('pieces', 'pieces');
define('preferences', 'preferences');
define('players', 'players');
/* mysql table names
Change these if your database needs different table names */
// These definitions are a quick fix for the CFG_TABLE constants
$CFG_TABLE[communication] = "communication";
$CFG_TABLE[games] = "games";
$CFG_TABLE[history] = "history";
$CFG_TABLE[messages] = "messages";
$CFG_TABLE[pieces] = "pieces";
$CFG_TABLE[players] = "players";
$CFG_TABLE[preferences] = "preferences";
/* theme settings */
$CFG_BOARDSQUARESIZE = 50; /* May be used to resize board size */
$CFG_IMAGE_EXT = "png";