Subversion Repositories ALCASAR

Rev

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

Rev 1743 Rev 1744
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'");
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");
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");
68
	if( $XPath->match( "/phpsysinfo/Vitals/CPULoad" ) )
68
	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" ) . "%";
69
		$strLoadbar = "<br>" . create_bargraph( $XPath->getData( "/phpsysinfo/Vitals/CPULoad" ), 100, $scale_factor ) . "&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/CPULoad" ) . "%";
70
	
70
	
71
	$_text = "<table border=\"0\" width=\"100%\" align=\"center\">\n"
71
	$_text = "<table border=\"0\" width=\"100%\" align=\"center\">\n"