From 320a229d4f5738cf18a08a1069e8852e45f2ef01 Mon Sep 17 00:00:00 2001
From: Nicolas Roman Liste des domaines à intégrer dans le certificat : ';
+ echo 'Le challenge HTTP a échoué pour le(s) domaine(s) ci-dessous.
+ Merci de vérifier que le dossier ';
+ foreach ($failed_domains_http as $failed_domain) {
+ echo $failed_domain . " ';
+ echo 'La vérification DNS a échoué pour les domaines ci-dessous.
+ Merci de vérifier les enregistrements de type A et AAAA.';
+ echo 'The following domain(s) failed the HTTP challenge
';
- foreach ($failed_domains_http as $failed_domain) {
- echo $failed_domain . '
';
- }
-
- // check DNS
- if (!empty($checked_domains)) {
+ if (empty($failed_domains_http) && !empty($checked_domains)) {
+ // check DNS
$valid_domains = $letsencrypt->checkDNSValidity($checked_domains);
$failed_domains_dns = array_diff($checked_domains, $valid_domains);
-
- # debug à améliorer
- echo 'The following domain(s) failed the DNS check
';
- foreach ($failed_domains_dns as $failed_domain) {
- echo $failed_domain . '
';
- }
}
-
- include_once EVOADMIN_BASE . '../tpl/footer.tpl.php';
} else {
- include_once EVOADMIN_BASE . '../tpl/header.tpl.php';
- include_once EVOADMIN_BASE . '../tpl/menu.tpl.php';
- include_once EVOADMIN_BASE . '../tpl/webadmin-letsencrypt.tpl.php';
- include_once EVOADMIN_BASE . '../tpl/footer.tpl.php';
+ // page de base
}
+include_once EVOADMIN_BASE . '../tpl/webadmin-letsencrypt.tpl.php';
+include_once EVOADMIN_BASE . '../tpl/footer.tpl.php';
diff --git a/tpl/webadmin-letsencrypt.tpl.php b/tpl/webadmin-letsencrypt.tpl.php
index 0800a31..0b3bc43 100644
--- a/tpl/webadmin-letsencrypt.tpl.php
+++ b/tpl/webadmin-letsencrypt.tpl.php
@@ -1,20 +1,46 @@
Gestion Let's Encrypt
0) {
- ?>
+if (isset($_POST['submit'])) {
+ if (count($failed_domains_http) > 0) {
+ echo 'Erreur HTTP
';
-
- ' . $domain . '';
+ echo '
-
-
- Aucun domaine./.well-known/acme-challenge/
est accessible.';
+ echo '
";
+ }
+ echo 'Erreur DNS
';
+
+ echo '
";
+ }
+ } else {
+ echo "all checks succeeded";
}
- ?>
-
Les domaines suivants seront intégrés au certificat :
"; + if (count($_SESSION['letsencrypt-domains']) > 0) { + echo '';
+ foreach ($_SESSION['letsencrypt-domains'] as $domain) {
+ echo $domain . '
';
+ }
+ echo '