Source for file config.inc.php

Documentation is available at config.inc.php


1 <?php
2 /**
3 * Configurationfile
4 *
5 * @category phpTimeSheet
6 * @package phpTimeSheet
7 * @version $Id: config.inc.php,v 1.16 2003/09/23 16:11:30 cybot_tm Exp $
8 */
9
10 /**
11 * Database Host the default should work for most installations
12 *
13 * @since v1.0
14 */
15 define('PTS_DB_HOST', 'localhost');
16
17 /**
18 * User to connect to the database as - this should not be the MySQL
19 * superuser
20 *
21 * @since v1.0
22 */
23 define('PTS_DB_USER', 'www');
24
25 /**
26 * MySQL password for the user
27 *
28 * @since v1.0
29 */
30 define('PTS_DB_PASS', '');
31
32 /**
33 * Database name to connect to
34 *
35 * @since v1.0
36 */
37 define('PTS_DB_NAME', 'timesheet');
38
39
40 /**
41 * Set the day that weeks begin on. 0=Sunday or 1=Monday
42 *
43 * @since v1.11
44 */
45 define('PTS_WEEK_START', 1);
46
47 define('ONE_HOUR', 60*60);
48 define('ONE_DAY', 24*60*60);
49 define('ONE_WEEK', 7*24*60*60);
50
51 define('PTS_ALL_WORKER', 0);
52
53
54
55 define('PTS_PROJECT_STATUS_OPEN', 1);
56
57 /**
58 * Worktype standard
59 */
60 define('PTS_WT_STANDARD', 1);
61 /**
62 * Worktype Sick
63 */
64 define('PTS_WT_SICK', 2);
65 /**
66 * Worktype Flextime
67 */
68 define('PTS_WT_FLEXTIME', 3);
69 /**
70 * Worktype Work
71 */
72 //define('PTS_WT_WORK', 4);
73 /**
74 * Worktype Holiday
75 */
76 define('PTS_WT_HOLIDAY', 6);
77 /**
78 * Worktype Holiday unpaid
79 */
80 define('PTS_WT_HOLIDAY_UNPAID', 9);
81 /**
82 * Worktype Coop School
83 */
84 define('PTS_WT_COOP_SCHOOL', 10);
85
86 /**
87 * Worktype attaned
88 */
89 define('PTS_WT_ATTEND', 10001);
90
91
92 /**
93 * Daytype standard
94 */
95 define('PTS_DT_STANDARD', 1);
96
97 /**
98 * Daytype workday half
99 */
100 define('PTS_DT_WORK_HALF', 5);
101
102 /**
103 * Daytype public joliday
104 */
105 define('PTS_DT_HOLIDAY_PUBLIC', 8);
106
107 /**
108 * Daytype sunday
109 */
110 define('PTS_DT_SUNDAY', 10001);
111
112 /**
113 * Daytype saturday
114 */
115 define('PTS_DT_SATURDAY', 10002);
116
117 /**
118 * Daytype weekday
119 */
120 define('PTS_DT_WEEKDAY', 10003);
121
122
123
124 /**
125 * Name of Database-Table with dayly worker-times (come, go, contracted_hours, ...)
126 */
127 define('PTS_TBL_WORKTIME', 'worker_time');
128
129 /**
130 * Tablenames
131 */
132
133 /**
134 * Workertables
135 */
136 define('PTS_TBL_WORKER', 'worker');
137 define('PTS_TBL_CORRECTION', 'worker_time_correction');
138 define('PTS_TBL_CORRECTION_REASON', 'worker_time_correction_reason');
139 define('PTS_TBL_CONTRACTED_HOURS', 'worker_contracted_hours');
140 define('PTS_TBL_WORKTYPE', 'worker_time_worktype');
141 define('PTS_TBL_DAYTYPE', 'worker_time_daytype');
142
143 /**
144 * Projecttables
145 */
146 define('PTS_TBL_PROJECT', 'project');
147 define('PTS_TBL_PROJECT_PRIORITY', 'project_priority');
148 define('PTS_TBL_PROJECT_STATUS', 'project_status');
149 define('PTS_TBL_PROJECT_TYPE', 'project_type');
150 define('PTS_TBL_PROJECT_TIME', 'project_time');
151 define('PTS_TBL_TASK', 'project_task');
152
153 /**
154 * Companytables
155 */
156 define('PTS_TBL_COMPANY', 'company');
157
158
159 /**
160 * Applicationname
161 */
162 define('PTS_APP_NAME', 'phpTimeSheet');
163
164 /**
165 * Applicationversion
166 */
167 define('PTS_APP_VERSION', '2.0.0.0');
168
169 /**
170 * default Admin password
171 */
172 define('PTS_ADMIN_PASS', 'password');
173
174 /**
175 * The address to send mail notifications to.
176 */
177 define('PTS_ADMIN_EMAIL', 'root');
178
179
180
181 /**
182 * Templates, new, with no foreign language
183 */
184 define('PTS_PATH_TEMPLATE', 'templates/');
185
186 define('PTS_TMPL_CHANGE_PASSWORD', PTS_PATH_TEMPLATE . 'change_password.php');
187 define('PTS_TMPL_LOGIN', PTS_PATH_TEMPLATE . 'login.php');
188 define('PTS_TMPL_HOLIDAY', PTS_PATH_TEMPLATE . 'holiday.php');
189 define('PTS_TMPL_WEEK_VIEW', PTS_PATH_TEMPLATE . 'worker_view_week.php');
190 define('PTS_TMPL_PROJECT_VIEW', PTS_PATH_TEMPLATE . 'worker_view_projects.php');
191 define('PTS_TMPL_DAY_VIEW', PTS_PATH_TEMPLATE . 'worker_view_day.php');
192
193 /**
194 * Templates, old, with foreign langauge
195 *
196 * @todo replace all strings
197 */
198 define('TEMPLATES_DIR', 'templates');
199
200 define('PTS_TMPL_ADMIN', 'admin.php');
201
202 define('PTS_TMPL_CONFIRM_ENQUIRY', 'sicherheitsabfrage.html');
203
204 define('PTS_TMPL_COMPANY_EDIT', 'edit_comp.html');
205 define('PTS_TMPL_COMPANY_REPORT', 'comp_report.html');
206
207 define('PTS_TMPL_EXPORT', 'export.html');
208
209 define('PTS_TMPL_FREE', 'frei.php');
210
211 define('PTS_TMPL_LOGOUT', 'logout.html');
212
213 define('PTS_TMPL_PASSWORD', 'passwd.html');
214
215 define('PTS_TMPL_PROJECT_EDIT', 'edit_pid.php');
216 define('PTS_TMPL_PROJECT_DELETE', 'delete_pid.html');
217 define('PTS_TMPL_PROJECT_SELECT', 'timesheet_projektauswahl.php');
218
219 define('PTS_TMPL_REPORT', 'report.html');
220 define('PTS_TMPL_REPORT_JOB_DETAIL', 'job_detail_report.php');
221 define('PTS_TMPL_REPORT_PROJECT', 'pid_report.php');
222
223 define('PTS_TMPL_TIMESHEET', 'timesheet.php');
224
225 define('PTS_TMPL_UNAUTH', 'unauth.html');
226
227 define('PTS_TMPL_URLAUB', 'urlaub.php');
228
229 define('PTS_TMPL_YEARVIEW', 'jahresuebersicht.php');
230
231 define('PTS_TMPL_WORKER_ARBEIT', 'edit_worker_arbeit.php');
232 define('PTS_TMPL_WORKER_BENUTZER', 'edit_worker_benutzer.php');
233 define('PTS_TMPL_WORKER_DELETE', 'delete_worker.html');
234 define('PTS_TMPL_WORKER_EDIT', 'edit_worker.php');
235 define('PTS_TMPL_WORKER_PASSWORT', 'edit_worker_passwort.php');
236 define('PTS_TMPL_WORKER_PROJEKTE', 'edit_worker_projekte.php');
237 define('PTS_TMPL_WORKER_REPORT', 'worker_report.html');
238 define('PTS_TMPL_WORKER_REPORT_DETAIL', 'worker_detail_report.php');
239 define('PTS_TMPL_WORKER_REPORT_MONTH', 'worker_month_report.html');
240 define('PTS_TMPL_WORKER_URLAUB', 'edit_worker_urlaub.php');
241
242
243 /**
244 * Language settings
245 */
246 define('LANG', 'de');
247 setlocale(LC_TIME, 'de_DE@euro', 'de_DE', 'de', 'ge', 'deu_deu');
248
249 /**
250 * Locale strings-file
251 *
252 * @todo change to string, include should only be in the templates, where needed, not here
253 */
254 include 'lang/' . LANG . '/strings.php';
255 ?>

Documentation generated on Fri, 26 Sep 2003 15:39:36 +0200 by phpDocumentor 1.2.2