From 67a17679e3aad78fce2d1b2322c282afd09ca6f3 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 2 Oct 2017 15:40:10 +0200 Subject: [PATCH] Added encryption select in enterprise setup --- pandora_console/include/functions_config.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 1a70f8d41d..bef6812c89 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -260,6 +260,8 @@ function config_update_config () { $error_update[] = __('Server SMTP'); if (!config_update_value ('email_smtpPort', (int)get_parameter('email_smtpPort'))) $error_update[] = __('Port SMTP'); + if (!config_update_value ('email_encryption', get_parameter('email_encryption'))) + $error_update[] = __('Encryption'); if (!config_update_value ('email_username', get_parameter('email_username'))) $error_update[] = __('Email user'); if (!config_update_value ('email_password', get_parameter('email_password'))) @@ -1227,6 +1229,10 @@ function config_process_config () { if (!isset ($config['email_smtpPort'])) { config_update_value ( 'email_smtpPort', 25); } + + if (!isset ($config['email_encryption'])) { + config_update_value ( 'email_encryption', 0); + } if (!isset ($config['email_username'])) { config_update_value ( 'email_username', "");