checkRemoteResourceAvailability($_SESSION['letsencrypt-domains']);
$failed_domains_http = array_diff($_SESSION['letsencrypt-domains'], $checked_domains);
# debug à améliorer
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)) {
$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';
}