show letsencrypt in progress if file or domain does not exists
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
4
scan.php
4
scan.php
@@ -196,12 +196,16 @@ switch ($_GET["op"]) {
|
|||||||
//var_dump($template);
|
//var_dump($template);
|
||||||
//var_dump($template);
|
//var_dump($template);
|
||||||
$letsencrypt = check_letsencrypt();
|
$letsencrypt = check_letsencrypt();
|
||||||
|
if (empty($letsencrypt)) echo "LETSENCRYPT in progress...";
|
||||||
|
else {
|
||||||
foreach ($template->fields as $field) {
|
foreach ($template->fields as $field) {
|
||||||
if ($field->key=="DOMAIN") {
|
if ($field->key=="DOMAIN") {
|
||||||
if (!empty($letsencrypt[$field->value])) {
|
if (!empty($letsencrypt[$field->value])) {
|
||||||
echo "LETSENCRYPT: ".$letsencrypt[$field->value]["status"]." - ".$letsencrypt[$field->value]["date"];
|
echo "LETSENCRYPT: ".$letsencrypt[$field->value]["status"]." - ".$letsencrypt[$field->value]["date"];
|
||||||
echo " - <a href=\"letsencrypt_log.php?domain={$field->value}\" target=\"_blank\">LOG</a><br><br>";
|
echo " - <a href=\"letsencrypt_log.php?domain={$field->value}\" target=\"_blank\">LOG</a><br><br>";
|
||||||
}
|
}
|
||||||
|
else echo "LETSENCRYPT in progress for {$field->value}.";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user