diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-09-13 22:22:45 -0700 |
---|---|---|
committer | NOYB <Al_Stu@Frontier.com> | 2016-09-13 22:22:45 -0700 |
commit | 69cb4d5a67a15537ab2b4c3d2f8faa8e41e35e70 (patch) | |
tree | d792c2714e87f23036dcc322757427e922a8f17a /src/usr/local/www/system_advanced_notifications.php | |
parent | 786d411dca21d262ae36de5fb3f9a546a5984d1d (diff) | |
download | pfsense-69cb4d5a67a15537ab2b4c3d2f8faa8e41e35e70.zip pfsense-69cb4d5a67a15537ab2b4c3d2f8faa8e41e35e70.tar.gz |
Secure SMTP Connection Modes - Mutually Exclusive
Secure SMTP Connection modes are mutually exclusive. Select only one.
Diffstat (limited to 'src/usr/local/www/system_advanced_notifications.php')
-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..a9425ae 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 |