Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
65 - 1
<?php
2
/*
3
	config.php
4
 
5
	The config file for the ajax webaccess.
6
	All possible web client settings can be set in this file. Some settings
7
	(language) can also be set per user or logon.
8
 
9
*/
10
	// Comment next line to disable the config check (or set FALSE to log the config errors)
11
	define("CONFIG_CHECK", TRUE);
12
 
13
	// Use these options to optionally disable some PHP configuration checks.
14
	// WARNING: these checks will disable checks regarding the security of the WebApp site configuration,
15
	// only change them if you know the consequences - improper use will lead to an insecure installation!
16
	define("CONFIG_CHECK_COOKIES_HTTP", FALSE);
17
	define("CONFIG_CHECK_COOKIES_SSL", FALSE);
18
 
19
	// Default Zarafa server to connect to.
20
	define("DEFAULT_SERVER", "default:"); // local pipe
21
	#define("DEFAULT_SERVER","http://localhost:236/zarafa");
22
 
23
	// When using a single-signon system on your webserver, but Zarafa is on another server
24
	// you can use https to access the zarafa server, and authenticate using an SSL certificate.
25
	define("SSLCERT_FILE", NULL);
26
	define("SSLCERT_PASS", NULL);
27
 
28
	// set to 'true' to strip domain from login name found from Single Signon webservers
29
	define("LOGINNAME_STRIP_DOMAIN", false);
30
 
31
	// Name of the cookie that is used for the session, we can also use an external cookie
32
	if (isset($_GET["external"]) && preg_match("/[a-z][a-z0-9_]+/i",$_GET["external"])){
33
		define("COOKIE_NAME",$_GET["external"]);
34
	}else{
35
		define("COOKIE_NAME","ZARAFA_WEBACCESS");
36
	}
37
 
38
	// Defines the theme that should be used, is a subdirectory under the 'layout' directory.
39
	define("THEME_COLOR", "white");
40
 
41
	// Defines the base url and end with a slash.
42
	$base_url = dirname($_SERVER["PHP_SELF"]);
43
	if(substr($base_url,-1)!="/") $base_url .="/";
44
	define("BASE_URL", $base_url);
45
 
46
	// Defines the base path on the server, terminated by a slash
47
	define('BASE_PATH', dirname($_SERVER['SCRIPT_FILENAME']) . "/");
48
 
49
	// Defines the location to the MIME type definitions
50
	define("MIME_TYPES", BASE_PATH . "server/mimetypes.dat");
51
 
52
	// Defines the temp path (absolute). Here uploaded attachments will be saved.
53
	// The web client doesn't work without this directory.
54
	define("TMP_PATH", "/var/lib/zarafa-webaccess/tmp");
55
 
56
	// Define the server paths
57
	set_include_path(BASE_PATH. PATH_SEPARATOR .
58
	                 BASE_PATH."server/PEAR/" .  PATH_SEPARATOR .
59
	                 "/usr/share/php/");
60
 
61
	// Define the relative URL for dialogs, this string is appended with HTTP GET arguments
62
	define("DIALOG_URL", "index.php?load=dialog&");
63
 
64
	// Define the relative URL for Drag and drop file upload
65
	define("DND_FILEUPLOAD_URL", "index.php?load=upload_attachment&");
66
 
67
	// Define the path to the plugin directory (No slash at the end)
68
	define("PATH_PLUGIN_DIR", "plugins");
69
 
70
	// Enable the plugins
71
	define("ENABLE_PLUGINS", true);
72
 
73
	// Define list of disabled plugins separated by semicolon
74
	define("DISABLED_PLUGINS_LIST", '');
75
 
76
	// Disable PHP5>PHP4 compatibility, this could segfault apache with xml_parser_free
77
	ini_set('zend.ze1_compatibility_mode', false);
78
 
79
	// Set addressbook for GAB not to show any users unless searching for a specific user
80
	define("DISABLE_FULL_GAB", false);
81
 
82
	// Set the threshold for the addressnook to only show a full contactlist when the number of rows
83
	// do not exeed this threshold. Otherwise the user can only use the search. Enter any number above
84
	// zero to set the threshold or -1 to always show the list or 0 to always hide the full list.
85
	define("DISABLE_FULL_CONTACTLIST_THRESHOLD", -1);
86
 
87
	// Set addressbook to use an alphabetbar to only display items that start with the selected letter.
88
	define('ENABLE_GAB_ALPHABETBAR', false);
89
 
90
	// Set true to show public folders in hierarchy, false will disable public folders in hierarchy.
91
	define('ENABLE_PUBLIC_FOLDERS', true);
92
 
93
	// Set the number of previous days used in free busy module to show.
94
	define('FREEBUSY_DAYBEFORE_COUNT', 7);
95
 
96
	// Set the number of total days used in free busy module to show.
97
	define('FREEBUSY_NUMBEROFDAYS_COUNT', 90);
98
 
99
	// Remove delete permanently button from restore items dialog.
100
	define('DISABLE_DELETE_IN_RESTORE_ITEMS', false);
101
 
102
	// Booking method (true = direct booking, false = send meeting request)
103
	define('ENABLE_DIRECT_BOOKING', true);
104
 
105
	// If you want to make sure that the user name in the authentication is the same as
106
	// a certain variable in the certificate, then set this constant to the
107
	// the name of this certificate variable
108
	//define("CERT_VAR_TO_COMPARE_WITH", "SSL_CLIENT_S_DN_CN");
109
 
110
	// Standard password key for session password. We recommend to change the default value for security reasons
111
	// and a length of 16 characters. Passwords are only encrypted when the openssl module is installed
112
	// IV vector should be 8 bits long
113
	define('PASSWORD_KEY','a8c4d32143a963c0');
114
	define('PASSWORD_IV','d26a00f8');
115
 
116
	/**************************************\
117
	* Memory usage and timeouts            *
118
	\**************************************/
119
 
120
	// This sets the maximum time in seconds that is allowed to run before it is terminated by the parser.
121
	ini_set('max_execution_time', 300); // 5 minutes
122
 
123
	// BLOCK_SIZE (in bytes) is used for attachments by mapi_stream_read/mapi_stream_write
124
	define('BLOCK_SIZE', 1048576);
125
 
126
	// This value is used by the webclient to prevent a session timeout (in milliseconds)
127
	define('CLIENT_TIMEOUT', 5*60*1000);
128
 
129
	// Time that static files may exist in the client's cache (13 weeks)
130
	define('EXPIRES_TIME', 60*60*24*7*13);
131
 
132
	// Time that the state files are allowed to survive (in seconds)
133
	// For filesystems on which relatime is used, this value should be larger then the relatime_interval
134
	// for kernels 2.6.30 and above relatime is enabled by default, and the relatime_interval is set to
135
	// 24 hours.
136
	define('STATE_FILE_MAX_LIFETIME', 28*60*60);
137
 
138
	// Time that attachments are allowed to survive (in seconds)
139
	define('UPLOADED_ATTACHMENT_MAX_LIFETIME', 6*60*60);
140
 
141
	// Define maximum nos of file can be attached at a time.
142
	define('FILE_UPLOAD_LIMIT', 50);
143
 
144
	// Define maximum nos of file can be in uploading queue at a time.
145
	define('FILE_QUEUE_LIMIT', 20);
146
 
147
	// When set to true, enable the multi-upload feature of the attachment dialog. This has the following caveats:
148
	// - In FireFox, you can only upload to HTTPS when the certificate is recognized as an official (not self-signed
149
	//   SSL certificate)
150
	// - In Linux, some versions of flash do not support this feature and can crash during upload. Updating to the latest
151
	//   version of flash should fix the issue.
152
	// - In Windows, upload fails if the internet status is 'offline' - open internet explorer to reconnect
153
	define("ENABLE_MULTI_UPLOAD", false);
154
 
155
	/**************************************\
156
	* FCKEditor                            *
157
	\**************************************/
158
 
159
	// Location to the HTML editor, if installed
160
	define('FCKEDITOR_PATH',dirname($_SERVER['SCRIPT_FILENAME'])."/client/widgets/fckeditor");
161
	define('FCKEDITOR_JS_PATH','client/widgets/fckeditor');
162
 
163
	// Spellchecker, change here to enable
164
	define('FCKEDITOR_SPELLCHECKER_ENABLED', false);
165
	define('FCKEDITOR_SPELLCHECKER_PATH', '/usr/bin/aspell');
166
	define('FCKEDITOR_SPELLCHECKER_LANGUAGE', FALSE); // set FALSE to use the language chosen by the user, but make sure that these languages are installed with aspell!
167
 
168
	/**************************************\
169
	* Languages                            *
170
	\**************************************/
171
 
172
 
173
	// Location to the translations
174
	define("LANGUAGE_DIR", "server/language/");
175
 
176
	// Defines the default interface language. This can be overriden by the user.
177
	// This language is also used on the login page
178
	if (isset($_ENV['LANG']) && $_ENV['LANG']!="C"){
179
		define('LANG', $_ENV["LANG"]); // This means the server environment language determines the web client language.
180
	}else{
181
		define('LANG', 'en'); // default fallback language
182
	}
183
 
184
	// List of languages that should be enabled in the logon
185
	// screen's language drop down.  Languages should be specified
186
	// using <languagecode>_<regioncode>[.UTF-8], and separated with
187
	// semicolon.  A list of available languages can be found in
188
	// the manual or by looking at the list of directories in
189
	// /usr/share/zarafa-webaccess/server/language .
190
	define("ENABLED_LANGUAGES", "ca;cs;da;de;en;es;fi;fr;he;hu;it;lt;nb;nl;pl;pt_BR;pt;ru;sl;sv;zh_CN;zh_TW");
191
 
192
	// Defines the default time zone, change e.g. to "Europe/London" when needed
193
	define('TIMEZONE', '');
194
 
195
 
196
	/**************************************\
197
	* Debugging                            *
198
	\**************************************/
199
 
200
	ini_set("display_errors", false);
201
	error_reporting(0);
202
 
203
	if (file_exists("debug.php")){
204
		include("debug.php");
205
	}else{
206
		// define empty dump function in case we still use it somewhere
207
		function dump(){}
208
	}
209
?>