C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\heimam\tcpro\config.default.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
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
<?php
/**
 * config.default.php
 * 
 * Contains the default config parameters. Is being read by the installation
 * script and used to create config.tcpro.php.
 * 
 * @package TeamCalPro
 * @version 3.3.001 
 * @author George Lewe
 * @copyright Copyright (c) 2004-2010 by George Lewe
 * @link http://www.lewe.com
 * @license http://www.lewe.com/tcpro/doc/license.txt Extended GNU Public License
 */

global $CONF;
unset(
$CONF);

/**
 * PERSONALIZATION
 * You can alter these entries to personalize your TeamCal Pro installation.
 * You might also want to look at the indludes/header.application.inc.php
 * file if you want to display your own header image.
 * Sample:
 * $CONF['app_root'] = $_SERVER['DOCUMENT_ROOT']."/tcpro/";
 * $CONF['app_url'] = "http://www.myserver.com/tcpro";
 */
$CONF['app_root'] = $_SERVER['DOCUMENT_ROOT']."/tcpro/";
$CONF['app_url'] = "http://localhost/tcpro";

$CONF['app_avatar_dir'] = 'img/avatar/';
$CONF['app_icon_dir'] = 'img/icons/';

/**
 * DATABASE
 * Currently only db_type=1 (MySQL) is supported.
 */
$CONF['db_type']   = 1;
$CONF['db_persistent'] = false;

$CONF['db_server'] ="localhost";
$CONF['db_name']   ="test";
$CONF['db_user']   ="root";
$CONF['db_pass']   ="";

/**
 * Table names
 */ 
$CONF['db_table_prefix']            = "my_";
$CONF['db_table_absence']           = $CONF['db_table_prefix'].'tc_absence';
$CONF['db_table_absence_group']     = $CONF['db_table_prefix'].'tc_absence_group';
$CONF['db_table_allowance']         = $CONF['db_table_prefix'].'tc_allowance';
$CONF['db_table_announcements']     = $CONF['db_table_prefix'].'tc_announcements';
$CONF['db_table_config']            = $CONF['db_table_prefix'].'tc_config';
$CONF['db_table_daynotes']          = $CONF['db_table_prefix'].'tc_daynotes';
$CONF['db_table_groups']            = $CONF['db_table_prefix'].'tc_groups';
$CONF['db_table_holidays']          = $CONF['db_table_prefix'].'tc_holidays';
$CONF['db_table_months']            = $CONF['db_table_prefix'].'tc_months';
$CONF['db_table_log']               = $CONF['db_table_prefix'].'tc_log';
$CONF['db_table_options']           = $CONF['db_table_prefix'].'tc_options';
$CONF['db_table_regions']           = $CONF['db_table_prefix'].'tc_regions';
$CONF['db_table_templates']         = $CONF['db_table_prefix'].'tc_templates';
$CONF['db_table_users']             = $CONF['db_table_prefix'].'tc_users';
$CONF['db_table_user_announcement'] = $CONF['db_table_prefix'].'tc_user_announcement';
$CONF['db_table_user_group']        = $CONF['db_table_prefix'].'tc_user_group';
$CONF['db_table_user_options']      = $CONF['db_table_prefix'].'tc_user_options';

/**
 * USER
 */                                    
$CONF['UTVIEWER']   = 0x00;                // 0000 0000 User Type: None (just Viewer)
$CONF['UTUSER']     = 0x01;                // 0000 0001 User Type: User
$CONF['UTMANAGER']  = 0x02;                // 0000 0010 User Type: Group Manager
$CONF['UTADMIN']    = 0x04;                // 0000 0100 User Type: Administrator
$CONF['UTMALE']     = 0x08;                // 0000 1000 User Type: Male (if not set=female)
$CONF['UTDIRECTOR'] = 0x10;                // 0001 0000 User Type: Director
$CONF['UTTEMPLATE'] = 0x20;                // 0001 0000 User Type: Template (absences copied to all other users of the same group)

$CONF['USLOCKED']   = 0x01;                // 0000 0001 User Status: Account locked
$CONF['USCHGPWD']   = 0x02;                // 0000 0010 User Status: Must change password (not used)
$CONF['USLOGLOC']   = 0x04;                // 0000 0100 User Status: Login locked for grace period
$CONF['USHIDDEN']   = 0x08;                // 0000 1000 User Status: User will not be displayed in the calendar

/**
 * LDAP AUTHENTICATION
 * 
 * Note: !!! The LDAP feature is in beta mode and not confirmed to work. Try at own risk. !!!
 * 
 * PHP Requirements
 * You will need to get and compile LDAP client libraries from either 
 * » OpenLDAP or » Bind9.net in order to compile PHP with LDAP support.
 * 
 * PHP Installation
 * LDAP support in PHP is not enabled by default. You will need to use the --with-ldap[=DIR] 
 * configuration option when compiling PHP to enable LDAP support. DIR is the LDAP base 
 * install directory. To enable SASL support, be sure --with-ldap-sasl[=DIR] is used, and 
 * that sasl.h exists on the system. 
 */
$CONF['LDAP_YES']   = 0;                   // Use LDAP authentication
$CONF['LDAP_HOST']  = "ldap.mydomain.com"// LDAP host name
$CONF['LDAP_PORT']  = "389";               // LDAP port
$CONF['LDAP_PASS']  = 'XXXXXXXX';          // SA associated password
$CONF['LDAP_DIT']   = "cn=<service account>,ou=fantastic_four,ou=superheroes,dc=marvel,dc=comics"// Directory Information Tree (Relative Distinguished Name)
$CONF['LDAP_SBASE'] = "ou=superheroes,ou=characters,dc=marvel,dc=comics"// Search base, location in the LDAP dirctory to search

/**
 * ABSENCE TYPE OPTIONS
 */
$CONF['A_SHOWREMAIN']      = 0x000001;     // Flag: Include absence type in remainder
$CONF['A_APPROVAL']        = 0x000002;     // Flag: Approval needed
$CONF['A_SHOWTOTAL']       = 0x000004;     // Flag: Include absence total in remainder section
$CONF['A_PRESENCE']        = 0x000008;     // Flag: This absence type counts as 'present'
$CONF['A_MGR_ONLY']        = 0x000010;     // Flag: This absence type is for managers only
$CONF['A_HIDE_IN_PROFILE'] = 0x000020;     // Flag: Hide this absence type in regular user profiles (Absences tab)
$CONF['A_CONFIDENTIAL']    = 0x000040;     // Flag: Cannot be used or seen by regular users

/**
 * HOLIDAY OPTIONS
 */
$CONF['H_BUSINESSDAY'] = 0x000001;         // Flag: Holiday counts as business day

/**
 * GROUP OPTIONS
 */
$CONF['G_HIDE']        = 0x000001;         // Flag: Hide group from calendar
$CONF['G_MIN_PRESENT'] = 0x000002;         // Flag: Check for minimum members present
$CONF['G_MAX_ABSENT']  = 0x000004;         // Flag: Check for maximum members absent

/**
 * DECLINATION
 */
$CONF['DECL_OFF']          = 0x000000;     // Decline off
$CONF['DECL_ON']           = 0x000001;     // Decline on
$CONF['DECL_BASE_ALL']     = 0x000002;     // Threshold base 'All'
$CONF['DECL_BASE_GROUP']   = 0x000004;     // Threshold base 'Group'
$CONF['DECL_NOTIFY_USER']  = 0x000008;     // Notify User
$CONF['DECL_NOTIFY_MANGR'] = 0x000010;     // Notify Group Manager
$CONF['DECL_NOTIFY_DIREC'] = 0x000020;     // Notify Director(s)
$CONF['DECL_NOTIFY_ADMIN'] = 0x000040;     // Notify Administrator
$CONF['DECL_BEFORE_ON']    = 0x000080;     // Block before date flag

/**
 * NOTIFICATION E-MAIL
 */
$CONF['userchg']    = 0x01;                // Notification mail on user changes
$CONF['groupchg']   = 0x02;                // Notification mail on group changes
$CONF['monthchg']   = 0x04;                // Notification mail on month changes
$CONF['usercalchg'] = 0x08;                // Notification mail on user calendar changes
$CONF['absencechg'] = 0x10;                // Notification mail on absence changes
$CONF['holidaychg'] = 0x20;                // Notification mail on holiday changes
   
/**
 * ENCRYPTION
   Salt is a string that is used encrypt the passwords. You can change salt
 * to any other 9 char string
 */
$CONF['salt'] ='s7*9fgJ#R';

/**
 * CALENDAR
 *
 * The '.' is the default character to represent presency. Only change this when
 * you know what you're doing.
 */
$CONF['present'] = ".";
/**  
 * These english monthnames are used regardless of chosen language to compute
 * dates and times.
 */
$CONF['monthnames'] = array(1=>"January","February","March","April","May","June","July","August","September","October","November","December");
$CONF['weekdays']   = array(1=>"Mo","Tu","We","Th","Fr","Sa","Su");

/**
 * Overlib Default Settings
 */
$CONF['ovl_tt_snap'] = 'SNAPX, 12, SNAPY, 12, ';
$CONF['ovl_tt_cellpad'] = 'CELLPAD, 4, 4, 4, 4, ';
$CONF['ovl_tt_bgbackground'] = 'BGBACKGROUND, \''.$CONF['app_url'].'/themes/tcpro/img/bg_tooltip.gif\', ';
$CONF['ovl_tt_capicon'] = 'CAPICON, \''.$CONF['app_url'].'/themes/tcpro/img/ico_tt.png\', ';
$CONF['ovl_tt_capcolor'] = 'CAPCOLOR, \'#FFFFFF\', ';
$CONF['ovl_tt_caption'] = 'CAPTION, \'Information\', ';
$CONF['ovl_tt_captionfont'] = 'CAPTIONFONT, \'Tahoma,Helvetica,sans-serif\', ';
$CONF['ovl_tt_captionsize'] = 'CAPTIONSIZE, \'8pt\', ';
$CONF['ovl_tt_fgcolor'] = 'FGCOLOR, \'#FFFF99\'';
$CONF['ovl_tt_settings'] = $CONF['ovl_tt_snap'].$CONF['ovl_tt_cellpad'].$CONF['ovl_tt_bgbackground'].$CONF['ovl_tt_capicon'].$CONF['ovl_tt_capcolor'].$CONF['ovl_tt_caption'].$CONF['ovl_tt_captionfont'].$CONF['ovl_tt_captionsize'].$CONF['ovl_tt_fgcolor'];

/**
 * REGION OPTIONS
 */
$CONF['R_HIDE'] = 0x000001;                // Flag: Hide region

require ("config.version.php");
?>