diff options
author | Renato Botelho <renato@netgate.com> | 2016-09-16 13:40:40 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-09-16 13:40:40 -0300 |
commit | bb8e381a38e59a6fecbeb05d9e829edbc22deb0f (patch) | |
tree | 9c69240a794c5664355e26bb0ae2b77458c9f160 /src | |
parent | 8d1b677a5b7dafaaafb62c8cd9541e19835e5c9c (diff) | |
parent | c3eaf962efd406316f0e8512b5aad6b5e98b2c3a (diff) | |
download | pfsense-bb8e381a38e59a6fecbeb05d9e829edbc22deb0f.zip pfsense-bb8e381a38e59a6fecbeb05d9e829edbc22deb0f.tar.gz |
Merge pull request #3137 from NOYB/Secure_SMTP_Connection_Modes_-_Mutually_Exclusive
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/system_advanced_notifications.php | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/usr/local/www/system_advanced_notifications.php b/src/usr/local/www/system_advanced_notifications.php index d57aea4..5d8757b 100644 --- a/src/usr/local/www/system_advanced_notifications.php +++ b/src/usr/local/www/system_advanced_notifications.php @@ -156,6 +156,11 @@ if ($_POST) { unset($config['notifications']['smtp']['tls']); } + if ((isset($config['notifications']['smtp']['ssl'])) && + (isset($config['notifications']['smtp']['tls']))) { + $input_errors[] = gettext("\"Secure SMTP Connection\" modes are mutually exclusive. Select only one."); + } + $config['notifications']['smtp']['notifyemailaddress'] = $_POST['smtpnotifyemailaddress']; $config['notifications']['smtp']['username'] = $_POST['smtpusername']; @@ -391,5 +396,23 @@ $section->addInput(new Form_Checkbox( $form->add($section); print($form); +?> + +<script type="text/javascript"> +//<![CDATA[ +events.push(function() { -include("foot.inc"); + // On click . . + $("#smtpssl").click(function() { + $('#smtptls').prop('checked', false); + }); + + $("#smtptls").click(function() { + $('#smtpssl').prop("checked", false); + }); +}); +//]]> +</script> + +<?php +include("foot.inc");
\ No newline at end of file |