From 609b31401a001f97cddc33bd2fef99d78d087f9d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 28 Oct 2009 20:35:59 +0000 Subject: [PATCH] Fix: Add information to say that TLS is not supported. --- htdocs/admin/mails.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/mails.php b/htdocs/admin/mails.php index 2720549d79b..c23c986c9f5 100644 --- a/htdocs/admin/mails.php +++ b/htdocs/admin/mails.php @@ -52,8 +52,8 @@ if (isset($_POST["action"]) && $_POST["action"] == 'update') dolibarr_set_const($db, "MAIN_MAIL_SENDMODE", $_POST["MAIN_MAIL_SENDMODE"],'chaine',0,'',0); dolibarr_set_const($db, "MAIN_MAIL_SMTP_PORT", $_POST["MAIN_MAIL_SMTP_PORT"],'chaine',0,'',0); dolibarr_set_const($db, "MAIN_MAIL_SMTP_SERVER", $_POST["MAIN_MAIL_SMTP_SERVER"],'chaine',0,'',0); - dolibarr_set_const($db, "MAIN_MAIL_SMTPS_ID", $_POST["MAIN_MAIL_SMTPS_ID"],'chaine',0,'',0); - dolibarr_set_const($db, "MAIN_MAIL_SMTPS_PW", $_POST["MAIN_MAIL_SMTPS_PW"],'chaine',0,'',0); + if (isset($_POST["MAIN_MAIL_SMTPS_ID"])) dolibarr_set_const($db, "MAIN_MAIL_SMTPS_ID", $_POST["MAIN_MAIL_SMTPS_ID"],'chaine',0,'',0); + if (isset($_POST["MAIN_MAIL_SMTPS_PW"])) dolibarr_set_const($db, "MAIN_MAIL_SMTPS_PW", $_POST["MAIN_MAIL_SMTPS_PW"],'chaine',0,'',0); dolibarr_set_const($db, "MAIN_MAIL_EMAIL_FROM", $_POST["MAIN_MAIL_EMAIL_FROM"],'chaine',0,'',$conf->entity); Header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup"); @@ -340,6 +340,13 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit') print ''; } + // TLS + $var=!$var; + print ''.$langs->trans("MAIN_MAIL_EMAIL_TLS").''; + //print ''; + print $langs->trans("NotSupported"); + print ''; + // From $var=!$var; print ''.$langs->trans("MAIN_MAIL_EMAIL_FROM",ini_get('sendmail_from')?ini_get('sendmail_from'):$langs->transnoentities("Undefined")).''; @@ -409,6 +416,13 @@ else print ''.$langs->trans("MAIN_MAIL_SMTPS_PW").''.$conf->global->MAIN_MAIL_SMTPS_PW.''; } + // TLS + $var=!$var; + print ''.$langs->trans("MAIN_MAIL_EMAIL_TLS").''; + //print ''; + print $langs->trans("NotSupported"); + print ''; + // From $var=!$var; print ''.$langs->trans("MAIN_MAIL_EMAIL_FROM",ini_get('sendmail_from')?ini_get('sendmail_from'):$langs->transnoentities("Undefined")).''.$conf->global->MAIN_MAIL_EMAIL_FROM.'';