Subversion Repositories ALCASAR

Rev

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

Rev 1287 Rev 1478
Line 40... Line 40...
40
		. "    <IPAddr>" . htmlspecialchars( $show_vhostname ? $sysinfo->vip_addr() : $sysinfo->ip_addr(), ENT_QUOTES ) . "</IPAddr>\n"
40
		. "    <IPAddr>" . htmlspecialchars( $show_vhostname ? $sysinfo->vip_addr() : $sysinfo->ip_addr(), ENT_QUOTES ) . "</IPAddr>\n"
41
		. "    <Kernel>" . htmlspecialchars( $sysinfo->kernel(), ENT_QUOTES ) . "</Kernel>\n"
41
		. "    <Kernel>" . htmlspecialchars( $sysinfo->kernel(), ENT_QUOTES ) . "</Kernel>\n"
42
		. "    <Distro>" . htmlspecialchars( $sysinfo->distro(), ENT_QUOTES ) . "</Distro>\n"
42
		. "    <Distro>" . htmlspecialchars( $sysinfo->distro(), ENT_QUOTES ) . "</Distro>\n"
43
		. "    <Distroicon>" . htmlspecialchars( $sysinfo->distroicon(), ENT_QUOTES ) . "</Distroicon>\n"
43
		. "    <Distroicon>" . htmlspecialchars( $sysinfo->distroicon(), ENT_QUOTES ) . "</Distroicon>\n"
44
		. "    <Uptime>" . htmlspecialchars( $sysinfo->uptime(), ENT_QUOTES ) . "</Uptime>\n"
44
		. "    <Uptime>" . htmlspecialchars( $sysinfo->uptime(), ENT_QUOTES ) . "</Uptime>\n"
45
		. "    <Users>" . htmlspecialchars( $sysinfo->users(), ENT_QUOTES ) . "</Users>\n"
45
//		. "    <Users>" . htmlspecialchars( $sysinfo->users(), ENT_QUOTES ) . "</Users>\n"
46
		. "    <LoadAvg>" . htmlspecialchars( trim( $strLoadavg ), ENT_QUOTES ) . "</LoadAvg>\n";
46
		. "    <LoadAvg>" . htmlspecialchars( trim( $strLoadavg ), ENT_QUOTES ) . "</LoadAvg>\n";
47
	if( isset( $arrBuf['cpupercent'] ) ) {
47
	if( isset( $arrBuf['cpupercent'] ) ) {
48
		$_text .= "   <CPULoad>" . htmlspecialchars( round( $arrBuf['cpupercent'], 2 ), ENT_QUOTES ) . "</CPULoad>";
48
		$_text .= "   <CPULoad>" . htmlspecialchars( round( $arrBuf['cpupercent'], 2 ), ENT_QUOTES ) . "</CPULoad>";
49
	}
49
	}
50
	$_text .= "  </Vitals>\n";
50
	$_text .= "  </Vitals>\n";
Line 94... Line 94...
94
		. "  </tr>\n"
94
		. "  </tr>\n"
95
		. "  <tr>\n"
95
		. "  <tr>\n"
96
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['uptime'] . "</font></td>\n"
96
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['uptime'] . "</font></td>\n"
97
		. "    <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"
98
		. "  </tr>\n"
98
		. "  </tr>\n"
99
		. "  <tr>\n"
99
//		. "  <tr>\n"
100
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['users'] . "</font></td>\n"
100
//		. "    <td valign=\"top\"><font size=\"-1\">" . $text['users'] . "</font></td>\n"
101
		. "    <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Vitals/Users" ) . "</font></td>\n"
101
//		. "    <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Vitals/Users" ) . "</font></td>\n"
102
		. "  </tr>\n"
102
//		. "  </tr>\n"
103
		. "  <tr>\n"
103
		. "  <tr>\n"
104
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['loadavg'] . "</font></td>\n"
104
		. "    <td valign=\"top\"><font size=\"-1\">" . $text['loadavg'] . "</font></td>\n"
105
		. "    <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Vitals/LoadAvg" ) . $strLoadbar . "</font></td>\n"
105
		. "    <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Vitals/LoadAvg" ) . $strLoadbar . "</font></td>\n"
106
		. "  </tr>\n"
106
		. "  </tr>\n"
107
		. "</table>\n";
107
		. "</table>\n";