Whoops, the line break...
This commit is contained in:
parent
65edebdb7f
commit
335ac4b249
12
index.php
12
index.php
|
@ -3,16 +3,16 @@
|
|||
require("settings.php");
|
||||
|
||||
foreach ($sites as $s) {
|
||||
$g = stream_context_create (array("ssl" => array("capture_peer_cert" => true)));
|
||||
$g = stream_context_create (array("ssl" => array("capture_peer_cert" => true)));
|
||||
$r = stream_socket_client("ssl://" . $s . ":443", $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $g);
|
||||
$p = stream_context_get_params($r);
|
||||
$c = openssl_x509_parse($p["options"]["ssl"]["peer_certificate"]);
|
||||
|
||||
|
||||
$out = $s . " - " . date("Y-m-d H:i:s",$c["validTo_time_t"]);
|
||||
if ($c["validTo_time_t"] < strtotime("+1 week")) {
|
||||
print("<font color=\"red\"><b>" . $out . "</b></font>");
|
||||
print("<font color=\"red\"><b>" . $out . "</b></font><br>");
|
||||
} else if (isset($_GET["debug"])) {
|
||||
print($out);
|
||||
};
|
||||
print("<br>");
|
||||
print($out . "<br>");
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue