First commit 18/08/2000
This commit is contained in:
0
otros/includes/DEADJOE
Normal file
0
otros/includes/DEADJOE
Normal file
225
otros/includes/class.FreeBSD.inc.php
Normal file
225
otros/includes/class.FreeBSD.inc.php
Normal file
@ -0,0 +1,225 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: class.FreeBSD.inc.php,v 1.1 2001/08/05 08:56:37 jengo Exp $
|
||||
//
|
||||
|
||||
echo "<center><b>Note: The FreeBSD version of phpSysInfo is work in progress, some things currently don't work</b></center>";
|
||||
|
||||
class sysinfo
|
||||
{
|
||||
function grab_key($key)
|
||||
{
|
||||
$s = `sysctl $key`;
|
||||
$s = ereg_replace($key . ': ','',$s);
|
||||
return $s;
|
||||
}
|
||||
|
||||
function hostname()
|
||||
{
|
||||
if ( !($result = getenv('SERVER_NAME')) ) {
|
||||
$result = "N.A.";
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
function chostname()
|
||||
{
|
||||
return `hostname`;
|
||||
}
|
||||
|
||||
function ip_addr()
|
||||
{
|
||||
if (!($result = getenv('SERVER_ADDR'))) {
|
||||
$result = gethostbyname(sys_chostname());
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
function kernel()
|
||||
{
|
||||
$s = $this->grab_key('kern.version');
|
||||
$a = explode(':',$s);
|
||||
return $a[0];
|
||||
}
|
||||
|
||||
function uptime()
|
||||
{
|
||||
$a = explode(' ',$this->grab_key('kern.boottime'));
|
||||
$sys_ticks = $a[6];
|
||||
|
||||
$min = $sys_ticks / 60;
|
||||
$hours = $min / 60;
|
||||
$days = floor( $hours / 24 );
|
||||
$hours = floor( $hours - ($days * 24) );
|
||||
$min = floor( $min - ($days * 60 * 24) - ($hours * 60) );
|
||||
|
||||
if ( $days != 0 ) {
|
||||
$result = "$days days, ";
|
||||
}
|
||||
|
||||
if ( $hours != 0 ) {
|
||||
$result .= "$hours hours, ";
|
||||
}
|
||||
$result .= "$min minutes";
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
function users()
|
||||
{
|
||||
return trim(`/usr/bin/who | wc -l`);
|
||||
}
|
||||
|
||||
function loadavg()
|
||||
{
|
||||
$s = $this->grab_key('vm.loadavg');
|
||||
$s = ereg_replace('{ ','',$s);
|
||||
$s = ereg_replace(' }','',$s);
|
||||
$results = explode(' ',$s);
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
// This currently only works on single CPU systems.
|
||||
// I do not have a dual CPU machine to make it work
|
||||
function cpu_info()
|
||||
{
|
||||
$results = array();
|
||||
$ar_buf = array();
|
||||
|
||||
$results['model'] = $this->grab_key('hw.model');
|
||||
$results['cpus'] = $this->grab_key('hw.ncpu');
|
||||
|
||||
/* if ($fd = fopen('/proc/cpuinfo', 'r'))
|
||||
{
|
||||
while ($buf = fgets($fd, 4096))
|
||||
{
|
||||
list($key, $value) = preg_split('/\s+:\s+/', trim($buf), 2);
|
||||
|
||||
// All of the tags here are highly architecture dependant.
|
||||
// the only way I could reconstruct them for machines I don't
|
||||
// have is to browse the kernel source. So if your arch isn't
|
||||
// supported, tell me you want it written in. <infinite@sigkill.com>
|
||||
switch ($key)
|
||||
{
|
||||
case 'model name':
|
||||
$results['model'] = $value;
|
||||
break;
|
||||
case 'cpu MHz':
|
||||
$results['mhz'] = sprintf('%.2f', $value);
|
||||
break;
|
||||
case 'clock': // For PPC arch (damn borked POS)
|
||||
$results['mhz'] = sprintf('%.2f', $value);
|
||||
break;
|
||||
case 'cpu': // For PPC arch (damn borked POS)
|
||||
$results['model'] = $value;
|
||||
break;
|
||||
case 'revision': // For PPC arch (damn borked POS)
|
||||
$results['model'] .= ' ( rev: ' . $value . ')';
|
||||
break;
|
||||
case 'cache size':
|
||||
$results['cache'] = $value;
|
||||
break;
|
||||
case 'bogomips':
|
||||
$results['bogomips'] += $value;
|
||||
break;
|
||||
case 'processor':
|
||||
$results['cpus'] += 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
fclose($fd);
|
||||
}
|
||||
|
||||
*/
|
||||
$keys = compat_array_keys( $results );
|
||||
$keys2be = array( "model", "mhz", "cache", "bogomips", "cpus" );
|
||||
|
||||
while ( $ar_buf = each( $keys2be ) ) {
|
||||
if (! compat_in_array( $ar_buf[1], $keys ) ) {
|
||||
$results[$ar_buf[1]] = 'N.A.';
|
||||
}
|
||||
}
|
||||
|
||||
return $results;
|
||||
|
||||
}
|
||||
|
||||
function pci()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
function ide()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
function scsi()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
function network()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
function memory()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
function filesystems()
|
||||
{
|
||||
$df = `/bin/df -kP`;
|
||||
$mounts = split( "\n", $df );
|
||||
$fstype = array();
|
||||
|
||||
$s = `mount`;
|
||||
$lines = explode("\n",$s);
|
||||
|
||||
$i = 0;
|
||||
while (list(,$line) = each($lines)) {
|
||||
ereg('(.*) \((.*)\,(.*)\)',$line,$a);
|
||||
|
||||
$m = explode(' ',$a[0]);
|
||||
$fsdev[$m[0]] = $a[2];
|
||||
}
|
||||
|
||||
for ( $i = 1; $i < sizeof($mounts) - 1; $i++ ) {
|
||||
$ar_buf = preg_split("/\s+/", $mounts[$i], 6);
|
||||
|
||||
$results[$i - 1] = array();
|
||||
|
||||
$results[$i - 1]['disk'] = $ar_buf[0];
|
||||
$results[$i - 1]['size'] = $ar_buf[1];
|
||||
$results[$i - 1]['used'] = $ar_buf[2];
|
||||
$results[$i - 1]['free'] = $ar_buf[3];
|
||||
$results[$i - 1]['percent'] = $ar_buf[4];
|
||||
$results[$i - 1]['mount'] = $ar_buf[5];
|
||||
($fstype[$ar_buf[5]]) ? $results[$i - 1]['fstype'] = $fstype[$ar_buf[5]] : $results[$i - 1]['fstype'] = $fsdev[$ar_buf[0]];
|
||||
}
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
}
|
439
otros/includes/class.Linux.inc.php
Normal file
439
otros/includes/class.Linux.inc.php
Normal file
@ -0,0 +1,439 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: class.Linux.inc.php,v 1.3 2001/08/03 18:45:14 precision Exp $
|
||||
//
|
||||
|
||||
class sysinfo
|
||||
{
|
||||
function vhostname()
|
||||
{
|
||||
if (! ($result = getenv('SERVER_NAME'))) {
|
||||
$result = 'N.A.';
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
function chostname()
|
||||
{
|
||||
if ($fp = fopen('/proc/sys/kernel/hostname','r')) {
|
||||
$result = trim(fgets($fp, 4096));
|
||||
fclose($fp);
|
||||
$result = gethostbyaddr(gethostbyname($result));
|
||||
} else {
|
||||
$result = 'N.A.';
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
function ip_addr()
|
||||
{
|
||||
if (!($result = getenv('SERVER_ADDR'))) {
|
||||
$result = gethostbyname(sys_chostname());
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
function kernel()
|
||||
{
|
||||
if ($fd = fopen('/proc/version', 'r'))
|
||||
{
|
||||
$buf = fgets($fd, 4096);
|
||||
fclose($fd);
|
||||
|
||||
if (preg_match('/version (.*?) /', $buf, $ar_buf)) {
|
||||
$result = $ar_buf[1];
|
||||
|
||||
if (preg_match('/SMP/', $buf)) {
|
||||
$result .= ' (SMP)';
|
||||
}
|
||||
} else {
|
||||
$result = 'N.A.';
|
||||
}
|
||||
} else {
|
||||
$result = 'N.A.';
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
function uptime()
|
||||
{
|
||||
global $text;
|
||||
$fd = fopen('/proc/uptime', 'r');
|
||||
$ar_buf = split(' ', fgets($fd, 4096));
|
||||
fclose($fd);
|
||||
|
||||
$sys_ticks = trim($ar_buf[0]);
|
||||
|
||||
$min = $sys_ticks / 60;
|
||||
$hours = $min / 60;
|
||||
$days = floor($hours / 24);
|
||||
$hours = floor($hours - ($days * 24));
|
||||
$min = floor($min - ($days * 60 * 24) - ($hours * 60));
|
||||
|
||||
if ($days != 0) {
|
||||
$result = "$days ".$text['days']." ";
|
||||
}
|
||||
|
||||
if ($hours != 0) {
|
||||
$result .= "$hours ".$text['hours']." ";
|
||||
}
|
||||
$result .= "$min ".$text['minutes'];
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
function users()
|
||||
{
|
||||
$who = split('=', execute_program('who', '-q'));
|
||||
$result = $who[1];
|
||||
return $result;
|
||||
}
|
||||
|
||||
function loadavg()
|
||||
{
|
||||
if ($fd = fopen('/proc/loadavg', 'r')) {
|
||||
$results = split(' ', fgets($fd, 4096));
|
||||
fclose($fd);
|
||||
} else {
|
||||
$results = array('N.A.','N.A.','N.A.');
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
function cpu_info()
|
||||
{
|
||||
$results = array();
|
||||
$ar_buf = array();
|
||||
|
||||
if ($fd = fopen('/proc/cpuinfo', 'r')) {
|
||||
while ($buf = fgets($fd, 4096)) {
|
||||
list($key, $value) = preg_split('/\s+:\s+/', trim($buf), 2);
|
||||
|
||||
// All of the tags here are highly architecture dependant.
|
||||
// the only way I could reconstruct them for machines I don't
|
||||
// have is to browse the kernel source. So if your arch isn't
|
||||
// supported, tell me you want it written in. <infinite@sigkill.com>
|
||||
switch ($key) {
|
||||
case 'model name':
|
||||
$results['model'] = $value;
|
||||
break;
|
||||
case 'cpu MHz':
|
||||
$results['mhz'] = sprintf('%.2f', $value);
|
||||
break;
|
||||
case 'clock': // For PPC arch (damn borked POS)
|
||||
$results['mhz'] = sprintf('%.2f', $value);
|
||||
break;
|
||||
case 'cpu': // For PPC arch (damn borked POS)
|
||||
$results['model'] = $value;
|
||||
break;
|
||||
case 'revision': // For PPC arch (damn borked POS)
|
||||
$results['model'] .= ' ( rev: ' . $value . ')';
|
||||
break;
|
||||
case 'cache size':
|
||||
$results['cache'] = $value;
|
||||
break;
|
||||
case 'bogomips':
|
||||
$results['bogomips'] += $value;
|
||||
break;
|
||||
case 'processor':
|
||||
$results['cpus'] += 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
fclose($fd);
|
||||
}
|
||||
|
||||
$keys = compat_array_keys($results);
|
||||
$keys2be = array('model', 'mhz', 'cache', 'bogomips', 'cpus');
|
||||
|
||||
while ($ar_buf = each($keys2be)) {
|
||||
if (! compat_in_array($ar_buf[1], $keys)) {
|
||||
$results[$ar_buf[1]] = 'N.A.';
|
||||
}
|
||||
}
|
||||
return $results;
|
||||
|
||||
}
|
||||
|
||||
function pci()
|
||||
{
|
||||
$results = array();
|
||||
|
||||
if ($fd = fopen('/proc/pci', 'r')) {
|
||||
while ($buf = fgets($fd, 4096)) {
|
||||
if (preg_match('/Bus/', $buf)) {
|
||||
$device = 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($device) {
|
||||
list($key, $value) = split(': ', $buf, 2);
|
||||
|
||||
if (!preg_match('/bridge/i', $key) && !preg_match('/USB/i', $key)) {
|
||||
$results[] = preg_replace('/\([^\)]+\)\.$/', '', trim($value));
|
||||
}
|
||||
$device = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
function ide()
|
||||
{
|
||||
$results = array();
|
||||
|
||||
$handle = opendir('/proc/ide');
|
||||
|
||||
while ($file = readdir($handle)) {
|
||||
if (preg_match('/^hd/', $file)) {
|
||||
$results[$file] = array();
|
||||
|
||||
// Check if device is CD-ROM (CD-ROM capacity shows as 1024 GB)
|
||||
if ($fd = fopen("/proc/ide/$file/media", 'r')) {
|
||||
$results[$file]['media'] = trim(fgets($fd, 4096));
|
||||
if ($results[$file]['media'] == 'disk') {
|
||||
$results[$file]['media'] = 'Hard Disk';
|
||||
}
|
||||
|
||||
if ($results[$file]['media'] == 'cdrom') {
|
||||
$results[$file]['media'] = 'CD-ROM';
|
||||
}
|
||||
fclose($fd);
|
||||
}
|
||||
|
||||
if ($fd = fopen("/proc/ide/$file/model", 'r')) {
|
||||
$results[$file]['model'] = trim(fgets($fd, 4096));
|
||||
if (preg_match('/WDC/', $results[$file]['model'])) {
|
||||
$results[$file]['manufacture'] = 'Western Digital';
|
||||
|
||||
} elseif (preg_match('/IBM/', $results[$file]['model'])) {
|
||||
$results[$file]['manufacture'] = 'IBM';
|
||||
|
||||
} elseif (preg_match('/FUJITSU/', $results[$file]['model'])) {
|
||||
$results[$file]['manufacture'] = 'Fujitsu';
|
||||
|
||||
} else {
|
||||
$results[$file]['manufacture'] = 'Unknown';
|
||||
}
|
||||
|
||||
fclose($fd);
|
||||
}
|
||||
|
||||
if ($fd = fopen("/proc/ide/$file/capacity", 'r')) {
|
||||
$results[$file]['capacity'] = trim(fgets($fd, 4096));
|
||||
if ($results[$file]['media'] == 'CD-ROM') {
|
||||
unset($results[$file]['capacity']);
|
||||
}
|
||||
fclose($fd);
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
function scsi()
|
||||
{
|
||||
$results = array();
|
||||
$dev_vendor = '';
|
||||
$dev_model = '';
|
||||
$dev_rev = '';
|
||||
$dev_type = '';
|
||||
|
||||
if ($fd = fopen('/proc/scsi/scsi', 'r')) {
|
||||
while ($buf = fgets($fd, 4096)) {
|
||||
if (preg_match('/Vendor/', $buf)) {
|
||||
preg_match('/Vendor: (.*) Model: (.*) Rev: (.*)/i', $buf, $dev);
|
||||
list($key, $value) = split(': ', $buf, 2);
|
||||
$dev_str = $value;
|
||||
$get_type = 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($get_type) {
|
||||
preg_match('/Type:\s+(\S+)/i', $buf, $dev_type);
|
||||
$results[] = "$dev[1] $dev[2] ( $dev_type[1] )";
|
||||
$get_type = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
function network()
|
||||
{
|
||||
$results = array();
|
||||
|
||||
if ($fd = fopen('/proc/net/dev', 'r')) {
|
||||
while ($buf = fgets($fd, 4096)) {
|
||||
if (preg_match('/:/', $buf)) {
|
||||
list($dev_name, $stats_list) = preg_split('/:/', $buf, 2);
|
||||
$stats = preg_split('/\s+/', trim($stats_list));
|
||||
$results[$dev_name] = array();
|
||||
|
||||
$results[$dev_name]['rx_bytes'] = $stats[0];
|
||||
$results[$dev_name]['rx_packets'] = $stats[1];
|
||||
$results[$dev_name]['rx_errs'] = $stats[2];
|
||||
$results[$dev_name]['rx_drop'] = $stats[3];
|
||||
|
||||
$results[$dev_name]['tx_bytes'] = $stats[8];
|
||||
$results[$dev_name]['tx_packets'] = $stats[9];
|
||||
$results[$dev_name]['tx_errs'] = $stats[10];
|
||||
$results[$dev_name]['tx_drop'] = $stats[11];
|
||||
|
||||
$results[$dev_name]['errs'] = $stats[2] + $stats[10];
|
||||
$results[$dev_name]['drop'] = $stats[3] + $stats[11];
|
||||
}
|
||||
}
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
function memory()
|
||||
{
|
||||
if ($fd = fopen('/proc/meminfo', 'r')) {
|
||||
while ($buf = fgets($fd, 4096)) {
|
||||
if (preg_match('/Mem:\s+(.*)$/', $buf, $ar_buf)) {
|
||||
$ar_buf = preg_split('/\s+/', $ar_buf[1], 6);
|
||||
|
||||
$results['ram'] = array();
|
||||
|
||||
$results['ram']['total'] = $ar_buf[0] / 1024;
|
||||
$results['ram']['used'] = $ar_buf[1] / 1024;
|
||||
$results['ram']['free'] = $ar_buf[2] / 1024;
|
||||
$results['ram']['shared'] = $ar_buf[3] / 1024;
|
||||
$results['ram']['buffers'] = $ar_buf[4] / 1024;
|
||||
$results['ram']['cached'] = $ar_buf[5] / 1024;
|
||||
|
||||
$results['ram']['t_used'] = $results['ram']['used'] - $results['ram']['cached'] - $results['ram']['buffers'];
|
||||
$results['ram']['t_free'] = $results['ram']['total'] - $results['ram']['t_used'];
|
||||
$results['ram']['percent'] = round(($results['ram']['t_used'] * 100) / $results['ram']['total']);
|
||||
}
|
||||
|
||||
if (preg_match('/Swap:\s+(.*)$/', $buf, $ar_buf)) {
|
||||
$ar_buf = preg_split('/\s+/', $ar_buf[1], 3);
|
||||
|
||||
$results['swap'] = array();
|
||||
|
||||
$results['swap']['total'] = $ar_buf[0] / 1024;
|
||||
$results['swap']['used'] = $ar_buf[1] / 1024;
|
||||
$results['swap']['free'] = $ar_buf[2] / 1024;
|
||||
$results['swap']['percent'] = round(($ar_buf[1] * 100) / $ar_buf[0]);
|
||||
|
||||
// Get info on individual swap files
|
||||
$swaps = file ('/proc/swaps');
|
||||
$swapdevs = split("\n", $swaps);
|
||||
|
||||
for ($i = 1; $i < (sizeof($swapdevs) - 1); $i++) {
|
||||
$ar_buf = preg_split('/\s+/', $swapdevs[$i], 6);
|
||||
|
||||
$results['devswap'][$i - 1] = array();
|
||||
$results['devswap'][$i - 1]['dev'] = $ar_buf[0];
|
||||
$results['devswap'][$i - 1]['total'] = $ar_buf[2];
|
||||
$results['devswap'][$i - 1]['used'] = $ar_buf[3];
|
||||
$results['devswap'][$i - 1]['free'] = ($results['devswap'][$i - 1]['total'] - $results['devswap'][$i - 1]['used']);
|
||||
$results['devswap'][$i - 1]['percent'] = round(($ar_buf[3] * 100) / $ar_buf[2]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
fclose($fd);
|
||||
} else {
|
||||
$results['ram'] = array();
|
||||
$results['swap'] = array();
|
||||
$results['devswap'] = array();
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
function filesystems()
|
||||
{
|
||||
$df = execute_program('df', '-kP');
|
||||
$mounts = split("\n", $df);
|
||||
$fstype = array();
|
||||
|
||||
if ($fd = fopen('/proc/mounts', 'r')) {
|
||||
while ($buf = fgets($fd, 4096)) {
|
||||
list($dev, $mpoint, $type) = preg_split('/\s+/', trim($buf), 4);
|
||||
$fstype[$mpoint] = $type;
|
||||
$fsdev[$dev] = $type;
|
||||
}
|
||||
fclose($fd);
|
||||
}
|
||||
|
||||
for ($i = 1; $i < sizeof($mounts); $i++) {
|
||||
$ar_buf = preg_split('/\s+/', $mounts[$i], 6);
|
||||
|
||||
$results[$i - 1] = array();
|
||||
|
||||
$results[$i - 1]['disk'] = $ar_buf[0];
|
||||
$results[$i - 1]['size'] = $ar_buf[1];
|
||||
$results[$i - 1]['used'] = $ar_buf[2];
|
||||
$results[$i - 1]['free'] = $ar_buf[3];
|
||||
$results[$i - 1]['percent'] = round(($results[$i - 1]['used'] * 100) / $results[$i - 1]['size']) . '%';
|
||||
$results[$i - 1]['mount'] = $ar_buf[5];
|
||||
($fstype[$ar_buf[5]]) ? $results[$i - 1]['fstype'] = $fstype[$ar_buf[5]] : $results[$i - 1]['fstype'] = $fsdev[$ar_buf[0]];
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
// Return an array of ofr informtaion about
|
||||
// about network connections
|
||||
function sys_connections ()
|
||||
{
|
||||
$netstat = execute_program('netstat', '-n');
|
||||
$connections = explode("\n", $netstat);
|
||||
$return = array();
|
||||
|
||||
reset($connections);
|
||||
while (list(, $connection) = each ($connections)) {
|
||||
if (stristr($connection, "ESTABLISHED")) {
|
||||
$return[$i]['prot'] = trim(substr($connection,0,5));
|
||||
$laddr = trim(substr($connection,20,23));
|
||||
//$return[$i]['laddr'] = @gethostbyaddr(substr($laddr, 0, strpos($laddr, ":"))); // uncomment for dns lookup
|
||||
$return[$i]['laddr'] = substr($laddr, 0, strpos($laddr, ":"));
|
||||
$lport = substr(strstr($laddr,":"),1);
|
||||
|
||||
// NOTE: getservbyport is a PHP 4 >= 4.0b4) function.
|
||||
if ($servname = getservbyport ($lport, $return[$i]['prot'])) {
|
||||
$lport .= " ($servname)";
|
||||
}
|
||||
|
||||
$return[$i]['lport'] = $lport;
|
||||
$faddr = trim(substr($connection,44,23));
|
||||
//$return[$i]['faddr'] = @gethostbyaddr(substr($faddr, 0, strpos($faddr, ":"))); // uncomment for dns lookup
|
||||
$return[$i]['faddr'] = substr($faddr, 0, strpos($faddr, ":"));
|
||||
$fport = substr(strstr($faddr,":"),1);
|
||||
|
||||
// NOTE: getservbyport is a PHP 4 >= 4.0b4 function.
|
||||
if ($servname = getservbyport ($fport, $return[$i]['prot'])) {
|
||||
$fport .= " ($servname)";
|
||||
}
|
||||
|
||||
$return[$i]['fport'] = $fport;
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
} // End of class
|
389
otros/includes/class.Template.inc.php
Normal file
389
otros/includes/class.Template.inc.php
Normal file
@ -0,0 +1,389 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* phpGroupWare API - Template class *
|
||||
* (C) Copyright 1999-2000 NetUSE GmbH Kristian Koehntopp *
|
||||
* ------------------------------------------------------------------------ *
|
||||
* This is not part of phpGroupWare, but is used by phpGroupWare. *
|
||||
* http://www.phpgroupware.org/ *
|
||||
* ------------------------------------------------------------------------ *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms of the GNU Lesser General Public License as published *
|
||||
* by the Free Software Foundation; either version 2.1 of the License, or *
|
||||
* any later version. *
|
||||
\**************************************************************************/
|
||||
|
||||
/* $Id: class.Template.inc.php,v 1.1.1.1 2001/05/18 20:46:42 precision Exp $ */
|
||||
|
||||
class Template {
|
||||
var $classname = "Template";
|
||||
|
||||
/* if set, echo assignments */
|
||||
var $debug = false;
|
||||
|
||||
/* $file[handle] = "filename"; */
|
||||
var $file = array();
|
||||
|
||||
/* relative filenames are relative to this pathname */
|
||||
var $root = "";
|
||||
|
||||
/* $varkeys[key] = "key"; $varvals[key] = "value"; */
|
||||
var $varkeys = array();
|
||||
var $varvals = array();
|
||||
|
||||
/* "remove" => remove undefined variables
|
||||
* "comment" => replace undefined variables with comments
|
||||
* "keep" => keep undefined variables
|
||||
*/
|
||||
var $unknowns = "remove";
|
||||
|
||||
/* "yes" => halt, "report" => report error, continue, "no" => ignore error quietly */
|
||||
var $halt_on_error = "yes";
|
||||
|
||||
/* last error message is retained here */
|
||||
var $last_error = "";
|
||||
|
||||
|
||||
/***************************************************************************/
|
||||
/* public: Constructor.
|
||||
* root: template directory.
|
||||
* unknowns: how to handle unknown variables.
|
||||
*/
|
||||
function Template($root = ".", $unknowns = "remove") {
|
||||
$this->set_root($root);
|
||||
$this->set_unknowns($unknowns);
|
||||
}
|
||||
|
||||
/* public: setroot(pathname $root)
|
||||
* root: new template directory.
|
||||
*/
|
||||
function set_root($root) {
|
||||
if (!is_dir($root)) {
|
||||
$this->halt("set_root: $root is not a directory.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->root = $root;
|
||||
return true;
|
||||
}
|
||||
|
||||
/* public: set_unknowns(enum $unknowns)
|
||||
* unknowns: "remove", "comment", "keep"
|
||||
*
|
||||
*/
|
||||
function set_unknowns($unknowns = "keep") {
|
||||
$this->unknowns = $unknowns;
|
||||
}
|
||||
|
||||
/* public: set_file(array $filelist)
|
||||
* filelist: array of handle, filename pairs.
|
||||
*
|
||||
* public: set_file(string $handle, string $filename)
|
||||
* handle: handle for a filename,
|
||||
* filename: name of template file
|
||||
*/
|
||||
function set_file($handle, $filename = "") {
|
||||
if (!is_array($handle)) {
|
||||
if ($filename == "") {
|
||||
$this->halt("set_file: For handle $handle filename is empty.");
|
||||
return false;
|
||||
}
|
||||
$this->file[$handle] = $this->filename($filename);
|
||||
} else {
|
||||
reset($handle);
|
||||
while(list($h, $f) = each($handle)) {
|
||||
$this->file[$h] = $this->filename($f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* public: set_block(string $parent, string $handle, string $name = "")
|
||||
* extract the template $handle from $parent,
|
||||
* place variable {$name} instead.
|
||||
*/
|
||||
function set_block($parent, $handle, $name = "") {
|
||||
if (!$this->loadfile($parent)) {
|
||||
$this->halt("subst: unable to load $parent.");
|
||||
return false;
|
||||
}
|
||||
if ($name == "")
|
||||
$name = $handle;
|
||||
|
||||
$str = $this->get_var($parent);
|
||||
$reg = "/<!--\s+BEGIN $handle\s+-->(.*)\n\s*<!--\s+END $handle\s+-->/sm";
|
||||
preg_match_all($reg, $str, $m);
|
||||
$str = preg_replace($reg, "{" . "$name}", $str);
|
||||
$this->set_var($handle, $m[1][0]);
|
||||
$this->set_var($parent, $str);
|
||||
}
|
||||
|
||||
/* public: set_var(array $values)
|
||||
* values: array of variable name, value pairs.
|
||||
*
|
||||
* public: set_var(string $varname, string $value)
|
||||
* varname: name of a variable that is to be defined
|
||||
* value: value of that variable
|
||||
*/
|
||||
function set_var($varname, $value = "") {
|
||||
if (!is_array($varname)) {
|
||||
if (!empty($varname))
|
||||
if ($this->debug) print "scalar: set *$varname* to *$value*<br>\n";
|
||||
$this->varkeys[$varname] = "/".$this->varname($varname)."/";
|
||||
$this->varvals[$varname] = $value;
|
||||
} else {
|
||||
reset($varname);
|
||||
while(list($k, $v) = each($varname)) {
|
||||
if (!empty($k))
|
||||
if ($this->debug) print "array: set *$k* to *$v*<br>\n";
|
||||
$this->varkeys[$k] = "/".$this->varname($k)."/";
|
||||
$this->varvals[$k] = $v;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* public: subst(string $handle)
|
||||
* handle: handle of template where variables are to be substituted.
|
||||
*/
|
||||
function subst($handle) {
|
||||
if (!$this->loadfile($handle)) {
|
||||
$this->halt("subst: unable to load $handle.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$str = $this->get_var($handle);
|
||||
$str = @preg_replace($this->varkeys, $this->varvals, $str);
|
||||
return $str;
|
||||
}
|
||||
|
||||
/* public: psubst(string $handle)
|
||||
* handle: handle of template where variables are to be substituted.
|
||||
*/
|
||||
function psubst($handle) {
|
||||
print $this->subst($handle);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/* public: parse(string $target, string $handle, boolean append)
|
||||
* public: parse(string $target, array $handle, boolean append)
|
||||
* target: handle of variable to generate
|
||||
* handle: handle of template to substitute
|
||||
* append: append to target handle
|
||||
*/
|
||||
function parse($target, $handle, $append = false) {
|
||||
if (!is_array($handle)) {
|
||||
$str = $this->subst($handle);
|
||||
if ($append) {
|
||||
$this->set_var($target, $this->get_var($target) . $str);
|
||||
} else {
|
||||
$this->set_var($target, $str);
|
||||
}
|
||||
} else {
|
||||
reset($handle);
|
||||
while(list($i, $h) = each($handle)) {
|
||||
$str = $this->subst($h);
|
||||
$this->set_var($target, $str);
|
||||
}
|
||||
}
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
function pparse($target, $handle, $append = false) {
|
||||
print $this->parse($target, $handle, $append);
|
||||
return false;
|
||||
}
|
||||
|
||||
// This is short for finish parse
|
||||
function fp($target, $handle, $append = False)
|
||||
{
|
||||
return $this->finish($this->parse($target, $handle, $append));
|
||||
}
|
||||
|
||||
// This is a short cut for print finish parse
|
||||
function pfp($target, $handle, $append = False)
|
||||
{
|
||||
echo $this->finish($this->parse($target, $handle, $append));
|
||||
}
|
||||
|
||||
/* public: get_vars()
|
||||
*/
|
||||
function get_vars() {
|
||||
reset($this->varkeys);
|
||||
while(list($k, $v) = each($this->varkeys)) {
|
||||
$result[$k] = $this->varvals[$k];
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/* public: get_var(string varname)
|
||||
* varname: name of variable.
|
||||
*
|
||||
* public: get_var(array varname)
|
||||
* varname: array of variable names
|
||||
*/
|
||||
function get_var($varname) {
|
||||
if (!is_array($varname)) {
|
||||
return $this->varvals[$varname];
|
||||
} else {
|
||||
reset($varname);
|
||||
while(list($k, $v) = each($varname)) {
|
||||
$result[$k] = $this->varvals[$k];
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
/* public: get_undefined($handle)
|
||||
* handle: handle of a template.
|
||||
*/
|
||||
function get_undefined($handle) {
|
||||
if (!$this->loadfile($handle)) {
|
||||
$this->halt("get_undefined: unable to load $handle.");
|
||||
return false;
|
||||
}
|
||||
|
||||
preg_match_all("/\{([^}]+)\}/", $this->get_var($handle), $m);
|
||||
$m = $m[1];
|
||||
if (!is_array($m))
|
||||
return false;
|
||||
|
||||
reset($m);
|
||||
while(list($k, $v) = each($m)) {
|
||||
if (!isset($this->varkeys[$v]))
|
||||
$result[$v] = $v;
|
||||
}
|
||||
|
||||
if (count($result))
|
||||
return $result;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
/* public: finish(string $str)
|
||||
* str: string to finish.
|
||||
*/
|
||||
function finish($str) {
|
||||
switch ($this->unknowns) {
|
||||
case "keep":
|
||||
break;
|
||||
|
||||
case "remove":
|
||||
$str = preg_replace('/{[^ \t\r\n}]+}/', "", $str);
|
||||
break;
|
||||
|
||||
case "comment":
|
||||
$str = preg_replace('/{([^ \t\r\n}]+)}/', "<!-- Template $handle: Variable \\1 undefined -->", $str);
|
||||
break;
|
||||
}
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
/* public: p(string $varname)
|
||||
* varname: name of variable to print.
|
||||
*/
|
||||
function p($varname) {
|
||||
print $this->finish($this->get_var($varname));
|
||||
}
|
||||
|
||||
function get($varname) {
|
||||
return $this->finish($this->get_var($varname));
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
/* private: filename($filename)
|
||||
* filename: name to be completed.
|
||||
*/
|
||||
function filename($filename,$root='',$time=1) {
|
||||
global $phpgw_info;
|
||||
if($root=='')
|
||||
{
|
||||
$root=$this->root;
|
||||
}
|
||||
if (substr($filename, 0, 1) != "/") {
|
||||
$new_filename = $root.'/'.$filename;
|
||||
}
|
||||
else
|
||||
{
|
||||
$new_filename = $filename;
|
||||
}
|
||||
|
||||
if (!file_exists($new_filename))
|
||||
{
|
||||
if($time==2)
|
||||
{
|
||||
$this->halt("filename: file $new_filename does not exist.");
|
||||
}
|
||||
else
|
||||
{
|
||||
$new_root = str_replace($phpgw_info['server']['template_set'],'default',$root);
|
||||
$new_filename = $this->filename(str_replace($root.'/','',$new_filename),$new_root,2);
|
||||
}
|
||||
}
|
||||
|
||||
return $new_filename;
|
||||
}
|
||||
|
||||
/* private: varname($varname)
|
||||
* varname: name of a replacement variable to be protected.
|
||||
*/
|
||||
function varname($varname) {
|
||||
return preg_quote("{".$varname."}");
|
||||
}
|
||||
|
||||
/* private: loadfile(string $handle)
|
||||
* handle: load file defined by handle, if it is not loaded yet.
|
||||
*/
|
||||
function loadfile($handle) {
|
||||
if (isset($this->varkeys[$handle]) and !empty($this->varvals[$handle]))
|
||||
return true;
|
||||
|
||||
if (!isset($this->file[$handle])) {
|
||||
$this->halt("loadfile: $handle is not a valid handle.");
|
||||
return false;
|
||||
}
|
||||
$filename = $this->file[$handle];
|
||||
|
||||
$str = implode("", @file($filename));
|
||||
if (empty($str)) {
|
||||
$this->halt("loadfile: While loading $handle, $filename does not exist or is empty.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->set_var($handle, $str);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
/* public: halt(string $msg)
|
||||
* msg: error message to show.
|
||||
*/
|
||||
function halt($msg)
|
||||
{
|
||||
global $phpgw;
|
||||
|
||||
$this->last_error = $msg;
|
||||
|
||||
if ($this->halt_on_error != 'no')
|
||||
{
|
||||
$this->haltmsg($msg);
|
||||
}
|
||||
|
||||
if ($this->halt_on_error == 'yes')
|
||||
{
|
||||
echo('<b>Halted.</b>');
|
||||
}
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
/* public, override: haltmsg($msg)
|
||||
* msg: error message to show.
|
||||
*/
|
||||
function haltmsg($msg) {
|
||||
printf("<b>Template Error:</b> %s<br>\n", $msg);
|
||||
}
|
||||
}
|
48
otros/includes/color_scheme.php
Normal file
48
otros/includes/color_scheme.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: color_scheme.php,v 1.2 2001/05/29 00:51:06 precision Exp $
|
||||
|
||||
// Global Page Colors
|
||||
$bgcolor = "#fefefe";
|
||||
$textcolor = "#000000";
|
||||
$linkcolor = "#486591";
|
||||
$vlinkcolor = "#6f6c81";
|
||||
$alinkcolor = "#d5ae83";
|
||||
|
||||
// Header and Footer specific values.
|
||||
$mainline_color = "#2D71B0";
|
||||
$wrapline_color = "#ffffff";
|
||||
|
||||
// Values for any of the multi-device outputs.
|
||||
$default_row_color = "#ffffff";
|
||||
$highlight_row_color = "#eeeeee";
|
||||
|
||||
// Detail Table Colors
|
||||
$detail_header_color = "#486591";
|
||||
$detail_body_color = "#e6e6e6";
|
||||
$detail_border_color = "#000000";
|
||||
|
||||
// FONT TAGS
|
||||
$f_head_open = '<font color="#fefefe"><b>';
|
||||
$f_head_close = '</b></font>';
|
||||
$f_body_open = '<font size="-1">';
|
||||
$f_body_close = '</font>';
|
||||
|
||||
?>
|
112
otros/includes/common_functions.php
Normal file
112
otros/includes/common_functions.php
Normal file
@ -0,0 +1,112 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: common_functions.php,v 1.2 2001/08/03 18:45:55 precision Exp $
|
||||
|
||||
|
||||
// So that stupid warnings do not appear when we stats files that do not exist.
|
||||
error_reporting(5);
|
||||
|
||||
|
||||
// print out the bar graph
|
||||
function create_bargraph ($percent, $a, $b)
|
||||
{
|
||||
if ($percent == 0) {
|
||||
return '<img height="' . BAR_HEIGHT . '" src="templates/' . TEMPLATE_SET . '/images/bar_left.gif" alt="">'
|
||||
. '<img src="templates/' . TEMPLATE_SET . '/images/bar_middle.gif" height="' . BAR_HEIGHT . '" width="1" alt="">'
|
||||
. '<img src="templates/' . TEMPLATE_SET . '/images/bar_right.gif" height="' . BAR_HEIGHT . '" alt="">';
|
||||
} else if ($percent < 90) {
|
||||
return '<img height="' . BAR_HEIGHT . '" src="templates/' . TEMPLATE_SET . '/images/bar_left.gif" alt="">'
|
||||
. '<img src="templates/' . TEMPLATE_SET . '/images/bar_middle.gif" height="' . BAR_HEIGHT . '" width="' . ($a * $b) . '" alt="">'
|
||||
. '<img height="' . BAR_HEIGHT . '" src="templates/' . TEMPLATE_SET . '/images/bar_right.gif" alt="">';
|
||||
} else {
|
||||
return '<img height="' . BAR_HEIGHT . '" src="templates/' . TEMPLATE_SET . '/images/redbar_left.gif" alt="">'
|
||||
. '<img src="templates/' . TEMPLATE_SET . '/images/redbar_middle.gif" height="' . BAR_HEIGHT . '" width="' . ($a * $b) . '" alt="">'
|
||||
. '<img height="' . BAR_HEIGHT . '" src="templates/' . TEMPLATE_SET . '/images/redbar_right.gif" alt="">';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Execute a system function. Do path checking
|
||||
// return a trim()'d result.
|
||||
function execute_program ($program, $args)
|
||||
{
|
||||
$path = array( '/bin/', '/sbin/', '/usr/bin', '/usr/sbin', '/usr/local/bin', '/usr/local/sbin');
|
||||
$buffer = '';
|
||||
|
||||
while ($this_path = current($path)) {
|
||||
if (is_executable("$this_path/$program")) {
|
||||
if ($fp = popen("$this_path/$program $args", 'r')) {
|
||||
while (!feof($fp)) {
|
||||
$buffer .= fgets($fp, 4096);
|
||||
}
|
||||
return trim($buffer);
|
||||
}
|
||||
}
|
||||
next($path);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// function that emulate the compat_array_keys function of PHP4
|
||||
// for PHP3 compatability
|
||||
function compat_array_keys ($arr)
|
||||
{
|
||||
$result = array();
|
||||
|
||||
while (list($key, $val) = each($arr)) {
|
||||
$result[] = $key;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
// function that emulates the compat_in_array function of PHP4
|
||||
// for PHP3 compatability
|
||||
function compat_in_array ($value, $arr)
|
||||
{
|
||||
while (list($key,$val) = each($arr)) {
|
||||
if ($value == $val) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// A helper function, when passed a number representing KB,
|
||||
// and optionally the number of decimal places required,
|
||||
// it returns a formated number string, with unit identifier.
|
||||
function format_bytesize ($kbytes, $dec_places = 2)
|
||||
{
|
||||
global $text;
|
||||
if ($kbytes > 1048576) {
|
||||
$result = sprintf('%.' . $dec_places . 'f', $kbytes / 1048576);
|
||||
$result .= ' '.$text['gb'];
|
||||
} elseif ($kbytes > 1024) {
|
||||
$result = sprintf('%.' . $dec_places . 'f', $kbytes / 1024);
|
||||
$result .= ' '.$text['mb'];
|
||||
} else {
|
||||
$result = sprintf('%.' . $dec_places . 'f', $kbytes);
|
||||
$result .= ' '.$text['kb'];
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
?>
|
80
otros/includes/lang/br.php
Normal file
80
otros/includes/lang/br.php
Normal file
@ -0,0 +1,80 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: br.php,v 1.3 2001/09/13 00:24:12 precision Exp $
|
||||
// Translated by <20>lvaro Reguly - alvaro at reguly dot net
|
||||
|
||||
$text['title'] = 'Informa<6D><61>es do Sistema';
|
||||
|
||||
$text['vitals'] = 'Sistema';
|
||||
$text['hostname'] = 'Nome Can<61>nico';
|
||||
$text['ip'] = 'N<>meros IP';
|
||||
$text['kversion'] = 'Vers<72>o do Kernel';
|
||||
$text['uptime'] = 'Uptime';
|
||||
$text['users'] = 'Usu<73>rios Conectados';
|
||||
$text['loadavg'] = 'Carga do Sistema';
|
||||
|
||||
$text['hardware'] = 'Informa<6D><61>es do Hardware';
|
||||
$text['numcpu'] = 'Processadores';
|
||||
$text['cpumodel'] = 'Modelo';
|
||||
$text['mhz'] = 'MHz';
|
||||
$text['cache'] = 'Tamanho Cache';
|
||||
$text['bogomips'] = 'Bogomips';
|
||||
$text['pci'] = 'Dispositivos PCI';
|
||||
$text['ide'] = 'Dispositivos IDE';
|
||||
$text['scsi'] = 'Dispositivos SCSI';
|
||||
|
||||
$text['netusage'] = 'Utiliza<7A><61>o da Rede';
|
||||
$text['device'] = 'Dispositivo';
|
||||
$text['received'] = 'Recebidos';
|
||||
$text['sent'] = 'Enviados';
|
||||
$text['errors'] = 'Erros/Drop';
|
||||
|
||||
$text['memusage'] = 'Utiliza<7A><61>o da Mem<65>ria';
|
||||
$text['phymem'] = 'Mem<65>ria F<>sica';
|
||||
$text['swap'] = 'Swap';
|
||||
|
||||
$text['fs'] = 'Sistemas de Arquivo Montados';
|
||||
$text['mount'] = 'Mount';
|
||||
$text['partition'] = 'Parti<74><69>o';
|
||||
|
||||
$text['percent'] = 'Porcentual da Capacidade';
|
||||
$text['type'] = 'Tipo';
|
||||
$text['free'] = 'Livres';
|
||||
$text['used'] = 'Utilizados';
|
||||
$text['size'] = 'Tamanho';
|
||||
$text['totals'] = 'Totais';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'nenhum';
|
||||
|
||||
$text['capacity'] = 'Capacidade';
|
||||
|
||||
$text['template'] = 'Molde';
|
||||
$text['language'] = 'L<>ngua';
|
||||
$text['submit'] = 'Enviar';
|
||||
$text['created'] = 'Criado por';
|
||||
|
||||
$text['days'] = 'dias';
|
||||
$text['hours'] = 'horas';
|
||||
$text['minutes'] = 'minutos';
|
||||
?>
|
81
otros/includes/lang/cs.php
Normal file
81
otros/includes/lang/cs.php
Normal file
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: cs.php,v 1.1 2001/05/30 18:22:09 precision Exp $
|
||||
|
||||
$charset = 'iso-8859-2';
|
||||
|
||||
$text['title'] = 'Informace o syst<73>mu';
|
||||
|
||||
$text['vitals'] = 'Z<>sadn<64> informace';
|
||||
$text['hostname'] = 'Jm<4A>no po<70><6F>ta<74>e';
|
||||
$text['ip'] = 'IP adresa';
|
||||
$text['kversion'] = 'Verze j<>dra';
|
||||
$text['uptime'] = 'Uptime';
|
||||
$text['users'] = 'P<>ihl<68><6C>en<65>ch u<>ivatel<65>';
|
||||
$text['loadavg'] = 'Pr<50>m<EFBFBD>ru loadu';
|
||||
|
||||
$text['hardware'] = 'Hardwarov<6F> informace';
|
||||
$text['numcpu'] = 'Procesory';
|
||||
$text['cpumodel'] = 'Model';
|
||||
$text['mhz'] = 'Frekvence';
|
||||
$text['cache'] = 'Velikost cache';
|
||||
$text['bogomips'] = 'Bogomipsy';
|
||||
$text['pci'] = 'PCI za<7A><61>zen<65>';
|
||||
$text['ide'] = 'IDE za<7A><61>zen<65>';
|
||||
$text['scsi'] = 'SCSI za<7A><61>zen<65>';
|
||||
|
||||
$text['netusage'] = 'Pou<6F><75>v<EFBFBD>n<EFBFBD> s<>t<EFBFBD>';
|
||||
$text['device'] = 'Za<5A><61>zen<65>';
|
||||
$text['received'] = 'P<>ijato';
|
||||
$text['sent'] = 'Odesl<73>no';
|
||||
$text['errors'] = 'Chyby/Vypu<70>t<EFBFBD>no';
|
||||
|
||||
$text['memusage'] = 'Obsazen<65> pam<61>ti';
|
||||
$text['phymem'] = 'Fyzick<63> pam<61><6D>';
|
||||
$text['swap'] = 'Swap';
|
||||
|
||||
$text['fs'] = 'Namountovan<61> souborov<6F> syst<73>my';
|
||||
$text['mount'] = 'Adres<65><73>';
|
||||
$text['partition'] = 'Partition';
|
||||
|
||||
$text['percent'] = 'Obsazeno';
|
||||
$text['type'] = 'Typ';
|
||||
$text['free'] = 'Volno';
|
||||
$text['used'] = 'Pou<6F>ito';
|
||||
$text['size'] = 'Velikost';
|
||||
$text['totals'] = 'Celkem';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = '<27><>dn<64>';
|
||||
|
||||
$text['capacity'] = 'Kapacita';
|
||||
|
||||
$text['template'] = '<27>ablona';
|
||||
$text['language'] = 'Jazyk';
|
||||
$text['submit'] = 'Odeslat';
|
||||
$text['created'] = 'Vytvo<76>eno pomoc<6F>';
|
||||
|
||||
$text['days'] = 'dn<64>';
|
||||
$text['hours'] = 'hodin';
|
||||
$text['minutes'] = 'minut';
|
||||
?>
|
81
otros/includes/lang/da.php
Normal file
81
otros/includes/lang/da.php
Normal file
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: da.php,v 1.4 2001/05/31 17:15:10 precision Exp $
|
||||
|
||||
# Translated by Jonas Koch Bentzen (understroem.dk).
|
||||
|
||||
$text['title'] = 'Systeminformation';
|
||||
|
||||
$text['vitals'] = 'Systemenheder';
|
||||
$text['hostname'] = 'Kanonisk v<>rtsnavn';
|
||||
$text['ip'] = 'IP-adresse, der lyttes p<>';
|
||||
$text['kversion'] = 'Kerne-version';
|
||||
$text['uptime'] = 'Oppetid';
|
||||
$text['users'] = 'Antal brugere logget ind lige nu';
|
||||
$text['loadavg'] = 'Ressourceforbrug - gennemsnit';
|
||||
|
||||
$text['hardware'] = 'Hardwareinformation';
|
||||
$text['numcpu'] = 'Processorer';
|
||||
$text['cpumodel'] = 'Model';
|
||||
$text['mhz'] = 'MHz';
|
||||
$text['cache'] = 'Cachest<73>rrelse';
|
||||
$text['bogomips'] = 'Bogomips';
|
||||
$text['pci'] = 'PCI-enheder';
|
||||
$text['ide'] = 'IDE-enheder';
|
||||
$text['scsi'] = 'SCSI-enheder';
|
||||
|
||||
$text['netusage'] = 'Netv<74>rkstrafik';
|
||||
$text['device'] = 'Enhed';
|
||||
$text['received'] = 'Modtaget';
|
||||
$text['sent'] = 'Afsendt';
|
||||
$text['errors'] = 'Mislykket/tabt';
|
||||
|
||||
$text['memusage'] = 'Hukommelsesforbrug';
|
||||
$text['phymem'] = 'Fysisk hukommelse';
|
||||
$text['swap'] = 'Swap';
|
||||
|
||||
$text['fs'] = 'Monterede filsystemer';
|
||||
$text['mount'] = 'Monteret p<>';
|
||||
$text['partition'] = 'Partition';
|
||||
|
||||
$text['percent'] = 'Procent af kapaciteten';
|
||||
$text['type'] = 'Type';
|
||||
$text['free'] = 'Ledig';
|
||||
$text['used'] = 'Brugt';
|
||||
$text['size'] = 'St<53>rrelse';
|
||||
$text['totals'] = 'I alt';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'ingen';
|
||||
|
||||
$text['capacity'] = 'Kapacitet';
|
||||
|
||||
$text['template'] = 'Skabelon';
|
||||
$text['language'] = 'Sprog';
|
||||
$text['submit'] = 'Okay';
|
||||
$text['created'] = 'Lavet af';
|
||||
|
||||
$text['days'] = 'dage';
|
||||
$text['hours'] = 'timer';
|
||||
$text['minutes'] = 'minutter';
|
||||
?>
|
79
otros/includes/lang/de.php
Normal file
79
otros/includes/lang/de.php
Normal file
@ -0,0 +1,79 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: de.php,v 1.3 2001/08/06 18:50:15 precision Exp $
|
||||
|
||||
$text['title'] = 'System Information';
|
||||
|
||||
$text['vitals'] = 'System Vitalität';
|
||||
$text['hostname'] = 'Zugewiesener Hostname';
|
||||
$text['ip'] = 'Überwachte IP';
|
||||
$text['kversion'] = 'Kernel Version';
|
||||
$text['uptime'] = 'Betriebszeit';
|
||||
$text['users'] = 'Eingeloggte Benutzer';
|
||||
$text['loadavg'] = 'Auslastung';
|
||||
|
||||
$text['hardware'] = 'Hardware Übersicht';
|
||||
$text['numcpu'] = 'Prozessoren';
|
||||
$text['cpumodel'] = 'Modell';
|
||||
$text['mhz'] = 'Chip MHz';
|
||||
$text['cache'] = 'Cachegröße';
|
||||
$text['bogomips'] = 'System Bogomips';
|
||||
$text['pci'] = 'PCI Geräte';
|
||||
$text['ide'] = 'IDE Geräte';
|
||||
$text['scsi'] = 'SCSI Geräte';
|
||||
|
||||
$text['netusage'] = 'Netzwerk Auslastung';
|
||||
$text['device'] = 'Schnittstelle';
|
||||
$text['received'] = 'Empfangen';
|
||||
$text['sent'] = 'Gesendet';
|
||||
$text['errors'] = 'Err/Drop';
|
||||
|
||||
$text['memusage'] = 'Speicher Auslastung';
|
||||
$text['phymem'] = 'Physikalischer Speicher';
|
||||
$text['swap'] = 'Auslagerungsdatei auf Disk';
|
||||
|
||||
$text['fs'] = 'Gemountete Filesysteme';
|
||||
$text['mount'] = 'Mount';
|
||||
$text['partition'] = 'Partition';
|
||||
|
||||
$text['percent'] = 'Prozentuale Auslastung';
|
||||
$text['type'] = 'Typ';
|
||||
$text['free'] = 'Frei';
|
||||
$text['used'] = 'Benutzt';
|
||||
$text['size'] = 'Größe';
|
||||
$text['totals'] = 'Insgesamt';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'keine';
|
||||
|
||||
$text['capacity'] = 'Kapazit<69>t';
|
||||
|
||||
$text['template'] = 'Vorlage';
|
||||
$text['language'] = 'Sprache';
|
||||
$text['submit'] = '<27>ndern';
|
||||
$text['created'] = 'Erstellt von';
|
||||
|
||||
$text['days'] = 'Tage';
|
||||
$text['hours'] = 'Stunden';
|
||||
$text['minutes'] = 'Minuten';
|
||||
?>
|
81
otros/includes/lang/en.php
Normal file
81
otros/includes/lang/en.php
Normal file
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: en.php,v 1.3 2001/05/31 17:15:10 precision Exp $
|
||||
|
||||
$text['title'] = 'System Information';
|
||||
|
||||
$text['vitals'] = 'System Vital';
|
||||
$text['hostname'] = 'Cannonical Hostname';
|
||||
$text['ip'] = 'Listening IP';
|
||||
$text['kversion'] = 'Kernel Version';
|
||||
$text['uptime'] = 'Uptime';
|
||||
$text['users'] = 'Current Users';
|
||||
$text['loadavg'] = 'Load Averages';
|
||||
|
||||
$text['hardware'] = 'Hardware Information';
|
||||
$text['numcpu'] = 'Processors';
|
||||
$text['cpumodel'] = 'Model';
|
||||
$text['mhz'] = 'Chip MHz';
|
||||
$text['cache'] = 'Cache Size';
|
||||
$text['bogomips'] = 'System Bogomips';
|
||||
$text['pci'] = 'PCI Devices';
|
||||
$text['ide'] = 'IDE Devices';
|
||||
$text['scsi'] = 'SCSI Devices';
|
||||
|
||||
$text['netusage'] = 'Network Usage';
|
||||
$text['device'] = 'Device';
|
||||
$text['received'] = 'Received';
|
||||
$text['sent'] = 'Sent';
|
||||
$text['errors'] = 'Err/Drop';
|
||||
|
||||
$text['connections'] = 'Established Network Connections';
|
||||
|
||||
$text['memusage'] = 'Memory Usage';
|
||||
$text['phymem'] = 'Physical Memory';
|
||||
$text['swap'] = 'Disk Swap';
|
||||
|
||||
$text['fs'] = 'Mounted Filesystems';
|
||||
$text['mount'] = 'Mount';
|
||||
$text['partition'] = 'Partition';
|
||||
|
||||
$text['percent'] = 'Percent Capacity';
|
||||
$text['type'] = 'Type';
|
||||
$text['free'] = 'Free';
|
||||
$text['used'] = 'Used';
|
||||
$text['size'] = 'Size';
|
||||
$text['totals'] = 'Totals';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'none';
|
||||
|
||||
$text['capacity'] = 'Capacity';
|
||||
|
||||
$text['template'] = 'Template';
|
||||
$text['language'] = 'Language';
|
||||
$text['submit'] = 'Submit';
|
||||
$text['created'] = 'Created by';
|
||||
|
||||
$text['days'] = 'days';
|
||||
$text['hours'] = 'hours';
|
||||
$text['minutes'] = 'minutes';
|
||||
?>
|
96
otros/includes/lang/es.php
Normal file
96
otros/includes/lang/es.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: es.php,v 1.2 2001/05/30 18:22:09 precision Exp $
|
||||
|
||||
$text['title'] = 'Información Del Sistema';
|
||||
|
||||
$text['vitals'] = 'Vitales';
|
||||
$text['hostname'] = 'Nombre Del Sistema';
|
||||
$text['ip'] = 'Número de IP';
|
||||
$text['kversion'] = 'Versión Del Kernel';
|
||||
$text['uptime'] = 'Uptime';
|
||||
$text['users'] = 'Usuarios actuales';
|
||||
$text['loadavg'] = 'Promedio de Uso';
|
||||
|
||||
$text['hardware'] = 'Información Del Hardware';
|
||||
$text['numcpu'] = 'Procesadores';
|
||||
$text['cpumodel'] = 'Modelo';
|
||||
$text['mhz'] = 'Frequencia en MHz';
|
||||
$text['cache'] = 'Tamaño Del Caché';
|
||||
$text['bogomips'] = 'Bogomips';
|
||||
$text['pci'] = 'PCI Dispositivos ';
|
||||
$text['ide'] = 'IDE Dispositivos';
|
||||
$text['scsi'] = 'SCSI Dispositivos ';
|
||||
|
||||
$text['netusage'] = 'Utilización de la Red';
|
||||
$text['device'] = 'Dispositivo';
|
||||
$text['received'] = 'Recibidos';
|
||||
$text['sent'] = 'Enviados';
|
||||
$text['errors'] = 'Errores/Perdidos';
|
||||
|
||||
$text['memusage'] = 'Utilización De Memoria';
|
||||
$text['phymem'] = 'Memoria Física';
|
||||
$text['swap'] = 'Disco Swap';
|
||||
|
||||
$text['fs'] = 'Sistemas de Archivos Montados';
|
||||
$text['mount'] = 'Montado en';
|
||||
$text['partition'] = 'Partición';
|
||||
|
||||
$text['percent'] = 'Porcentaje de Capacidad';
|
||||
$text['type'] = 'Tipo';
|
||||
$text['free'] = 'Libre';
|
||||
$text['used'] = 'Usado';
|
||||
$text['size'] = 'Tamaño';
|
||||
$text['totals'] = 'Totales';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'ninguno';
|
||||
|
||||
$text['capacity'] = 'Capacity';
|
||||
|
||||
$text['template'] = 'Template';
|
||||
$text['language'] = 'Language';
|
||||
$text['submit'] = 'Submit';
|
||||
$text['created'] = 'Created by';
|
||||
|
||||
$text['days'] = 'dias';
|
||||
$text['hours'] = 'horas';
|
||||
$text['minutes'] = 'minutos';
|
||||
|
||||
$text['vsensors'] = 'Voltajes del Sistema';
|
||||
$text['tsensors'] = 'Temperaturas del Sistema';
|
||||
$text['fsensors'] = 'Disipadores del Sistema';
|
||||
$text['osensors'] = 'Información de otros sensores';
|
||||
$text['vtype'] = 'Voltaje';
|
||||
$text['ttype'] = 'Temperatura';
|
||||
$text['ftype'] = 'Ventilador';
|
||||
$text['field'] = 'Campo';
|
||||
$text['current'] = 'Valor';
|
||||
$text['min'] = 'Min';
|
||||
$text['max'] = 'Max';
|
||||
$text['hysteresis'] = 'Hysteresis';
|
||||
$text['limit'] = 'Limite';
|
||||
$text['div'] = 'Div';
|
||||
$text['status'] = 'Stado';
|
||||
|
||||
?>
|
96
otros/includes/lang/es.php~
Normal file
96
otros/includes/lang/es.php~
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: es.php,v 1.2 2001/05/30 18:22:09 precision Exp $
|
||||
|
||||
$text['title'] = 'Información Del Sistema';
|
||||
|
||||
$text['vitals'] = 'Vitales';
|
||||
$text['hostname'] = 'Nombre Del Sistema';
|
||||
$text['ip'] = 'Número de IP';
|
||||
$text['kversion'] = 'Versión Del Kernel';
|
||||
$text['uptime'] = 'Uptime';
|
||||
$text['users'] = 'Usuarios actuales';
|
||||
$text['loadavg'] = 'Promedio de Uso';
|
||||
|
||||
$text['hardware'] = 'Información Del Hardware';
|
||||
$text['numcpu'] = 'Procesadores';
|
||||
$text['cpumodel'] = 'Modelo';
|
||||
$text['mhz'] = 'Frequencia en MHz';
|
||||
$text['cache'] = 'Tamaño Del Caché';
|
||||
$text['bogomips'] = 'Bogomips';
|
||||
$text['pci'] = 'PCI Dispositivos ';
|
||||
$text['ide'] = 'IDE Dispositivos';
|
||||
$text['scsi'] = 'SCSI Dispositivos ';
|
||||
|
||||
$text['netusage'] = 'Utilización de la Red';
|
||||
$text['device'] = 'Dispositivo';
|
||||
$text['received'] = 'Recibidos';
|
||||
$text['sent'] = 'Enviados';
|
||||
$text['errors'] = 'Errores/Perdidos';
|
||||
|
||||
$text['memusage'] = 'Utilización De Memoria';
|
||||
$text['phymem'] = 'Memoria Física';
|
||||
$text['swap'] = 'Disco Swap';
|
||||
|
||||
$text['fs'] = 'Sistemas de Archivos Montados';
|
||||
$text['mount'] = 'Montado en';
|
||||
$text['partition'] = 'Partición';
|
||||
|
||||
$text['percent'] = 'Porcentaje de Capacidad';
|
||||
$text['type'] = 'Tipo';
|
||||
$text['free'] = 'Libre';
|
||||
$text['used'] = 'Usado';
|
||||
$text['size'] = 'Tamaño';
|
||||
$text['totals'] = 'Totales';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'ninguno';
|
||||
|
||||
$text['capacity'] = 'Capacity';
|
||||
|
||||
$text['template'] = 'Template';
|
||||
$text['language'] = 'Language';
|
||||
$text['submit'] = 'Submit';
|
||||
$text['created'] = 'Created by';
|
||||
|
||||
$text['days'] = 'days';
|
||||
$text['hours'] = 'hours';
|
||||
$text['minutes'] = 'minutes';
|
||||
|
||||
$text['vsensors'] = 'Voltajes del Sistema';
|
||||
$text['tsensors'] = 'Temperaturas del Sistema';
|
||||
$text['fsensors'] = 'Disipadores del Sistema';
|
||||
$text['osensors'] = 'Información de otros sensores';
|
||||
$text['vtype'] = 'Voltaje';
|
||||
$text['ttype'] = 'Temperatura';
|
||||
$text['ftype'] = 'Ventilador';
|
||||
$text['field'] = 'Campo';
|
||||
$text['current'] = 'Valor';
|
||||
$text['min'] = 'Min';
|
||||
$text['max'] = 'Max';
|
||||
$text['hysteresis'] = 'Hysteresis';
|
||||
$text['limit'] = 'Limite';
|
||||
$text['div'] = 'Div';
|
||||
$text['status'] = 'Stado';
|
||||
|
||||
?>
|
80
otros/includes/lang/et.php
Normal file
80
otros/includes/lang/et.php
Normal file
@ -0,0 +1,80 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: et.php,v 1.3 2001/06/02 03:35:13 precision Exp $
|
||||
|
||||
$text['title'] = 'Süsteemi Informatsioon';
|
||||
|
||||
$text['vitals'] = 'System Vital';
|
||||
$text['hostname'] = 'Kanooniline masinanimi';
|
||||
$text['ip'] = 'Vastav IP';
|
||||
$text['kversion'] = 'Kernel Versioon';
|
||||
$text['uptime'] = 'Masin elus juba';
|
||||
$text['users'] = 'Hetkel kasutajaid';
|
||||
$text['loadavg'] = 'Koormuse keskmised';
|
||||
|
||||
$text['hardware'] = 'Riistvara Informatsioon';
|
||||
$text['numcpu'] = 'Protsessoreid';
|
||||
$text['cpumodel'] = 'Mudel';
|
||||
$text['mhz'] = 'Taktsagedus MHz';
|
||||
$text['cache'] = 'Vahemälu suurus';
|
||||
$text['bogomips'] = 'Süsteemi Bogomips';
|
||||
$text['pci'] = 'PCI Seadmed';
|
||||
$text['ide'] = 'IDE Seadmed';
|
||||
$text['scsi'] = 'SCSI Seadmed';
|
||||
$text['None'] = 'Puudub';
|
||||
|
||||
$text['netusage'] = 'Võrguteenuse kasutamine';
|
||||
$text['device'] = 'Seade';
|
||||
$text['received'] = 'Saadud';
|
||||
$text['sent'] = 'Saadetud';
|
||||
$text['errors'] = 'Vigu/Hüljatud';
|
||||
|
||||
$text['memusage'] = 'Mälu kasutamine';
|
||||
$text['phymem'] = 'Füüsiline mälu';
|
||||
$text['swap'] = 'Saalemälu kettal';
|
||||
|
||||
$text['fs'] = 'Ühendatud failisüsteemid';
|
||||
$text['mount'] = 'Ühendus';
|
||||
$text['partition'] = 'Partitsioon';
|
||||
|
||||
$text['percent'] = 'Protsendiline hõivatus';
|
||||
$text['type'] = 'Tüüp';
|
||||
$text['free'] = 'Vaba';
|
||||
$text['used'] = 'Kasutusel';
|
||||
$text['size'] = 'Suurus';
|
||||
$text['totals'] = 'Kokku';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'puudub';
|
||||
|
||||
$text['capacity'] = 'Hõivatus';
|
||||
|
||||
$text['template'] = 'Template';
|
||||
$text['language'] = 'Keel';
|
||||
$text['submit'] = 'Kehtesta';
|
||||
$text['created'] = 'Looja: ';
|
||||
|
||||
$text['days'] = 'päeva';
|
||||
$text['hours'] = 'tundi';
|
||||
$text['minutes'] = 'minutit';
|
||||
?>
|
81
otros/includes/lang/fi.php
Normal file
81
otros/includes/lang/fi.php
Normal file
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: fi.php,v 1.1 2001/06/29 20:57:18 precision Exp $
|
||||
|
||||
// Finnish language file by Jani 'Japala' Ponkko
|
||||
|
||||
$text['title'] = 'Tietoa järjestelmästä';
|
||||
|
||||
$text['vitals'] = 'Perustiedot';
|
||||
$text['hostname'] = 'Kanoninen nimi';
|
||||
$text['ip'] = 'Käytettävä IP';
|
||||
$text['kversion'] = 'Kernelin versio';
|
||||
$text['uptime'] = 'Toiminta-aika';
|
||||
$text['users'] = 'Käyttäjiä';
|
||||
$text['loadavg'] = 'Keskikuormat';
|
||||
|
||||
$text['hardware'] = 'Laitteisto';
|
||||
$text['numcpu'] = 'Prosessoreita';
|
||||
$text['cpumodel'] = 'Malli';
|
||||
$text['mhz'] = 'Piirin MHz';
|
||||
$text['cache'] = 'Välimuistin koko';
|
||||
$text['bogomips'] = 'Järjestelmän Bogomipsit';
|
||||
$text['pci'] = 'PCI Laitteet';
|
||||
$text['ide'] = 'IDE Laitteet';
|
||||
$text['scsi'] = 'SCSI Laitteet';
|
||||
|
||||
$text['netusage'] = 'Verkon käyttö';
|
||||
$text['device'] = 'Laite';
|
||||
$text['received'] = 'Vastaanotettu';
|
||||
$text['sent'] = 'Lähetetty';
|
||||
$text['errors'] = 'Virheet/Pudotetut';
|
||||
|
||||
$text['memusage'] = 'Muistin kuormitus';
|
||||
$text['phymem'] = 'Fyysinen muisti';
|
||||
$text['swap'] = 'Virtuaalimuisti';
|
||||
|
||||
$text['fs'] = 'Liitetyt tiedostojärjestelmät';
|
||||
$text['mount'] = 'Liitoskohta';
|
||||
$text['partition'] = 'Osio';
|
||||
|
||||
$text['percent'] = 'Prosenttia kapasiteetista';
|
||||
$text['type'] = 'Tyyppi';
|
||||
$text['free'] = 'Vapaana';
|
||||
$text['used'] = 'Käytössä';
|
||||
$text['size'] = 'Koko';
|
||||
$text['totals'] = 'Yhteensä';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'Ei yhtään';
|
||||
|
||||
$text['capacity'] = 'Kapasiteetti';
|
||||
|
||||
$text['template'] = 'Malli';
|
||||
$text['language'] = 'Kieli';
|
||||
$text['submit'] = 'Valitse';
|
||||
$text['created'] = 'Luonut';
|
||||
|
||||
$text['days'] = 'päivää';
|
||||
$text['hours'] = 'tuntia';
|
||||
$text['minutes'] = 'minuuttia';
|
||||
?>
|
79
otros/includes/lang/fr.php
Normal file
79
otros/includes/lang/fr.php
Normal file
@ -0,0 +1,79 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: fr.php,v 1.3 2001/05/31 17:15:10 precision Exp $
|
||||
|
||||
$text['title'] = 'Information Syst<73>me ';
|
||||
|
||||
$text['vitals'] = 'Syst<73>me';
|
||||
$text['hostname'] = 'Nom d\'h<>te cannonique';
|
||||
$text['ip'] = 'IP';
|
||||
$text['kversion'] = 'Version du noyau';
|
||||
$text['uptime'] = 'Uptime';
|
||||
$text['users'] = 'Utilisateurs';
|
||||
$text['loadavg'] = 'Charge syst<73>me';
|
||||
|
||||
$text['hardware'] = 'Information Mat<61>riel';
|
||||
$text['numcpu'] = 'Processeurs';
|
||||
$text['cpumodel'] = 'Mod<6F>le';
|
||||
$text['mhz'] = 'Fr<46>quence';
|
||||
$text['cache'] = 'Taille Cache';
|
||||
$text['bogomips'] = 'Bogomips';
|
||||
$text['pci'] = 'P<>riph. PCI';
|
||||
$text['ide'] = 'P<>riph. IDE';
|
||||
$text['scsi'] = 'P<>riph. SCSI';
|
||||
|
||||
$text['netusage'] = 'R<>seau';
|
||||
$text['device'] = 'P<>riph<70>rique';
|
||||
$text['received'] = 'R<>ception';
|
||||
$text['sent'] = 'Envoi';
|
||||
$text['errors'] = 'Err/Drop';
|
||||
|
||||
$text['memusage'] = 'Utilisation m<>moire';
|
||||
$text['phymem'] = 'M<>moire Physique';
|
||||
$text['swap'] = 'Swap disque';
|
||||
|
||||
$text['fs'] = 'Syst<73>mes de fichiers mont<6E>s';
|
||||
$text['mount'] = 'Point';
|
||||
$text['partition'] = 'Partition';
|
||||
|
||||
$text['percent'] = 'Utilisation';
|
||||
$text['type'] = 'Type';
|
||||
$text['free'] = 'Libre';
|
||||
$text['used'] = 'Utililis<69>';
|
||||
$text['size'] = 'Taille';
|
||||
$text['totals'] = 'Totaux';
|
||||
|
||||
$text['kb'] = 'Ko';
|
||||
$text['mb'] = 'Mo';
|
||||
$text['gb'] = 'Go';
|
||||
|
||||
$text['none'] = 'aucun';
|
||||
|
||||
$text['capacity'] = 'Capacit<69>';
|
||||
|
||||
$text['template'] = 'Mod<6F>le ';
|
||||
$text['language'] = 'Langue ';
|
||||
$text['submit'] = 'Valider';
|
||||
$text['created'] = 'Cr<43><72> par';
|
||||
|
||||
$text['days'] = 'jours';
|
||||
$text['hours'] = 'heures';
|
||||
$text['minutes'] = 'minutes';
|
||||
?>
|
79
otros/includes/lang/is.php
Normal file
79
otros/includes/lang/is.php
Normal file
@ -0,0 +1,79 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: is.php,v 1.1 2001/06/29 17:14:20 precision Exp $
|
||||
|
||||
$text['title'] = 'Kerfisuppl<70>singar';
|
||||
|
||||
$text['vitals'] = 'Helstu Uppl<70>singar';
|
||||
$text['hostname'] = 'V<>larnafn';
|
||||
$text['ip'] = 'IP Tala';
|
||||
$text['kversion'] = '<27>tg<74>fa kjarna';
|
||||
$text['uptime'] = 'Uppit<69>mi';
|
||||
$text['users'] = 'Notendur';
|
||||
$text['loadavg'] = 'Me<4D>al <20>lag';
|
||||
|
||||
$text['hardware'] = 'Uppl<70>singar um v<>lb<6C>na<6E>';
|
||||
$text['numcpu'] = '<27>rgj<67>rvi/<2F>rgj<67>rvar';
|
||||
$text['cpumodel'] = 'T<>pa';
|
||||
$text['mhz'] = 'Hra<72>i';
|
||||
$text['cache'] = 'St<53>r<EFBFBD> fl<66>timinnis';
|
||||
$text['bogomips'] = 'Kerfis Bogomips';
|
||||
$text['pci'] = 'PCI Ja<4A>art<72>ki';
|
||||
$text['ide'] = 'IDE Ja<4A>art<72>ki';
|
||||
$text['scsi'] = 'SCSI Ja<4A>art<72>ki';
|
||||
|
||||
$text['netusage'] = 'Notkun Nets';
|
||||
$text['device'] = 'Ja<4A>art<72>ki';
|
||||
$text['received'] = 'Teki<6B> <20> m<>ti';
|
||||
$text['sent'] = 'Sent';
|
||||
$text['errors'] = 'Villur/Drop';
|
||||
|
||||
$text['memusage'] = 'Minnisnotkun';
|
||||
$text['phymem'] = 'Vinnsluminni';
|
||||
$text['swap'] = 'S<>ndarminni';
|
||||
|
||||
$text['fs'] = 'Tengd Skr<6B>arkerfi';
|
||||
$text['mount'] = 'Tengipunktur';
|
||||
$text['partition'] = 'Disksnei<65>';
|
||||
|
||||
$text['percent'] = 'Pr<50>sent af Heildarst<73>r<EFBFBD>';
|
||||
$text['type'] = 'T<>pa';
|
||||
$text['free'] = 'Laust';
|
||||
$text['used'] = 'Nota<74>';
|
||||
$text['size'] = 'St<53>r<EFBFBD>';
|
||||
$text['totals'] = 'Samtals';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'ekkert';
|
||||
|
||||
$text['capacity'] = 'Heildarst<73>r<EFBFBD>';
|
||||
|
||||
$text['template'] = 'Template';
|
||||
$text['language'] = 'Tungum<75>l';
|
||||
$text['submit'] = 'Senda';
|
||||
$text['created'] = 'B<>i<EFBFBD> til af';
|
||||
|
||||
$text['days'] = 'dagar';
|
||||
$text['hours'] = 'klukkustundir';
|
||||
$text['minutes'] = 'm<>n<EFBFBD>tur';
|
||||
?>
|
79
otros/includes/lang/it.php
Normal file
79
otros/includes/lang/it.php
Normal file
@ -0,0 +1,79 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: it.php,v 1.2 2001/05/30 18:22:09 precision Exp $
|
||||
|
||||
$text['title'] = 'Informazioni sul Sistema';
|
||||
|
||||
$text['vitals'] = 'Informazioni Vitali';
|
||||
$text['hostname'] = 'Nome Canonico';
|
||||
$text['ip'] = 'Indirizzo IP';
|
||||
$text['kversion'] = 'Versione del Kernel';
|
||||
$text['uptime'] = 'Tempo di Esercizio';
|
||||
$text['users'] = 'Utenti Collegati';
|
||||
$text['loadavg'] = 'Carico Medio';
|
||||
|
||||
$text['hardware'] = 'Informazioni Hardware';
|
||||
$text['numcpu'] = 'Processori';
|
||||
$text['cpumodel'] = 'Modello';
|
||||
$text['mhz'] = 'MHz del Chip';
|
||||
$text['cache'] = 'Dimensione Cache';
|
||||
$text['bogomips'] = 'Bogomips del Sistema';
|
||||
$text['pci'] = 'Unit? PCI';
|
||||
$text['ide'] = 'Unit? IDE';
|
||||
$text['scsi'] = 'Unit? SCSI';
|
||||
|
||||
$text['netusage'] = 'Uso della Rete';
|
||||
$text['device'] = 'Device';
|
||||
$text['received'] = 'Received';
|
||||
$text['sent'] = 'Sent';
|
||||
$text['errors'] = 'Err/Drop';
|
||||
|
||||
$text['memusage'] = 'Uso della Memoria';
|
||||
$text['phymem'] = 'Memoria Fisica';
|
||||
$text['swap'] = 'Disco di Swap';
|
||||
|
||||
$text['fs'] = 'Filesystem Montati';
|
||||
$text['mount'] = 'Punto di Mount';
|
||||
$text['partition'] = 'Partizione';
|
||||
|
||||
$text['percent'] = 'Uso Percentuale';
|
||||
$text['type'] = 'Tipo';
|
||||
$text['free'] = 'Libero';
|
||||
$text['used'] = 'Usato';
|
||||
$text['size'] = 'Dimensione';
|
||||
$text['totals'] = 'Totali';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'none';
|
||||
|
||||
$text['capacity'] = 'Capacity';
|
||||
|
||||
$text['template'] = 'Template';
|
||||
$text['language'] = 'Language';
|
||||
$text['submit'] = 'Submit';
|
||||
$text['created'] = 'Created by';
|
||||
|
||||
$text['days'] = 'days';
|
||||
$text['hours'] = 'hours';
|
||||
$text['minutes'] = 'minutes';
|
||||
?>
|
81
otros/includes/lang/kr.php
Normal file
81
otros/includes/lang/kr.php
Normal file
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: kr.php,v 1.1 2001/06/25 12:35:48 precision Exp $
|
||||
|
||||
$charset = 'iso-2022-kr';
|
||||
|
||||
$text['title'] = '<27>ý<EFBFBD><C3BD><EFBFBD> <20><><EFBFBD><EFBFBD>';
|
||||
|
||||
$text['vitals'] = '<27><><EFBFBD><EFBFBD> <20>ý<EFBFBD><C3BD><EFBFBD> <20><>Ȳ';
|
||||
$text['hostname'] = '<27>ý<EFBFBD><C3BD><EFBFBD><EFBFBD><EFBFBD> ȣ<><C8A3>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD>';
|
||||
$text['ip'] = '<27>ý<EFBFBD><C3BD><EFBFBD><EFBFBD><EFBFBD> IP';
|
||||
$text['kversion'] = 'Ŀ<><C4BF> <20><><EFBFBD><EFBFBD>';
|
||||
$text['uptime'] = '<27><><EFBFBD><EFBFBD> <20>ð<EFBFBD>';
|
||||
$text['users'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>';
|
||||
$text['loadavg'] = '<27><><EFBFBD><EFBFBD> <20>ε<EFBFBD>';
|
||||
|
||||
$text['hardware'] = '<27>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>';
|
||||
$text['numcpu'] = '<27><><EFBFBD>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD>';
|
||||
$text['cpumodel'] = '<27><><EFBFBD>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD>';
|
||||
$text['mhz'] = 'Ĩ<><C4A8> Ŭ<><C5AC>';
|
||||
$text['cache'] = '<27>ɽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$text['bogomips'] = '<27><>ü<EFBFBD><EFBFBD>Ʈ Ŭ<><C5AC>';
|
||||
$text['pci'] = 'PCI <20><>ġ';
|
||||
$text['ide'] = 'IDE <20><>ġ';
|
||||
$text['scsi'] = 'SCSI <20><>ġ';
|
||||
|
||||
$text['netusage'] = ' <20><>Ʈ<EFBFBD><C6AE>ũ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$text['device'] = '<27><>ġ';
|
||||
$text['received'] = '<27><><EFBFBD><EFBFBD> <20><>';
|
||||
$text['sent'] = '<27><><EFBFBD><EFBFBD> <20><>';
|
||||
$text['errors'] = '<27><><EFBFBD><EFBFBD> / <20><><EFBFBD><EFBFBD>';
|
||||
|
||||
$text['memusage'] = '<27><EFBFBD><DEB8><EFBFBD> <20><><EFBFBD>뷮';
|
||||
$text['phymem'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DEB8><EFBFBD>';
|
||||
$text['swap'] = '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ũ';
|
||||
|
||||
$text['fs'] = '<27><><EFBFBD><EFBFBD>Ʈ <20><>Ȳ';
|
||||
$text['mount'] = '<27><><EFBFBD><EFBFBD>Ʈ';
|
||||
$text['partition'] = '<27><>Ƽ<EFBFBD><C6BC>';
|
||||
|
||||
$text['percent'] = ' <20>ۼ<EFBFBD>Ʈ';
|
||||
$text['type'] = 'Ÿ<><C5B8>';
|
||||
$text['free'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$text['used'] = '<27><><EFBFBD>뷮';
|
||||
$text['size'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$text['totals'] = '<27>հ<EFBFBD>';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = '<27><><EFBFBD><EFBFBD>';
|
||||
|
||||
$text['capacity'] = '<27>뷮';
|
||||
|
||||
$text['template'] = '<27><><EFBFBD>ø<EFBFBD>';
|
||||
$text['language'] = '<27><><EFBFBD><EFBFBD>';
|
||||
$text['submit'] = '<27><><EFBFBD><EFBFBD>';
|
||||
$text['created'] = 'Created by';
|
||||
|
||||
$text['days'] = '<27><>';
|
||||
$text['hours'] = '<27><>';
|
||||
$text['minutes'] = '<27><>';
|
||||
?>
|
79
otros/includes/lang/lt.php
Normal file
79
otros/includes/lang/lt.php
Normal file
@ -0,0 +1,79 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: lt.php,v 1.2 2001/05/30 18:22:09 precision Exp $
|
||||
|
||||
$text['title'] = 'Sistemos Informacija';
|
||||
|
||||
$text['vitals'] = 'Sisteminiai Duomenys';
|
||||
$text['hostname'] = 'Unikalus Hostas';
|
||||
$text['ip'] = 'IP Adresas';
|
||||
$text['kversion'] = 'Kernelio Versija';
|
||||
$text['uptime'] = 'Veikimo laikas';
|
||||
$text['users'] = 'Vartotojai';
|
||||
$text['loadavg'] = 'U?krovimo vidurkiai';
|
||||
|
||||
$text['hardware'] = 'Aparat?riniai duomenys';
|
||||
$text['numcpu'] = 'Procesorius';
|
||||
$text['cpumodel'] = 'Modelis';
|
||||
$text['mhz'] = 'Da?nis MHz';
|
||||
$text['cache'] = 'Cache Dydis';
|
||||
$text['bogomips'] = 'Sistemos "Bogomips"';
|
||||
$text['pci'] = 'PCI ?renginiai';
|
||||
$text['ide'] = 'IDE ?renginiai';
|
||||
$text['scsi'] = 'SCSI ?renginiai';
|
||||
|
||||
$text['netusage'] = 'Tinklo Informacija';
|
||||
$text['device'] = '?renginys';
|
||||
$text['received'] = 'Parsi?sta';
|
||||
$text['sent'] = 'I?si?sta';
|
||||
$text['errors'] = 'Klaidos/Numesti Paketai';
|
||||
|
||||
$text['memusage'] = 'Atminties Informacija';
|
||||
$text['phymem'] = 'Operatyvioji Atmintis';
|
||||
$text['swap'] = 'Disko Swap Particija';
|
||||
|
||||
$text['fs'] = 'HDD informacija';
|
||||
$text['mount'] = 'U?montuota';
|
||||
$text['partition'] = 'Particija';
|
||||
|
||||
$text['percent'] = 'I?reik?ta Procentais';
|
||||
$text['type'] = 'Tipas';
|
||||
$text['free'] = 'Laisva';
|
||||
$text['used'] = 'U?imta';
|
||||
$text['size'] = 'Dydis';
|
||||
$text['totals'] = 'I? Viso';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'none';
|
||||
|
||||
$text['capacity'] = 'Capacity';
|
||||
|
||||
$text['template'] = 'Template';
|
||||
$text['language'] = 'Language';
|
||||
$text['submit'] = 'Submit';
|
||||
$text['created'] = 'Created by';
|
||||
|
||||
$text['days'] = 'days';
|
||||
$text['hours'] = 'hours';
|
||||
$text['minutes'] = 'minutes';
|
||||
?>
|
79
otros/includes/lang/nl.php
Normal file
79
otros/includes/lang/nl.php
Normal file
@ -0,0 +1,79 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: nl.php,v 1.5 2001/08/09 22:28:00 precision Exp $
|
||||
|
||||
$text['title'] = 'Systeem Informatie';
|
||||
|
||||
$text['vitals'] = 'Systeem overzicht';
|
||||
$text['hostname'] = 'Toegewezen naam';
|
||||
$text['ip'] = 'IP-adres';
|
||||
$text['kversion'] = 'Kernelversie';
|
||||
$text['uptime'] = 'Uptime';
|
||||
$text['users'] = 'Huidige gebruikers';
|
||||
$text['loadavg'] = 'Gemiddelde belasting';
|
||||
|
||||
$text['hardware'] = 'Hardware overzicht';
|
||||
$text['numcpu'] = 'Processors';
|
||||
$text['cpumodel'] = 'Model';
|
||||
$text['mhz'] = 'Chip MHz';
|
||||
$text['cache'] = 'Buffergrootte';
|
||||
$text['bogomips'] = 'Systeem Bogomips';
|
||||
$text['pci'] = 'PCI Apparaten';
|
||||
$text['ide'] = 'IDE Apparaten';
|
||||
$text['scsi'] = 'SCSI Apparaten';
|
||||
|
||||
$text['netusage'] = 'Netwerkgebruik';
|
||||
$text['device'] = 'Apparaat';
|
||||
$text['received'] = 'Ontvangen';
|
||||
$text['sent'] = 'Verzonden';
|
||||
$text['errors'] = 'Err/Drop';
|
||||
|
||||
$text['memusage'] = 'Geheugengebruik';
|
||||
$text['phymem'] = 'Fysiek geheugen';
|
||||
$text['swap'] = 'Swap geheugen';
|
||||
|
||||
$text['fs'] = 'Aangesloten bestandssystemen';
|
||||
$text['mount'] = 'Mount';
|
||||
$text['partition'] = 'Partitie';
|
||||
|
||||
$text['percent'] = 'Percentage gebruikt';
|
||||
$text['type'] = 'Type';
|
||||
$text['free'] = 'Vrij';
|
||||
$text['used'] = 'Gebruikt';
|
||||
$text['size'] = 'Grootte';
|
||||
$text['totals'] = 'Totaal';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'geen';
|
||||
|
||||
$text['capacity'] = 'Capaciteit';
|
||||
|
||||
$text['template'] = 'Model';
|
||||
$text['language'] = 'Language';
|
||||
$text['submit'] = 'Toepassen';
|
||||
$text['created'] = 'Gegenereerd door';
|
||||
|
||||
$text['days'] = 'dagen';
|
||||
$text['hours'] = 'uren';
|
||||
$text['minutes'] = 'minuten';
|
||||
?>
|
79
otros/includes/lang/no.php
Normal file
79
otros/includes/lang/no.php
Normal file
@ -0,0 +1,79 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: no.php,v 1.3 2001/05/30 18:22:09 precision Exp $
|
||||
|
||||
$text['title'] = 'System Informasjon';
|
||||
|
||||
$text['vitals'] = 'Vital Informasjon';
|
||||
$text['hostname'] = 'Egentlige Tjenernavn';
|
||||
$text['ip'] = 'IP Adresse';
|
||||
$text['kversion'] = 'Kernel Versjon';
|
||||
$text['uptime'] = 'Oppetid';
|
||||
$text['users'] = 'Antall Brukere';
|
||||
$text['loadavg'] = 'Gj.Snitt Belastning';
|
||||
|
||||
$text['hardware'] = 'Hardware Informasjon';
|
||||
$text['numcpu'] = 'Prosessorer';
|
||||
$text['cpumodel'] = 'Modell';
|
||||
$text['mhz'] = 'Brikke MHz';
|
||||
$text['cache'] = 'Cache Størrelse';
|
||||
$text['bogomips'] = 'System Bogomips';
|
||||
$text['pci'] = 'PCI Enheter';
|
||||
$text['ide'] = 'IDE Enheter';
|
||||
$text['scsi'] = 'SCSI Enheter';
|
||||
|
||||
$text['netusage'] = 'Nettverk Bruk';
|
||||
$text['device'] = 'Enhet';
|
||||
$text['received'] = 'Mottatt';
|
||||
$text['sent'] = 'Sendt';
|
||||
$text['errors'] = 'Feil/Dropp';
|
||||
|
||||
$text['memusage'] = 'Minne Bruk';
|
||||
$text['phymem'] = 'Fysisk Minne';
|
||||
$text['swap'] = 'Disk Swap';
|
||||
|
||||
$text['fs'] = 'Monterte Filsystemer';
|
||||
$text['mount'] = 'Punkt';
|
||||
$text['partition'] = 'Partisjon';
|
||||
|
||||
$text['percent'] = 'Kapasitet Prosent';
|
||||
$text['type'] = 'Type';
|
||||
$text['free'] = 'Ledig';
|
||||
$text['used'] = 'Brukt';
|
||||
$text['size'] = 'Størrelse';
|
||||
$text['totals'] = 'Totalt';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'Ingen';
|
||||
|
||||
$text['capacity'] = 'Capacity';
|
||||
|
||||
$text['template'] = 'Template';
|
||||
$text['language'] = 'Language';
|
||||
$text['submit'] = 'Submit';
|
||||
$text['created'] = 'Created by';
|
||||
|
||||
$text['days'] = 'days';
|
||||
$text['hours'] = 'hours';
|
||||
$text['minutes'] = 'minutes';
|
||||
?>
|
81
otros/includes/lang/pl.php
Normal file
81
otros/includes/lang/pl.php
Normal file
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: pl.php,v 1.1 2001/09/04 17:20:13 precision Exp $
|
||||
|
||||
$charset = 'iso-8859-2';
|
||||
|
||||
$text['title'] = 'Informacja o systemie';
|
||||
|
||||
$text['vitals'] = 'Stan systemu';
|
||||
$text['hostname'] = 'Nazwa kanoniczna hosta';
|
||||
$text['ip'] = 'IP nas<61>uchuj<75>cy';
|
||||
$text['kversion'] = 'Wersja j<>dra';
|
||||
$text['uptime'] = 'Uptime';
|
||||
$text['users'] = 'Obecnych u<>ytkownk<6E>w';
|
||||
$text['loadavg'] = 'Obci<63><69>enia <20>rednie';
|
||||
|
||||
$text['hardware'] = 'Informacja o sprz<72>cie';
|
||||
$text['numcpu'] = 'Procesory';
|
||||
$text['cpumodel'] = 'Model';
|
||||
$text['mhz'] = 'Chip MHz';
|
||||
$text['cache'] = 'Cache Size';
|
||||
$text['bogomips'] = 'System Bogomips';
|
||||
$text['pci'] = 'Urz<72>dzenia PCI';
|
||||
$text['ide'] = 'Urz<72>dzenia IDE';
|
||||
$text['scsi'] = 'Urz<72>dzenia SCSI';
|
||||
|
||||
$text['netusage'] = 'Sie<69>';
|
||||
$text['device'] = 'Urz<72>dzenie';
|
||||
$text['received'] = 'Odebrano';
|
||||
$text['sent'] = 'Wys<79>ano';
|
||||
$text['errors'] = 'B<><42>dow/Porzuconych';
|
||||
|
||||
$text['memusage'] = 'Obci<63><69>enie pami<6D>ci';
|
||||
$text['phymem'] = 'Pami<6D><69> fizyczna';
|
||||
$text['swap'] = 'Pami<6D><69> Swap';
|
||||
|
||||
$text['fs'] = 'Zamontowane systemy plik<69>w';
|
||||
$text['mount'] = 'Punkt montowania';
|
||||
$text['partition'] = 'Partycja';
|
||||
|
||||
$text['percent'] = 'Procentowo zaj<61>te';
|
||||
$text['type'] = 'Typ';
|
||||
$text['free'] = 'Wolne';
|
||||
$text['used'] = 'Zaj<61>te';
|
||||
$text['size'] = 'Rozmiar';
|
||||
$text['totals'] = 'Ca<43>kowite';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'brak';
|
||||
|
||||
$text['capacity'] = 'Rozmiar';
|
||||
|
||||
$text['template'] = 'Szablon';
|
||||
$text['language'] = 'J<>zyk';
|
||||
$text['submit'] = 'Wy<57>lij';
|
||||
$text['created'] = 'Utworzone przez';
|
||||
|
||||
$text['days'] = 'dni';
|
||||
$text['hours'] = 'godzin';
|
||||
$text['minutes'] = 'minut';
|
||||
?>
|
80
otros/includes/lang/ro.php
Normal file
80
otros/includes/lang/ro.php
Normal file
@ -0,0 +1,80 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: ro.php,v 1.0 6/9/01 12:41PM
|
||||
// Translated by Silviu Simen - ssimen@sympatico.ca
|
||||
|
||||
$text['title'] = 'Informatii despre sistem';
|
||||
|
||||
$text['vitals'] = 'Informatii vitale';
|
||||
$text['hostname'] = 'Numele canonic';
|
||||
$text['ip'] = 'Adresa IP';
|
||||
$text['kversion'] = 'Versiune nucleu';
|
||||
$text['uptime'] = 'Timp de viata';
|
||||
$text['users'] = 'Utilizatori curenti';
|
||||
$text['loadavg'] = 'Incarcarea sistemului';
|
||||
|
||||
$text['hardware'] = 'Informatii hardware';
|
||||
$text['numcpu'] = 'Procesoare';
|
||||
$text['cpumodel'] = 'Model';
|
||||
$text['mhz'] = 'Chip MHz';
|
||||
$text['cache'] = 'Marime Cache';
|
||||
$text['bogomips'] = 'Bogomips';
|
||||
$text['pci'] = 'Dispozitive PCI';
|
||||
$text['ide'] = 'Dispozitive IDE';
|
||||
$text['scsi'] = 'Dispozitive SCSI';
|
||||
|
||||
$text['netusage'] = 'Utilizarea retelei';
|
||||
$text['device'] = 'Dispozitiv';
|
||||
$text['received'] = 'Primit';
|
||||
$text['sent'] = 'Trimis';
|
||||
$text['errors'] = 'Erori';
|
||||
|
||||
$text['memusage'] = 'Utilizarea memoriei';
|
||||
$text['phymem'] = 'Memorie fizica';
|
||||
$text['swap'] = 'Disk Swap';
|
||||
|
||||
$text['fs'] = 'Sisteme de fisiere montate';
|
||||
$text['mount'] = 'Punct montare';
|
||||
$text['partition'] = 'Partitie';
|
||||
|
||||
$text['percent'] = 'Procent capacitate';
|
||||
$text['type'] = 'Tip';
|
||||
$text['free'] = 'Liber';
|
||||
$text['used'] = 'Utilizat';
|
||||
$text['size'] = 'Marime';
|
||||
$text['totals'] = 'Total';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'nici unul';
|
||||
|
||||
$text['capacity'] = 'Capacitate';
|
||||
|
||||
$text['template'] = 'Model';
|
||||
$text['language'] = 'Limba';
|
||||
$text['submit'] = 'Actualizeaza';
|
||||
$text['created'] = 'Creat de';
|
||||
|
||||
$text['days'] = 'zile';
|
||||
$text['hours'] = 'ore';
|
||||
$text['minutes'] = 'minute';
|
||||
?>
|
81
otros/includes/lang/se.php
Normal file
81
otros/includes/lang/se.php
Normal file
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: se.php,v 1.2 2001/05/30 18:22:09 precision Exp $
|
||||
//
|
||||
// translation by shockzor
|
||||
|
||||
$text['title'] = 'System Information';
|
||||
|
||||
$text['vitals'] = 'System Vital';
|
||||
$text['hostname'] = 'V<>rdnamn';
|
||||
$text['ip'] = 'IP Address';
|
||||
$text['kversion'] = 'Kernel Version';
|
||||
$text['uptime'] = 'Upptid';
|
||||
$text['users'] = 'Antal Anv<6E>ndare';
|
||||
$text['loadavg'] = 'Snitt Belastning';
|
||||
|
||||
$text['hardware'] = 'H<>rdvaru Information';
|
||||
$text['numcpu'] = 'Processorer';
|
||||
$text['cpumodel'] = 'Modell';
|
||||
$text['mhz'] = 'Chip MHz';
|
||||
$text['cache'] = 'Cache Storlek';
|
||||
$text['bogomips'] = 'System Bogomips';
|
||||
$text['pci'] = 'PCI Enheter';
|
||||
$text['ide'] = 'IDE Enheter';
|
||||
$text['scsi'] = 'SCSI Enheter';
|
||||
|
||||
$text['netusage'] = 'N<>tverks Anv<6E>ndning';
|
||||
$text['device'] = 'Enheter';
|
||||
$text['received'] = 'Mottaget';
|
||||
$text['sent'] = 'Skickat';
|
||||
$text['errors'] = 'Fel/F<>rlorat';
|
||||
|
||||
$text['memusage'] = 'Minnes Anv<6E>ndning';
|
||||
$text['phymem'] = 'Fysiskt Minne';
|
||||
$text['swap'] = 'Disk Swap';
|
||||
|
||||
$text['fs'] = 'Monterade Filsystem';
|
||||
$text['mount'] = 'Montera';
|
||||
$text['partition'] = 'Partition';
|
||||
|
||||
$text['percent'] = 'Procent Kapacitet';
|
||||
$text['type'] = 'Typ';
|
||||
$text['free'] = 'Fritt';
|
||||
$text['used'] = 'Anv<6E>nt';
|
||||
$text['size'] = 'Storlek';
|
||||
$text['totals'] = 'Totalt';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = 'none';
|
||||
|
||||
$text['capacity'] = 'Capacity';
|
||||
|
||||
$text['template'] = 'Template';
|
||||
$text['language'] = 'Language';
|
||||
$text['submit'] = 'Submit';
|
||||
|
||||
$text['days'] = 'days';
|
||||
$text['hours'] = 'hours';
|
||||
$text['minutes'] = 'minutes';
|
||||
$text['created'] = 'Created by';
|
||||
?>
|
81
otros/includes/lang/tw.php
Normal file
81
otros/includes/lang/tw.php
Normal file
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: tw.php,v 1.1 2001/08/20 17:26:24 precision Exp $
|
||||
|
||||
$charset = 'big5';
|
||||
|
||||
$text['title'] = '<27>t<EFBFBD>θ<EFBFBD><CEB8>T';
|
||||
|
||||
$text['vitals'] = '<27>t<EFBFBD>ΥD<CEA5>n<EFBFBD>T<EFBFBD><54>';
|
||||
$text['hostname'] = '<27>D<EFBFBD><44><EFBFBD>W<EFBFBD><57>';
|
||||
$text['ip'] = '<27>D<EFBFBD><44><EFBFBD><EFBFBD><EFBFBD>~ IP';
|
||||
$text['kversion'] = '<27>֤ߪ<D6A4><DFAA><EFBFBD>';
|
||||
$text['uptime'] = '<27>}<7D><><EFBFBD>ɶ<EFBFBD>';
|
||||
$text['users'] = '<27>u<EFBFBD>W<EFBFBD>ϥΪ<CFA5>';
|
||||
$text['loadavg'] = '<27><><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD><74>';
|
||||
|
||||
$text['hardware'] = '<27>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD>T';
|
||||
$text['numcpu'] = '<27>B<EFBFBD>z<EFBFBD><7A><EFBFBD>ƶq';
|
||||
$text['cpumodel'] = 'Model';
|
||||
$text['mhz'] = '<27><><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD><74>';
|
||||
$text['cache'] = '<27>֨<EFBFBD><D6A8>j<EFBFBD>p';
|
||||
$text['bogomips'] = '<27>t<EFBFBD><74> Bogomips';
|
||||
$text['pci'] = 'PCI <20>]<5D><>';
|
||||
$text['ide'] = 'IDE <20>]<5D><>';
|
||||
$text['scsi'] = 'SCSI <20>]<5D><>';
|
||||
|
||||
$text['netusage'] = '<27><><EFBFBD><EFBFBD><EFBFBD>ϥζq';
|
||||
$text['device'] = '<27><><EFBFBD><EFBFBD><EFBFBD>]<5D><>';
|
||||
$text['received'] = '<27><><EFBFBD><EFBFBD>';
|
||||
$text['sent'] = '<27>e<EFBFBD>X';
|
||||
$text['errors'] = '<27><><EFBFBD>~/<2F><><EFBFBD>_';
|
||||
|
||||
$text['memusage'] = '<27>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>ϥζq';
|
||||
$text['phymem'] = '<27><><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD>';
|
||||
$text['swap'] = '<27><><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD>(<28>Ϻиm<D0B8><6D>)';
|
||||
|
||||
$text['fs'] = '<27>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD>ɮרt<D7A8><74>';
|
||||
$text['mount'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>|';
|
||||
$text['partition'] = '<27><><EFBFBD>κϰ<CEBA>';
|
||||
|
||||
$text['percent'] = '<27>ϥζq<CEB6>ʤ<EFBFBD><CAA4><EFBFBD>';
|
||||
$text['type'] = '<27><><EFBFBD>A';
|
||||
$text['free'] = '<27>Ѿl<D1BE>Ŷ<EFBFBD>';
|
||||
$text['used'] = '<27>w<EFBFBD>ϥ<EFBFBD>';
|
||||
$text['size'] = '<27>`<60>e<EFBFBD>q';
|
||||
$text['totals'] = '<27>`<60>ϥζq';
|
||||
|
||||
$text['kb'] = 'KB';
|
||||
$text['mb'] = 'MB';
|
||||
$text['gb'] = 'GB';
|
||||
|
||||
$text['none'] = '<27>L';
|
||||
|
||||
$text['capacity'] = '<27>e<EFBFBD>q';
|
||||
|
||||
$text['template'] = '<27>d<EFBFBD><64>';
|
||||
$text['language'] = '<27>y<EFBFBD><79>';
|
||||
$text['submit'] = '<27>e<EFBFBD>X';
|
||||
$text['created'] = '<27><><EFBFBD>ͥ<EFBFBD>';
|
||||
|
||||
$text['days'] = '<27><>';
|
||||
$text['hours'] = '<27>p<EFBFBD><70>';
|
||||
$text['minutes'] = '<27><><EFBFBD><EFBFBD>';
|
||||
?>
|
71
otros/includes/system_footer.php
Normal file
71
otros/includes/system_footer.php
Normal file
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: system_footer.php,v 1.13 2001/05/31 17:23:21 precision Exp $
|
||||
|
||||
echo "<center>";
|
||||
|
||||
$update_form = "<form method=\"POST\" action=\"$PHP_SELF\">\n"
|
||||
. "\t" . $text['template'] . ": \n"
|
||||
. "\t<select name=\"template\">\n";
|
||||
|
||||
$dir = opendir('templates/');
|
||||
while (($file = readdir($dir))!=false) {
|
||||
if ($file != 'CVS' && $file != '.' && $file != '..') {
|
||||
if ($template == $file) {
|
||||
$update_form .= "\t\t<option value=\"$file\" SELECTED>$file</option>\n";
|
||||
} else {
|
||||
$update_form .= "\t\t<option value=\"$file\">$file</option>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir($dir);
|
||||
$update_form .= "\t</select>\n";
|
||||
|
||||
|
||||
$update_form .= "\t " . $text['language'] . ": \n"
|
||||
. "\t<select name=\"lng\">\n";
|
||||
|
||||
$dir = opendir('includes/lang/');
|
||||
while (($file = readdir($dir))!=false) {
|
||||
if ($file != 'CVS' && $file != '.' && $file != '..') {
|
||||
$file = ereg_replace('.php', '', $file);
|
||||
if ($lng == $file) {
|
||||
$update_form .= "\t\t<option value=\"$file\" SELECTED>$file</option>\n";
|
||||
} else {
|
||||
$update_form .= "\t\t<option value=\"$file\">$file</option>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir($dir);
|
||||
|
||||
|
||||
$update_form .= "\t</select>\n"
|
||||
. "\t<input type=\"submit\" value=\"" . $text['submit']."\">\n"
|
||||
. "</form>\n";
|
||||
|
||||
print $update_form;
|
||||
?>
|
||||
|
||||
</center>
|
||||
|
||||
<hr>
|
||||
<?php echo $text['created']; ?> <a href="http://phpsysinfo.sourceforge.net">phpSysInfo 1.8</a>
|
||||
</body>
|
||||
</html>
|
691
otros/includes/system_functions.php
Normal file
691
otros/includes/system_functions.php
Normal file
@ -0,0 +1,691 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: system_functions.php,v 1.15 2001/05/30 18:24:22 precision Exp $
|
||||
|
||||
|
||||
// So that stupid warnings do not appear when we stats files that do not exist.
|
||||
error_reporting(5);
|
||||
|
||||
|
||||
// print out the bar graph
|
||||
function create_bargraph ($percent, $a, $b)
|
||||
{
|
||||
if ($percent == 0) {
|
||||
return '<img height="16" src="templates/' . TEMPLATE_SET . '/images/bar_left.gif" alt="">'
|
||||
. '<img src="templates/' . TEMPLATE_SET . '/images/bar_middle.gif" height="16" width="1" alt="">'
|
||||
. '<img src="templates/' . TEMPLATE_SET . '/images/bar_right.gif" height="16" alt="">';
|
||||
} else if ($percent < 90) {
|
||||
return '<img height="16" src="templates/' . TEMPLATE_SET . '/images/bar_left.gif" alt="">'
|
||||
. '<img src="templates/' . TEMPLATE_SET . '/images/bar_middle.gif" height="16" width="' . ($a * $b) . '" alt="">'
|
||||
. '<img height="16" src="templates/' . TEMPLATE_SET . '/images/bar_right.gif" alt="">';
|
||||
} else {
|
||||
return '<img height="16" src="templates/' . TEMPLATE_SET . '/images/redbar_left.gif" alt="">'
|
||||
. '<img src="templates/' . TEMPLATE_SET . '/images/redbar_middle.gif" height="16" width="' . ($a * $b) . '" alt="">'
|
||||
. '<img height="16" src="templates/' . TEMPLATE_SET . '/images/redbar_right.gif" alt="">';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Execute a system function. Do path checking
|
||||
// return a trim()'d result.
|
||||
function execute_program ($program, $args)
|
||||
{
|
||||
$path = array( '/bin/', '/sbin/', '/usr/bin', '/usr/sbin', '/usr/local/bin', '/usr/local/sbin');
|
||||
$buffer = '';
|
||||
|
||||
while ($this_path = current($path)) {
|
||||
if (is_executable("$this_path/$program")) {
|
||||
if ($fp = popen("$this_path/$program $args", 'r')) {
|
||||
while (!feof($fp)) {
|
||||
$buffer .= fgets($fp, 4096);
|
||||
}
|
||||
return trim($buffer);
|
||||
}
|
||||
}
|
||||
next($path);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// function that emulate the compat_array_keys function of PHP4
|
||||
// for PHP3 compatability
|
||||
function compat_array_keys ($arr)
|
||||
{
|
||||
$result = array();
|
||||
|
||||
while (list($key, $val) = each($arr)) {
|
||||
$result[] = $key;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
// function that emulates the compat_in_array function of PHP4
|
||||
// for PHP3 compatability
|
||||
function compat_in_array ($value, $arr)
|
||||
{
|
||||
while (list($key,$val) = each($arr)) {
|
||||
if ($value == $val) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// A helper function, when passed a number representing KB,
|
||||
// and optionally the number of decimal places required,
|
||||
// it returns a formated number string, with unit identifier.
|
||||
function format_bytesize ($kbytes, $dec_places = 2)
|
||||
{
|
||||
global $text;
|
||||
if ($kbytes > 1048576) {
|
||||
$result = sprintf('%.' . $dec_places . 'f', $kbytes / 1048576);
|
||||
$result .= ' '.$text['gb'];
|
||||
} elseif ($kbytes > 1024) {
|
||||
$result = sprintf('%.' . $dec_places . 'f', $kbytes / 1024);
|
||||
$result .= ' '.$text['mb'];
|
||||
} else {
|
||||
$result = sprintf('%.' . $dec_places . 'f', $kbytes);
|
||||
$result .= ' '.$text['kb'];
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
// Returns the virtual hostname accessed.
|
||||
function sys_vhostname ()
|
||||
{
|
||||
if (!($result = getenv('SERVER_NAME'))) {
|
||||
$result = 'N.A.';
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
// Returns the Cannonical machine hostname.
|
||||
function sys_chostname ()
|
||||
{
|
||||
if ($fp = fopen('/proc/sys/kernel/hostname','r')) {
|
||||
$result = trim(fgets($fp, 4096));
|
||||
fclose($fp);
|
||||
$result = gethostbyaddr(gethostbyname($result));
|
||||
} else {
|
||||
$result = 'N.A.';
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
// Returns the IP address that the request was made on.
|
||||
function sys_ip_addr ()
|
||||
{
|
||||
if (!($result = getenv('SERVER_ADDR'))) {
|
||||
$result = gethostbyname(sys_chostname());
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
// Returns an array of all meaningful devices
|
||||
// on the PCI bus.
|
||||
function sys_pcibus ()
|
||||
{
|
||||
$results = array();
|
||||
|
||||
if ($fd = fopen('/proc/pci', 'r')) {
|
||||
while ($buf = fgets($fd, 4096)) {
|
||||
if (preg_match('/Bus/', $buf)) {
|
||||
$device = 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($device) {
|
||||
list($key, $value) = split(': ', $buf, 2);
|
||||
|
||||
if (!preg_match('/bridge/i', $key) && !preg_match('/USB/i', $key)) {
|
||||
$results[] = preg_replace('/\([^\)]+\)\.$/', '', trim($value));
|
||||
}
|
||||
$device = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
||||
// Returns an array of all ide devices attached
|
||||
// to the system, as determined by the aliased
|
||||
// shortcuts in /proc/ide
|
||||
function sys_idebus ()
|
||||
{
|
||||
$results = array();
|
||||
|
||||
$handle = opendir('/proc/ide');
|
||||
|
||||
while ($file = readdir($handle)) {
|
||||
if (preg_match('/^hd/', $file)) {
|
||||
$results[$file] = array();
|
||||
|
||||
// Check if device is CD-ROM (CD-ROM capacity shows as 1024 GB)
|
||||
if ($fd = fopen("/proc/ide/$file/media", 'r')) {
|
||||
$results[$file]['media'] = trim(fgets($fd, 4096));
|
||||
if ($results[$file]['media'] == 'disk') { $results[$file]['media'] = 'Hard Disk'; }
|
||||
if ($results[$file]['media'] == 'cdrom') { $results[$file]['media'] = 'CD-ROM'; }
|
||||
fclose($fd);
|
||||
}
|
||||
|
||||
if ($fd = fopen("/proc/ide/$file/model", 'r')) {
|
||||
$results[$file]['model'] = trim(fgets($fd, 4096));
|
||||
if (preg_match('/WDC/', $results[$file]['model'])){
|
||||
$results[$file]['manufacture'] = 'Western Digital';
|
||||
} elseif (preg_match('/IBM/', $results[$file]['model'])){
|
||||
$results[$file]['manufacture'] = 'IBM';
|
||||
} elseif (preg_match('/FUJITSU/', $results[$file]['model'])){
|
||||
$results[$file]['manufacture'] = 'Fujitsu';
|
||||
} else {
|
||||
$results[$file]['manufacture'] = 'Unknown';
|
||||
}
|
||||
|
||||
fclose($fd);
|
||||
}
|
||||
if ($fd = fopen("/proc/ide/$file/capacity", 'r')) {
|
||||
$results[$file]['capacity'] = trim(fgets($fd, 4096));
|
||||
if ($results[$file]['media'] == 'CD-ROM') {
|
||||
unset($results[$file]['capacity']);
|
||||
}
|
||||
fclose($fd);
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
||||
// Returns an array of all meaningful devices
|
||||
// on the SCSI bus.
|
||||
function sys_scsibus ()
|
||||
{
|
||||
$results = array();
|
||||
$dev_vendor = '';
|
||||
$dev_model = '';
|
||||
$dev_rev = '';
|
||||
$dev_type = '';
|
||||
|
||||
if ($fd = fopen('/proc/scsi/scsi', 'r')) {
|
||||
while ($buf = fgets($fd, 4096)) {
|
||||
if (preg_match('/Vendor/', $buf)) {
|
||||
preg_match('/Vendor: (.*) Model: (.*) Rev: (.*)/i', $buf, $dev);
|
||||
list($key, $value) = split(': ', $buf, 2);
|
||||
$dev_str = $value;
|
||||
$get_type = 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($get_type) {
|
||||
preg_match('/Type:\s+(\S+)/i', $buf, $dev_type);
|
||||
$results[] = "$dev[1] $dev[2] ( $dev_type[1] )";
|
||||
$get_type = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
||||
// Returns an associative array of two associative
|
||||
// arrays, containg the memory statistics for RAM and swap
|
||||
function sys_meminfo ()
|
||||
{
|
||||
if ($fd = fopen('/proc/meminfo', 'r')) {
|
||||
while ($buf = fgets($fd, 4096)) {
|
||||
if (preg_match('/Mem:\s+(.*)$/', $buf, $ar_buf)) {
|
||||
$ar_buf = preg_split('/\s+/', $ar_buf[1], 6);
|
||||
|
||||
$results['ram'] = array();
|
||||
|
||||
$results['ram']['total'] = $ar_buf[0] / 1024;
|
||||
$results['ram']['used'] = $ar_buf[1] / 1024;
|
||||
$results['ram']['free'] = $ar_buf[2] / 1024;
|
||||
$results['ram']['shared'] = $ar_buf[3] / 1024;
|
||||
$results['ram']['buffers'] = $ar_buf[4] / 1024;
|
||||
$results['ram']['cached'] = $ar_buf[5] / 1024;
|
||||
|
||||
$results['ram']['t_used'] = $results['ram']['used'] - $results['ram']['cached'] - $results['ram']['buffers'];
|
||||
$results['ram']['t_free'] = $results['ram']['total'] - $results['ram']['t_used'];
|
||||
$results['ram']['percent'] = round(($results['ram']['t_used'] * 100) / $results['ram']['total']);
|
||||
}
|
||||
|
||||
if (preg_match('/Swap:\s+(.*)$/', $buf, $ar_buf)) {
|
||||
$ar_buf = preg_split('/\s+/', $ar_buf[1], 3);
|
||||
|
||||
$results['swap'] = array();
|
||||
|
||||
$results['swap']['total'] = $ar_buf[0] / 1024;
|
||||
$results['swap']['used'] = $ar_buf[1] / 1024;
|
||||
$results['swap']['free'] = $ar_buf[2] / 1024;
|
||||
$results['swap']['percent'] = round(($ar_buf[1] * 100) / $ar_buf[0]);
|
||||
|
||||
// Get info on individual swap files
|
||||
$swaps = file ('/proc/swaps');
|
||||
$swapdevs = split("\n", $swaps);
|
||||
|
||||
for ($i = 1; $i < (sizeof($swapdevs) - 1); $i++) {
|
||||
$ar_buf = preg_split('/\s+/', $swapdevs[$i], 6);
|
||||
|
||||
$results['devswap'][$i - 1] = array();
|
||||
$results['devswap'][$i - 1]['dev'] = $ar_buf[0];
|
||||
$results['devswap'][$i - 1]['total'] = $ar_buf[2];
|
||||
$results['devswap'][$i - 1]['used'] = $ar_buf[3];
|
||||
$results['devswap'][$i - 1]['free'] = ($results['devswap'][$i - 1]['total'] - $results['devswap'][$i - 1]['used']);
|
||||
$results['devswap'][$i - 1]['percent'] = round(($ar_buf[3] * 100) / $ar_buf[2]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
fclose($fd);
|
||||
}
|
||||
else {
|
||||
$results['ram'] = array();
|
||||
$results['swap'] = array();
|
||||
$results['devswap'] = array();
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
||||
// Returns an array of all network devices
|
||||
// and their tx/rx stats.
|
||||
function sys_netdevs ()
|
||||
{
|
||||
$results = array();
|
||||
|
||||
if ($fd = fopen('/proc/net/dev', 'r')) {
|
||||
while ($buf = fgets($fd, 4096)) {
|
||||
if (preg_match('/:/', $buf)) {
|
||||
list($dev_name, $stats_list) = preg_split('/:/', $buf, 2);
|
||||
$stats = preg_split('/\s+/', trim($stats_list));
|
||||
$results[$dev_name] = array();
|
||||
|
||||
$results[$dev_name]['rx_bytes'] = $stats[0];
|
||||
$results[$dev_name]['rx_packets'] = $stats[1];
|
||||
$results[$dev_name]['rx_errs'] = $stats[2];
|
||||
$results[$dev_name]['rx_drop'] = $stats[3];
|
||||
|
||||
$results[$dev_name]['tx_bytes'] = $stats[8];
|
||||
$results[$dev_name]['tx_packets'] = $stats[9];
|
||||
$results[$dev_name]['tx_errs'] = $stats[10];
|
||||
$results[$dev_name]['tx_drop'] = $stats[11];
|
||||
|
||||
$results[$dev_name]['errs'] = $stats[2] + $stats[10];
|
||||
$results[$dev_name]['drop'] = $stats[3] + $stats[11];
|
||||
}
|
||||
}
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
||||
// Returns a string equivilant to `uname --release`)
|
||||
function sys_kernel ()
|
||||
{
|
||||
if ($fd = fopen('/proc/version', 'r')) {
|
||||
$buf = fgets($fd, 4096);
|
||||
fclose($fd);
|
||||
|
||||
if (preg_match('/version (.*?) /', $buf, $ar_buf)) {
|
||||
$result = $ar_buf[1];
|
||||
|
||||
if (preg_match('/SMP/', $buf)) {
|
||||
$result .= ' (SMP)';
|
||||
}
|
||||
} else {
|
||||
$result = 'N.A.';
|
||||
}
|
||||
} else {
|
||||
$result = 'N.A.';
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
// Returns a 1x3 array of load avg's in
|
||||
// standard order and format.
|
||||
function sys_loadavg ()
|
||||
{
|
||||
if ($fd = fopen('/proc/loadavg', 'r')) {
|
||||
$results = split(' ', fgets($fd, 4096));
|
||||
fclose($fd);
|
||||
} else {
|
||||
$results = array('N.A.','N.A.','N.A.');
|
||||
}
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
||||
// Returns a formatted english string,
|
||||
// enumerating the uptime verbosely.
|
||||
function sys_uptime ()
|
||||
{
|
||||
global $text;
|
||||
$fd = fopen('/proc/uptime', 'r');
|
||||
$ar_buf = split(' ', fgets($fd, 4096));
|
||||
fclose($fd);
|
||||
|
||||
$sys_ticks = trim($ar_buf[0]);
|
||||
|
||||
$min = $sys_ticks / 60;
|
||||
$hours = $min / 60;
|
||||
$days = floor($hours / 24);
|
||||
$hours = floor($hours - ($days * 24));
|
||||
$min = floor($min - ($days * 60 * 24) - ($hours * 60));
|
||||
|
||||
if ($days != 0) {
|
||||
$result = "$days ".$text['days']." ";
|
||||
}
|
||||
if ($hours != 0) {
|
||||
$result .= "$hours ".$text['hours']." ";
|
||||
}
|
||||
$result .= "$min ".$text['minutes'];
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
// Returns the number of users currently logged in.
|
||||
function sys_users ()
|
||||
{
|
||||
$who = split('=', execute_program('who', '-q'));
|
||||
$result = $who[1];
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
// Returns an associative array containing all
|
||||
// relevant info about the processors in the system.
|
||||
function sys_cpu ()
|
||||
{
|
||||
$results = array();
|
||||
$ar_buf = array();
|
||||
|
||||
if ($fd = fopen('/proc/cpuinfo', 'r')) {
|
||||
while ($buf = fgets($fd, 4096)) {
|
||||
list($key, $value) = preg_split('/\s+:\s+/', trim($buf), 2);
|
||||
|
||||
// All of the tags here are highly architecture dependant.
|
||||
// the only way I could reconstruct them for machines I don't
|
||||
// have is to browse the kernel source. So if your arch isn't
|
||||
// supported, tell me you want it written in. <infinite@sigkill.com>
|
||||
switch ($key) {
|
||||
case 'model name':
|
||||
$results['model'] = $value;
|
||||
break;
|
||||
case 'cpu MHz':
|
||||
$results['mhz'] = sprintf('%.2f', $value);
|
||||
break;
|
||||
case 'clock': // For PPC arch (damn borked POS)
|
||||
$results['mhz'] = sprintf('%.2f', $value);
|
||||
break;
|
||||
case 'cpu': // For PPC arch (damn borked POS)
|
||||
$results['model'] = $value;
|
||||
break;
|
||||
case 'revision': // For PPC arch (damn borked POS)
|
||||
$results['model'] .= ' ( rev: ' . $value . ')';
|
||||
break;
|
||||
case 'cache size':
|
||||
$results['cache'] = $value;
|
||||
break;
|
||||
case 'bogomips':
|
||||
$results['bogomips'] += $value;
|
||||
break;
|
||||
case 'processor':
|
||||
$results['cpus'] += 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
fclose($fd);
|
||||
}
|
||||
|
||||
$keys = compat_array_keys($results);
|
||||
$keys2be = array('model', 'mhz', 'cache', 'bogomips', 'cpus');
|
||||
|
||||
while ($ar_buf = each($keys2be)) {
|
||||
if (! compat_in_array($ar_buf[1], $keys)) $results[$ar_buf[1]] = 'N.A.';
|
||||
}
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
||||
// Returns an array of associative arrays
|
||||
// containing information on every mounted partition.
|
||||
function sys_fsinfo ()
|
||||
{
|
||||
$df = execute_program('df', '-kP');
|
||||
$mounts = split("\n", $df);
|
||||
$fstype = array();
|
||||
|
||||
if ($fd = fopen('/proc/mounts', 'r')) {
|
||||
while ($buf = fgets($fd, 4096)) {
|
||||
list($dev, $mpoint, $type) = preg_split('/\s+/', trim($buf), 4);
|
||||
$fstype[$mpoint] = $type;
|
||||
$fsdev[$dev] = $type;
|
||||
}
|
||||
fclose($fd);
|
||||
}
|
||||
|
||||
for ($i = 1; $i < sizeof($mounts); $i++) {
|
||||
$ar_buf = preg_split('/\s+/', $mounts[$i], 6);
|
||||
|
||||
$results[$i - 1] = array();
|
||||
|
||||
$results[$i - 1]['disk'] = $ar_buf[0];
|
||||
$results[$i - 1]['size'] = $ar_buf[1];
|
||||
$results[$i - 1]['used'] = $ar_buf[2];
|
||||
$results[$i - 1]['free'] = $ar_buf[3];
|
||||
$results[$i - 1]['percent'] = round(($results[$i - 1]['used'] * 100) / $results[$i - 1]['size']) . '%';
|
||||
$results[$i - 1]['mount'] = $ar_buf[5];
|
||||
($fstype[$ar_buf[5]]) ? $results[$i - 1]['fstype'] = $fstype[$ar_buf[5]] : $results[$i - 1]['fstype'] = $fsdev[$ar_buf[0]];
|
||||
}
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
/// FOR LM_SENSORS
|
||||
// URL: http://fudd.thegoop.com/~dragon/phpSysInfo-1.1_sensors.diff
|
||||
|
||||
|
||||
// A helper function that returns the first matching
|
||||
// program executable found from a list of supplied filenames
|
||||
// Example: if ($program = findprogram( array("/foo", "/bin/foo"))) {... }
|
||||
function findprogram( $candidates ) {
|
||||
$result = false;
|
||||
while (list($idx, $candidate) = each($candidates)) {
|
||||
if (is_executable($candidate)) {
|
||||
$result = $candidate;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return( $result );
|
||||
}
|
||||
|
||||
|
||||
// Returns F if arg2 is "F" or C if arg2 is "C". If arg2 is niether C or F, C is returned.
|
||||
function temp_conv( $temp, $type, $dec_places = 1 ) {
|
||||
|
||||
if ( $type == "F" ) {
|
||||
$result = sprintf("%." . $dec_places . "f", ( ( $temp * 9 )/ 5 ) + 32 );
|
||||
}
|
||||
else if ( $type == "C" ) {
|
||||
$result = sprintf("%." . $dec_places . "f", ( ( $temp - 32) * 5 ) / 9 );
|
||||
}
|
||||
else {
|
||||
$result = sprintf("%." . $dec_places . "f", ( ( $temp - 32) * 5 ) / 9 );
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
function sys_checksensors() {
|
||||
exec("/bin/cat /proc/sys/dev/sensors/chips", $tmparray, $results);
|
||||
return $results;
|
||||
}
|
||||
|
||||
function sys_cleanarray($dirty = array()) {
|
||||
|
||||
$clean = array();
|
||||
$j = 0;
|
||||
for ($i=0;$i<sizeof($dirty);$i++) {
|
||||
if (strlen($dirty[$i]) != 0) {
|
||||
$clean[$j] = $dirty[$i];
|
||||
$j++;
|
||||
}
|
||||
}
|
||||
return $clean;
|
||||
|
||||
}
|
||||
|
||||
function sys_parsesensors() {
|
||||
$sensors = findprogram(array("/bin/sensors","/sbin/sensors","/usr/bin/sensors","/usr/sbin/sensors","/usr/local/bin/sensors","/usr/local/sbin/sensors"));
|
||||
|
||||
$results = array();
|
||||
if ($sensors == $false || sys_checksensors() == 0) {
|
||||
return $results;
|
||||
}
|
||||
|
||||
$sensors = $sensors;
|
||||
$lines = sys_cleanarray(split( "\n", $sensors ));
|
||||
|
||||
// Add label for Chip name.
|
||||
$lines[0] = "Sensors Chip: " . $lines[0];
|
||||
|
||||
$newlines = array();
|
||||
$j = 0;
|
||||
for ( $i = 0; $i < sizeof($lines); $i++ ) {
|
||||
if ( !preg_match("/:/",$lines[$i]) ) {
|
||||
list($label,$value) = split(":",$lines[$i-1]);
|
||||
if ( strlen(trim(preg_replace("/\n/", "", $value)))== 0 ) {
|
||||
$newlines[$j-1] = $label . ":" .$lines[$i];
|
||||
}
|
||||
else {
|
||||
$newlines[$j] = $lines[$i];
|
||||
$j++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
$newlines[$j] = $lines[$i];
|
||||
$j++;
|
||||
}
|
||||
}
|
||||
$lines = $newlines;
|
||||
|
||||
$volts = sys_cleanarray(preg_grep("/ V/", $lines));
|
||||
$temps = sys_cleanarray(preg_grep("/ C /", $lines));
|
||||
$fans = sys_cleanarray(preg_grep("/ RPM /", $lines));
|
||||
$others = array();
|
||||
$j = 0;
|
||||
for ( $i = 0; $i < sizeof($lines); $i++ ) {
|
||||
if ( !preg_match("/(^[\t\s\n]*$)|\b V\b|\b C\b|\b RPM\b/i",$lines[$i])) {
|
||||
$others[$j] = $lines[$i];
|
||||
$j++;
|
||||
}
|
||||
}
|
||||
$others = sys_cleanarray($others);
|
||||
|
||||
$results['othercount'] = sizeof($others);
|
||||
for ( $i = 0; $i < sizeof($others); $i++ ) {
|
||||
list($label, $value) = split( ":", $others[$i]);
|
||||
|
||||
$results['others'.$i]['label'] = trim($label.":");
|
||||
$results['others'.$i]['current'] = trim($value);
|
||||
}
|
||||
|
||||
|
||||
// voltage
|
||||
$results['voltcount'] = sizeof($volts);
|
||||
for ( $i = 0; $i < sizeof($volts); $i++ ) {
|
||||
//$tmp = cho "$volts[$i]" |sed -e "s/ V).*//;s/=//g;s/min//g; s/max//g; s/(//; s/,//g; s/ V //g";
|
||||
$tmparray[$i] = split( ":", $volts[$i]);
|
||||
$tmparray[$i][1] = ereg_replace("/|[)].*|[=(,]|min |max |V|/i", "", $tmparray[$i][1]);
|
||||
$results['volt'.$i]['label'] = $tmparray[$i][0].":";
|
||||
$tmparray[$i] = preg_split( "/\s+/", trim($tmparray[$i][1]),3);
|
||||
$results['volt'.$i]['current'] = $tmparray[$i][0]." V";
|
||||
$results['volt'.$i]['min'] = $tmparray[$i][1]." V";
|
||||
$results['volt'.$i]['max'] = $tmparray[$i][2]." V";
|
||||
|
||||
if ( eregi_replace("[-+]","",$tmparray[$i][0]) < eregi_replace("[-+]","",$tmparray[$i][1]) || eregi_replace("[-+]","",$tmparray[$i][0]) > eregi_replace("[-+]","",$tmparray[$i][2])) {
|
||||
$results['volt'.$i]['status'] = "<b><blink><font color=\"#FF0000\">[RED ALERT]</font></blink></b>";
|
||||
}
|
||||
else {
|
||||
$results['volt'.$i]['status'] = "<b><font color=\"#238E23\">[Normal]</font></b>";
|
||||
}
|
||||
}
|
||||
|
||||
// fans
|
||||
$results['fancount'] = sizeof($fans);
|
||||
for ( $i = 1; $i < sizeof($fans) + 1; $i++ ) {
|
||||
//$tmp = cho "$fans[$i]" |sed -e "s/).*//;s/=//g;s/min//g; s/div//g; s/(//; s/,//g; s/ RPM //g";
|
||||
$tmparray[$i] = split( ":", $fans[$i - 1]);
|
||||
$tmparray[$i][1] = ereg_replace("/|[)].*|[=(,]|min |div|RPM|/i", "", $tmparray[$i][1]);
|
||||
$results['fan'.$i]['label'] = $tmparray[$i][0].":";
|
||||
$tmparray[$i] = preg_split( "/[\s+-]+/", trim($tmparray[$i][1]),3);
|
||||
$results['fan'.$i]['current'] = $tmparray[$i][0]." RPM";
|
||||
$results['fan'.$i]['min'] = $tmparray[$i][1]." RPM";
|
||||
$results['fan'.$i]['div'] = $tmparray[$i][2];
|
||||
|
||||
if ( $tmparray[$i][0] < $tmparray[$i][1] ) {
|
||||
$results['fan'.$i]['status'] = "<b><blink><font color=\"#FF0000\">[RED ALERT]</font></b>";
|
||||
}
|
||||
else {
|
||||
$results['fan'.$i]['status'] = "<b><font color=\"#238E23\">[Normal]</font></b>";
|
||||
}
|
||||
}
|
||||
|
||||
// temparatures
|
||||
$results['tempcount'] = sizeof($temps);
|
||||
for ( $i = 1; $i < sizeof($temps) + 1; $i++ ) {
|
||||
//$tmp = cho "$lines[$i]" |sed -e "s/ C).*//;s/=//g;s/limit//g; s/hysteresis//g; s/(//; s/,//g; s/ C //g";
|
||||
$tmparray[$i] = split( ":", $temps[$i - 1]);
|
||||
$tmparray[$i][1] = ereg_replace("/|[)].*|[=(,]|limit|hysteresis | C|/i", "", $tmparray[$i][1]);
|
||||
$results['temp'.$i]['label'] = $tmparray[$i][0].":";
|
||||
$tmparray[$i] = preg_split( "/\s+/", eregi_replace("[+]","",trim($tmparray[$i][1])),3);
|
||||
$results['temp'.$i]['current'] = $tmparray[$i][0]."C".'<br>'."(".temp_conv($tmparray[$i][0],"F")." F)";
|
||||
$results['temp'.$i]['min'] = $tmparray[$i][2]."C".'<br>'."(".temp_conv($tmparray[$i][2],"F")." F)";
|
||||
$results['temp'.$i]['max'] = $tmparray[$i][1]."C".'<br>'."(".temp_conv($tmparray[$i][1],"F")." F)";
|
||||
|
||||
if ( $tmparray[$i][0] > $tmparray[$i][1] ) {
|
||||
$results['temp'.$i]['status'] = "<b><blink><font color=\"#FF0000\">[RED ALERT]</font></b>";
|
||||
}
|
||||
else if ( $tmparray[$i][0] >= $tmparray[$i][2] ) {
|
||||
$results['temp'.$i]['status'] = "<b><font color=\"#CD7F32\">[YELLOW ALERT]</font></b>";
|
||||
}
|
||||
else {
|
||||
$results['temp'.$i]['status'] = "<b><font color=\"#238E23\">[Normal]</font></b>";
|
||||
}
|
||||
}
|
||||
|
||||
return $results;
|
||||
|
||||
}
|
||||
|
||||
?>
|
79
otros/includes/system_header.php
Normal file
79
otros/includes/system_header.php
Normal file
@ -0,0 +1,79 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: system_header.php,v 1.7 2001/07/05 23:01:06 precision Exp $
|
||||
|
||||
header("Cache-Control: no-cache, must-revalidate");
|
||||
if (!isset($charset)) { $charset='iso-8859-1'; }
|
||||
header('Content-Type: text/html; charset='.$charset);
|
||||
|
||||
// timestamp
|
||||
$timestamp = strftime ("%b %d %Y %H:%M:%S", time());
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title><?php echo $text['title']; echo " -- ($timestamp)"; ?></title>
|
||||
|
||||
<?php
|
||||
if (isset($refresh) && ($refresh = intval($refresh))) {
|
||||
echo "\t<meta http-equiv=\"Refresh\" content=\"$refresh\">\n";
|
||||
}
|
||||
?>
|
||||
|
||||
<style type="text/css">
|
||||
a {text-decoration: none;}
|
||||
</style>
|
||||
|
||||
<?php
|
||||
if (file_exists("templates/$template/$template.css")) {
|
||||
echo '<link rel="STYLESHEET" type="text/css" href="templates/';
|
||||
echo $template.'/'.$template;
|
||||
echo '.css">'."\n";
|
||||
}
|
||||
?>
|
||||
|
||||
</head>
|
||||
|
||||
<?php
|
||||
echo '<body';
|
||||
|
||||
if (isset($bgcolor)) {
|
||||
echo ' bgcolor="' . $bgcolor . '"';
|
||||
} else {
|
||||
echo ' bgcolor="#ffffff"';
|
||||
}
|
||||
|
||||
if (isset($fontcolor)) {
|
||||
echo ' text="' . $fontcolor . '"';
|
||||
}
|
||||
|
||||
if (isset($linkcolor)) {
|
||||
echo ' link="' . $linkcolor . '"';
|
||||
}
|
||||
|
||||
if (isset($vlinkcolor)) {
|
||||
echo ' vlink="' . $vlinkcolor . '"';
|
||||
}
|
||||
|
||||
echo ">\n";
|
||||
?>
|
188
otros/includes/system_sensors.php
Normal file
188
otros/includes/system_sensors.php
Normal file
@ -0,0 +1,188 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: system_functions.php,v 1.15 2001/05/30 18:24:22 precision Exp $
|
||||
|
||||
|
||||
// So that stupid warnings do not appear when we stats files that do not exist.
|
||||
error_reporting(5);
|
||||
|
||||
|
||||
/// FOR LM_SENSORS
|
||||
// URL: http://fudd.thegoop.com/~dragon/phpSysInfo-1.1_sensors.diff
|
||||
|
||||
|
||||
// Returns F if arg2 is "F" or C if arg2 is "C". If arg2 is niether C or F, C is returned.
|
||||
function temp_conv( $temp, $type, $dec_places = 1 ) {
|
||||
|
||||
if ( $type == "F" ) {
|
||||
$result = sprintf("%." . $dec_places . "f", ( ( $temp * 9 )/ 5 ) + 32 );
|
||||
}
|
||||
else if ( $type == "C" ) {
|
||||
$result = sprintf("%." . $dec_places . "f", ( ( $temp - 32) * 5 ) / 9 );
|
||||
}
|
||||
else {
|
||||
$result = sprintf("%." . $dec_places . "f", ( ( $temp - 32) * 5 ) / 9 );
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
function sys_checksensors() {
|
||||
exec('/bin/cat /proc/sys/dev/sensors/chips', $results, $tmparray);
|
||||
return $results;
|
||||
}
|
||||
|
||||
function sys_cleanarray($dirty = array()) {
|
||||
|
||||
$clean = array();
|
||||
$j = 0;
|
||||
for ($i=0;$i<sizeof($dirty);$i++) {
|
||||
if (strlen($dirty[$i]) != 0) {
|
||||
$clean[$j] = $dirty[$i];
|
||||
$j++;
|
||||
}
|
||||
}
|
||||
return $clean;
|
||||
|
||||
}
|
||||
|
||||
function pre_grep( $subString, $subject = array() )
|
||||
{
|
||||
$result = array();
|
||||
$j=0;
|
||||
for ($i=0;$i<sizeof($subject);$i++)
|
||||
{
|
||||
if ( preg_match( $subString, $subject[$i] ) )
|
||||
{
|
||||
$result[$j] = $subject[$i];
|
||||
$j++;
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
function sys_parsesensors() {
|
||||
|
||||
$sensors = "/usr/local/bin/sensors";
|
||||
|
||||
$results = array();
|
||||
if ($sensors == $false || sys_checksensors() == 0) {
|
||||
return $results;
|
||||
}
|
||||
|
||||
$sensors = `$sensors`;
|
||||
|
||||
$lines = sys_cleanarray(split( "\n", $sensors ));
|
||||
|
||||
// Add label for Chip name.
|
||||
$lines[0] = "Sensors Chip: " . $lines[0];
|
||||
//for ($i=0;$i<sizeof($lines);$i++) echo $lines[$i], "<br>";
|
||||
|
||||
$volts = pre_grep( "/ V /", $lines);
|
||||
$temps = pre_grep("/C /", $lines);
|
||||
$fans = pre_grep("/ RPM /", $lines);
|
||||
|
||||
$others = array();
|
||||
$j = 0;
|
||||
for ( $i = 0; $i < sizeof($lines); $i++ ) {
|
||||
if ( !preg_match("/\(min|\(limit/",$lines[$i])) {
|
||||
$others[$j] = $lines[$i];
|
||||
$j++;
|
||||
}
|
||||
}
|
||||
$others = sys_cleanarray($others);
|
||||
|
||||
$results['othercount'] = sizeof($others);
|
||||
for ( $i = 0; $i < sizeof($others); $i++ ) {
|
||||
list($label, $value) = split( ":", $others[$i]);
|
||||
|
||||
$results['others'.$i]['label'] = trim($label.":");
|
||||
$results['others'.$i]['current'] = trim($value);
|
||||
}
|
||||
|
||||
|
||||
// voltage
|
||||
$results['voltcount'] = sizeof($volts);
|
||||
for ( $i = 0; $i < sizeof($volts); $i++ ) {
|
||||
//$tmp = cho "$volts[$i]" |sed -e "s/ V).*//;s/=//g;s/min//g; s/max//g; s/(//; s/,//g; s/ V //g";
|
||||
$tmparray[$i] = split( ":", $volts[$i]);
|
||||
$tmparray[$i][1] = ereg_replace("/|[)].*|[=(,]|min |max |V|/i", "", $tmparray[$i][1]);
|
||||
$results['volt'.$i]['label'] = $tmparray[$i][0].":";
|
||||
$tmparray[$i] = preg_split( "/\s+/", trim($tmparray[$i][1]),3);
|
||||
$results['volt'.$i]['current'] = $tmparray[$i][0]." V";
|
||||
$results['volt'.$i]['min'] = $tmparray[$i][1]." V";
|
||||
$results['volt'.$i]['max'] = $tmparray[$i][2]." V";
|
||||
|
||||
if ( eregi_replace("[-+]","",$tmparray[$i][0]) < eregi_replace("[-+]","",$tmparray[$i][1]) || eregi_replace("[-+]","",$tmparray[$i][0]) > eregi_replace("[-+]","",$tmparray[$i][2])) {
|
||||
$results['volt'.$i]['status'] = "<b><blink><font color=\"#FF0000\">[RED ALERT]</font></blink></b>";
|
||||
}
|
||||
else {
|
||||
$results['volt'.$i]['status'] = "<b><font color=\"#238E23\">[Normal]</font></b>";
|
||||
}
|
||||
}
|
||||
|
||||
// fans
|
||||
$results['fancount'] = sizeof($fans);
|
||||
for ( $i = 1; $i < sizeof($fans) + 1; $i++ ) {
|
||||
//$tmp = cho "$fans[$i]" |sed -e "s/).*//;s/=//g;s/min//g; s/div//g; s/(//; s/,//g; s/ RPM //g";
|
||||
$tmparray[$i] = split( ":", $fans[$i - 1]);
|
||||
$tmparray[$i][1] = ereg_replace("/|[)].*|[=(,]|min |div|RPM|/i", "", $tmparray[$i][1]);
|
||||
$results['fan'.$i]['label'] = $tmparray[$i][0].":";
|
||||
$tmparray[$i] = preg_split( "/[\s+-]+/", trim($tmparray[$i][1]),3);
|
||||
$results['fan'.$i]['current'] = $tmparray[$i][0]." RPM";
|
||||
$results['fan'.$i]['min'] = $tmparray[$i][1]." RPM";
|
||||
$results['fan'.$i]['div'] = $tmparray[$i][2];
|
||||
|
||||
if ( $tmparray[$i][0] < $tmparray[$i][1] ) {
|
||||
$results['fan'.$i]['status'] = "<b><blink><font color=\"#FF0000\">[RED ALERT]</font></b>";
|
||||
}
|
||||
else {
|
||||
$results['fan'.$i]['status'] = "<b><font color=\"#238E23\">[Normal]</font></b>";
|
||||
}
|
||||
}
|
||||
|
||||
// temparatures
|
||||
$results['tempcount'] = sizeof($temps);
|
||||
for ( $i = 1; $i < sizeof($temps) + 1; $i++ ) {
|
||||
//$tmp = cho "$lines[$i]" |sed -e "s/ C).*//;s/=//g;s/limit//g; s/hysteresis//g; s/(//; s/,//g; s/ C //g";
|
||||
$tmparray[$i] = split( ":", $temps[$i - 1]);
|
||||
$tmparray[$i][1] = ereg_replace("/|[)].*|[=(,]|limit|hysteresis | C|/i", "", $tmparray[$i][1]);
|
||||
$results['temp'.$i]['label'] = $tmparray[$i][0].":";
|
||||
$tmparray[$i] = preg_split( "/\s+/", eregi_replace("[+]","",trim($tmparray[$i][1])),3);
|
||||
$results['temp'.$i]['current'] = $tmparray[$i][0]."C".'<br>'."(".temp_conv($tmparray[$i][0],"F")." F)";
|
||||
$results['temp'.$i]['min'] = $tmparray[$i][2]."C".'<br>'."(".temp_conv($tmparray[$i][2],"F")." F)";
|
||||
$results['temp'.$i]['max'] = $tmparray[$i][1]."C".'<br>'."(".temp_conv($tmparray[$i][1],"F")." F)";
|
||||
|
||||
if ( $tmparray[$i][0] > $tmparray[$i][1] ) {
|
||||
$results['temp'.$i]['status'] = "<b><blink><font color=\"#FF0000\">[RED ALERT]</font></b>";
|
||||
}
|
||||
else if ( $tmparray[$i][0] >= $tmparray[$i][2] ) {
|
||||
$results['temp'.$i]['status'] = "<b><font color=\"#CD7F32\">[YELLOW ALERT]</font></b>";
|
||||
}
|
||||
else {
|
||||
$results['temp'.$i]['status'] = "<b><font color=\"#238E23\">[Normal]</font></b>";
|
||||
}
|
||||
}
|
||||
|
||||
return $results;
|
||||
|
||||
}
|
||||
|
||||
?>
|
43
otros/includes/table_connections.php
Normal file
43
otros/includes/table_connections.php
Normal file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: table_filesystems.php,v 1.5 2001/05/29 01:31:44 precision Exp $
|
||||
|
||||
$_text = '<table width="100%" align="center">'
|
||||
. '<tr><td align="left">' . $f_body_open . '<b>' . $text['protocol'] . '</b>' . $f_body_close . '</td>'
|
||||
. '<td align="left">' . $f_body_open . '<b>' . $text['localaddr'] . '</b>' . $f_body_close . '</td>'
|
||||
. '<td align="left">' . $f_body_open . '<b>' . $text['localport'] . '</b>' . $f_body_close . '</td>'
|
||||
. '<td align="left">' . $f_body_open . '<b>' . $text['foreignaddr'] . '</b>' . $f_body_close . '</td>'
|
||||
. '<td align="right">' . $f_body_open . '<b>' . $text['foreignport'] . '</b>' . $f_body_close . '</td></tr>';
|
||||
|
||||
$con = sys_connections();
|
||||
|
||||
for ($i=0; $i<sizeof($con); $i++) {
|
||||
$_text .= '<tr><td align="left">' . $f_body_open . $con[$i]['prot'] . $f_body_close . '</td>'
|
||||
. '<td align="left">' . $f_body_open . $con[$i]['laddr'] . $f_body_close . '</td>'
|
||||
. '<td align="left">' . $f_body_open . $con[$i]['lport'] . $f_body_close . '</td>'
|
||||
. '<td align="left">' . $f_body_open . $con[$i]['faddr'] . $f_body_close . '</td>'
|
||||
. '<td align="right">' . $f_body_open . $con[$i]['fport'] . $f_body_close . '</td></tr>';
|
||||
}
|
||||
|
||||
$_text .= "</table>";
|
||||
|
||||
$tpl->set_var('connections', makebox($text['connections'], $_text, '100%'));
|
||||
|
||||
?>
|
70
otros/includes/table_filesystems.php
Normal file
70
otros/includes/table_filesystems.php
Normal file
@ -0,0 +1,70 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: table_filesystems.php,v 1.6 2001/08/02 22:41:45 jengo Exp $
|
||||
|
||||
$scale_factor = 2;
|
||||
|
||||
$_text = '<table width="100%" align="center">'
|
||||
. '<tr><td align="left">' . $f_body_open . '<b>' . $text['mount'] . '</b>' . $f_body_close . '</td>'
|
||||
. '<td align="left">' . $f_body_open . '<b>' . $text['type'] . '</b>' . $f_body_close . '</td>'
|
||||
. '<td align="left">' . $f_body_open . '<b>' . $text['partition'] . '</b>' . $f_body_close . '</td>'
|
||||
. '<td align="left">' . $f_body_open . '<b>' . $text['percent'] . '</b>' . $f_body_close . '</td>'
|
||||
. '<td align="right">' . $f_body_open . '<b>' . $text['free'] . '</b>' . $f_body_close . '</td>'
|
||||
. '<td align="right">' . $f_body_open . '<b>' . $text['used'] . '</b>' . $f_body_close . '</td>'
|
||||
. '<td align="right">' . $f_body_open . '<b>' . $text['size'] . '</b>' . $f_body_close . '</td></tr>';
|
||||
|
||||
$fs = $sysinfo->filesystems();
|
||||
|
||||
for ($i=0; $i<sizeof($fs); $i++) {
|
||||
$sum['size'] += $fs[$i]['size'];
|
||||
$sum['used'] += $fs[$i]['used'];
|
||||
$sum['free'] += $fs[$i]['free'];
|
||||
|
||||
$_text .= "\t<tr>\n";
|
||||
$_text .= "\t\t<td align=\"left\">$f_body_open" . $fs[$i]['mount'] . "$f_body_close</td>\n";
|
||||
$_text .= "\t\t<td align=\"left\">$f_body_open" . $fs[$i]['fstype'] . "$f_body_close</td>\n";
|
||||
$_text .= "\t\t<td align=\"left\">$f_body_open" . $fs[$i]['disk'] . "$f_body_close</td>\n";
|
||||
$_text .= "\t\t<td align=\"left\">$f_body_open";
|
||||
|
||||
$_text .= create_bargraph($fs[$i]['percent'], $fs[$i]['percent'], $scale_factor);
|
||||
|
||||
$_text .= " " . $fs[$i]['percent'] . "$f_body_close</td>\n";
|
||||
$_text .= "\t\t<td align=\"right\">$f_body_open" . format_bytesize($fs[$i]['free']) . "$f_body_close</td>\n";
|
||||
$_text .= "\t\t<td align=\"right\">$f_body_open" . format_bytesize($fs[$i]['used']) . "$f_body_close</td>\n";
|
||||
$_text .= "\t\t<td align=\"right\">$f_body_open" . format_bytesize($fs[$i]['size']) . "$f_body_close</td>\n";
|
||||
$_text .= "\t</tr>\n";
|
||||
}
|
||||
|
||||
$_text .= '<tr><td colspan="3" align="right">' . $f_body_open . '<i>' . $text['totals'] . ' : </i>' . $f_body_close . '</td>';
|
||||
$_text .= "\t\t<td align=\"left\">$f_body_open";
|
||||
|
||||
$sum_percent = round(($sum['used'] * 100) / $sum['size']);
|
||||
$_text .= create_bargraph($sum_percent, $sum_percent, $scale_factor);
|
||||
|
||||
$_text .= " " . $sum_percent . "%" . $f_body_close . "</td>\n";
|
||||
|
||||
$_text .= '<td align="right">' . $f_body_open . format_bytesize($sum['free']) . $f_body_close . '</td>'
|
||||
. '<td align="right">' . $f_body_open . format_bytesize($sum['used']) . $f_body_close . '</td>'
|
||||
. '<td align="right">' . $f_body_open . format_bytesize($sum['size']) . $f_body_close . '</td></tr>'
|
||||
. '</table>';
|
||||
|
||||
$tpl->set_var('filesystems', makebox($text['fs'], $_text, '100%'));
|
||||
|
||||
?>
|
74
otros/includes/table_hardware.php
Normal file
74
otros/includes/table_hardware.php
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: table_hardware.php,v 1.6 2001/08/02 22:41:45 jengo Exp $
|
||||
|
||||
$sys = $sysinfo->cpu_info();
|
||||
|
||||
$ar_buf = $sysinfo->pci();
|
||||
|
||||
if (count($ar_buf)) {
|
||||
for ($i=0;$i<sizeof($ar_buf);$i++) {
|
||||
$pci_devices .= $ar_buf[$i] . '<br>';
|
||||
}
|
||||
} else {
|
||||
$pci_devices .= '<i>'. $text['none'] . '</i>';
|
||||
}
|
||||
|
||||
$ar_buf = $sysinfo->ide();
|
||||
|
||||
ksort($ar_buf);
|
||||
|
||||
if (count($ar_buf)) {
|
||||
while (list($key, $value) = each($ar_buf)) {
|
||||
$ide_devices .= $key . ': ' . $ar_buf[$key]['model'];
|
||||
if (isset($ar_buf[$key]['capacity'])) {
|
||||
$ide_devices .= ' (' . $text['capacity'] . ': ' . format_bytesize($ar_buf[$key]['capacity']/2).')';
|
||||
}
|
||||
$ide_devices .= '<br>';
|
||||
}
|
||||
} else {
|
||||
$ide_devices .= '<i>' . $text['none']. '</i>';
|
||||
}
|
||||
|
||||
$ar_buf = $sysinfo->scsi();
|
||||
|
||||
if (count($ar_buf)) {
|
||||
for ($i=0;$i<sizeof($ar_buf);$i++) {
|
||||
$scsi_devices .= $ar_buf[$i] . '<br>';
|
||||
}
|
||||
} else {
|
||||
$scsi_devices .= '<i>' . $text['none'] . '</i>';
|
||||
}
|
||||
|
||||
|
||||
$_text = '<table border="0" width="90%" align="center">'
|
||||
. '<tr><td><font size="-1">'. $text['numcpu'] .'</font></td><td><font size="-1">' . $sys['cpus'] . '</font></td></tr>'
|
||||
. '<tr><td><font size="-1">'. $text['cpumodel'] .'</font></td><td><font size="-1">' . $sys['model'] . '</font></td></tr>'
|
||||
. '<tr><td><font size="-1">'. $text['mhz'] .'</font></td><td><font size="-1">' . $sys['mhz'] . ' MHz</font></td></tr>'
|
||||
. '<tr><td><font size="-1">'. $text['cache'] .'</font></td><td><font size="-1">' . $sys['cache'] . '</font></td></tr>'
|
||||
. '<tr><td><font size="-1">'. $text['bogomips'] .'</font></td><td><font size="-1">' . $sys['bogomips'] . '</font></td></tr>'
|
||||
. '<tr><td><font size="-1">'. $text['pci'] .'</font></td><td><font size="-1">' . $pci_devices . '</font></td></tr>'
|
||||
. '<tr><td><font size="-1">'. $text['ide'] .'</font></td><td><font size="-1">' . $ide_devices . '</font></td></tr>'
|
||||
. '<tr><td><font size="-1">'. $text['scsi'] .'</font></td><td><font size="-1">' . $scsi_devices . '</font></td></tr>'
|
||||
. '</table>';
|
||||
|
||||
$tpl->set_var('hardware', makebox($text['hardware'], $_text, '100%'));
|
||||
|
||||
?>
|
56
otros/includes/table_memory.php
Normal file
56
otros/includes/table_memory.php
Normal file
@ -0,0 +1,56 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: table_memory.php,v 1.6 2001/08/02 22:41:45 jengo Exp $
|
||||
|
||||
$scale_factor = 2;
|
||||
$mem = $sysinfo->memory();
|
||||
|
||||
$ram .= create_bargraph($mem['ram']['percent'], $mem['ram']['percent'], $scale_factor);
|
||||
$ram .= ' ' . $mem['ram']['percent'] . '% ';
|
||||
|
||||
$swap .= create_bargraph($mem['swap']['percent'], $mem['swap']['percent'], $scale_factor);
|
||||
|
||||
$swap .= ' ' . $mem['swap']['percent'] . '% ';
|
||||
|
||||
|
||||
$_text = '<table width="100%" align="center">'
|
||||
. '<tr><td align="left"><b><font size="-1">' . $text['type'] . '</font></b></td>'
|
||||
. '<td align="left"><b><font size="-1">' . $text['percent'] . '</font></b></td>'
|
||||
. '<td align="right"><b><font size="-1">' . $text['free'] . '</font></b></td>'
|
||||
. '<td align="right"><b><font size="-1">' . $text['used'] . '</font></b></td>'
|
||||
. '<td align="right"><b><font size="-1">' . $text['size'] . '</font></b></td></tr>'
|
||||
|
||||
. '<tr><td align="left"><font size="-1">' . $text['phymem'] . '</font></td>'
|
||||
. '<td align="left"><font size="-1">' . $ram . '</font></td>'
|
||||
. '<td align="right"><font size="-1">' . format_bytesize($mem['ram']['t_free']) . '</font></td>'
|
||||
. '<td align="right"><font size="-1">' . format_bytesize($mem['ram']['t_used']) . '</font></td>'
|
||||
. '<td align="right"><font size="-1">' . format_bytesize($mem['ram']['total']) . '</font></td>'
|
||||
|
||||
. '<tr><td align="left"><font size="-1">' . $text['swap'] . '</font></td>'
|
||||
. '<td align="left"><font size="-1">' . $swap . '</font></td>'
|
||||
. '<td align="right"><font size="-1">' . format_bytesize($mem['swap']['free']) . '</font></td>'
|
||||
. '<td align="right"><font size="-1">' . format_bytesize($mem['swap']['used']) . '</font></td>'
|
||||
. '<td align="right"><font size="-1">' . format_bytesize($mem['swap']['total']) . '</font></td>'
|
||||
|
||||
. '</table>';
|
||||
|
||||
$tpl->set_var('memory', makebox($text['memusage'], $_text, '100%'));
|
||||
|
||||
?>
|
43
otros/includes/table_network.php
Normal file
43
otros/includes/table_network.php
Normal file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: table_network.php,v 1.7 2001/08/02 22:41:45 jengo Exp $
|
||||
|
||||
$net = $sysinfo->network();
|
||||
|
||||
$_text = '<table width="100%" align="center">'
|
||||
. '<tr><td align="left"><b><font size="-1">' . $text['device'] . '</font></b></td>'
|
||||
. '<td align="left"><b><font size="-1">' . $text['received'] . '</font></b></td>'
|
||||
. '<td align="right"><b><font size="-1">' . $text['sent'] . '</font></b></td>'
|
||||
. '<td align="right"><b><font size="-1">' . $text['errors'] . '</font></b></td>';
|
||||
|
||||
while (list($dev, $stats) = each($net)) {
|
||||
$_text .= "\t<tr>\n";
|
||||
$_text .= "\t\t<td align=\"left\">$f_body_open" . $dev . "$f_body_close</td>\n";
|
||||
$_text .= "\t\t<td align=\"left\">$f_body_open" . format_bytesize($stats['rx_bytes'] / 1024) . "$f_body_close</td>\n";
|
||||
$_text .= "\t\t<td align=\"right\">$f_body_open" . format_bytesize($stats['tx_bytes'] / 1024) . "$f_body_close</td>\n";
|
||||
$_text .= "\t\t<td align=\"right\">$f_body_open" . $stats['errs'] . '/' . $stats['drop'] . "$f_body_close</td>\n";
|
||||
$_text .= "\t</tr>\n";
|
||||
}
|
||||
|
||||
$_text .= '</table>';
|
||||
|
||||
$tpl->set_var('network', makebox($text['netusage'], $_text, '100%'));
|
||||
|
||||
?>
|
142
otros/includes/table_sensors.php
Normal file
142
otros/includes/table_sensors.php
Normal file
@ -0,0 +1,142 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
||||
//
|
||||
// $Id: table_sensors.php,v 1.0 2000/12/10 21:42:11 TheGoop Exp $
|
||||
|
||||
require('includes/system_sensors.php');
|
||||
|
||||
$scale_factor = 2;
|
||||
|
||||
$sensors = sys_parsesensors();
|
||||
|
||||
//Voltajes
|
||||
$_text = '<table width="100%" align="center">';
|
||||
|
||||
$_text .= '<tr><td align="left"><font size="-1"><b>' . $text['vtype'] .
|
||||
'</b></font></td><td align="left"><font size="-1"><b>' . $text['current'] .
|
||||
'</b></font></td><td align="left"><font size="-1"><b>' . $text['min'] .
|
||||
'</b></font></td><td align="left"><font size="-1"><b>' . $text['max'] .
|
||||
'</b></font></td><td align="right"><font size="-1"><b>' . $text['status'] .
|
||||
'</b></font></td></tr>';
|
||||
|
||||
for ( $i = 0; $i < $sensors[voltcount]; $i++ ) {
|
||||
if ($sensors['volt'.$i]['min'] == " V" && $sensors['volt'.$i]['max'] == " V") {
|
||||
$_text .= '<tr>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['volt'.$i]['label'] . ' </td>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['volt'.$i]['current'] . ' </td>';
|
||||
$_text .= '<td align="left"> </td>';
|
||||
$_text .= '<td align="left"> </td>';
|
||||
$_text .= '<td align="left"> </td>';
|
||||
$_text .= '</tr>';
|
||||
}
|
||||
else {
|
||||
$_text .= '<tr>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['volt'.$i]['label'] . ' </font></td>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['volt'.$i]['current'] . ' </font></td>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['volt'.$i]['min'] . ' </font></td>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['volt'.$i]['max'] . ' </font></td>';
|
||||
$_text .= '<td align="right"><font size="-1">' . $sensors['volt'.$i]['status'] . ' </font></td>';
|
||||
$_text .= '</tr>';
|
||||
}
|
||||
}
|
||||
$_text .= '</table>';
|
||||
|
||||
$tpl->set_var('vsensors', makebox($text['vsensors'], $_text, '100%'));
|
||||
|
||||
// Ventiladores
|
||||
$_text = '<table width="100%" align="center">';
|
||||
$_text .= '<tr><td align="left"><font size="-1"><b>'.$text['ftype'].'</b></font></td>'.
|
||||
'<td align="left"><font size="-1"><b>'.$text['current'].'</b></font></b></td>'.
|
||||
'<td align="left"><font size="-1"><b>'.$text['min'].'</b></font></td>'.
|
||||
'<td align="left"><font size="-1"><b>'.$text['div'].'</b></font></td>'.
|
||||
'<td align="right"><font size="-1"><b>'.$text['status'].'</font></b></td></tr>';
|
||||
for ( $i = 1; $i < $sensors['fancount'] + 1; $i++ ) {
|
||||
$_text .= '<tr>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['fan'.$i]['label'] .' </font></td>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['fan'.$i]['current'] .' </font></td>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['fan'.$i]['min'] .' </font></td>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['fan'.$i]['div'] .' </font></td>';
|
||||
$_text .= '<td align="right"><font size="-1">'. $sensors['fan'.$i]['status'] .' </font></td>';
|
||||
$_text .= '</tr>';
|
||||
}
|
||||
$_text .= '</table>';
|
||||
|
||||
$tpl->set_var('fsensors', makebox($text['fsensors'], $_text, '100%'));
|
||||
|
||||
// Temperaturas
|
||||
$_text = '<table width="100%" align="center">';
|
||||
$_text .= '<tr><td align="left"><font size="-1"><b>'.$text['ttype'].'</b></td>'.
|
||||
'<td align="left"><font size="-1"><b>'.$text['current'].'</b></font></td>'.
|
||||
'<td align="left"><font size="-1"><b>'.$text['hysteresis'].'</b></font></td>'.
|
||||
'<td align="left"><font size="-1"><b>'.$text['limit'].'</b></font></td>'.
|
||||
'<td align="right"><font size="-1"><b>'.$text['status'].'</b></font></td></tr>';
|
||||
|
||||
for ( $i = 1; $i < $sensors['tempcount'] + 1; $i++ ) {
|
||||
$_text .= '<tr>';
|
||||
$_text .= '<td valign="top" align="left"><font size="-1">' . $sensors['temp'.$i]['label'] . ' </font></td>';
|
||||
$_text .= '<td valign="top" align="left"><font size="-1">' . $sensors['temp'.$i]['current'] . ' </font></td>';
|
||||
$_text .= '<td valign="top" align="left"><font size="-1">' . $sensors['temp'.$i]['min'] . ' </font></td>';
|
||||
$_text .= '<td valign="top" align="left"><font size="-1">' . $sensors['temp'.$i]['max'] . ' </font></td>';
|
||||
$_text .= '<td valign="top" align="right"><font size="-1">'. $sensors['temp'.$i]['status'] . ' </font></td>';
|
||||
$_text .= '</tr>';
|
||||
}
|
||||
|
||||
$_text .= '</table>';
|
||||
|
||||
$tpl->set_var('tsensors', makebox($text['tsensors'], $_text, '100%'));
|
||||
|
||||
|
||||
// Otros
|
||||
$_text = '<table width="100%" align="center">';
|
||||
$_text .= '<tr><td align="left"><font size="-1"><b>'.$text['field'].'</b></font></td>' .
|
||||
'<td align="left"><font size="-1"><b>'.$text['current'].'</b></font></td></tr>';
|
||||
for ( $i = 0; $i < $sensors['othercount']; $i++ ) {
|
||||
$_text .= '<tr><td align="left"><font size="-1">' . $sensors['others'.$i]['label'] . ' </font></td>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['others'.$i]['current'] . ' </font></td></tr>';
|
||||
}
|
||||
|
||||
$_text .= '</table>';
|
||||
|
||||
$tpl->set_var('osensors', makebox($text['osensors'], $_text, '100%'));
|
||||
|
||||
?>
|
||||
<!--
|
||||
/*
|
||||
<.!-- Start Fans table --.>
|
||||
<.!-- Start Temperature table --.>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" align="left"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
*/
|
||||
-->
|
176
otros/includes/table_sensors.php~
Normal file
176
otros/includes/table_sensors.php~
Normal file
@ -0,0 +1,176 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
||||
//
|
||||
// $Id: table_sensors.php,v 1.0 2000/12/10 21:42:11 TheGoop Exp $
|
||||
|
||||
require('includes/system_sensors.php');
|
||||
|
||||
$scale_factor = 2;
|
||||
|
||||
$sensors = sys_parsesensors();
|
||||
|
||||
//Voltajes
|
||||
$_text = '<table width="100%" align="center">';
|
||||
|
||||
$_text .= '<tr><td align="left"><font size="-1"><b>' . $text['vtype'] .
|
||||
'</b></font></td><td align="left"><font size="-1"><b>' . $text['current'] .
|
||||
'</b></font></td><td align="left"><font size="-1"><b>' . $text['min'] .
|
||||
'</b></font></td><td align="left"><font size="-1"><b>' . $text['max'] .
|
||||
'</b></font></td><td align="right"><font size="-1"><b>' . $text['status'] .
|
||||
'</b></font></td></tr>';
|
||||
|
||||
for ( $i = 0; $i < $sensors[voltcount]; $i++ ) {
|
||||
if ($sensors['volt'.$i]['min'] == " V" && $sensors['volt'.$i]['max'] == " V") {
|
||||
$_text .= '<tr>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['volt'.$i]['label'] . ' </td>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['volt'.$i]['current'] . ' </td>';
|
||||
$_text .= '<td align="left"> </td>';
|
||||
$_text .= '<td align="left"> </td>';
|
||||
$_text .= '<td align="left"> </td>';
|
||||
$_text .= '</tr>';
|
||||
}
|
||||
else {
|
||||
$_text .= '<tr>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['volt'.$i]['label'] . ' </font></td>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['volt'.$i]['current'] . ' </font></td>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['volt'.$i]['min'] . ' </font></td>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['volt'.$i]['max'] . ' </font></td>';
|
||||
$_text .= '<td align="right"><font size="-1">' . $sensors['volt'.$i]['status'] . ' </font></td>';
|
||||
$_text .= '</tr>';
|
||||
}
|
||||
}
|
||||
$_text .= '</table>';
|
||||
|
||||
$tpl->set_var('vsensors', makebox($text['vsensors'], $_text, '100%'));
|
||||
|
||||
// Ventiladores
|
||||
$_text = '<table width="100%" align="center">';
|
||||
$_text .= '<tr><td align="left"><font size="-1"><b>'.$text['ftype'].'</b></font></td>'.
|
||||
'<td align="left"><font size="-1"><b>'.$text['current'].'</b></font></b></td>'.
|
||||
'<td align="left"><font size="-1"><b>'.$text['min'].'</b></font></td>'.
|
||||
'<td align="left"><font size="-1"><b>'.$text['div'].'</b></font></td>'.
|
||||
'<td align="right"><font size="-1"><b>'.$text['status'].'</font></b></td></tr>';
|
||||
for ( $i = 1; $i < $sensors['fancount'] + 1; $i++ ) {
|
||||
$_text .= '<tr>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['fan'.$i]['label'] .' </font></td>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['fan'.$i]['current'] .' </font></td>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['fan'.$i]['min'] .' </font></td>';
|
||||
$_text .= '<td align="left"><font size="-1">' . $sensors['fan'.$i]['div'] .' </font></td>';
|
||||
$_text .= '<td align="right"><font size="-1">'. $sensors['fan'.$i]['status'] .' </font></td>';
|
||||
$_text .= '</tr>';
|
||||
}
|
||||
$_text .= '</table>';
|
||||
|
||||
$tpl->set_var('fsensors', makebox($text['fsensors'], $_text, '100%'));
|
||||
|
||||
// Temperaturas
|
||||
$_text = '<table width="100%" align="center">';
|
||||
$_text .= '<tr><td align="left"><font size="-1"><b>'.$text['ttype'].'</b></td>'.
|
||||
'<td align="left"><font size="-1"><b>'.$text['current'].'</b></font></td>'.
|
||||
'<td align="left"><font size="-1"><b>'.$text['hysteresis'].'</b></font></td>'.
|
||||
'<td align="left"><font size="-1"><b>'.$text['limit'].'</b></font></td>'.
|
||||
'<td align="right"><font size="-1"><b>'.$text['status'].'</b></font></td></tr>';
|
||||
|
||||
for ( $i = 1; $i < $sensors['tempcount'] + 1; $i++ ) {
|
||||
$_text .= '<tr>';
|
||||
$_text .= '<td valign="top" align="left"><font size="-1">' . $sensors['temp'.$i]['label'] . ' </font></td>';
|
||||
$_text .= '<td valign="top" align="left"><font size="-1">' . $sensors['temp'.$i]['current'] . ' </font></td>';
|
||||
$_text .= '<td valign="top" align="left"><font size="-1">' . $sensors['temp'.$i]['min'] . ' </font></td>';
|
||||
$_text .= '<td valign="top" align="left"><font size="-1">' . $sensors['temp'.$i]['max'] . ' </font></td>';
|
||||
$_text .= '<td valign="top" align="right"><font size="-1">'. $sensors['temp'.$i]['status'] . ' </font></td>';
|
||||
$_text .= '</tr>';
|
||||
}
|
||||
|
||||
$_text .= '</table>';
|
||||
|
||||
$tpl->set_var('tsensors', makebox($text['tsensors'], $_text, '100%'));
|
||||
|
||||
|
||||
// Otros
|
||||
$_text = '<table width="100%" align="center">';
|
||||
$_text .= '<tr><td><p>Prueba</p></td></tr><tr><td><p>ewrkfhsjghkshgk</p></td></tr>';
|
||||
|
||||
$_text .= '</table>';
|
||||
|
||||
$tpl->set_var('osensors', makebox($text['osensors'], $_text, '100%'));
|
||||
|
||||
?>
|
||||
<!--
|
||||
/*
|
||||
<.!-- Start Fans table --.>
|
||||
<.!-- Start Temperature table --.>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="5" align="left"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<SPACER type="block" height="10">
|
||||
|
||||
<.!-- Start Other Info table --.>
|
||||
|
||||
<table width="100%" bgcolor="<?php echo $detail_border_color; ?>" border="0" cellpadding="1" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" bgcolor="<?php echo $detail_body_color; ?>" border="0" cellpadding="2" cellspacing="0">
|
||||
<tr bgcolor="<?php echo $detail_header_color; ?>">
|
||||
<td colspan="2" align="left">
|
||||
<?php echo $f_head_open; ?> <?php echo $text['osensors'] ?> <?php echo $f_head_close; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="left"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><?php echo $f_body_open; echo '<b>'.$text['field'].'</b>'; echo $f_body_close; ?></td>
|
||||
<td align="left"><?php echo $f_body_open; echo '<b>'.$text['current'].'</b>'; echo $f_body_close; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
for ( $i = 0; $i < $sensors['othercount']; $i++ ) {
|
||||
|
||||
echo "\t<tr>\n";
|
||||
echo "\t\t<td align=\"left\">$f_body_open" . $sensors['others'.$i]['label'] . " $f_body_close</td>\n";
|
||||
echo "\t\t<td align=\"left\">$f_body_open" . $sensors['others'.$i]['current'] . " $f_body_close</td>\n";
|
||||
echo "\t</tr>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" align="left"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
*/
|
||||
-->
|
45
otros/includes/table_vitals.php
Normal file
45
otros/includes/table_vitals.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
//
|
||||
// phpSysInfo - A PHP System Information Script
|
||||
// http://phpsysinfo.sourceforge.net/
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
//
|
||||
// $Id: table_vitals.php,v 1.5 2001/08/02 22:41:45 jengo Exp $
|
||||
|
||||
$ar_buf = $sysinfo->loadavg();
|
||||
|
||||
for ($i=0;$i<3;$i++) {
|
||||
if ($ar_buf[$i] > 2) {
|
||||
$load_avg .= '<font color="#ff0000">' . $ar_buf[$i] . '</font>';
|
||||
} else {
|
||||
$load_avg .= $ar_buf[$i];
|
||||
}
|
||||
$load_avg .= ' ';
|
||||
}
|
||||
|
||||
$_text = '<table border="0" width="90%" align="center">'
|
||||
. '<tr><td><font size="-1">'. $text['hostname'] .'</font></td><td><font size="-1">' . $sysinfo->chostname() . '</font></td></tr>'
|
||||
. '<tr><td><font size="-1">'. $text['ip'] .'</font></td><td><font size="-1">' . $sysinfo->ip_addr() . '</font></td></tr>'
|
||||
|
||||
. '<tr><td><font size="-1">'. $text['kversion'] .'</font></td><td><font size="-1">' . $sysinfo->kernel() . '</font></td></tr>'
|
||||
. '<tr><td><font size="-1">'. $text['uptime'] .'</font></td><td><font size="-1">' . $sysinfo->uptime() . '</font></td></tr>'
|
||||
. '<tr><td><font size="-1">'. $text['users'] .'</font></td><td><font size="-1">' . $sysinfo->users() . '</font></td></tr>'
|
||||
. '<tr><td><font size="-1">'. $text['loadavg'] .'</font></td><td><font size="-1">' . $load_avg . '</font></td></tr>'
|
||||
. '</table>';
|
||||
|
||||
$tpl->set_var('vitals', makebox($text['vitals'], $_text, '100%'));
|
||||
|
||||
?>
|
Reference in New Issue
Block a user