[c5c522c] | 1 | <?php |
---|
| 2 | /** |
---|
| 3 | * Zarafa Z-Merge SugarCRM Connector |
---|
| 4 | * |
---|
| 5 | * Copyright (C) 2005 - 2008 Zarafa B.V. |
---|
| 6 | * |
---|
| 7 | * This program is free software: you can redistribute it and/or modify |
---|
| 8 | * it under the terms of the GNU Affero General Public License, version 3, |
---|
| 9 | * and under the terms of the GNU General Public License, version 3, |
---|
| 10 | * as published by the Free Software Foundation. |
---|
| 11 | * |
---|
| 12 | * This program is distributed in the hope that it will be useful, |
---|
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 15 | * GNU (Affero) General Public License for more details. |
---|
| 16 | * |
---|
| 17 | * You should have received a copy of the GNU Affero General Public License |
---|
| 18 | * and the GNU General Public License along with this program. |
---|
| 19 | * If not, see <http://www.gnu.org/licenses/>. |
---|
| 20 | * |
---|
| 21 | * Created on 12.10.2007 by Sebastian Kummer & Manfred Kutas |
---|
| 22 | * |
---|
| 23 | * @package Z-Merge |
---|
| 24 | * @subpackage Zarafa-Connector |
---|
| 25 | */ |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | /************************************************************ |
---|
| 29 | * Zarafa specific settings |
---|
| 30 | ***********************************************************/ |
---|
| 31 | |
---|
| 32 | //Path to php-mapi extension |
---|
| 33 | define("PHP_MAPI_PATH", "/usr/share/php/mapi/"); |
---|
| 34 | |
---|
| 35 | //Socket to zarafa server |
---|
| 36 | define("ZARAFA_SERVER", "file:///var/run/zarafa"); |
---|
| 37 | |
---|
| 38 | //Zarafa db name |
---|
| 39 | define ("ZARAFA_DB_NAME", "zarafa"); |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | /************************************************************ |
---|
| 43 | * Z-Merge Zarafa connector specific settings |
---|
| 44 | ***********************************************************/ |
---|
| 45 | |
---|
| 46 | //z-merge zarafa soap db settings |
---|
| 47 | define("ZM_DB_SERVER", "localhost"); |
---|
| 48 | define("ZM_DB_USER", "z-merge-zarafa"); |
---|
| 49 | define("ZM_DB_PASS", "%mysql_passwd%"); |
---|
| 50 | define("ZM_DB_NAME", "z-merge-zarafa"); |
---|
| 51 | |
---|
| 52 | //SOAP settings |
---|
| 53 | define("ZM_SOAP_NAMESPACE", "http://localhost/zarafasoap"); |
---|
| 54 | define("ZM_SOAP_SERVICENAME", "ZM_ZarafaSoap"); |
---|
| 55 | |
---|
| 56 | /** |
---|
| 57 | * Connector Logfile |
---|
| 58 | * |
---|
| 59 | * ATTENTION: Be aware that the logfile will contain personal information |
---|
| 60 | * from the synchronized objects that may be violating personal |
---|
| 61 | * rights of your users! |
---|
| 62 | * |
---|
| 63 | * Valid values: FATAL, ERROR, WARN, INFO, DEBUG |
---|
| 64 | */ |
---|
| 65 | |
---|
| 66 | define("ZM_LOGFILE" , "/var/log/z-merge/zarafa-connector.log"); |
---|
| 67 | define('ZM_LOGLEVEL' , INFO); |
---|
| 68 | define('ZM_LOGSIZE' , 50); |
---|
| 69 | |
---|
| 70 | //time in seconds before request is sent back |
---|
| 71 | define("ZM_WAIT_FOR_EVENTS", 30); |
---|
| 72 | |
---|
| 73 | //supported types |
---|
| 74 | $zm_allowed_types = array('IPM.Task', 'IPM.Contact', 'IPM.StickyNote', 'IPM.Appointment', 'task', 'contact', 'note', 'appointment'); |
---|
| 75 | |
---|
| 76 | //array with user defined mapi properties |
---|
| 77 | $zm_custom_tags = array(); |
---|
| 78 | |
---|
| 79 | //Max number of transmitted objects per SOAP request |
---|
| 80 | define("ZM_MAX_OBJECTS", 50); |
---|
| 81 | |
---|
| 82 | //Max number of rows to query on zarafa db |
---|
| 83 | define("ZM_MAX_CHANGES", 2000); |
---|
| 84 | ?> |
---|