1785336fe1ea5b71c03933f3b4d9f777cd36b92d
[timetracker.git] / WEB-INF / config.php.dist
1 <?php
2 // +----------------------------------------------------------------------+
3 // | Anuko Time Tracker
4 // +----------------------------------------------------------------------+
5 // | Copyright (c) Anuko International Ltd. (https://www.anuko.com)
6 // +----------------------------------------------------------------------+
7 // | LIBERAL FREEWARE LICENSE: This source code document may be used
8 // | by anyone for any purpose, and freely redistributed alone or in
9 // | combination with other software, provided that the license is obeyed.
10 // |
11 // | There are only two ways to violate the license:
12 // |
13 // | 1. To redistribute this code in source form, with the copyright
14 // |    notice or license removed or altered. (Distributing in compiled
15 // |    forms without embedded copyright notices is permitted).
16 // |
17 // | 2. To redistribute modified versions of this code in *any* form
18 // |    that bears insufficient indications that the modifications are
19 // |    not the work of the original author(s).
20 // |
21 // | This license applies to this document only, not any other software
22 // | that it may be combined with.
23 // |
24 // +----------------------------------------------------------------------+
25 // | Contributors:
26 // | https://www.anuko.com/time_tracker/credits.htm
27 // +----------------------------------------------------------------------+
28
29
30 // Set include path for PEAR and its modules, which we include in the distribution.
31 //
32 set_include_path(realpath(dirname(__FILE__).'/lib/pear') . PATH_SEPARATOR . get_include_path());
33
34
35 // Database connection parameters.
36 //
37 // CHANGE 3 PARAMETERS HERE!
38 // In this example: "root" is username, "no" is password, "dbname" is database name.
39 //
40 define('DSN', 'mysqli://root:no@localhost/dbname?charset=utf8mb4');
41 // Do NOT change charset unless you upgraded from an older Time Tracker where charset was NOT specified
42 // and now you see some corrupted characters. See http://dev.mysql.com/doc/refman/5.0/en/charset-mysql.html
43
44
45 // MULTIORG_MODE option defines whether users can create their own top groups (organizations).
46 // When false, a Time Tracker server is managed by admin, who creates top groups (one or many).
47 //
48 // Available values are true or false.
49 //
50 define('MULTIORG_MODE', true);
51
52
53 // Application name.
54 // If you install time tracker into a sub-directory of your site reflect this in the APP_NAME parameter.
55 // For example, for http://localhost/timetracker/ define APP_NAME as 'timetracker'.
56 //
57 // define('APP_NAME', 'timetracker');
58 //
59 define('APP_NAME', '');
60
61
62 // WEEKEND_START_DAY
63 //
64 // This option defines which days are highlighted with weekend color.
65 // 6 means Saturday. For Saudi Arabia, etc. set it to 4 for Thursday and Friday to be weekend days.
66 //
67 define('WEEKEND_START_DAY', 6);
68
69
70 // PHPSESSID_TTL
71 //
72 // Lifetime in seconds for tt_PHPSESSID cookie. Time to live is extended by this value
73 // with each visit to the site so that users don't have to re-login. 
74 // define('PHPSESSID_TTL', 86400);
75 //
76 // Note: see also PHP_SESSION_PATH below as you may have to use it together with
77 // PHPSESSID_TTL to avoid premature session expirations.
78
79
80 // PHP_SESSION_PATH
81 // Local file system path for PHP sessions. Use it to isolate session deletions
82 // (garbage collection interference) by other PHP scripts potentially running on the system.
83 // define('PHP_SESSION_PATH', '/tmp/timetracker'); // Directory must exist and be writable.
84
85
86 // Forum and help links from the main menu.
87 //
88 define('FORUM_LINK', 'https://www.anuko.com/forum/viewforum.php?f=4');
89 define('HELP_LINK', 'https://www.anuko.com/time_tracker/user_guide/index.htm');
90
91
92 // Default sender for mail.
93 //
94 define('SENDER', '"Anuko Time Tracker" <no-reply@timetracker.anuko.com>');
95
96
97 // MAIL_MODE - mail sending mode. Can be 'mail' or 'smtp'.
98 // 'mail' - sending through php mail() function.
99 // 'smtp' - sending directly through SMTP server.
100 // See https://www.anuko.com/time_tracker/install_guide/mail.htm
101 //
102 define('MAIL_MODE', 'smtp');
103 define('MAIL_SMTP_HOST', 'localhost'); // For gmail use 'ssl://smtp.gmail.com' instead of 'localhost' and port 465.
104 // define('MAIL_SMTP_PORT', '465');
105 // define('MAIL_SMTP_USER', 'yourname@yourdomain.com');
106 // define('MAIL_SMTP_PASSWORD', 'yourpassword');
107 // define('MAIL_SMTP_AUTH', true);
108 // define('MAIL_SMTP_DEBUG', true);
109
110
111 // CSS files. They are located in the root of Time Tracker installation.
112 //
113 define('DEFAULT_CSS', 'default.css');
114 define('RTL_CSS', 'rtl.css'); // For right to left languages.
115
116
117 // Default date format. Behaviour with not included formats is undefined. Possible values:
118 // '%Y-%m-%d'
119 // '%m/%d/%Y'
120 // '%d.%m.%Y'
121 // '%d.%m.%Y %a'
122 define('DATE_FORMAT_DEFAULT', '%Y-%m-%d');
123
124
125 // Default time format. Behaviour with not included formats is undefined. Possible values:
126 // '%H:%M'
127 // '%I:%M %p'
128 define('TIME_FORMAT_DEFAULT', '%H:%M');
129
130
131 // Default week start day.
132 // Possible values: 0 - 6. 0 means Sunday.
133 //
134 define('WEEK_START_DEFAULT', 0);
135
136
137 // Default language of the application.
138 // Possible values: en, fr, nl, etc. Empty string means the language is defined by user browser.
139 // 
140 define('LANG_DEFAULT', '');
141
142
143 // Default currency symbol. Use €, £, a more specific dollar like US$, CAD, etc.
144 // 
145 define('CURRENCY_DEFAULT', '$');
146
147
148 // EXPORT_DECIMAL_DURATION - defines whether time duration values are decimal in CSV and XML data exports (1.25 or 1,25 vs 1:15).
149 // 
150 define('EXPORT_DECIMAL_DURATION', true);
151
152
153 // REPORT_FOOTER - defines whether to use a footer on reports.
154 // 
155 define('REPORT_FOOTER', true);
156
157
158 // Authentication module (see WEB-INF/lib/auth/)
159 // Possible authentication methods:
160 //   db - internal database, logins and password hashes are stored in time tracker database.
161 //   ldap - authentication against an LDAP directory such as OpenLDAP or Windows Active Directory.
162 define('AUTH_MODULE', 'db');
163
164 // LDAP authentication examples.
165 // Go to https://www.anuko.com/time_tracker/install_guide/ldap_auth/index.htm for detailed configuration instructions.
166
167 // Configuration example for OpenLDAP server:
168 // define('AUTH_MODULE', 'ldap');
169 // $GLOBALS['AUTH_MODULE_PARAMS'] = array(
170 //  'server' => '127.0.0.1',                    // OpenLDAP server address or name. For secure LDAP use ldaps://hostname:port here.
171 //  'type' => 'openldap',                       // Type of server. openldap type should also work with Sun Directory Server when member_of is empty.
172                                                 // It may work with other (non Windows AD) LDAP servers. For Windows AD use the 'ad' type.
173 //  'base_dn' => 'ou=People,dc=example,dc=com', // Base distinguished name in LDAP catalog.
174 //  'default_domain' => 'example.com',          // Default domain.
175 //  'member_of' => array());                    // List of groups, membership in which is required for user to be authenticated.
176
177
178 // Configuration example for Windows domains with Active Directory:
179 // define('AUTH_MODULE', 'ldap');
180 // $GLOBALS['AUTH_MODULE_PARAMS'] = array(
181 //  'server' => '127.0.0.1',            // Domain controller IP address or name. For secure LDAP use ldaps://hostname:port here.
182 //  'type' => 'ad',                     // Type of server.
183 //  'base_dn' => 'DC=example,DC=com',   // Base distinguished name in LDAP catalog.
184 //  'default_domain' => 'example.com',  // Default domain.
185 //  'member_of' => array());            // List of groups, membership in which is required for user to be authenticated.
186                                         // Leave it empty if membership is not necessary. Otherwise list CN parts only.
187                                         // For example:
188                                         // array('Ldap Testers') means that the user must be a member Ldap Testers group.
189                                         // array('Ldap Testers', 'Ldap Users') means the user must be a member of both Ldap Testers and Ldap Users groups.
190
191 // define('DEBUG', false); // Note: enabling DEBUG breaks redirects as debug output is printed before setting redirect header. Do not enable on production systems.
192
193
194 // Team managers can set monthly work hour quota for years between the following  values.
195 // define('MONTHLY_QUOTA_YEAR_START', 2010); // If nothing is specified, it falls back to 2015.
196 // define('MONTHLY_QUOTA_YEAR_END', 2025);   // If nothing is specified, it falls back to 2030.
197
198 // Height in pixels for the note input field in time.php. Defaults to 40.
199 // define('NOTE_INPUT_HEIGHT', 100);
200
201 // File storage facility location for attachments.
202 // This feature requires a subscription or a locally installed appliance.
203 // define('FILE_STORAGE_URI', 'localhost');
204 define('FILE_STORAGE_URI', 'https://www.anuko.com/files/');
205
206 // A comma-separated list of default plugins for new group registrations.
207 // Example below enables charts and attachments.
208 // define('DEFAULT_PLUGINS', 'ch,at');