Subversion Repositories ALCASAR

Rev

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

Rev 648 Rev 1287
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
	$date = exec ("/bin/date");
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
	$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" ) )
67
	if( $XPath->match( "/phpsysinfo/Vitals/CPULoad" ) )
67
		$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" ) . "%";
68
	
69
	
69
	$_text = "<table border=\"0\" width=\"100%\" align=\"center\">\n"
70
	$_text = "<table border=\"0\" width=\"100%\" align=\"center\">\n"
Line 86... Line 87...
86
		. "  <tr>\n"
87
		. "  <tr>\n"
87
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['dversion'] . "</font></td>\n"
88
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['dversion'] . "</font></td>\n"
88
		. "    <td><img width=\"16\" height=\"16\" alt=\"\" src=\"" . $webpath . "images/" . $XPath->getData( "/phpsysinfo/Vitals/Distroicon" ) . "\">&nbsp;<font size=\"-1\">" . $XPath->getData("/phpsysinfo/Vitals/Distro") . "</font></td>\n"
89
		. "    <td><img width=\"16\" height=\"16\" alt=\"\" src=\"" . $webpath . "images/" . $XPath->getData( "/phpsysinfo/Vitals/Distroicon" ) . "\">&nbsp;<font size=\"-1\">" . $XPath->getData("/phpsysinfo/Vitals/Distro") . "</font></td>\n"
89
		. "  </tr>\n"
90
		. "  </tr>\n"
90
		. "  <tr>\n"
91
		. "  <tr>\n"
-
 
92
		. "    <td valign=\"top\"><font size=\"-1\">" . "Date" . "</font></td>\n"
-
 
93
		. "    <td><font size=\"-1\">" . $date . "</font></td>\n"
-
 
94
		. "  </tr>\n"
-
 
95
		. "  <tr>\n"
91
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['uptime'] . "</font></td>\n"
96
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['uptime'] . "</font></td>\n"
92
		. "    <td><font size=\"-1\">" . uptime( $XPath->getData( "/phpsysinfo/Vitals/Uptime" ) ) . "</font></td>\n"
97
		. "    <td><font size=\"-1\">" . uptime( $XPath->getData( "/phpsysinfo/Vitals/Uptime" ) ) . "</font></td>\n"
93
		. "  </tr>\n"
98
		. "  </tr>\n"
94
		. "  <tr>\n"
99
		. "  <tr>\n"
95
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['users'] . "</font></td>\n"
100
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['users'] . "</font></td>\n"