summaryrefslogtreecommitdiffstats
path: root/share/templates/zpush/config.php.tpl
blob: de30af7959d9732ed789a6ef46a96c0137c721f0 (plain)
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
<?php
    /***********************************************
    * File      :   config.php
    * Project   :   Z-Push
    * Descr     :   Main configuration file
    *
    */

    define('KOLAB_SERVER', "$ldap_ldap_uri");
    define('KOLAB_LDAP_BASE',"$ldap_base_dn");
    define('KOLAB_BIND_DN',"$ldap_service_bind_dn");
    define('KOLAB_BIND_PW',"$ldap_service_bind_pw");
    define("KOLAB_LDAP_ACL","");
    define('KOLAB_IMAP_SERVER', "$imap_server");

    // Defines the default time zone
    if (function_exists("date_default_timezone_set")){
        date_default_timezone_set(date_default_timezone_get());
    }

    // Defines the base path on the server, terminated by a slash
    define('BASE_PATH', dirname($_SERVER['SCRIPT_FILENAME']) . "/");

    // Define the include paths
    ini_set(
            'include_path',
            BASE_PATH . "include/" . PATH_SEPARATOR .
            BASE_PATH . PATH_SEPARATOR .
            ini_get('include_path') . PATH_SEPARATOR .
            "/usr/share/php/" . PATH_SEPARATOR .
            "/usr/share/php5/" . PATH_SEPARATOR .
            "/usr/share/pear/"
    );

    define('STATE_DIR', 'state');

    // Try to set unlimited timeout
    define('SCRIPT_TIMEOUT', 0);

    //Max size of attachments to display inline. Default is 1MB
    define('MAX_EMBEDDED_SIZE', 1048576);

    // Device Provisioning
    define('PROVISIONING', true);

    // This option allows the 'loose enforcement' of the provisioning policies for older
    // devices which don't support provisioning (like WM 5 and HTC Android Mail) - dw2412 contribution
    // false (default) - Enforce provisioning for all devices
    // true - allow older devices, but enforce policies on devices which support it
    define('LOOSE_PROVISIONING', false);
    // Default conflict preference
    // Some devices allow to set if the server or PIM (mobile)
    // should win in case of a synchronization conflict
    //   SYNC_CONFLICT_OVERWRITE_SERVER - Server is overwritten, PIM wins
    //   SYNC_CONFLICT_OVERWRITE_PIM    - PIM is overwritten, Server wins (default)
    define('SYNC_CONFLICT_DEFAULT', SYNC_CONFLICT_OVERWRITE_PIM);

    // The data providers that we are using (see configuration below
    $BACKEND_PROVIDER = "BackendKolab";

    define("KOLAB_LDAP_ACL","");
    define('KOLAB_IMAP_NAMESPACES', Array(
                'personal' => "",
                'shared' => "Shared Folders",
                'users' => "Other Users"
            )
        );

    define('KOLAB_IMAP_PORT', 143);
    define('KOLAB_IMAP_OPTIONS', "/tls/novalidate-cert");

    define('KOLAB_INDEX',"/var/cache/kolab/z-push/kolabindex");

    //KolabMode
    //  0 = FlatMode
    //  1 = FolderMode
    //  2 = try to determine the mode
    define("KOLAB_MODE",2);
    // define which mobile support foldermode
    // this list is checked if KOLAB_MODE is set to 2
    define("KOLAB_MOBILES_FOLDERMODE","iphone:ipod:ipad");
    // folders by default if annotation is not found
    // possiblename1:possiblename2: ......
    // if no folders found the last found will be the default
    define('KOLAB_DEFAULTFOLDER_DIARY',"calendar:kalender:calendrier:agenda");
    define('KOLAB_DEFAULTFOLDER_CONTACT',"contacts:kontact");
    define('KOLAB_DEFAULTFOLDER_TASK',"task:taske");
    // If 1: shared folders will be read-only, even if the user have rights on it
    define('KOLAB_SHAREDFOLDERS_RO',"1");

    // Logfile
    define('KOLAB_LOGFILE',"/var/log/z-push/access.log");
     //For Gal
    define('SYNC_GAL_DISPLAYNAME','cn');
    define('SYNC_GAL_PHONE','telephonenumber');
    define('SYNC_GAL_OFFICE', '');
    define('SYNC_GAL_TITLE','title');
    define('SYNC_GAL_COMPANY','o');
    define('SYNC_GAL_ALIAS','uid');
    define('SYNC_GAL_FIRSTNAME','givenname');
    define('SYNC_GAL_LASTNAME','sn');
    define('SYNC_GAL_HOMEPHONE','homephone');
    define('SYNC_GAL_MOBILEPHONE','mobile');
    define('SYNC_GAL_EMAILADDRESS','mail');

?>