diff options
-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 |