modules/OSSMail/ConfigTemplate.php
File ConfigTemplate.php
has 379 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* OSSMail module config.
*
* @copyright YetiForce S.A.
syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ']'
Open
Open
'sanitization' => fn () => (int) func_get_arg(0)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Default host.',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$saveValue[$value] = $value;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => '\App\Validator::bool',
- Exclude checks
Line exceeds 120 characters; contains 139 characters Open
Open
return $arg && !is_numeric($arg) && \is_string($arg) && $arg === strip_tags($arg) && 256 > \App\TextUtils::getTextLength($arg);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => '/images/null.png',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 30,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 1000,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Turn on/off prefer html'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => false,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => ['ssl://imap.gmail.com:993' => 'ssl://imap.gmail.com:993'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'ssl://smtp.gmail.com:465',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$arg = func_get_arg(0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => function () {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
},
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'db_prefix' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'mail_pagesize' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'imap_cache' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'messages_cache_threshold' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'prefer_html' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'imap_host' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$saveValue = [];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => function () {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$arg = func_get_arg(0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'imap_params' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => [],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $arg && !is_numeric($arg) && \is_string($arg) && $arg === strip_tags($arg) && 256 > \App\TextUtils::getTextLength($arg);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'identities_level' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$arg = func_get_arg(0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return true;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'smtp_host' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
},
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'imap_open_add_connection_type' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'plugins' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'identity_smtp', 'thunderbird_labels', 'zipdownload', 'archive', 'html5_notifier', 'contextmenu', 'yetiforce', //'enigma'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => "Imap cache, Values: 'db', 'apc' and 'memcache' or 'memcached'",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $saveValue;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => '\App\Validator::bool',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => '%u',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'ip_check' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'roundcube_',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => \App\Encryption::generatePassword(24),
- Exclude checks
Line exceeds 120 characters; contains 185 characters Open
Open
'description' => 'This key is used for encrypting purposes, like storing of imap password in the session. For the default cipher_method a required key length is 24 characters.',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 0,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 30,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Mail page size.'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (!\App\Validator::url($url)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => false,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => true,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'sanitization' => '\App\Purifier::bool'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => '\App\Validator::alnum',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'List of plugins',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'preview_pane' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $arg && \App\Validator::url($arg);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'gmail.com',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => function () {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return '' === $arg || \App\Validator::domain($arg);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Add connection type',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Login to SMTP server',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'smtp_pass' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => function () {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return !empty($arg) && 256 > \App\TextUtils::getTextLength($arg);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Skin logo',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => function () {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'sanitization' => fn () => (int) func_get_arg(0)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'This key is used for encrypting purposes, like storing of imap password in the session. For the default cipher_method a required key length is 24 characters.',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
foreach ($arg as $url) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'sanitization' => '\App\Purifier::bool'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'smtp_user' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$arg = func_get_arg(0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => false,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Mime param folding'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => "Enables messages cache. Only 'db' cache is supported.",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Turn on/off preview pane'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => function () {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (!\is_array($values)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'sanitization' => '\App\Purifier::purify'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Enable this for imapConnect and MS Exchange bug "Kerberos error: Credentials cache file ... not found "DISABLE_AUTHENTICATOR" => "GSSAPI"',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
},
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'sanitization' => '\App\Purifier::bool'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
//------------------------------------------------------------------------------------------------------------
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'des_key' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => true,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$arg = (array) \App\Purifier::purify($arg);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'User name domain',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'sanitization' => '\App\Purifier::encodeHtml'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$arg = func_get_arg(0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => function () {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return is_numeric($arg) && \in_array($arg, [0, 1, 2, 3, 4]);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Session lifetime in minutes',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Set default prefix'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'messages_cache' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'db',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => true,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Ip check.',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => true,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Enable spell check',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => "Maximum cached message size in kilobytes.\nNote: On MySQL this should be less than (max_allowed_packet - 30%)",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validate_cert' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => "SMTP password (if required) if you use %p as the password Roundcube will use the current user's password for login",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'language' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => '\App\Validator::bool',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 0,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => '\App\Validator::naturalNumber',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Auto create user.'
- Exclude checks
Line exceeds 120 characters; contains 137 characters Open
Open
'description' => "Maximum cached message size in kilobytes.\nNote: On MySQL this should be less than (max_allowed_packet - 30%)",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
},
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'sanitization' => function () {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'en_US',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'skin_logo' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$arg = func_get_arg(0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return !empty($arg) && \App\Purifier::purify($arg);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
},
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Identities level.',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$value = \App\Purifier::purify($value);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Line exceeds 120 characters; contains 166 characters Open
Open
'description' => 'Enable this for imapConnect and MS Exchange bug "Kerberos error: Credentials cache file ... not found "DISABLE_AUTHENTICATOR" => "GSSAPI"',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Line exceeds 120 characters; contains 142 characters Open
Open
'description' => "SMTP password (if required) if you use %p as the password Roundcube will use the current user's password for login",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$arg = func_get_arg(0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Set default language',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $arg && \in_array($arg, \Settings_OSSMail_Config_Model::LANGUAGES);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$arg = func_get_arg(0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'mime_param_folding' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 300,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Send mail delay'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'ldap_debug' => [
- Exclude checks
Line exceeds 120 characters; contains 211 characters Open
Open
define(\'RCUBE_INSTALL_PATH\', realpath(ROOT_DIRECTORY . DIRECTORY_SEPARATOR . \'public_html\' . DIRECTORY_SEPARATOR . \'modules\' . DIRECTORY_SEPARATOR . \'OSSMail\' . DIRECTORY_SEPARATOR . \'roundcube\'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Log dir',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'smtp_timeout' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (!$arg) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
foreach ($values as $value) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Name of SMTP server',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'username_domain' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Validate cert',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$arg = func_get_arg(0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => function () {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return ['*' => \App\Purifier::encodeHtml($arg)];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'enable_spellcheck' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'sanitization' => fn () => (int) func_get_arg(0)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'session_lifetime' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'auto_create_user' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'db',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$values = func_get_arg(0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$values = [$values];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => '%p',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'sanitization' => function () {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'sanitization' => '\App\Purifier::bool'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => '\App\Validator::bool',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 1,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Set reply mode'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'smtp_log' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Line exceeds 120 characters; contains 211 characters Open
Open
define(\'RCUBE_INSTALL_PATH\', realpath(ROOT_DIRECTORY . DIRECTORY_SEPARATOR . \'public_html\' . DIRECTORY_SEPARATOR . \'modules\' . DIRECTORY_SEPARATOR . \'OSSMail\' . DIRECTORY_SEPARATOR . \'roundcube\'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => "return 'mysql://' . \\Config\\Db::\$db_username . ':' . \\Config\\Db::\$db_password . '@' . \\Config\\Db::\$db_server . ':' . \\Config\\Db::\$db_port . '/' . \\Config\\Db::\$db_name;",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'type' => 'function',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'return \Config\Debug::$ROUNDCUBE_LOG_SESSION;',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'type' => 'function',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'if (!defined(\'RCUBE_INSTALL_PATH\')) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Connection options imap.',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'ssl' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'The value to give when sending'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => '',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Name your service. This is displayed on the login screen and in the window title',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => '',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'zipdownload_charset' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 1,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Mdn requests'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'time_formats' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 0,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'debug_level' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Log sent messages to cache/logs/sendmail',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'type' => 'function',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'return \Config\Debug::$ROUNDCUBE_LOG_LOGINS;',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'session_debug' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'type' => 'function',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'smtp_debug' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Database connection string (DSN) for read+write operations'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'verify_peer_name' => false,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Smtp time out',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'enable_authres_status_column' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'address_book_type' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => '500MB',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'mdn_requests' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'sendmail_delay' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Set date format',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'return \Config\Debug::$ROUNDCUBE_SQL_DEBUG;',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'sanitization' => '\App\Purifier::purify'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'enable_variables_in_signature' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'type' => 'function',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Sql queries debug',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'return \Config\Debug::$ROUNDCUBE_LDAP_DEBUG;',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'ssl' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => ['flag', 'status', 'subject', 'fromto', 'date', 'size', 'attachment', 'authres_status', 'threads'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'show_statuses' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Address book page size.'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => "Zip selection of mail messages\nThis option enables downloading of multiple messages as one zip archive.\nThe number or string value specifies maximum total size of all messages\nin the archive (not the size of the archive itself)."
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 0,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'date_long' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'date_format' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'root_directory' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Connection options smtp.',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'product_name' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Contact functionality is disabled'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Enables display of email address with name instead of a name (and address in title)'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Set the long date format',
- Exclude checks
Line exceeds 120 characters; contains 166 characters Open
Open
'description' => 'Display remote resources (inline images, styles). Value: 0 - Never, always ask, 1 - Ask if sender is not in address book, 2 - Always allow',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Use this charset as fallback for message decoding'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Debug level. sum of: 1 = log; 4 = show, 8 = trace'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'log_logins' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Session authentication debug',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 10,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Show statuses'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 50,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'YetiForce Webmail',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => function () {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'List cols',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 127,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => false,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'UTF-8',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'give this choice of time formats to the user to select from',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'return ROOT_DIRECTORY . \DIRECTORY_SEPARATOR;',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Root directory',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Smtp conversation debug',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'db_dsnw' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'verify_peer_name' => false,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Set the skin'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'time_format' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'show_images' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Logins successful/failed',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'type' => 'function',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'type' => 'function',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'type' => 'function',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'smtp_conn_options' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$arg = func_get_arg(0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Enable authres status column'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 0,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'Y-m-d',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'return \Config\Debug::$ROUNDCUBE_SMTP_LOG;',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'type' => 'function',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Imap conversation debug',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'devel_mode' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Temp dir',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'smtp_helo_host' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Add this user-agent to message headers when sending',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'skin' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'Y-m-d H:i',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Display remote resources (inline images, styles). Value: 0 - Never, always ask, 1 - Ask if sender is not in address book, 2 - Always allow',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Per user logging',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'return \Config\Debug::$ROUNDCUBE_IMAP_DEBUG;',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'verify_peer' => false,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'YetiForceCRM',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Html editor',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Set autosave time'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'type' => 'function',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'type' => 'function',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'per_user_logging' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'type' => 'function',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'elastic',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'list_cols' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Store spam messages in this mailbox'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Charset to use for filenames inside the zip'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Set time format',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default_charset' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'imap_debug' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Ldap conversation debug',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'return \Config\Debug::$ROUNDCUBE_SMTP_DEBUG;',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'type' => 'function',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'return \Config\Debug::$ROUNDCUBE_DEVEL_MODE;',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'if (!defined(\'RCUBE_INSTALL_PATH\')) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'temp_dir' => [
- Exclude checks
Line exceeds 120 characters; contains 206 characters Open
Open
'default' => "return 'mysql://' . \\Config\\Db::\$db_username . ':' . \\Config\\Db::\$db_password . '@' . \\Config\\Db::\$db_server . ':' . \\Config\\Db::\$db_port . '/' . \\Config\\Db::\$db_name;",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'verify_peer' => false,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
},
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => true,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'zipdownload_selection' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'H:i',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => ['G:i', 'H:i', 'g:i a', 'h:i A', 'H:i:s (T P)'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'UTF-8',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'return \Config\Debug::$ROUNDCUBE_DEBUG_LEVEL;',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Debugging information about php memory consumption',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'type' => 'function',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'useragent' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Enable variables in signature'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'htmleditor' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'draft_autosave' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'reply_mode' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'return \Config\Debug::$ROUNDCUBE_PER_USER_LOGGING;',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'sql_debug' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'log_dir' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'imap_conn_options' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $arg && \App\Purifier::purify($arg);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'message_show_email' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => true,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'addressbook_pagesize' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'junk_mbox' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => '',
- Exclude checks
Line exceeds 120 characters; contains 258 characters Open
Open
'description' => "Zip selection of mail messages\nThis option enables downloading of multiple messages as one zip archive.\nThe number or string value specifies maximum total size of all messages\nin the archive (not the size of the archive itself)."
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
'sanitization' => fn () => (int) func_get_arg(0)
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
'sanitization' => fn () => (int) func_get_arg(0)
- Exclude checks