[3637] | 1 | <?php |
---|
| 2 | /*********************************************** |
---|
| 3 | * File : config.php |
---|
| 4 | * Project : Z-Push |
---|
| 5 | * Descr : Main configuration file |
---|
| 6 | * |
---|
| 7 | * Created : 01.10.2007 |
---|
| 8 | * |
---|
| 9 | * ᅵ Zarafa Deutschland GmbH, www.zarafaserver.de |
---|
| 10 | * This file is distributed under GPL v2. |
---|
| 11 | * Consult LICENSE file for details |
---|
| 12 | ************************************************/ |
---|
| 13 | // Defines the default time zone |
---|
| 14 | if (function_exists("date_default_timezone_set")){ |
---|
| 15 | date_default_timezone_set("America/Sao_Paulo"); |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | // Defines the base path on the server, terminated by a slash |
---|
| 19 | define('BASE_PATH', dirname($_SERVER['SCRIPT_FILENAME']) . "/"); |
---|
| 20 | |
---|
| 21 | // Define the include paths |
---|
| 22 | ini_set('include_path', |
---|
| 23 | BASE_PATH. "include/" . PATH_SEPARATOR . |
---|
| 24 | BASE_PATH. PATH_SEPARATOR . |
---|
| 25 | ini_get('include_path') . PATH_SEPARATOR . |
---|
| 26 | "/usr/share/php/" . PATH_SEPARATOR . |
---|
| 27 | "/usr/share/php5/" . PATH_SEPARATOR . |
---|
| 28 | "/usr/share/pear/"); |
---|
| 29 | |
---|
| 30 | define('STATE_DIR', 'state'); |
---|
| 31 | |
---|
| 32 | // Try to set unlimited timeout |
---|
| 33 | define('SCRIPT_TIMEOUT', 0); |
---|
| 34 | |
---|
| 35 | //Max size of attachments to display inline. Default is 1MB |
---|
| 36 | define('MAX_EMBEDDED_SIZE', 1048576); |
---|
| 37 | |
---|
| 38 | // Device Provisioning |
---|
| 39 | define('PROVISIONING', true); |
---|
| 40 | |
---|
| 41 | // This option allows the 'loose enforcement' of the provisioning policies for older |
---|
| 42 | // devices which don't support provisioning (like WM 5 and HTC Android Mail) - dw2412 contribution |
---|
| 43 | // false (default) - Enforce provisioning for all devices |
---|
| 44 | // true - allow older devices, but enforce policies on devices which support it |
---|
| 45 | define('LOOSE_PROVISIONING', true); |
---|
| 46 | |
---|
| 47 | // The data providers that we are using (see configuration below) |
---|
| 48 | //$BACKEND_PROVIDER = "BackendIMAP"; |
---|
| 49 | //$BACKEND_PROVIDER = "BackendCalendarExpresso"; |
---|
| 50 | //$BACKEND_PROVIDER = "BackendContactsExpresso"; |
---|
| 51 | //$BACKEND_PROVIDER = "BackendVCDir"; |
---|
| 52 | //$BACKEND_PROVIDER = "BackendRSS"; |
---|
| 53 | $BACKEND_PROVIDER = "BackendProxy"; |
---|
| 54 | $BACKEND_EMAIL = "BackendIMAP"; |
---|
| 55 | $BACKEND_CONTACTS = "BackendContactsExpresso"; |
---|
| 56 | $BACKEND_CALENDAR = "BackendCalendarExpresso"; |
---|
| 57 | |
---|
| 58 | // ************************ |
---|
| 59 | // BackendICS settings |
---|
| 60 | // ************************ |
---|
| 61 | |
---|
| 62 | // Defines the server to which we want to connect |
---|
| 63 | define('MAPI_SERVER', 'file:///var/run/zarafa'); |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | // ************************ |
---|
| 67 | // BackendIMAP settings |
---|
| 68 | // ************************ |
---|
| 69 | |
---|
| 70 | // Defines the server to which we want to connect |
---|
| 71 | // recommended to use local servers only |
---|
| 72 | define('IMAP_SERVER', '10.200.112.132'); |
---|
| 73 | // connecting to default port (143) |
---|
| 74 | define('IMAP_PORT', 143); |
---|
| 75 | // best cross-platform compatibility (see http://php.net/imap_open for options) |
---|
| 76 | define('IMAP_OPTIONS', '/notls/norsh'); |
---|
| 77 | // overwrite the "from" header if it isn't set when sending emails |
---|
| 78 | // options: 'username' - the username will be set (usefull if your login is equal to your emailaddress) |
---|
| 79 | // 'domain' - the value of the "domain" field is used |
---|
| 80 | // '@mydomain.com' - the username is used and the given string will be appended |
---|
| 81 | define('IMAP_DEFAULTFROM', ''); |
---|
| 82 | // copy outgoing mail to this folder. If not set z-push will try the default folders |
---|
| 83 | define('IMAP_SENTFOLDER', 'INBOX/Sent'); |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | // ************************ |
---|
| 87 | // BackendMaildir settings |
---|
| 88 | // ************************ |
---|
| 89 | define('MAILDIR_BASE', '/tmp'); |
---|
| 90 | define('MAILDIR_SUBDIR', 'Maildir'); |
---|
| 91 | |
---|
| 92 | // ********************** |
---|
| 93 | // BackendVCDir settings |
---|
| 94 | // ********************** |
---|
| 95 | define('VCARDDIR_DIR', '/var/www/vcf'); |
---|
| 96 | |
---|
| 97 | ?> |
---|