Update SSL.class.php

This commit is contained in:
Namhyeon Go 2020-04-17 17:55:46 +09:00 committed by GitHub
parent 99d02b27b3
commit 6c3484e67f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,8 @@
<?php
// https://stackoverflow.com/questions/3464113/is-it-possible-to-read-ssl-information-in-php-from-any-website
if(!class_exists("SSL")) {
class SSL {
public $domain, $validFrom, $validTo, $issuer, $validity, $validitytot, $crtValRemaining;
private static function instantiate($url, $info) {
@ -69,5 +69,5 @@ class SSL {
$diff=date_diff($date1,$date2);
return ltrim($diff->format("%R%a"), "+");
}
}
}