diff --git a/share/templates/roundcubemail/acl.inc.php.tpl b/share/templates/roundcubemail/acl.inc.php.tpl index f3c5244..aa6c968 100644 --- a/share/templates/roundcubemail/acl.inc.php.tpl +++ b/share/templates/roundcubemail/acl.inc.php.tpl @@ -1,14 +1,12 @@ diff --git a/share/templates/roundcubemail/calendar.inc.php.tpl b/share/templates/roundcubemail/calendar.inc.php.tpl index 768007a..ad46b67 100644 --- a/share/templates/roundcubemail/calendar.inc.php.tpl +++ b/share/templates/roundcubemail/calendar.inc.php.tpl @@ -1,73 +1,71 @@ 'Kolab Resources', 'hosts' => 'localhost', 'port' => 389, 'use_tls' => false, 'base_dn' => '$ldap_resource_base_dn', 'user_specific' => true, 'bind_dn' => '%dn', 'bind_pass' => '', 'search_base_dn' => '$ldap_user_base_dn', 'search_bind_dn' => '$ldap_service_bind_dn', 'search_bind_pw' => '$ldap_service_bind_pw', 'search_filter' => '(&(objectClass=inetOrgPerson)(mail=%fu))', 'ldap_version' => 3, 'filter' => '$ldap_resource_filter', - 'search_fields' => array('cn'), - 'sort' => array('cn'), + 'search_fields' => ['cn'], + 'sort' => ['cn'], 'scope' => 'sub', 'fuzzy_search' => true, - 'fieldmap' => array( + 'fieldmap' => [ // Internal => LDAP 'name' => 'cn', 'email' => 'mail', 'owner' => 'owner', 'description' => 'description', 'attributes' => 'kolabdescattribute', 'members' => 'uniquemember', // these mappings are required for owner display 'phone' => 'telephoneNumber', 'mobile' => 'mobile', - ), + ], - 'class_type_map' => array( + 'class_type_map' => [ 'kolabsharedfolder' => 'resource', 'groupofuniquenames' => 'collection', - ), + ], - 'groups' => array( + 'groups' => [ 'name_attr' => 'cn', - ), - ); + ], + ]; - if (file_exists(RCUBE_CONFIG_DIR . '/' . (\$_SERVER["HTTP_HOST"] ?? null) . '/' . basename(__FILE__))) { - include_once(RCUBE_CONFIG_DIR . '/' . (\$_SERVER["HTTP_HOST"] ?? null) . '/' . basename(__FILE__)); + if (file_exists(RCUBE_CONFIG_DIR . '/' . (\$_SERVER['HTTP_HOST'] ?? '') . '/' . basename(__FILE__))) { + include_once(RCUBE_CONFIG_DIR . '/' . (\$_SERVER['HTTP_HOST'] ?? '') . '/' . basename(__FILE__)); } - -?> diff --git a/share/templates/roundcubemail/config.inc.php.tpl b/share/templates/roundcubemail/config.inc.php.tpl index 1ecb95a..dcd944a 100644 --- a/share/templates/roundcubemail/config.inc.php.tpl +++ b/share/templates/roundcubemail/config.inc.php.tpl @@ -1,243 +1,243 @@ = 5.6 - \$config['imap_conn_options'] = Array( - 'ssl' => Array( + \$config['imap_conn_options'] = [ + 'ssl' => [ 'verify_peer_name' => false, 'verify_peer' => false, 'allow_self_signed' => true - ) - ); + ] + ]; // Caching and storage settings \$config['imap_cache'] = 'db'; \$config['imap_cache_ttl'] = '10d'; \$config['messages_cache'] = 'db'; \$config['message_cache_ttl'] = '10d'; \$config['session_storage'] = 'db'; // SMTP Server Settings \$config['smtp_server'] = 'tls://localhost'; \$config['smtp_port'] = 587; \$config['smtp_user'] = '%u'; \$config['smtp_pass'] = '%p'; - \$config['smtp_helo_host'] = \$_SERVER["HTTP_HOST"] ?? null; + \$config['smtp_helo_host'] = \$_SERVER['HTTP_HOST'] ?? null; // SMTP Connection TLS settings, adjust for Production // Required for PHP >= 5.6 - \$config['smtp_conn_options'] = Array( - 'ssl' => Array( + \$config['smtp_conn_options'] = [ + 'ssl' => [ 'verify_peer_name' => false, 'verify_peer' => false, 'allow_self_signed' => true - ) - ); + ] + ]; // LDAP Settings \$config['ldap_cache'] = 'db'; \$config['ldap_cache_ttl'] = '1h'; // Kolab specific defaults \$config['product_name'] = 'Kolab Groupware'; \$config['quota_zero_as_unlimited'] = false; \$config['login_lc'] = 2; \$config['auto_create_user'] = true; \$config['enable_installer'] = false; // The SMTP server does not allow empty identities \$config['mdn_use_from'] = true; // Plugins - \$config['plugins'] = array( + \$config['plugins'] = [ 'kolab_auth', 'acl', 'archive', 'calendar', 'jqueryui', 'kolab_activesync', 'kolab_addressbook', 'kolab_config', 'kolab_delegation', 'kolab_files', 'kolab_folders', 'kolab_notes', 'kolab_tags', 'managesieve', 'newmail_notifier', 'odfviewer', 'password', 'redundant_attachments', 'tasklist', // contextmenu must be after kolab_addressbook (#444) 'contextmenu', - ); + ]; // Do not show deleted messages, mark deleted messages as read, // and flag them as deleted instead of moving them to the Trash // folder. \$config['skip_deleted'] = true; \$config['read_when_deleted'] = true; \$config['flag_for_deletion'] = true; \$config['delete_always'] = true; \$config['session_lifetime'] = 180; \$config['password_charset'] = 'UTF-8'; \$config['useragent'] = 'Kolab 16/Roundcube ' . RCUBE_VERSION; \$config['message_sort_col'] = 'date'; \$config['spellcheck_engine'] = 'pspell'; \$config['spellcheck_dictionary'] = true; \$config['spellcheck_ignore_caps'] = true; \$config['spellcheck_ignore_nums'] = true; \$config['spellcheck_ignore_syms'] = true; - \$config['spellcheck_languages'] = array( + \$config['spellcheck_languages'] = [ 'da' => 'Dansk', 'de' => 'Deutsch', 'en' => 'English', 'es' => 'Español', 'fr' => 'Français', 'it' => 'Italiano', 'nl' => 'Nederlands', 'pt' => 'Português', 'ru' => 'Русский', 'sv' => 'Svenska' - ); + ]; \$config['undo_timeout'] = 10; \$config['address_template'] = '{street}
{locality} {zipcode}
{country} {region}'; \$config['mail_read_time'] = 0; \$config['autoexpand_threads'] = 2; \$config['top_posting'] = 0; \$config['sig_above'] = false; \$config['mdn_requests'] = 0; \$config['mdn_default'] = false; \$config['dsn_default'] = false; \$config['reply_same_folder'] = false; \$config['htmleditor'] = 0; - if (file_exists(RCUBE_CONFIG_DIR . '/' . (\$_SERVER["HTTP_HOST"] ?? null) . '/' . basename(__FILE__))) { - include_once(RCUBE_CONFIG_DIR . '/' . (\$_SERVER["HTTP_HOST"] ?? null) . '/' . basename(__FILE__)); + if (file_exists(RCUBE_CONFIG_DIR . '/' . (\$_SERVER['HTTP_HOST'] ?? '') . '/' . basename(__FILE__))) { + include_once(RCUBE_CONFIG_DIR . '/' . (\$_SERVER['HTTP_HOST'] ?? '') . '/' . basename(__FILE__)); } // Re-apply mandatory settings here. \$config['devel_mode'] = false; \$config['log_driver'] = 'file'; \$config['log_date_format'] = 'd-M-Y H:i:s,u O'; \$config['syslog_id'] = 'roundcube'; \$config['syslog_facility'] = LOG_USER; \$config['sql_debug'] = false; \$config['memcache_debug'] = false; \$config['imap_debug'] = false; \$config['ldap_debug'] = false; \$config['smtp_debug'] = false; \$config['smtp_log'] = false; \$config['log_logins'] = true; \$config['log_session'] = false; \$config['skin'] = '$skin'; \$config['skin_include_php'] = false; \$config['mime_magic'] = null; \$config['im_identify_path'] = '/usr/bin/identify'; \$config['im_convert_path'] = '/usr/bin/convert'; \$config['log_dir'] = 'logs/'; \$config['temp_dir'] = '/var/lib/roundcubemail/'; // Some additional default folders (archive plugin) \$config['archive_mbox'] = 'Archive'; // The Kolab daemon by default creates 'Spam' \$config['junk_mbox'] = 'Spam'; \$config['address_book_type'] = 'ldap'; \$config['autocomplete_min_length'] = 3; \$config['autocomplete_threads'] = 0; \$config['autocomplete_max'] = 15; - \$config['ldap_public'] = array( - 'kolab_addressbook' => array( + \$config['ldap_public'] = [ + 'kolab_addressbook' => [ 'name' => 'Global Address Book', - 'hosts' => Array('localhost'), + 'hosts' => ['localhost'], 'port' => 389, 'use_tls' => false, 'base_dn' => '$ldap_user_base_dn', 'user_specific' => true, 'bind_dn' => '%dn', 'bind_pass' => '', 'search_base_dn' => '$ldap_user_base_dn', 'search_bind_dn' => '$ldap_service_bind_dn', 'search_bind_pw' => '$ldap_service_bind_pw', 'search_filter' => '(&(objectClass=inetOrgPerson)(mail=%fu))', 'writable' => false, - 'LDAP_Object_Classes' => array("top", "inetOrgPerson"), - 'required_fields' => array("cn", "sn", "mail"), + 'LDAP_Object_Classes' => ["top", "inetOrgPerson"], + 'required_fields' => ["cn", "sn", "mail"], 'LDAP_rdn' => 'uid', - 'ldap_version' => 3, // using LDAPv3 - 'search_fields' => array('displayname', 'mail'), - 'sort' => array('displayname', 'sn', 'givenname', 'cn'), + 'ldap_version' => 3, + 'search_fields' => ['displayname', 'mail'], + 'sort' => ['displayname', 'sn', 'givenname', 'cn'], 'scope' => 'sub', 'filter' => '(objectClass=inetOrgPerson)', 'vlv' => false, 'vlv_search' => false, 'fuzzy_search' => true, 'sizelimit' => '0', 'timelimit' => '0', - 'fieldmap' => Array( - // Roundcube => LDAP - 'name' => 'displayName', - 'surname' => 'sn', - 'firstname' => 'givenName', - 'middlename' => 'initials', - 'email:primary' => 'mail', - 'email:alias' => 'alias', - 'email:personal' => 'mailalternateaddress', - 'phone:main' => 'telephoneNumber', - 'phone:work' => 'alternateTelephoneNumber', - 'phone:mobile' => 'mobile', - 'phone:work2' => 'blackberry', - 'jobtitle' => 'title', - 'manager' => 'manager', - 'assistant' => 'secretary', - 'photo' => 'jpegphoto' - ), - 'groups' => Array( - 'base_dn' => '$ldap_group_base_dn', - 'filter' => '(&' . '$ldap_group_filter' . '(mail=*))', - 'object_classes' => Array("top", "groupOfUniqueNames"), - 'member_attr' => 'uniqueMember', - ), - ), - ); - - \$config['autocomplete_addressbooks'] = Array( + 'fieldmap' => [ + // Roundcube => LDAP + 'name' => 'displayName', + 'surname' => 'sn', + 'firstname' => 'givenName', + 'middlename' => 'initials', + 'email:primary' => 'mail', + 'email:alias' => 'alias', + 'email:personal' => 'mailalternateaddress', + 'phone:main' => 'telephoneNumber', + 'phone:work' => 'alternateTelephoneNumber', + 'phone:mobile' => 'mobile', + 'phone:work2' => 'blackberry', + 'jobtitle' => 'title', + 'manager' => 'manager', + 'assistant' => 'secretary', + 'photo' => 'jpegphoto' + ], + 'groups' => [ + 'base_dn' => '$ldap_group_base_dn', + 'filter' => '(&' . '$ldap_group_filter' . '(mail=*))', + 'object_classes' => ["top", "groupOfUniqueNames"], + 'member_attr' => 'uniqueMember', + ], + ], + ]; + + \$config['autocomplete_addressbooks'] = [ 'kolab_addressbook' - ); + ]; \$config['autocomplete_single'] = true; - \$config['kolab_http_request'] = Array( + \$config['kolab_http_request'] = [ 'ssl_verify_host' => false, 'ssl_verify_peer' => false, - ); + ]; @include('/etc/roundcubemail/kolab_syncroton.inc.php'); diff --git a/share/templates/roundcubemail/kolab_addressbook.inc.php.tpl b/share/templates/roundcubemail/kolab_addressbook.inc.php.tpl index f19c86a..d8a856d 100644 --- a/share/templates/roundcubemail/kolab_addressbook.inc.php.tpl +++ b/share/templates/roundcubemail/kolab_addressbook.inc.php.tpl @@ -1,20 +1,18 @@ diff --git a/share/templates/roundcubemail/kolab_auth.inc.php.tpl b/share/templates/roundcubemail/kolab_auth.inc.php.tpl index f558bd5..7cda66a 100644 --- a/share/templates/roundcubemail/kolab_auth.inc.php.tpl +++ b/share/templates/roundcubemail/kolab_auth.inc.php.tpl @@ -1,70 +1,68 @@ 'Kolab Auth', - 'hosts' => Array('localhost'), - 'port' => 389, - 'use_tls' => false, - 'user_specific' => false, - 'base_dn' => '$ldap_user_base_dn', - 'bind_dn' => '$ldap_service_bind_dn', - 'bind_pass' => '$ldap_service_bind_pw', - 'writable' => false, - 'ldap_version' => 3, // using LDAPv3 - 'fieldmap' => Array( - 'name' => 'displayname', - 'email' => 'mail', - 'email:alias' => 'alias', - 'role' => 'nsroledn', - ), - 'sort' => 'displayname', - 'scope' => 'sub', - 'filter' => '(objectClass=*)', - 'fuzzy_search' => true, - 'sizelimit' => '0', - 'timelimit' => '0', - 'groups' => Array( - 'base_dn' => '$ldap_group_base_dn', - 'filter' => '$ldap_group_filter', - 'object_classes' => Array('top', 'groupOfUniqueNames'), - 'member_attr' => 'uniqueMember', - ), - ); + \$config['kolab_auth_addressbook'] = [ + 'name' => 'Kolab Auth', + 'hosts' => ['localhost'], + 'port' => 389, + 'use_tls' => false, + 'user_specific' => false, + 'base_dn' => '$ldap_user_base_dn', + 'bind_dn' => '$ldap_service_bind_dn', + 'bind_pass' => '$ldap_service_bind_pw', + 'writable' => false, + 'ldap_version' => 3, + 'fieldmap' => [ + 'name' => 'displayname', + 'email' => 'mail', + 'email:alias' => 'alias', + 'role' => 'nsroledn', + ], + 'sort' => 'displayname', + 'scope' => 'sub', + 'filter' => '(objectClass=*)', + 'fuzzy_search' => true, + 'sizelimit' => '0', + 'timelimit' => '0', + 'groups' => [ + 'base_dn' => '$ldap_group_base_dn', + 'filter' => '$ldap_group_filter', + 'object_classes' => ['top', 'groupOfUniqueNames'], + 'member_attr' => 'uniqueMember', + ], + ]; // This will overwrite defined filter \$config['kolab_auth_filter'] = '(&' . '$ldap_user_filter' . '(|(uid=%u)(mail=%fu)(alias=%fu)))'; // Use this fields (from fieldmap configuration) to get authentication ID \$config['kolab_auth_login'] = 'email'; // Use this fields (from fieldmap configuration) for default identity \$config['kolab_auth_name'] = 'name'; \$config['kolab_auth_alias'] = 'alias'; \$config['kolab_auth_email'] = 'email'; - if (preg_match('/\/helpdesk-login\//', \$_SERVER["REQUEST_URI"] ?? null) ) { + if (preg_match('/\/helpdesk-login\//', \$_SERVER['REQUEST_URI'] ?? '')) { // Login and password of the admin user. Enables "Login As" feature. \$config['kolab_auth_admin_login'] = '$imap_admin_login'; \$config['kolab_auth_admin_password'] = '$imap_admin_password'; \$config['kolab_auth_auditlog'] = true; } // Administrative role field (from fieldmap configuration) which must be filled with // specified value which adds privilege to login as another user. \$config['kolab_auth_role'] = 'role'; \$config['kolab_auth_role_value'] = 'cn=kolab-admin,$ldap_base_dn'; // Administrative group name to which user must be assigned to // which adds privilege to login as another user. \$config['kolab_auth_group'] = 'Kolab Helpdesk'; - if (file_exists(RCUBE_CONFIG_DIR . '/' . (\$_SERVER["HTTP_HOST"] ?? null) . '/' . basename(__FILE__))) { - include_once(RCUBE_CONFIG_DIR . '/' . (\$_SERVER["HTTP_HOST"] ?? null). '/' . basename(__FILE__)); + if (file_exists(RCUBE_CONFIG_DIR . '/' . (\$_SERVER["HTTP_HOST"] ?? '') . '/' . basename(__FILE__))) { + include_once(RCUBE_CONFIG_DIR . '/' . (\$_SERVER["HTTP_HOST"] ?? ''). '/' . basename(__FILE__)); } - -?> diff --git a/share/templates/roundcubemail/kolab_delegation.inc.php.tpl b/share/templates/roundcubemail/kolab_delegation.inc.php.tpl index 29bec24..b206f86 100644 --- a/share/templates/roundcubemail/kolab_delegation.inc.php.tpl +++ b/share/templates/roundcubemail/kolab_delegation.inc.php.tpl @@ -1,14 +1,13 @@ diff --git a/share/templates/roundcubemail/kolab_files.inc.php.tpl b/share/templates/roundcubemail/kolab_files.inc.php.tpl index 5720ee9..4e075ea 100644 --- a/share/templates/roundcubemail/kolab_files.inc.php.tpl +++ b/share/templates/roundcubemail/kolab_files.inc.php.tpl @@ -1,28 +1,27 @@ diff --git a/share/templates/roundcubemail/kolab_folders.inc.php.tpl b/share/templates/roundcubemail/kolab_folders.inc.php.tpl index f12a195..cefc5d6 100644 --- a/share/templates/roundcubemail/kolab_folders.inc.php.tpl +++ b/share/templates/roundcubemail/kolab_folders.inc.php.tpl @@ -1,21 +1,19 @@ diff --git a/share/templates/roundcubemail/libkolab.inc.php.tpl b/share/templates/roundcubemail/libkolab.inc.php.tpl index b3bb596..4118960 100644 --- a/share/templates/roundcubemail/libkolab.inc.php.tpl +++ b/share/templates/roundcubemail/libkolab.inc.php.tpl @@ -1,16 +1,14 @@ diff --git a/share/templates/roundcubemail/managesieve.inc.php.tpl b/share/templates/roundcubemail/managesieve.inc.php.tpl index f7f1c10..52a31b0 100644 --- a/share/templates/roundcubemail/managesieve.inc.php.tpl +++ b/share/templates/roundcubemail/managesieve.inc.php.tpl @@ -1,31 +1,29 @@ Array( + \$config['managesieve_conn_options'] = [ + 'ssl' => [ 'verify_peer_name' => false, 'verify_peer' => false, 'allow_self_signed' => true - ) - ); + ] + ]; - if (file_exists(RCUBE_CONFIG_DIR . '/' . (\$_SERVER["HTTP_HOST"] ?? null) . '/' . basename(__FILE__))) { - include_once(RCUBE_CONFIG_DIR . '/' . (\$_SERVER["HTTP_HOST"] ?? null) . '/' . basename(__FILE__)); + if (file_exists(RCUBE_CONFIG_DIR . '/' . (\$_SERVER['HTTP_HOST'] ?? '') . '/' . basename(__FILE__))) { + include_once(RCUBE_CONFIG_DIR . '/' . (\$_SERVER['HTTP_HOST'] ?? '') . '/' . basename(__FILE__)); } - -?> diff --git a/share/templates/roundcubemail/mimetypes.php.tpl b/share/templates/roundcubemail/mimetypes.php.tpl index d404c1f..b30e169 100644 --- a/share/templates/roundcubemail/mimetypes.php.tpl +++ b/share/templates/roundcubemail/mimetypes.php.tpl @@ -1,49 +1,47 @@ 'application/vnd.ms-excel', 'xlm' => 'application/vnd.ms-excel', 'xla' => 'application/vnd.ms-excel', 'xlc' => 'application/vnd.ms-excel', 'xlt' => 'application/vnd.ms-excel', 'xlw' => 'application/vnd.ms-excel', 'pdf' => 'application/pdf', 'ppt' => 'application/vnd.ms-powerpoint', 'pps' => 'application/vnd.ms-powerpoint', 'pot' => 'application/vnd.ms-powerpoint', 'doc' => 'application/msword', 'dot' => 'application/msword', 'odc' => 'application/vnd.oasis.opendocument.chart', 'otc' => 'application/vnd.oasis.opendocument.chart-template', 'odf' => 'application/vnd.oasis.opendocument.formula', 'otf' => 'application/vnd.oasis.opendocument.formula-template', 'odg' => 'application/vnd.oasis.opendocument.graphics', 'otg' => 'application/vnd.oasis.opendocument.graphics-template', 'odi' => 'application/vnd.oasis.opendocument.image', 'oti' => 'application/vnd.oasis.opendocument.image-template', 'odp' => 'application/vnd.oasis.opendocument.presentation', 'otp' => 'application/vnd.oasis.opendocument.presentation-template', 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template', 'odt' => 'application/vnd.oasis.opendocument.text', 'otm' => 'application/vnd.oasis.opendocument.text-master', 'ott' => 'application/vnd.oasis.opendocument.text-template', 'oth' => 'application/vnd.oasis.opendocument.text-web', 'docm' => 'application/vnd.ms-word.document.macroEnabled.12', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'dotm' => 'application/vnd.ms-word.template.macroEnabled.12', 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12', 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', 'pptm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', 'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xps' => 'application/vnd.ms-xpsdocument', 'rar' => 'application/x-rar-compressed', 'vcf' => 'text/vcard', 'ics' => 'text/calendar', -); - -?> \ No newline at end of file +]; diff --git a/share/templates/roundcubemail/password.inc.php.tpl b/share/templates/roundcubemail/password.inc.php.tpl index d7a2354..baef9b1 100644 --- a/share/templates/roundcubemail/password.inc.php.tpl +++ b/share/templates/roundcubemail/password.inc.php.tpl @@ -1,155 +1,153 @@ diff --git a/share/templates/roundcubemail/recipient_to_contact.inc.php.tpl b/share/templates/roundcubemail/recipient_to_contact.inc.php.tpl index b41ad79..606c7db 100644 --- a/share/templates/roundcubemail/recipient_to_contact.inc.php.tpl +++ b/share/templates/roundcubemail/recipient_to_contact.inc.php.tpl @@ -1,4 +1,3 @@ \ No newline at end of file diff --git a/share/templates/roundcubemail/terms.inc.php.tpl b/share/templates/roundcubemail/terms.inc.php.tpl index 7d19e02..a4e91bf 100644 --- a/share/templates/roundcubemail/terms.inc.php.tpl +++ b/share/templates/roundcubemail/terms.inc.php.tpl @@ -1,22 +1,20 @@