Subversion Repositories ALCASAR

Rev

Rev 1744 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1744 Rev 1750
Line 61... Line 61...
61
	$textdir = direction();
61
	$textdir = direction();
62
	$scale_factor = 2;
62
	$scale_factor = 2;
63
	$strLoadbar = "";
63
	$strLoadbar = "";
64
	$uptime = "";
64
	$uptime = "";
65
	$date = exec ("/bin/date");
65
	$date = exec ("/bin/date");
66
	$ndd = exec("/bin/openssl x509 -noout -subject -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^subject/s/^.*CN=//p' | cut -d'/' -f 1");
-
 
67
	$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
	$cert_ca_expiration_date = exec ("sudo /usr/bin/openssl x509 -noout -in /etc/pki/tls/certs/alcasar.crt -dates|grep After|cut -d\"=\" -f2");
68
	if( $XPath->match( "/phpsysinfo/Vitals/CPULoad" ) )
67
	if( $XPath->match( "/phpsysinfo/Vitals/CPULoad" ) )
69
		$strLoadbar = "<br>" . create_bargraph( $XPath->getData( "/phpsysinfo/Vitals/CPULoad" ), 100, $scale_factor ) . "&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/CPULoad" ) . "%";
68
		$strLoadbar = "<br>" . create_bargraph( $XPath->getData( "/phpsysinfo/Vitals/CPULoad" ), 100, $scale_factor ) . "&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/CPULoad" ) . "%";
70
	
69
	
71
	$_text = "<table border=\"0\" width=\"100%\" align=\"center\">\n"
70
	$_text = "<table border=\"0\" width=\"100%\" align=\"center\">\n"
72
		. "  <tr>\n"
71
		. "  <tr>\n"
73
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['hostname'] . "</font></td>\n"
72
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['hostname'] . "</font></td>\n"
74
		. "    <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Vitals/Hostname" ) . "</font></td>\n"
73
		. "    <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Vitals/Hostname" ) . "</font></td>\n"
75
		. "  </tr>\n"
74
		. "  </tr>\n"
76
		. "  <tr>\n"
75
		. "  <tr>\n"
77
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['domain'] . "</font></td>\n"
-
 
78
		. "    <td><font size=\"-1\">" . $ndd . "</font></td>\n"
-
 
79
		. "  </tr>\n"
-
 
80
		. "  <tr>\n"
-
 
81
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['cert_expiration_date'] . "</font></td>\n"
76
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['cert_expiration_date'] . "</font></td>\n"
82
		. "    <td><font size=\"-1\">" . $cert_ca_expiration_date . "</font></td>\n"
77
		. "    <td><font size=\"-1\">" . $cert_ca_expiration_date . "</font></td>\n"
83
		. "  </tr>\n"
78
		. "  </tr>\n"
84
//		. "  <tr>\n"
79
//		. "  <tr>\n"
85
//		. "    <td valign=\"top\"><font size=\"-1\">" . $text['ip'] . "</font></td>\n"
80
//		. "    <td valign=\"top\"><font size=\"-1\">" . $text['ip'] . "</font></td>\n"