forked from Ben0it-T/timetracker
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.php.dist
More file actions
210 lines (157 loc) · 8.32 KB
/
config.php.dist
File metadata and controls
210 lines (157 loc) · 8.32 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<?php
/* Copyright (c) Anuko International Ltd. https://www.anuko.com
License: See license.txt */
// Set include path for PEAR and its modules, which we include in the distribution.
//
set_include_path(realpath(__DIR__ . '/../src/lib/pear') . PATH_SEPARATOR . get_include_path());
// Database connection parameters.
//
// CHANGE 3 PARAMETERS HERE!
// In this example: "root" is username, "no" is password, "dbname" is database name.
//
define('DSN', 'mysqli://root:no@localhost/dbname?charset=utf8mb4');
// Do NOT change charset unless you upgraded from an older Time Tracker where charset was NOT specified
// and now you see some corrupted characters. See http://dev.mysql.com/doc/refman/5.0/en/charset-mysql.html
// MULTIORG_MODE option defines whether users can create their own top groups (organizations).
// When false, a Time Tracker server is managed by admin, who creates top groups (one or many).
//
// Available values are true or false.
//
define('MULTIORG_MODE', true);
// EMAIL_REQUIRED defines whether an email is required for new registrations.
define('EMAIL_REQUIRED', false);
// WEEKEND_START_DAY
//
// This option defines which days are highlighted with weekend color.
// 6 means Saturday. For Saudi Arabia, etc. set it to 4 for Thursday and Friday to be weekend days.
//
define('WEEKEND_START_DAY', 6);
// SESSION_COOKIE_NAME
//
// PHP session cookie name.
// define('SESSION_COOKIE_NAME', 'tt_PHPSESSID');
// PHPSESSID_TTL
//
// Lifetime in seconds for session cookie. Time to live is extended by this value
// with each visit to the site so that users don't have to re-login.
// define('PHPSESSID_TTL', 86400);
//
// Note: see also PHP_SESSION_PATH below as you may have to use it together with
// PHPSESSID_TTL to avoid premature session expirations.
// PHP_SESSION_PATH
// Local file system path for PHP sessions. Use it to isolate session deletions
// (garbage collection interference) by other PHP scripts potentially running on the system.
// define('PHP_SESSION_PATH', '/tmp/timetracker'); // Directory must exist and be writable.
// SESSION_HANDLER
// Set session storage.
// 'file' : file stroage. Default value
// 'db' : db stroage
define('SESSION_HANDLER', 'file');
// LOGIN_COOKIE_NAME
//
// Cookie name for user login to remember it between browser sessions.
// define('LOGIN_COOKIE_NAME', 'tt_login');
// Forum and help links from the main menu.
//
define('FORUM_LINK', 'https://www.anuko.com/forum/viewforum.php?f=4');
define('HELP_LINK', 'https://www.anuko.com/time-tracker/user-guide/index.htm');
// MAIL configuration
// ------------------
// Default sender for mail:
define('MAIL_FROM_NAME', 'Anuko Time Tracker');
define('MAIL_FROM_ADDR', 'no-reply@timetracker.anuko.com');
// Mail sending mode:
// 'mail' - sending a message using PHP's mail() function.
// 'sendmail' - sending a message using a local sendmail binary
// 'smtp' - ssending a message through SMTP server.
define('MAIL_MODE', 'mail');
define('MAIL_CHARSET', 'utf-8');
// define('MAIL_SMTP_HOST', 'localhost'); // For gmail use 'smtp.gmail.com' and port 465.
// define('MAIL_SMTP_PORT', '465');
// define('MAIL_SMTP_AUTH', true);
// define('MAIL_SMTP_USERNAME', 'yourname@yourdomain.com');
// define('MAIL_SMTP_PASSWORD', 'yourpassword');
// Encryption
// 'ENCRYPTION_SMTPS' - port 465
// 'ENCRYPTION_STARTTLS' - port 587
// define('MAIL_SMTP_SECURE', 'ENCRYPTION_SMTPS');
// define('MAIL_SMTP_DEBUG', false);
// CSS files. They are located in the root of Time Tracker installation.
//
define('DEFAULT_CSS', 'default.css');
define('RTL_CSS', 'rtl.css'); // For right to left languages.
// Default language of the application.
// Possible values: en, fr, nl, etc. Empty string means the language is defined by user browser.
//
define('LANG_DEFAULT', '');
// Default currency symbol. Use €, £, a more specific dollar like US$, CAD, etc.
//
define('CURRENCY_DEFAULT', '$');
// EXPORT_DECIMAL_DURATION - defines whether time duration values are decimal in CSV and XML data exports (1.25 or 1,25 vs 1:15).
//
define('EXPORT_DECIMAL_DURATION', true);
// REPORT_FOOTER - defines whether to use a footer on reports.
//
define('REPORT_FOOTER', true);
// App 2F# salt
//
define('APP_2FA_SALT', 'put your unique phrase here');
// Authentication module (see lib/auth/)
// Possible authentication methods:
// db - internal database, logins and password hashes are stored in time tracker database.
// ldap - authentication against an LDAP directory such as OpenLDAP or Windows Active Directory.
define('AUTH_MODULE', 'db');
// Password hash algorithm
// Possible values
// - DEFAULT ; bcrypt algorithm
// - BCRYPT : crypt blowfish algorithm
// - ARGON2I : Argon2i hashing algorithm (only available if PHP has been compiled with Argon2 support)
// - ARGON2ID : Argon2id hashing algorithm (only available if PHP has been compiled with Argon2 support)
define('AUTH_DB_HASH_ALGORITHM', 'BCRYPT');
// Password hash options
//
define('AUTH_DB_HASH_ALGORITHM_OPTIONS', array('cost' => 10));
// Login minlength
//
//define('AUTH_DB_LOGIN_MINLENGTH', 5);
// Password minlength
//
//define('AUTH_DB_PWD_MINLENGTH', 12);
// LDAP authentication examples.
// Go to https://www.anuko.com/time-tracker/install-guide/ldap-auth/index.htm for detailed configuration instructions.
// Configuration example for OpenLDAP server:
// define('AUTH_MODULE', 'ldap');
// $GLOBALS['AUTH_MODULE_PARAMS'] = array(
// 'server' => '127.0.0.1', // OpenLDAP server address or name. For secure LDAP use ldaps://hostname:port here.
// 'type' => 'openldap', // Type of server. openldap type should also work with Sun Directory Server when member_of is empty.
// It may work with other (non Windows AD) LDAP servers. For Windows AD use the 'ad' type.
// 'base_dn' => 'ou=People,dc=example,dc=com', // Path of user's base distinguished name in LDAP catalog.
// 'user_login_attribute' => 'uid', // LDAP attribute used for login.
// 'default_domain' => 'example.com', // Default domain.
// 'tls_cacertdir' => null, // Path to a directory containing CA certificates for secure ldap.
// 'tls_cacertfile' => null, // CA certificate file name for secure ldap.
// 'member_of' => array()); // List of groups, membership in which is required for user to be authenticated.
// Configuration example for Windows domains with Active Directory:
// define('AUTH_MODULE', 'ldap');
// $GLOBALS['AUTH_MODULE_PARAMS'] = array(
// 'server' => '127.0.0.1', // Domain controller IP address or name. For secure LDAP use ldaps://hostname:port here.
// 'type' => 'ad', // Type of server.
// 'base_dn' => 'DC=example,DC=com', // Base distinguished name in LDAP catalog.
// 'default_domain' => 'example.com', // Default domain.
// 'tls_cacertdir' => null, // Path to a directory containing CA certificates for secure ldap.
// 'tls_cacertfile' => null, // CA certificate file name for secure ldap.
// 'member_of' => array()); // List of groups, membership in which is required for user to be authenticated.
// Leave it empty if membership is not necessary. Otherwise list CN parts only.
// For example:
// array('Ldap Testers') means that the user must be a member Ldap Testers group.
// array('Ldap Testers', 'Ldap Users') means the user must be a member of both Ldap Testers and Ldap Users groups.
// define('DEBUG', false); // Note: enabling DEBUG breaks redirects as debug output is printed before setting redirect header. Do not enable on production systems.
// HTTP_TARGET - defines http target for cross site request forgery protection.
// It can be used when you access the application via a proxy.
// define('HTTP_TARGET', 'localhost:8080');
// Group managers can set monthly work hour quota for years between the following values.
// define('MONTHLY_QUOTA_YEAR_START', 2010); // If nothing is specified, it falls back to 2015.
// define('MONTHLY_QUOTA_YEAR_END', 2025); // If nothing is specified, it falls back to 2030.
// A comma-separated list of default plugins for new group registrations.
// Example below enables charts and attachments.
// define('DEFAULT_PLUGINS', 'ch,at');