62,8 → 62,9 |
$scale_factor = 2; |
$strLoadbar = ""; |
$uptime = ""; |
$date = exec ("/bin/date"); |
$cert_ca_expiration_date = exec ("/usr/bin/openssl x509 -noout -in /etc/pki/tls/certs/alcasar.crt -dates|grep After|cut -d\"=\" -f2"); |
$date = date('d-m-Y H:i:s'); |
$certificateInfos = openssl_x509_parse(file_get_contents('/etc/pki/tls/certs/alcasar.crt')); |
$certExpirationDate = date('d-m-Y H:i:s', $certificateInfos['validTo_time_t']); |
if( $XPath->match( "/phpsysinfo/Vitals/CPULoad" ) ) |
$strLoadbar = "<br>" . create_bargraph( $XPath->getData( "/phpsysinfo/Vitals/CPULoad" ), 100, $scale_factor ) . " " . $XPath->getData( "/phpsysinfo/Vitals/CPULoad" ) . "%"; |
|
74,7 → 75,7 |
. " </tr>\n" |
. " <tr>\n" |
. " <td valign=\"top\"><font size=\"-1\">" . $text['cert_expiration_date'] . "</font></td>\n" |
. " <td><font size=\"-1\">" . $cert_ca_expiration_date . "</font></td>\n" |
. " <td><font size=\"-1\">" . $certExpirationDate . "</font></td>\n" |
. " </tr>\n" |
// . " <tr>\n" |
// . " <td valign=\"top\"><font size=\"-1\">" . $text['ip'] . "</font></td>\n" |