From b339ca0fb9526b0ef4a96afb51b616adacce68f6 Mon Sep 17 00:00:00 2001 From: Nicolas Roman Date: Fri, 19 Jul 2019 14:38:24 +0200 Subject: [PATCH] display included and non included domain(s) before the cert renew --- inc/webadmin-letsencrypt.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/inc/webadmin-letsencrypt.php b/inc/webadmin-letsencrypt.php index b33bf87..dce6864 100644 --- a/inc/webadmin-letsencrypt.php +++ b/inc/webadmin-letsencrypt.php @@ -90,8 +90,18 @@ if (isset($_POST['submit'])) { break; } - $warningMessage = "Attention : le certificat existant couvre déjà certains domaines. - Souhaitez-vous le renouveller ?"; + $warningMessage = "Attention : le certificat existant couvre déjà le(s) domaine(s) :
"; + + foreach ($domainsIncluded as $domainIncluded) { + $warningMessage .= $domainIncluded . "
"; + } + + $warningMessage .= "
En confirmant le renouvellement, vous allez ajouter :
"; + + foreach ($domainsNotIncluded as $domainNotIncluded) { + $warningMessage .= $domainNotIncluded . "
"; + } + break; }