forked from ZwiiCMS-Team/ZwiiCMS
Amélioreation form + param smtp false
This commit is contained in:
parent
5542ba5193
commit
73cd16b953
@ -853,12 +853,13 @@ class common {
|
||||
include 'core/layout/mail.php';
|
||||
$layout = ob_get_clean();
|
||||
$mail = new PHPMailer\PHPMailer\PHPMailer;
|
||||
// $mail->SMTPDebug = PHPMailer\PHPMailer\SMTP::DEBUG_SERVER;
|
||||
// Mail
|
||||
try{
|
||||
// Paramètres SMTP
|
||||
if ($this->getdata(['config','smtp','enable'])) {
|
||||
// $mail->SMTPDebug = PHPMailer\PHPMailer\SMTP::DEBUG_SERVER;
|
||||
$mail->isSMTP();
|
||||
$mail->SMTPAutoTLS = false;
|
||||
$mail->Host = $this->getdata(['config','smtp','host']);
|
||||
$mail->Port = (int) $this->getdata(['config','smtp','port']);
|
||||
if ($this->getData(['config','smtp','auth'])) {
|
||||
|
@ -14,12 +14,12 @@
|
||||
* Modification de l'affichage de l'icône de langues
|
||||
*/
|
||||
|
||||
|
||||
var configdisablei18nDOM = $("#configdisablei18n");
|
||||
configdisablei18nDOM.on("change", function() {
|
||||
if ($("input[name=configdisablei18n]").is(':checked')) {
|
||||
$(".zwiico-flag").css('display','none');
|
||||
$("input[name=configSmtpEnable]").on("change", function() {
|
||||
if ($("input[name=configSmtpEnable]").is(':checked')) {
|
||||
$(".configSmtpParam").addClass("disabled");
|
||||
$(".configSmtpParam").slideDown();
|
||||
} else {
|
||||
$(".zwiico-flag").css('display','block');
|
||||
$(".configSmtpParam").removeClass("disabled");
|
||||
$(".configSmtpParam").slideUp();
|
||||
}
|
||||
});
|
@ -335,6 +335,7 @@
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="configSmtpParam">
|
||||
<div class="row">
|
||||
<div class="col5">
|
||||
<?php echo template::text('configSmtpHost', [
|
||||
@ -387,6 +388,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
|
Loading…
Reference in New Issue
Block a user