Line 60... |
Line 60... |
60 |
|
60 |
|
61 |
$textdir = direction();
|
61 |
$textdir = direction();
|
62 |
$scale_factor = 2;
|
62 |
$scale_factor = 2;
|
63 |
$strLoadbar = "";
|
63 |
$strLoadbar = "";
|
64 |
$uptime = "";
|
64 |
$uptime = "";
|
65 |
|
- |
|
- |
|
65 |
$cert_ca_expiration_date = exec ("sudo /usr/bin/openssl x509 -noout -in /etc/pki/tls/certs/alcasar.crt -dates|grep After|cut -d\"=\" -f2");
|
66 |
if( $XPath->match( "/phpsysinfo/Vitals/CPULoad" ) )
|
66 |
if( $XPath->match( "/phpsysinfo/Vitals/CPULoad" ) )
|
67 |
$strLoadbar = "<br>" . create_bargraph( $XPath->getData( "/phpsysinfo/Vitals/CPULoad" ), 100, $scale_factor ) . " " . $XPath->getData( "/phpsysinfo/Vitals/CPULoad" ) . "%";
|
67 |
$strLoadbar = "<br>" . create_bargraph( $XPath->getData( "/phpsysinfo/Vitals/CPULoad" ), 100, $scale_factor ) . " " . $XPath->getData( "/phpsysinfo/Vitals/CPULoad" ) . "%";
|
68 |
|
68 |
|
69 |
$_text = "<table border=\"0\" width=\"100%\" align=\"center\">\n"
|
69 |
$_text = "<table border=\"0\" width=\"100%\" align=\"center\">\n"
|
70 |
. " <tr>\n"
|
70 |
. " <tr>\n"
|
71 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['hostname'] . "</font></td>\n"
|
71 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['hostname'] . "</font></td>\n"
|
72 |
. " <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Vitals/Hostname" ) . "</font></td>\n"
|
72 |
. " <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Vitals/Hostname" ) . "</font></td>\n"
|
73 |
. " </tr>\n"
|
73 |
. " </tr>\n"
|
- |
|
74 |
. " <tr>\n"
|
- |
|
75 |
. " <td valign=\"top\"><font size=\"-1\">" . $text['cert_expiration_date'] . "</font></td>\n"
|
- |
|
76 |
. " <td><font size=\"-1\">" . $cert_ca_expiration_date . "</font></td>\n"
|
- |
|
77 |
. " </tr>\n"
|
74 |
// . " <tr>\n"
|
78 |
// . " <tr>\n"
|
75 |
// . " <td valign=\"top\"><font size=\"-1\">" . $text['ip'] . "</font></td>\n"
|
79 |
// . " <td valign=\"top\"><font size=\"-1\">" . $text['ip'] . "</font></td>\n"
|
76 |
// . " <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Vitals/IPAddr" ) . "</font></td>\n"
|
80 |
// . " <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Vitals/IPAddr" ) . "</font></td>\n"
|
77 |
// . " </tr>\n"
|
81 |
// . " </tr>\n"
|
78 |
. " <tr>\n"
|
82 |
. " <tr>\n"
|