更新到 5.2 正式版后第一次 SVN 提交。

yuchenghu@hawebs.net


git-svn-id: https://svn.code.sf.net/p/hawebs/svn@646 a2543c7e-f6e9-4f8a-8bff-1ffc34733512
This commit is contained in:
YuCheng Hu
2010-11-17 02:24:50 +00:00
parent 4a3492e721
commit 24a4c3e452
108 changed files with 16750 additions and 0 deletions
@@ -0,0 +1,13 @@
<?php
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
*
********************************************************************************/
require_once('include/Ajax/CommonAjax.php');
?>
@@ -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: config.php.new,v 1.18 2006/04/22 14:35:56 bigmichi1 Exp $
// if $webpath set to an value it will be possible to include phpsysinfo with a simple include() statement in other scripts
// but the structure in the phpsysinfo directory can't be changed
// $webpath specifies the absolute path when you browse to the phpsysinfo page
// e.g.: your domain www.yourdomain.com
// you put the phpsysinfo directory at /phpsysinfo in the webroot
// then normally you browse there with www.yourdomain.com/phpsysinfo
// now you want to include the index.php from phpsysinfo in a script, locatet at /
// then you need to set $webpath to /phpsysinfo/
// if you put the phpsysinfo folder at /tools/phpsysinfo $webpath will be /tools/phpsysinfo/
// you don't need to change it, if you don't include it in other pages
// so default will be fine for everyone
$webpath = $site_URL."/modules/System/";
// define the default lng and template here
$default_lng='en';
$default_template='classic';
// hide language and template picklist
// false = display picklist
// true = do not display picklist
$hide_picklist = true;
// define the motherboard monitoring program here
// we support four programs so far
// 1. lmsensors http://www2.lm-sensors.nu/~lm78/
// 2. healthd http://healthd.thehousleys.net/
// 3. hwsensors http://www.openbsd.org/
// 4. mbmon http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/download.html
// 5. mbm5 http://mbm.livewiredev.com/
// $sensor_program = "lmsensors";
// $sensor_program = "healthd";
// $sensor_program = "hwsensors";
// $sensor_program = "mbmon";
// $sensor_program = "mbm5";
$sensor_program = "";
// show mount point
// true = show mount point
// false = do not show mount point
$show_mount_point = true;
// show bind
// true = display filesystems mounted with the bind options under Linux
// false = hide them
$show_bind = false;
// show inode usage
// true = display used inodes in percent
// false = hide them
$show_inodes = true;
// Hide mount(s). Example:
// $hide_mounts[] = '/home';
// if the hddtemp program is available we can read the temperature, if hdd is smart capable
// !!ATTENTION!! hddtemp might be a security issue
// $hddtemp_avail = "tcp"; // read data from hddtemp deamon (localhost:7634)
// $hddtemp_avail = "suid"; // read data from hddtemp programm (must be set suid)
// show a graph for current cpuload
// true = displayed, but it's a performance hit (because we have to wait to get a value, 1 second)
// false = will not be displayed
$loadbar = false;
// additional paths where to look for installed programs
// e.g. $addpaths = array('/opt/bin', '/opt/sbin');
$addpaths = array();
// display error messages at the top of the page
// $showerrors = true; // show the errors
// $showerrors = false; // don't show the errors
$showerrors = false; //Pinaki: Fix for ticket #4462
?>
@@ -0,0 +1,60 @@
; linux-distros.ini - Defines known linux distros for phpSysInfo.
; http://phpsysinfo.sourceforge.net/
; $Id: distros.ini,v 1.1 2005/11/22 14:30:28 bigmichi1 Exp $
;
[Debian]
Name = "Debian"
Image = "Debian.png"
Files = "/etc/debian_release;/etc/debian_version"
[Suse]
Image = "Suse.png"
Files = "/etc/SuSE-release;/etc/UnitedLinux-release"
[Mandrage]
Image = "Mandrake.png"
Files = "/etc/mandrake-release"
[Gentoo]
Image = "Gentoo.png"
Files = "/etc/gentoo-release"
[RedHat]
Image = "Redhat.png"
Files = "/etc/redhat-release;/etc/redhat_version"
[Fedora]
Image = "Fedora.png"
Files = "/etc/fedora-release"
[Slackware]
Image = "Slackware.png"
Files = "/etc/slackware-release;/etc/slackware-version"
[Trustix]
Image = "Trustix.gif"
Files = "/etc/trustix-release;/etc/trustix-version"
[FreeEOS]
Image = "free-eos.png"
Files = "/etc/eos-version"
[Arch]
Image = "Arch.gif"
Files = "/etc/gentoo-release"
[Cobalt]
Image = "Cobalt.png"
Files = "/etc/cobalt-release"
[LinuxFromScratch]
Image = "lsf.png"
Files = "/etc/lfs-release"
[Rubix]
Image = "Rubix.png"
Files = "/etc/rubix-version"
[Ubunto]
Files = "/etc/lsb-release"
Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 851 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 438 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

File diff suppressed because it is too large Load Diff
@@ -0,0 +1,449 @@
<?php
/**************************************************************************\
* eGroupWare API - Template class *
* (C) Copyright 1999-2000 NetUSE GmbH Kristian Koehntopp *
* ------------------------------------------------------------------------ *
* http://www.egroupware.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.5 2005/11/26 13:01:24 bigmichi1 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] = str_replace('phpGroupWare','eGroupWare',$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] = str_replace('phpGroupWare','eGroupWare',$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);
reset($this->varkeys);
while (list($k, $v) = each($this->varkeys))
{
$str = str_replace($v, $this->varvals[$k], $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)
{
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($GLOBALS['egw_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 '{'.$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)
{
$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);
}
}
@@ -0,0 +1,107 @@
<?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.error.inc.php,v 1.4 2006/02/27 21:01:44 bigmichi1 Exp $
class Error {
// Array which holds the error messages
var $arrErrorList = array();
// current number of errors encountered
var $errors = 0;
/**
*
* addError()
*
* @param strCommand string Command, which cause the Error
* @param strMessage string additional Message, to describe the Error
* @param intLine integer on which line the Error occours
* @param strFile string in which File the Error occours
*
* @return -
*
**/
function addError( $strCommand, $strMessage, $intLine, $strFile ) {
$this->arrErrorList[$this->errors]['command'] = $strCommand;
$this->arrErrorList[$this->errors]['message'] = $strMessage;
$this->arrErrorList[$this->errors]['line'] = $intLine;
$this->arrErrorList[$this->errors]['file'] = basename( $strFile );
$this->errors++;
}
/**
*
* ErrorsAsHTML()
*
* @param -
*
* @return string string which contains a HTML table which can be used to echo out the errors
*
**/
function ErrorsAsHTML() {
$strHTMLString = "";
$strWARNString = "";
$strHTMLhead = "<table width=\"100%\" border=\"0\">\n"
. " <tr>\n"
. " <td><font size=\"-1\"><b>File</b></font></td>\n"
. " <td><font size=\"-1\"><b>Line</b></font></td>\n"
. " <td><font size=\"-1\"><b>Command</b></font></td>\n"
. " <td><font size=\"-1\"><b>Message</b></font></td>\n"
. " </tr>\n";
$strHTMLfoot = "</table>";
if( $this->errors > 0 ) {
foreach( $this->arrErrorList as $arrLine ) {
if( $arrLine['command'] == "WARN" ) {
$strWARNString .= "<font size=\"-1\"><b>WARNING: " . htmlspecialchars( $arrLine['message'] ) . "</b></font><br/>\n";
} else {
$strHTMLString .= " <tr>\n"
. " <td><font size=\"-1\">" . htmlspecialchars( $arrLine['file'] ) . "</font></td>\n"
. " <td><font size=\"-1\">" . $arrLine['line'] . "</font></td>\n"
. " <td><font size=\"-1\">" . htmlspecialchars( $arrLine['command'] ) . "</font></td>\n"
. " <td><font size=\"-1\">" . htmlspecialchars( $arrLine['message'] ) . "</font></td>\n"
. " </tr>\n";
}
}
}
if( !empty( $strHTMLString ) ) {
$strHTMLString = $strWARNString . $strHTMLhead . $strHTMLString . $strHTMLfoot;
} else {
$strHTMLString = $strWARNString;
}
return $strHTMLString;
}
/**
*
* ErrorsExist()
*
* @param -
*
* @return true there are errors logged
* false no errors logged
*
**/
function ErrorsExist() {
if( $this->errors > 0 ) {
return true;
} else {
return false;
}
}
}
?>
@@ -0,0 +1,350 @@
<?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.42 2006/04/17 13:03:38 bigmichi1 Exp $
// HTML/XML Comment
function created_by ()
{
global $VERSION;
return "<!--\n\tCreated By: phpSysInfo - $VERSION\n\thttp://phpsysinfo.sourceforge.net/\n-->\n\n";
}
// usefull during development
error_reporting(E_ALL | E_NOTICE);
// print out the bar graph
// $value as full percentages
// $maximim as current maximum
// $b as scale factor
// $type as filesystem type
function create_bargraph ($value, $maximum, $b, $type = "")
{
global $webpath;
$textdir = direction();
$imgpath = 'modules/System/templates/' . TEMPLATE_SET . '/images/';
$maximum == 0 ? $barwidth = 0 : $barwidth = round((100 / $maximum) * $value) * $b;
$red = 90 * $b;
$yellow = 75 * $b;
if (!file_exists("/modules/System/templates/" . TEMPLATE_SET . "/images/nobar_left.gif")) {
if ($barwidth == 0) {
return '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'bar_' . $textdir['left'] . '.gif" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'bar_middle.gif" width="1" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'bar_' . $textdir['right'] . '.gif" alt="">';
} elseif (file_exists("/modules/System/templates/" . TEMPLATE_SET . "/images/yellowbar_left.gif") && $barwidth > $yellow && $barwidth < $red) {
return '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'yellowbar_' . $textdir['left'] . '.gif" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'yellowbar_middle.gif" width="' . $barwidth . '" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'yellowbar_' . $textdir['right'] . '.gif" alt="">';
} elseif (($barwidth < $red) || ($type == "iso9660") || ($type == "CDFS")) {
return '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'bar_' . $textdir['left'] . '.gif" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'bar_middle.gif" width="' . $barwidth . '" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'bar_' . $textdir['right'] . '.gif" alt="">';
} else {
return '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'redbar_' . $textdir['left'] . '.gif" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'redbar_middle.gif" width="' . $barwidth . '" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'redbar_' . $textdir['right'] . '.gif" alt="">';
}
} else {
if ($barwidth == 0) {
return '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'nobar_' . $textdir['left'] . '.gif" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'nobar_middle.gif" width="' . (100 * $b) . '" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'nobar_' . $textdir['right'] . '.gif" alt="">';
} elseif (file_exists("/modules/System/templates/" . TEMPLATE_SET . "/images/yellowbar_left.gif") && $barwidth > $yellow && $barwidth < $red) {
return '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'yellowbar_' . $textdir['left'] . '.gif" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'yellowbar_middle.gif" width="' . $barwidth . '" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'nobar_middle.gif" width="' . ((100 * $b) - $barwidth) . '" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'nobar_' . $textdir['right'] . '.gif" alt="">';
} elseif (($barwidth < $red) || $type == "iso9660" || ($type == "CDFS")) {
return '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'bar_' . $textdir['left'] . '.gif" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'bar_middle.gif" width="' . $barwidth . '" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'nobar_middle.gif" width="' . ((100 * $b) - $barwidth) . '" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'nobar_' . $textdir['right'] . '.gif" alt="">';
} elseif ($barwidth == (100 * $b)) {
return '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'redbar_' . $textdir['left'] . '.gif" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'redbar_middle.gif" width="' . (100 * $b) . '" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'redbar_' . $textdir['right'] . '.gif" alt="">';
} else {
return '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'redbar_' . $textdir['left'] . '.gif" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'redbar_middle.gif" width="' . $barwidth . '" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'nobar_middle.gif" width="' . ((100 * $b) - $barwidth) . '" alt="">'
. '<img height="' . BAR_HEIGHT . '" src="' . $imgpath . 'nobar_' . $textdir['right'] . '.gif" alt="">';
}
}
}
function create_bargraph_grad( $value, $maximum, $b, $type = "" ) {
global $webpath;
$maximum == 0 ? $barwidth = 0 : $barwidth = round((100 / $maximum) * $value);
$startColor = '0ef424'; // green
$endColor = 'ee200a'; // red
if ($barwidth > 100) {
$barwidth = 0;
}
return '<img height="' . BAR_HEIGHT . '" width="300" src="' . $webpath . 'includes/indicator.php?height=' . BAR_HEIGHT . '&amp;percent=' . $barwidth . '&amp;color1=' . $startColor . '&amp;color2=' . $endColor . '" alt="">';
}
function direction() {
global $text_dir;
if(!isset($text_dir) || $text_dir == "ltr") {
$result['direction'] = "ltr";
$result['left'] = "left";
$result['right'] = "right";
} else {
$result['direction'] = "rtl";
$result['left'] = "right";
$result['right'] = "left";
}
return $result;
}
// Find a system program. Do path checking
function find_program ($program)
{
global $addpaths;
$path = array('/bin', '/sbin', '/usr/bin', '/usr/sbin', '/usr/local/bin', '/usr/local/sbin');
if( isset($addpaths) && is_array($addpaths) ) {
$path = array_merge( $path, $addpaths );
}
if (function_exists("is_executable")) {
while ($this_path = current($path)) {
if (is_executable("$this_path/$program")) {
return "$this_path/$program";
}
next($path);
}
} else {
return strpos($program, '.exe');
} ;
return;
}
// Execute a system program. return a trim()'d result.
// does very crude pipe checking. you need ' | ' for it to work
// ie $program = execute_program('netstat', '-anp | grep LIST');
// NOT $program = execute_program('netstat', '-anp|grep LIST');
function execute_program ($programname, $args = '', $booErrorRep = true )
{
global $error;
$buffer = '';
$program = find_program($programname);
if (!$program) {
if( $booErrorRep ) {
$error->addError( 'find_program(' . $programname . ')', 'program not found on the machine', __LINE__, __FILE__);
}
return;
}
// see if we've gotten a |, if we have we need to do patch checking on the cmd
if ($args) {
$args_list = split(' ', $args);
for ($i = 0; $i < count($args_list); $i++) {
if ($args_list[$i] == '|') {
$cmd = $args_list[$i + 1];
$new_cmd = find_program($cmd);
$args = ereg_replace("\| $cmd", "| $new_cmd", $args);
}
}
}
// we've finally got a good cmd line.. execute it
if ($fp = popen("($program $args > /dev/null) 3>&1 1>&2 2>&3", 'r')) {
while (!feof($fp)) {
$buffer .= fgets($fp, 4096);
}
pclose($fp);
$buffer = trim($buffer);
if (!empty($buffer)) {
if( $booErrorRep ) {
$error->addError( $program, $buffer, __LINE__, __FILE__);
}
}
}
if ($fp = popen("$program $args", 'r')) {
$buffer = "";
while (!feof($fp)) {
$buffer .= fgets($fp, 4096);
}
pclose($fp);
}
$buffer = trim($buffer);
return $buffer;
}
// 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;
$spacer = '&nbsp;';
if ($kbytes > 1048576) {
$result = sprintf('%.' . $dec_places . 'f', $kbytes / 1048576);
$result .= $spacer . $text['gb'];
} elseif ($kbytes > 1024) {
$result = sprintf('%.' . $dec_places . 'f', $kbytes / 1024);
$result .= $spacer . $text['mb'];
} else {
$result = sprintf('%.' . $dec_places . 'f', $kbytes);
$result .= $spacer . $text['kb'];
}
return $result;
}
function get_gif_image_height($image)
{
// gives the height of the given GIF image, by reading it's LSD (Logical Screen Discriptor)
// by Edwin Meester aka MillenniumV3
// Header: 3bytes Discription
// 3bytes Version
// LSD: 2bytes Logical Screen Width
// 2bytes Logical Screen Height
// 1bit Global Color Table Flag
// 3bits Color Resolution
// 1bit Sort Flag
// 3bits Size of Global Color Table
// 1byte Background Color Index
// 1byte Pixel Aspect Ratio
// Open Image
$fp = fopen($image, 'rb');
// read Header + LSD
$header_and_lsd = fread($fp, 13);
fclose($fp);
// calc Height from Logical Screen Height bytes
$result = ord($header_and_lsd{8}) + ord($header_and_lsd{9}) * 255;
return $result;
}
// Check if a string exist in the global $hide_mounts.
// Return true if this is the case.
function hide_mount($mount) {
global $hide_mounts;
if (isset($hide_mounts) && is_array($hide_mounts) && in_array($mount, $hide_mounts)) {
return true;
}
else {
return false;
}
}
function uptime($timestamp) {
global $text;
$uptime = '';
$min = $timestamp / 60;
$hours = $min / 60;
$days = floor($hours / 24);
$hours = floor($hours - ($days * 24));
$min = floor($min - ($days * 60 * 24) - ($hours * 60));
if ($days != 0) {
$uptime .= $days. "&nbsp;" . $text['days'] . "&nbsp;";
}
if ($hours != 0) {
$uptime .= $hours . "&nbsp;" . $text['hours'] . "&nbsp;";
}
$uptime .= $min . "&nbsp;" . $text['minutes'];
return $uptime;
}
//Replace some chars which are not valid in xml with iso-8859-1 encoding
function replace_specialchars(&$xmlstring) {
$xmlstring = str_replace( chr(174), "(R)", $xmlstring );
$xmlstring = str_replace( chr(169), "(C)", $xmlstring );
}
// find duplicate entrys and count them, show this value befor the duplicated name
function finddups( $arrInput ) {
$result = array();
//Pinaki: Fix for ticket #4462
if($arrInput!=null)
{
$buffer = array_count_values($arrInput);
foreach ($buffer as $key => $value) {
if( $value > 1 ) {
$result[] = "(" . $value . "x) " . $key;
} else {
$result[] = $key;
}
}
}
return $result;
}
function rfts( $strFileName, $intLines = 0, $intBytes = 4096, $booErrorRep = true ) {
global $error;
$strFile = "";
$intCurLine = 1;
if( file_exists( $strFileName ) ) {
if( $fd = fopen( $strFileName, 'r' ) ) {
while( !feof( $fd ) ) {
$strFile .= fgets( $fd, $intBytes );
if( $intLines <= $intCurLine && $intLines != 0 ) {
break;
} else {
$intCurLine++;
}
}
fclose( $fd );
} else {
if( $booErrorRep ) {
$error->addError( 'fopen(' . $strFileName . ')', 'file can not read by phpsysinfo', __LINE__, __FILE__ );
}
return "ERROR";
}
} else {
if( $booErrorRep ) {
$error->addError( 'file_exists(' . $strFileName . ')', 'the file does not exist on your machine', __LINE__, __FILE__ );
}
return "ERROR";
}
return $strFile;
}
function gdc( $strPath, $booErrorRep = true ) {
global $error;
$arrDirectoryContent = array();
if( is_dir( $strPath ) ) {
if( $handle = opendir( $strPath ) ) {
while( ( $strFile = readdir( $handle ) ) !== false ) {
if( $strFile != "." && $strFile != ".." && $strFile != "CVS" ) {
$arrDirectoryContent[] = $strFile;
}
}
closedir( $handle );
} else {
if( $booErrorRep ) {
$error->addError( 'opendir(' . $strPath . ')', 'directory can not be read by phpsysinfo', __LINE__, __FILE__ );
}
}
} else {
if( $booErrorRep ) {
$error->addError( 'is_dir(' . $strPath . ')', 'directory does not exist on your machine', __LINE__, __FILE__ );
}
}
return $arrDirectoryContent;
}
?>
@@ -0,0 +1,110 @@
<?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: ar_utf8.php,v 1.12 2005/12/31 17:25:02 bigmichi1 Exp $
//
//Translated to arabic by: Nizar Abed - nizar@srcget.com - Adios
$charset = 'utf-8';
$text['title'] = 'معلومات عن ألنظام';
$text['vitals'] = 'حيويه';
$text['hostname'] = ' ألمحطه';
$text['ip'] = 'IP عنوان أل';
$text['kversion'] = 'إصدار رقم';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'مدة ألتشغيل';
$text['users'] = 'مستخدمون';
$text['loadavg'] = 'معدل ألتشغيل';
$text['hardware'] = 'معلومات ألمعدات';
$text['numcpu'] = 'وحدات ألمعالجه';
$text['cpumodel'] = 'نوع';
$text['cpuspeed'] = 'سرعه في';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = ' cache سعة ذاكرة';
$text['bogomips'] = 'Bogomips سرعه في';
$text['pci'] = 'PCI معدات ';
$text['ide'] = 'IDE معدات';
$text['scsi'] = 'SCSI معدات';
$text['usb'] = 'USB معدات';
$text['netusage'] = 'إستعمال ألشبكه';
$text['device'] = 'معدات';
$text['received'] = 'إستقبل حتى ألآن';
$text['sent'] = 'أرسل';
$text['errors'] = 'أخطاء';
$text['connections'] = 'إتصالات شبكه منفذه';
$text['memusage'] = 'ذاكره مستعمله';
$text['phymem'] = 'ذاكره جسديه';
$text['swap'] = 'Swap ذاكرة';
$text['fs'] = 'أنظمة ملفات مخططه';
$text['mount'] = 'مخطط';
$text['partition'] = 'تقطيع';
$text['percent'] = 'سعه بألنسبه ألمؤيه';
$text['type'] = 'نوع';
$text['free'] = 'حر';
$text['used'] = 'مستعمل';
$text['size'] = 'حجم';
$text['totals'] = 'مجموع';
$text['kb'] = ' كيلو بايت KB';
$text['mb'] = 'ميغا بايت MB';
$text['gb'] = 'جيغا بايت GB';
$text['none'] = 'بدون';
$text['capacity'] = 'سعه';
$text['template'] = 'بنيه';
$text['language'] = 'لغه';
$text['submit'] = 'أدخل';
$text['created'] = 'إصدر بواسطة';
$text['days'] = 'أيام';
$text['hours'] = 'ساعات';
$text['minutes'] = 'دفائق';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
?>
@@ -0,0 +1,108 @@
<?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: bg.php,v 1.13 2005/12/31 17:25:02 bigmichi1 Exp $
$charset = 'cp-1251';
$text['title'] = 'Ñèñòåìíà Èíôîðìàöèÿ';
$text['vitals'] = 'Æèçíåíà Èíôîðàìöèÿ';
$text['hostname'] = 'Èìå íà õîñòà';
$text['ip'] = 'IP Àäðåñ';
$text['kversion'] = 'Âåðñèÿ íà ÿäðîòî';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Ðàáîòè îò';
$text['users'] = 'Âêëþ÷åíè ïîòðåáèòåëè';
$text['loadavg'] = 'Ñðåäíî íàòîâàðâàíå';
$text['hardware'] = 'Èíôîðìàöèÿ çà õàðäóåðà';
$text['numcpu'] = 'Áðîé ïðîöåñîðè';
$text['cpumodel'] = 'Ìîäåë íà ïðîöåñîð';
$text['cpuspeed'] = '×åñòîòà';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Ðàçìåð íà êåøa ';
$text['bogomips'] = 'Bogomips èíäåêñ';
$text['pci'] = 'PCI óñòðîéñòâà';
$text['ide'] = 'IDE óñòðîéñòâà';
$text['scsi'] = 'SCSI óñòðîéñòâà';
$text['usb'] = 'USB óñòðîéñòâà';
$text['netusage'] = 'Ìðåæîâà èíôîðìàöèÿ';
$text['device'] = 'Èíòåðôåéñè';
$text['received'] = 'Ïîëó÷åíè';
$text['sent'] = 'Èçïðàòåíè';
$text['errors'] = 'Ãðåøêè/Èçïóñíàòè';
$text['connections'] = 'Óñúùåñòâåíè ìðåæîâè âðúçêè';
$text['memusage'] = 'Îïåðàòèâíà ïàìåò';
$text['phymem'] = 'Ôèçè÷åñêà ïàìåò';
$text['swap'] = 'Swap ïàìåò';
$text['fs'] = 'Ôàéëîâè ñèñòåìè';
$text['mount'] = 'Ìÿñòî';
$text['partition'] = 'Äÿë';
$text['percent'] = 'Ïðîöåíòíî èçïîëçâàíå';
$text['type'] = 'Òèï';
$text['free'] = 'Ñâîáîäíè';
$text['used'] = 'Èçïîëçâàíè';
$text['size'] = 'Îáù îáåì';
$text['totals'] = 'Âñè÷êî';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'íÿìà';
$text['capacity'] = 'Êàïàöèòåò';
$text['template'] = 'Òåìà';
$text['language'] = 'Åçèê';
$text['submit'] = 'Îïðåñíè';
$text['created'] = 'Ñúçäàäåíî ñ';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'äíè';
$text['hours'] = '÷àñà';
$text['minutes'] = 'ìèíóòè';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,107 @@
<?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: big5.php,v 1.16 2005/12/31 17:25:02 bigmichi1 Exp $
//
$charset = 'big5';
$text['title'] = '系統資訊';
$text['vitals'] = '系統資源';
$text['hostname'] = '主機名稱';
$text['ip'] = '主機對外 IP';
$text['kversion'] = '核心版本';
$text['dversion'] = 'Distro Name';
$text['uptime'] = '已開機時間';
$text['users'] = '登入人數';
$text['loadavg'] = '系統負載';
$text['hardware'] = '硬體資源';
$text['numcpu'] = '運算元';
$text['cpumodel'] = 'CPU型號';
$text['cpuspeed'] = '工作頻率';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = '快取大小';
$text['bogomips'] = '邏輯運算元';
$text['pci'] = 'PCI 介面';
$text['ide'] = 'IDE 介面';
$text['scsi'] = 'SCSI 介面';
$text['usb'] = 'USB 介面';
$text['netusage'] = '網路封包';
$text['device'] = '介面';
$text['received'] = '接收';
$text['sent'] = '傳送';
$text['errors'] = '錯誤/遺失';
$text['connections'] = 'Established Network Connections';
$text['memusage'] = '記憶體資源';
$text['phymem'] = '實體記憶體';
$text['swap'] = '虛擬記憶體(磁碟置換)';
$text['fs'] = '已掛入的檔案系統';
$text['mount'] = '掛入';
$text['partition'] = '磁區';
$text['percent'] = '使用百分比';
$text['type'] = '格式';
$text['free'] = '空餘';
$text['used'] = '已用';
$text['size'] = '大小';
$text['totals'] = '合計';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = '無';
$text['capacity'] = '容量';
$text['template'] = '樣式';
$text['language'] = '語言';
$text['submit'] = '確定';
$text['created'] = '產生由';
$text['locale'] = 'zh_TW.Big5';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = '天';
$text['hours'] = '小時';
$text['minutes'] = '分鐘';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,105 @@
<?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.15 2005/12/31 17:25:02 bigmichi1 Exp $
// Translated by Álvaro Reguly - alvaro at reguly dot net
//
$text['title'] = 'Informações do Sistema';
$text['vitals'] = 'Sistema';
$text['hostname'] = 'Nome Canônico';
$text['ip'] = 'Números IP';
$text['kversion'] = 'Versão do Kernel';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Usuários Conectados';
$text['loadavg'] = 'Carga do Sistema';
$text['hardware'] = 'Informações do Hardware';
$text['numcpu'] = 'Processadores';
$text['cpumodel'] = 'Modelo';
$text['cpuspeed'] = 'CPU Speed';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Tamanho Cache';
$text['bogomips'] = 'Bogomips';
$text['pci'] = 'Dispositivos PCI';
$text['ide'] = 'Dispositivos IDE';
$text['scsi'] = 'Dispositivos SCSI';
$text['usb'] = 'Dispositivos USB';
$text['netusage'] = 'Utilização da Rede';
$text['device'] = 'Dispositivo';
$text['received'] = 'Recebidos';
$text['sent'] = 'Enviados';
$text['errors'] = 'Erros/Drop';
$text['memusage'] = 'Utilização da Memória';
$text['phymem'] = 'Memória Física';
$text['swap'] = 'Swap';
$text['fs'] = 'Sistemas de Arquivo Montados';
$text['mount'] = 'Mount';
$text['partition'] = 'Partiçã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['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'dias';
$text['hours'] = 'horas';
$text['minutes'] = 'minutos';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,107 @@
<?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: ca.php,v 1.13 2005/12/31 17:25:02 bigmichi1 Exp $
//
// Traductor: Miquel Guillamet Montalat
// E-mail: mikelet15@netscape.com Web: http://gitx.dhs.org
//
$text['title'] = 'Informació del Sistema';
$text['vitals'] = 'Vital';
$text['hostname'] = 'Nom del Sistema';
$text['ip'] = 'Direcció IP';
$text['kversion'] = 'Versió del Kernel';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Usuaris actuals';
$text['loadavg'] = 'Carrega del Servidor';
$text['hardware'] = 'Informació del Hardware';
$text['numcpu'] = 'Processadors';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'Frequència en MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'RAM';
$text['bogomips'] = 'Bogomips';
$text['pci'] = 'Dispositius PCI';
$text['ide'] = 'Dispositius IDE';
$text['scsi'] = 'Dispositius SCSI';
$text['usb'] = 'Dispisitius USB';
$text['netusage'] = 'Utilització de la XARXA';
$text['device'] = 'Dispositiu';
$text['received'] = 'Rebut';
$text['sent'] = 'Enviat';
$text['errors'] = 'Errors/Perduts';
$text['memusage'] = 'Utilització de la RAM';
$text['phymem'] = 'Memoria Fisica';
$text['swap'] = 'Swap';
$text['fs'] = 'Particions Montades';
$text['mount'] = 'Montat a';
$text['partition'] = 'Partició';
$text['percent'] = 'Capacitat';
$text['type'] = 'Tipus';
$text['free'] = 'Lliure';
$text['used'] = 'Usat';
$text['size'] = 'Tamany';
$text['totals'] = 'Totals';
$text['kb'] = 'KB';
$text['mg'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'ningun';
$text['capacity'] = 'Capacitat';
$text['template'] = 'Themes';
$text['language'] = 'Llenguatge';
$text['submit'] = 'Enviar';
$text['created'] = 'Creat per';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'dies';
$text['hours'] = 'hores';
$text['minutes'] = 'minuts';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,105 @@
<?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: cn.php,v 1.13 2005/12/31 17:25:02 bigmichi1 Exp $
$charset = 'gb2312';
$text['title'] = '系统信息';
$text['vitals'] = '系统主要信息';
$text['hostname'] = '主机名称';
$text['ip'] = '主机对外IP';
$text['kversion'] = '内核版本';
$text['dversion'] = 'Distro Name';
$text['uptime'] = '开机时间';
$text['users'] = '在线使用者';
$text['loadavg'] = '平均负载';
$text['hardware'] = '硬件信息';
$text['numcpu'] = '处理器数量';
$text['cpumodel'] = 'CPU型号';
$text['cpuspeed'] = '芯片速度';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cache大小';
$text['bogomips'] = '系统Bogomips';
$text['pci'] = 'PCI设备';
$text['ide'] = 'IDE设备';
$text['scsi'] = 'SCSI设备';
$text['usb'] = 'USB设备';
$text['netusage'] = '网络负载';
$text['device'] = '网络设备';
$text['received'] = '接收';
$text['sent'] = '送出';
$text['errors'] = '错误/中断';
$text['memusage'] = '内存使用量';
$text['phymem'] = '物理内存';
$text['swap'] = '虚拟内存(交换分区)';
$text['fs'] = '已挂载分区';
$text['mount'] = '挂载路径';
$text['partition'] = '物理磁盘';
$text['percent'] = '使用量百分比';
$text['type'] = '文件系统类型';
$text['free'] = '剩余空间';
$text['used'] = '已用空间';
$text['size'] = '总容量';
$text['totals'] = '总使用量';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = '无';
$text['capacity'] = '容量';
$text['template'] = '主题';
$text['language'] = '语言';
$text['submit'] = '确定';
$text['created'] = '生成 By';
$text['locale'] = 'zh_CN.eucCN';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = '天';
$text['hours'] = '小时';
$text['minutes'] = '分钟';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,106 @@
<?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.14 2005/12/31 17:25:02 bigmichi1 Exp $
$charset = 'UTF-8';
$text['title'] = 'Informace o systému';
$text['vitals'] = 'Základní informace';
$text['hostname'] = 'Jméno poèítaèe';
$text['ip'] = 'IP adresa';
$text['kversion'] = 'Verze jádra';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Pøihlá¹ených u¾ivatelù';
$text['loadavg'] = 'Prùmìrná zátì¾';
$text['hardware'] = 'Hardwarové informace';
$text['numcpu'] = 'Procesory';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'Frekvence';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Velikost cache';
$text['bogomips'] = 'Bogomipsy';
$text['pci'] = 'PCI zaøízení';
$text['ide'] = 'IDE zaøízení';
$text['scsi'] = 'SCSI zaøízení';
$text['usb'] = 'USB zaøízení';
$text['netusage'] = 'Pou¾ívání sítì';
$text['device'] = 'Zaøízení';
$text['received'] = 'Pøijato';
$text['sent'] = 'Odesláno';
$text['errors'] = 'Chyby/Vypu¹tìno';
$text['memusage'] = 'Obsazení pamìti';
$text['phymem'] = 'Fyzická pamì»';
$text['swap'] = 'Swap';
$text['fs'] = 'Pøipojené souborové systémy';
$text['mount'] = 'Adresáø';
$text['partition'] = 'Oddíl';
$text['percent'] = 'Obsazeno';
$text['type'] = 'Typ';
$text['free'] = 'Volno';
$text['used'] = 'Pou¾ito';
$text['size'] = 'Velikost';
$text['totals'] = 'Celkem';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = '¾ádná';
$text['capacity'] = 'Kapacita';
$text['template'] = '©ablona';
$text['language'] = 'Jazyk';
$text['submit'] = 'Odeslat';
$text['created'] = 'Vytvoøeno pomocí';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'dnù';
$text['hours'] = 'hodin';
$text['minutes'] = 'minut';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,103 @@
<?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: ct.php,v 1.13 2005/12/31 17:25:02 bigmichi1 Exp $
$text['title'] = 'Informaci&oacute; del Sistema';
$text['vitals'] = 'Vitals del Sistema';
$text['hostname'] = 'Nom Canònic';
$text['ip'] = 'Adreça IP';
$text['kversion'] = 'Versi&oacute; del Kernel';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Temps Aixecat';
$text['users'] = 'Usuaris Actuals';
$text['loadavg'] = 'Càrrega Promitg';
$text['hardware'] = 'Informaci&oacute; del Maquinari';
$text['numcpu'] = 'Processadors';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'Xip MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Tamany Memòria Cau';
$text['bogomips'] = 'Bogomips';
$text['pci'] = 'Dispositius PCI';
$text['ide'] = 'Dispositius IDE';
$text['scsi'] = 'Dispositius SCSI';
$text['usb'] = 'Dispositius USB';
$text['netusage'] = 'Ús de la Xarxa';
$text['device'] = 'Dispositiu';
$text['received'] = 'Rebuts';
$text['sent'] = 'Enviats';
$text['errors'] = 'Errors/Perduts';
$text['memusage'] = 'Ús de la Memòria';
$text['phymem'] = 'Memòria F&iacute;sica';
$text['swap'] = 'Disc d\'Swap';
$text['fs'] = 'Sistemes d\'Arxius Muntats';
$text['mount'] = 'Muntat';
$text['partition'] = 'Partició';
$text['percent'] = 'Percentatge de Capacitat';
$text['type'] = 'Tipus';
$text['free'] = 'Lliure';
$text['used'] = 'Emprat';
$text['size'] = 'Tamany';
$text['totals'] = 'Totals';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'cap';
$text['capacity'] = 'Capacitat';
$text['template'] = 'Plantilla';
$text['language'] = 'Llengüa';
$text['submit'] = 'Enviar';
$text['created'] = 'Creat per';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'dies';
$text['hours'] = 'hores';
$text['minutes'] = 'minuts';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,106 @@
<?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.17 2005/12/31 17:25:02 bigmichi1 Exp $
# Translated by Jonas Koch Bentzen (understroem.dk).
$text['title'] = 'Systeminformation';
$text['vitals'] = 'Systemenheder';
$text['hostname'] = 'Konisk værtsnavn';
$text['ip'] = 'IP-adresse, der lyttes på';
$text['kversion'] = 'Kerne-version';
$text['dversion'] = 'Distro Name';
$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['cpuspeed'] = 'CPU Speed';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cachestørrelse';
$text['bogomips'] = 'Bogomips';
$text['pci'] = 'PCI-enheder';
$text['ide'] = 'IDE-enheder';
$text['scsi'] = 'SCSI-enheder';
$text['usb'] = 'USB-enheder';
$text['netusage'] = 'Netvæ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ø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['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'dage';
$text['hours'] = 'timer';
$text['minutes'] = 'minutter';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,104 @@
<?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.18 2006/03/10 21:57:13 bigmichi1 Exp $
$text['title'] = 'System Information';
$text['vitals'] = 'System &Uuml;bersicht';
$text['hostname'] = 'Zugewiesener Hostname';
$text['ip'] = '&Uuml;berwachte IP';
$text['kversion'] = 'Kernel Version';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Betriebszeit';
$text['users'] = 'Eingeloggte Benutzer';
$text['loadavg'] = 'Auslastung';
$text['hardware'] = 'Hardware &Uuml;bersicht';
$text['numcpu'] = 'Prozessoren';
$text['cpumodel'] = 'Modell';
$text['cpuspeed'] = 'Taktfrequenz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cachegr&ouml;&szlig;e';
$text['bogomips'] = 'System Bogomips';
$text['pci'] = 'PCI Ger&auml;te';
$text['ide'] = 'IDE Ger&auml;te';
$text['scsi'] = 'SCSI Ger&auml;te';
$text['usb'] = 'USB Ger&auml;te';
$text['netusage'] = 'Netzwerk-Auslastung';
$text['device'] = 'Schnittstelle';
$text['received'] = 'Empfangen';
$text['sent'] = 'Gesendet';
$text['errors'] = 'Fehler/Verworfen';
$text['memusage'] = 'Speicher-Auslastung';
$text['phymem'] = 'Physikalischer Speicher';
$text['swap'] = 'Auslagerungsdatei';
$text['fs'] = 'Angemeldete Dateisysteme';
$text['mount'] = 'Mount';
$text['partition'] = 'Partition';
$text['percent'] = 'Prozentuale Auslastung';
$text['type'] = 'Typ';
$text['free'] = 'Frei';
$text['used'] = 'Benutzt';
$text['size'] = 'Gr&ouml;&szlig;e';
$text['totals'] = 'Insgesamt';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'keine';
$text['capacity'] = 'Kapazit&auml;t';
$text['template'] = 'Vorlage';
$text['language'] = 'Sprache';
$text['submit'] = '&Auml;ndern';
$text['created'] = 'Erstellt von';
$text['locale'] = 'de_DE';
$text['gen_time'] = 'am %d.%b %Y um %H:%M';
$text['days'] = 'Tage';
$text['hours'] = 'Stunden';
$text['minutes'] = 'Minuten';
$text['temperature'] = 'Temperatur';
$text['voltage'] = 'Spannungen';
$text['fans'] = 'L&uuml;fter';
$text['s_value'] = 'Wert';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Grenzwert';
$text['s_label'] = 'Bezeichnung';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'Umin';
$text['app'] = 'Kernel + Anwendungen';
$text['buffers'] = 'Puffer';
$text['cached'] = 'Cache';
?>
@@ -0,0 +1,106 @@
<?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.18 2005/12/31 17:25:02 bigmichi1 Exp $
$text['title'] = 'Server Hardware Information';
$text['vitals'] = 'Generic Details';
$text['hostname'] = 'Canonical Hostname';
$text['ip'] = 'Listening IP';
$text['kversion'] = 'Kernel Version';
$text['dversion'] = 'OS/ Distribution ';
$text['uptime'] = 'Server uptime';
$text['users'] = 'Current Users';
$text['loadavg'] = 'Load Averages';
$text['hardware'] = 'Hardware Information';
$text['numcpu'] = 'Processors';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'CPU Speed';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cache Size';
$text['bogomips'] = 'System Bogomips';
$text['pci'] = 'PCI Devices';
$text['ide'] = 'IDE Devices';
$text['scsi'] = 'SCSI Devices';
$text['usb'] = 'USB 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'] = 'Server Memory';
$text['phymem'] = 'Hardware Memory (RAM)';
$text['swap'] = 'Disk Swap';
$text['fs'] = 'Server Drives and Volumes';
$text['mount'] = 'Mount/Drive';
$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['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'days';
$text['hours'] = 'hours';
$text['minutes'] = 'minutes';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,104 @@
<?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.16 2005/12/31 17:25:02 bigmichi1 Exp $
$text['title'] = 'Informaci&oacute;n Del Sistema';
$text['vitals'] = 'Vitales';
$text['hostname'] = 'Nombre Del Sistema';
$text['ip'] = 'Direcci&oacute;n IP';
$text['kversion'] = 'Versi&oacute;n Del N&uacute;cleo';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Usuarios Actuales';
$text['loadavg'] = 'Promedio De Uso';
$text['hardware'] = 'Informaci&oacute;n Del Hardware';
$text['numcpu'] = 'Procesadores';
$text['cpumodel'] = 'Modelo';
$text['cpuspeed'] = 'Frecuencia';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Tama&ntilde;o Del Cach&eacute;';
$text['bogomips'] = 'Bogomips';
$text['pci'] = 'Dispositivos PCI';
$text['ide'] = 'Dispositivos IDE';
$text['scsi'] = 'Dispositivos SCSI';
$text['usb'] = 'Dispositivos USB';
$text['netusage'] = 'Utilizaci&oacute;n De La Red';
$text['device'] = 'Dispositivo';
$text['received'] = 'Recibidos';
$text['sent'] = 'Enviados';
$text['errors'] = 'Errores/Perdidos';
$text['memusage'] = 'Utilizaci&oacute;n De La Memoria';
$text['phymem'] = 'Memoria F&iacute;sica';
$text['swap'] = 'Memoria De Intercambio';
$text['fs'] = 'Sistemas De Archivos';
$text['mount'] = 'Punto De Montaje';
$text['partition'] = 'Partici&oacute;n';
$text['percent'] = 'Porcentaje De Uso';
$text['type'] = 'Tipo';
$text['free'] = 'Libre';
$text['used'] = 'Usado';
$text['size'] = 'Tama&ntilde;o';
$text['totals'] = 'Totales';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'Ninguno';
$text['capacity'] = 'Capacidad';
$text['template'] = 'Plantilla';
$text['language'] = 'Idioma';
$text['submit'] = 'Enviar';
$text['created'] = 'Creado por';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'd&iacute;as';
$text['hours'] = 'horas';
$text['minutes'] = 'minutos';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,104 @@
<?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.17 2006/02/07 16:55:36 bigmichi1 Exp $
$text['title'] = 'S&uuml;steemi informatsioon';
$text['vitals'] = 'System Vital';
$text['hostname'] = 'Kanooniline masinanimi';
$text['ip'] = 'Vastav IP';
$text['kversion'] = 'Kerneli versioon';
$text['dversion'] = 'Distro nimi';
$text['uptime'] = 'Masin elus juba';
$text['users'] = 'Hetkel kasutajaid';
$text['loadavg'] = 'Koormuse keskmised';
$text['hardware'] = 'Riistvara informatsioon';
$text['numcpu'] = 'Protsessoreid';
$text['cpumodel'] = 'Mudel';
$text['cpuspeed'] = 'Taktsagedus MHz';
$text['busspeed'] = 'Siinikiirus';
$text['cache'] = 'Vahem&auml;lu suurus';
$text['bogomips'] = 'S&uuml;steemi BogoMIPS';
$text['pci'] = 'PCI-seadmed';
$text['ide'] = 'IDE-seadmed';
$text['scsi'] = 'SCSI-seadmed';
$text['usb'] = 'USB-seadmed';
$text['netusage'] = 'V&otilde;rguteenuse kasutamine';
$text['device'] = 'Seade';
$text['received'] = 'Saadud';
$text['sent'] = 'Saadetud';
$text['errors'] = 'Vigu/H&uuml;ljatud';
$text['memusage'] = 'M&auml;lu kasutamine';
$text['phymem'] = 'F&uuml;&uuml;siline m&auml;lu';
$text['swap'] = 'Saalem&auml;lu kettal';
$text['fs'] = '&Uuml;hendatud failis&uuml;steemid';
$text['mount'] = '&Uuml;hendus';
$text['partition'] = 'Partitsioon';
$text['percent'] = 'Protsendiline h&otilde;ivatus';
$text['type'] = 'T&uuml;&uuml;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&otilde;ivatus';
$text['template'] = 'Mall';
$text['language'] = 'Keel';
$text['submit'] = 'Kehtesta';
$text['created'] = 'Looja:';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'p&auml;eva';
$text['hours'] = 'tundi';
$text['minutes'] = 'minutit';
$text['temperature'] = 'Temperatuur';
$text['voltage'] = 'Pinge';
$text['fans'] = 'Ventilaatorid';
$text['s_value'] = 'V&auml;&auml;rtus';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'H&uuml;sterees';
$text['s_limit'] = 'Limiit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + rakendused';
$text['buffers'] = 'Puhvrid';
$text['cached'] = 'Vahem&auml;lus';
?>
@@ -0,0 +1,106 @@
<?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: eu.php,v 1.13 2005/12/31 17:25:02 bigmichi1 Exp $
$text['title'] = 'Sistemaren Informazioa';
$text['vitals'] = 'Sistema';
$text['hostname'] = 'Zerbitzariaren izen Kanonikoa';
$text['ip'] = 'Entzuten duen IP-a';
$text['kversion'] = 'Kernel Bertsioa';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Piztutako denbora';
$text['users'] = 'Uneko Erabiltzaileak';
$text['loadavg'] = 'Karga ertainak';
$text['hardware'] = 'Hardwarezko Informazioa';
$text['numcpu'] = 'Prozasatzailea';
$text['cpumodel'] = 'Modeloa';
$text['cpuspeed'] = 'Txip MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cache tamaina';
$text['bogomips'] = 'Sistemare Bogomips-ak';
$text['pci'] = 'PCI Dispositiboak';
$text['ide'] = 'IDE Dispositiboak';
$text['scsi'] = 'SCSI Dispositiboak';
$text['usb'] = 'USB Dispositiboak';
$text['netusage'] = 'Sarearen Erabilera';
$text['device'] = 'Dispositiboa';
$text['received'] = 'Jasotakoa';
$text['sent'] = 'Bidalitakoa';
$text['errors'] = 'Err/Huts';
$text['connections'] = 'Established Network Connections';
$text['memusage'] = 'Memoriaren Erabilpena';
$text['phymem'] = 'Memoria Fisikoa';
$text['swap'] = 'Disko Memoria';
$text['fs'] = 'Montatutako Fitxategi-sistemak';
$text['mount'] = 'Non montatuta';
$text['partition'] = 'Partizioa';
$text['percent'] = 'Ehunekoa';
$text['type'] = 'Mota';
$text['free'] = 'Aske';
$text['used'] = 'Erabilita';
$text['size'] = 'Tamaina';
$text['totals'] = 'Guztira';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'ezer ez';
$text['capacity'] = 'Kapazitatea';
$text['template'] = 'Txantiloia';
$text['language'] = 'Langoaia';
$text['submit'] = 'Bidali';
$text['created'] = 'Sortzailea: ';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'egun';
$text['hours'] = 'ordu';
$text['minutes'] = 'minutu';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,106 @@
<?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.13 2005/12/31 17:25:02 bigmichi1 Exp $
// Finnish language file by Jani 'Japala' Ponkko
$text['title'] = 'Tietoa j&auml;rjestelm&auml;st&auml;';
$text['vitals'] = 'Perustiedot';
$text['hostname'] = 'Kanoninen nimi';
$text['ip'] = 'K&auml;ytett&auml;v&auml; IP';
$text['kversion'] = 'Kernelin versio';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Toiminta-aika';
$text['users'] = 'K&auml;ytt&auml;ji&auml;';
$text['loadavg'] = 'Keskikuormat';
$text['hardware'] = 'Laitteisto';
$text['numcpu'] = 'Prosessoreita';
$text['cpumodel'] = 'Malli';
$text['cpuspeed'] = 'Piirin MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'V&auml;limuistin koko';
$text['bogomips'] = 'J&auml;rjestelm&auml;n Bogomipsit';
$text['pci'] = 'PCI Laitteet';
$text['ide'] = 'IDE Laitteet';
$text['scsi'] = 'SCSI Laitteet';
$text['usb'] = 'USB Laitteet';
$text['netusage'] = 'Verkon k&auml;ytt&ouml;';
$text['device'] = 'Laite';
$text['received'] = 'Vastaanotettu';
$text['sent'] = 'L&auml;hetetty';
$text['errors'] = 'Virheet/Pudotetut';
$text['memusage'] = 'Muistin kuormitus';
$text['phymem'] = 'Fyysinen muisti';
$text['swap'] = 'Virtuaalimuisti';
$text['fs'] = 'Liitetyt tiedostoj&auml;rjestelm&auml;t';
$text['mount'] = 'Liitoskohta';
$text['partition'] = 'Osio';
$text['percent'] = 'Prosenttia kapasiteetista';
$text['type'] = 'Tyyppi';
$text['free'] = 'Vapaana';
$text['used'] = 'K&auml;yt&ouml;ss&auml;';
$text['size'] = 'Koko';
$text['totals'] = 'Yhteens&auml;';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'Ei yht&auml;&auml;n';
$text['capacity'] = 'Kapasiteetti';
$text['template'] = 'Malli';
$text['language'] = 'Kieli';
$text['submit'] = 'Valitse';
$text['created'] = 'Luonut';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'p&auml;iv&auml;&auml;';
$text['hours'] = 'tuntia';
$text['minutes'] = 'minuuttia';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,102 @@
<?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.21 2006/02/11 11:20:51 bigmichi1 Exp $
$text['title'] = 'Informations Syst&egrave;me ';
$text['vitals'] = 'Syst&egrave;me';
$text['hostname'] = 'Nom d\'h&ocirc;te cannonique';
$text['ip'] = 'IP';
$text['kversion'] = 'Version du noyau';
$text['dversion'] = 'Distribution';
$text['uptime'] = 'Uptime';
$text['users'] = 'Utilisateurs';
$text['loadavg'] = 'Charge syst&egrave;me';
$text['hardware'] = 'Informations Mat&eacute;riel';
$text['numcpu'] = 'Processeurs';
$text['cpumodel'] = 'Mod&egrave;le';
$text['mhz'] = 'Fr&eacute;quence';
$text['cache'] = 'Taille Cache';
$text['bogomips'] = 'Bogomips';
$text['usb'] = 'P&eacute;riph. USB';
$text['pci'] = 'P&eacute;riph. PCI';
$text['ide'] = 'P&eacute;riph. IDE';
$text['scsi'] = 'P&eacute;riph. SCSI';
$text['netusage'] = 'R&eacute;seau';
$text['device'] = 'P&eacute;riph&eacute;rique';
$text['received'] = 'R&eacute;ception';
$text['sent'] = 'Envoi';
$text['errors'] = 'Err/Drop';
$text['memusage'] = 'Utilisation m&eacute;moire';
$text['phymem'] = 'M&eacute;moire Physique';
$text['swap'] = 'Swap disque';
$text['fs'] = 'Syst&egrave;mes de fichiers mont&eacute;s';
$text['mount'] = 'Point';
$text['partition'] = 'Partition';
$text['percent'] = 'Utilisation';
$text['type'] = 'Type';
$text['free'] = 'Libre';
$text['used'] = 'Occup&eacute;';
$text['size'] = 'Taille';
$text['totals'] = 'Totaux';
$text['kb'] = 'Ko';
$text['mb'] = 'Mo';
$text['gb'] = 'Go';
$text['none'] = 'aucun';
$text['capacity'] = 'Capacit&eacute;';
$text['template'] = 'Mod&egrave;le ';
$text['language'] = 'Langue ';
$text['submit'] = 'Valider';
$text['created'] = 'Cr&eacute;&eacute; par';
$text['locale'] = 'fr_FR';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'jours';
$text['hours'] = 'heures';
$text['minutes'] = 'minutes';
$text['temperature'] = 'Temp&eacute;rature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Ventilateurs';
$text['s_value'] = 'valeur';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hyst&eacute;r&eacute;sis';
$text['s_limit'] = 'Limite';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = '- Kernel + applications';
$text['buffers'] = '- Buffers';
$text['cached'] = '- Cached';
?>
@@ -0,0 +1,108 @@
<?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: gr.php,v 1.12 2005/12/31 17:25:02 bigmichi1 Exp $
$charset = "UTF-8";
$text['title'] = 'Ðëçñïöïñßåò ÓõóôÞìáôïò';
$text['vitals'] = '×áñáêôçñéóôéêÜ ÓõóôÞìáôïò';
$text['hostname'] = '¼íïìá ÕðïëïãéóôÞ';
$text['ip'] = 'Äéåõèõíóç ÉÑ';
$text['kversion'] = 'Åêäïóç ÐõñÞíá';
$text['dversion'] = 'Distro Name';
$text['uptime'] = '×ñüíïò Ëåéôïõñãßáò ÓõóôÞìáôïò';
$text['users'] = 'ÓõíäåìÝíïé ×ñÞóôåò';
$text['loadavg'] = 'Load Average';
$text['hardware'] = 'Ðëçñïöïñßåò Õëéêïý';
$text['numcpu'] = 'ÅðåîåñãáóôÝò';
$text['cpumodel'] = 'ÌïíôÝëï';
$text['cpuspeed'] = 'Ôá÷ýôçôá MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'ÌÝãåèïò ÌíÞìçò Cache';
$text['bogomips'] = 'ÅðåîåñãáóôéêÞ Éó÷ýò óå Bogomips';
$text['pci'] = 'ÓõóêåõÝò PCI';
$text['ide'] = 'ÓõóêåõÝò IDE';
$text['scsi'] = 'ÓõóêåõÝò SCSI';
$text['usb'] = 'ÓõóêåõÝò USB';
$text['netusage'] = '×ñÞóç Äéêôýïõ';
$text['device'] = 'ÓõóêåõÞ';
$text['received'] = 'Ëáìâáíüìåíá';
$text['sent'] = 'ÁðïóôáëìÝíá';
$text['errors'] = 'ÓöÜëìáôá';
$text['connections'] = 'ÅíåñãÝò ÓõíäÝóçò Äéêôýïõ';
$text['memusage'] = '×ñÞóç ÌíÞìçò';
$text['phymem'] = 'ÌíÞìç Physical';
$text['swap'] = 'Äßóêïò Swap';
$text['fs'] = 'ÐñïóáñôçìÝíá ÓõóôÞìáôá Áñ÷åßùí';
$text['mount'] = 'ÐñïóÜñôçóç';
$text['partition'] = 'ÊáôÜôìçóç';
$text['percent'] = '×ùñçôéêüôçôá %';
$text['type'] = 'Ôýðïò';
$text['free'] = 'Åëåýèåñá';
$text['used'] = 'Óå ÷ñÞóç';
$text['size'] = 'ÌÝãåèïò';
$text['totals'] = 'ÓõíïëéêÜ';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = '-';
$text['capacity'] = '×ùñçôéêüôçôá';
$text['template'] = 'ÈÝìá';
$text['language'] = 'Ãëþóóá';
$text['submit'] = 'ÕðïâïëÞ';
$text['created'] = 'ÄçìéïõñãÞèçêå áðü ôï';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'ìÝñåò';
$text['hours'] = 'þñåò';
$text['minutes'] = 'ëåðôÜ';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,107 @@
<?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: he.php,v 1.13 2005/12/31 17:25:02 bigmichi1 Exp $
$charset = 'windows-1255';
$text_dir = 'rtl';
$text['title'] = 'îéãò òì äîòøëú';
$text['vitals'] = 'çéåðéåú îòøëú';
$text['hostname'] = 'ùí úçðä';
$text['ip'] = 'ëúåáú IP';
$text['kversion'] = 'âøñú ÷øðì';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'æîï ùäîòøëú ìîòìä';
$text['users'] = 'îùúùéí ðåëçééí';
$text['loadavg'] = 'îîåöò òåîñéí';
$text['hardware'] = 'îéãò çåîøä';
$text['numcpu'] = 'îòáãéí';
$text['cpumodel'] = 'ñåâ';
$text['cpuspeed'] = 'îäéøåú áMHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'âåãì æëøåï îèîåï';
$text['bogomips'] = 'îäéøåú ábogomips';
$text['pci'] = 'äú÷ðé PCI';
$text['ide'] = 'äú÷ðé IDE';
$text['scsi'] = 'äú÷ðé SCSI';
$text['usb'] = 'äú÷ðé USB';
$text['netusage'] = 'øùú';
$text['device'] = 'äú÷ï';
$text['received'] = '÷éáì';
$text['sent'] = 'ùìç';
$text['errors'] = 'ú÷ìåú/æøé÷åú';
$text['connections'] = 'òøåöé ú÷ùåøú ôúåçéí';
$text['memusage'] = 'ðéöåìú æëøåï';
$text['phymem'] = 'æëøåï ôéæé';
$text['swap'] = 'æëøåï swap';
$text['fs'] = 'îòøëåú ÷áöéí îçåáøåú';
$text['mount'] = 'îçåáø';
$text['partition'] = 'îçéöä';
$text['percent'] = 'úëåìä áàçæåéí';
$text['type'] = 'ñåâ';
$text['free'] = 'çåôùé';
$text['used'] = 'áùéîåù';
$text['size'] = 'âåãì';
$text['totals'] = 'ñä"ë';
$text['kb'] = '÷éìå áúéí';
$text['mb'] = 'îâä';
$text['gb'] = 'âéâä';
$text['none'] = 'ììà';
$text['capacity'] = 'úëåìä';
$text['template'] = 'úáðéú';
$text['language'] = 'ùôä';
$text['submit'] = 'äâù';
$text['created'] = 'ðåöø ò"é';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'éîéí';
$text['hours'] = 'ùòåú';
$text['minutes'] = 'ã÷åú';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,108 @@
<?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.
// Translated by Zsozso - zsozso@internews.hu
// $Id: hu.php,v 1.15 2005/12/31 17:25:02 bigmichi1 Exp $
$charset = 'UTF-8';
$text['title'] = 'Rendszer Információ';
$text['vitals'] = 'A Rendszer Alapvetõ Információi';
$text['hostname'] = 'Hostnév';
$text['ip'] = 'Figyelt IP';
$text['kversion'] = 'Kernel Verzió';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Pillanatnyi felhasználók';
$text['loadavg'] = 'Terhelési Átlag';
$text['hardware'] = 'Hardware Információ';
$text['numcpu'] = 'Processzor';
$text['cpumodel'] = 'Modell';
$text['cpuspeed'] = 'Chip MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cache Méret';
$text['bogomips'] = 'Rendszer Bogomips';
$text['pci'] = 'PCI Eszközök';
$text['ide'] = 'IDE Eszközök';
$text['scsi'] = 'SCSI Eszközök';
$text['usb'] = 'USB Eszközök';
$text['netusage'] = 'Háló Használat';
$text['device'] = 'Eszköz';
$text['received'] = 'Fogadott';
$text['sent'] = 'Küldött';
$text['hibák'] = 'Err/Drop';
$text['connections'] = 'Létesített Hálózati Kapcsolatok';
$text['memusage'] = 'Memória Használat';
$text['phymem'] = 'Fizikai Memória';
$text['swap'] = 'Lemez Swap';
$text['fs'] = 'Csatlakoztatott File Rendszerek';
$text['mount'] = 'Mount';
$text['partition'] = 'Partíciók';
$text['percent'] = 'Százalékos Használat';
$text['type'] = 'Típus';
$text['free'] = 'Szabad';
$text['used'] = 'Használt';
$text['size'] = 'Méret';
$text['totals'] = 'Összesen';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'nincs';
$text['capacity'] = 'Kapacítás';
$text['template'] = 'Sablon';
$text['language'] = 'Nyelv';
$text['submit'] = 'Mehet';
$text['created'] = 'Készült:';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'nap';
$text['hours'] = 'óra';
$text['minutes'] = 'perc';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,107 @@
<?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: id.php,v 1.15 2005/12/31 17:25:02 bigmichi1 Exp $
// Translated by: Firman Pribadi <http://ragiel.dhs.org>
$text['title'] = 'Informasi Sistem';
$text['vitals'] = 'Informasi Utama';
$text['hostname'] = 'Hostname Resmi';
$text['ip'] = 'IP Penerima';
$text['kversion'] = 'Versi Kernel';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Aktif Selama';
$text['users'] = 'Pengguna Saat Ini';
$text['loadavg'] = 'Beban Rata-rata';
$text['hardware'] = 'Informasi Perangkat Keras';
$text['numcpu'] = 'Prosesor';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'CPU Speed';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Ukuran Cache';
$text['bogomips'] = 'Sistem Bogomips';
$text['pci'] = 'Perangkat PCI';
$text['ide'] = 'Perangkat IDE';
$text['scsi'] = 'Perangkat SCSI';
$text['usb'] = 'Perangkat USB';
$text['netusage'] = 'Status Penggunaan Jaringan';
$text['device'] = 'Perangkat';
$text['received'] = 'Diterima';
$text['sent'] = 'Dikirim';
$text['errors'] = 'Rusak/Drop';
$text['connections'] = 'Koneksi Jaringan Aktif';
$text['memusage'] = 'Status Penggunaan Memori';
$text['phymem'] = 'Memori Fisik';
$text['swap'] = 'Swap HardDisk';
$text['fs'] = 'Status Penggunaan Media Penyimpanan dan Filesystem';
$text['mount'] = 'Titik Mount';
$text['partition'] = 'Partisi';
$text['percent'] = 'Digunakan (Persen)';
$text['type'] = 'Tipe';
$text['free'] = 'Bebas';
$text['used'] = 'Digunakan';
$text['size'] = 'Ukuran';
$text['totals'] = 'Total';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'tidak ditemukan';
$text['capacity'] = 'Kapasitas';
$text['template'] = 'Template';
$text['language'] = 'Bahasa';
$text['submit'] = 'Gunakan';
$text['created'] = 'Dibangun menggunakan';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'hari';
$text['hours'] = 'jam';
$text['minutes'] = 'menit';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,104 @@
<?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.14 2005/12/31 17:25:02 bigmichi1 Exp $
$text['title'] = 'Kerfisupplýsingar';
$text['vitals'] = 'Helstu upplýsingar';
$text['hostname'] = 'Vélarnafn';
$text['ip'] = 'IP-tala';
$text['kversion'] = 'Útgáfa kjarna';
$text['dversion'] = 'Nafn dreifingar';
$text['uptime'] = 'Uppitími';
$text['users'] = 'Notendur';
$text['loadavg'] = 'Meðalálag';
$text['hardware'] = 'Upplýsingar um vélbúnað';
$text['numcpu'] = 'Fjöldi örgjörva';
$text['cpumodel'] = 'Tegund';
$text['cpuspeed'] = 'Hraði';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Stærð flýtiminnis';
$text['bogomips'] = 'Bogomips';
$text['pci'] = 'PCI jaðartæki';
$text['ide'] = 'IDE jaðartæki';
$text['scsi'] = 'SCSI jaðartæki';
$text['usb'] = 'USB jaðartæki';
$text['netusage'] = 'Netnotkun';
$text['device'] = 'Jaðartæki';
$text['received'] = 'Móttekið';
$text['sent'] = 'Sent';
$text['errors'] = 'Villur/Hent';
$text['memusage'] = 'Minnisnotkun';
$text['phymem'] = 'Vinnsluminni';
$text['swap'] = 'Sýndarminni';
$text['fs'] = 'Tengd skráarkerfi';
$text['mount'] = 'Tengipunktur';
$text['partition'] = 'Disksneið';
$text['percent'] = 'Hlutfall af heildarstærð';
$text['type'] = 'Tegund';
$text['free'] = 'Laust';
$text['used'] = 'Notað';
$text['size'] = 'Stærð';
$text['totals'] = 'Samtals';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'ekkert';
$text['capacity'] = 'Heildarstærð';
$text['template'] = 'Sniðmát';
$text['language'] = 'Tungumál';
$text['submit'] = 'Senda';
$text['created'] = 'Búið til af';
$text['locale'] = 'is_IS';
$text['gen_time'] = 'þann %d.%m.%Y kl. %H:%M';
$text['days'] = 'dagar';
$text['hours'] = 'klukkustundir';
$text['minutes'] = 'mínútur';
$text['temperature'] = 'Hitastig';
$text['voltage'] = 'Volt';
$text['fans'] = 'Viftur';
$text['s_value'] = 'Gildi';
$text['s_min'] = 'Lægst';
$text['s_max'] = 'Hæst';
$text['s_div'] = 'Deilir';
$text['hysteresis'] = 'Aðvörun lýkur';
$text['s_limit'] = 'Aðvörun byrjar';
$text['s_label'] = 'Nafn mælis';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,104 @@
<?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.15 2005/12/31 17:25:02 bigmichi1 Exp $
$text['title'] = 'Informazioni sul Sistema';
$text['vitals'] = 'Informazioni Vitali';
$text['hostname'] = 'Nome Canonico';
$text['ip'] = 'Indirizzo IP';
$text['kversion'] = 'Versione del Kernel';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Tempo di Esercizio';
$text['users'] = 'Utenti Collegati';
$text['loadavg'] = 'Carico Medio';
$text['hardware'] = 'Informazioni Hardware';
$text['numcpu'] = 'Processori';
$text['cpumodel'] = 'Modello';
$text['cpuspeed'] = 'MHz del Chip';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Dimensione Cache';
$text['bogomips'] = 'Bogomips del Sistema';
$text['pci'] = 'Unità PCI';
$text['ide'] = 'Unità IDE';
$text['scsi'] = 'Unità SCSI';
$text['usb'] = 'Unità USB';
$text['netusage'] = 'Utilizzo della Rete';
$text['device'] = 'Device';
$text['received'] = 'Ricevuti';
$text['sent'] = 'Inviati';
$text['errors'] = 'Err/Drop';
$text['memusage'] = 'Utilizzo 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'] = 'Capacità';
$text['template'] = 'Template';
$text['language'] = 'Lingua';
$text['submit'] = 'Invia';
$text['created'] = 'Creato da';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'giorni';
$text['hours'] = 'ore';
$text['minutes'] = 'minuti';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,3 @@
<?php
require 'jp.php';
?>
@@ -0,0 +1,105 @@
<?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: jp.php,v 1.9 2005/12/31 17:25:02 bigmichi1 Exp $
$charset = 'euc-jp';
$text['title'] = 'システム情報';
$text['vitals'] = 'システム動作状況';
$text['hostname'] = 'ホスト名';
$text['ip'] = 'IPアドレス';
$text['kversion'] = 'カーネルバージョン(uname)';
$text['dversion'] = 'Distro Name';
$text['uptime'] = '連続稼働時間(uptime)';
$text['users'] = 'ログインユーザ数';
$text['loadavg'] = 'ロードアベレージ';
$text['hardware'] = 'ハードウェア情報';
$text['numcpu'] = 'CPU数';
$text['cpumodel'] = 'CPUモデル';
$text['cpuspeed'] = 'クロック速度(MHz)';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'キャッシュサイズ';
$text['bogomips'] = 'System Bogomips';
$text['pci'] = 'PCIデバイス一覧';
$text['ide'] = 'IDEデバイス一覧';
$text['scsi'] = 'SCSIデバイス一覧';
$text['usb'] = 'USBデバイス一覧';
$text['netusage'] = 'ネットワーク利用状況';
$text['device'] = 'インタフェイス名';
$text['received'] = '受信サイズ';
$text['sent'] = '送信サイズ';
$text['errors'] = 'エラー/受信不能';
$text['connections'] = '現在接続しているネットワーク接続一覧';
$text['memusage'] = 'メモリ使用状況';
$text['phymem'] = '物理メモリ量';
$text['swap'] = 'ディスクスワップ';
$text['fs'] = 'マウント済みファイルシステム一覧';
$text['mount'] = 'マウントポイント';
$text['partition'] = 'ディスクパーティション';
$text['percent'] = '利用割合';
$text['type'] = 'ファイルシステム種別';
$text['free'] = '空き';
$text['used'] = '利用';
$text['size'] = '全体';
$text['totals'] = '合計';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'ありません';
$text['capacity'] = '容量';
$text['template'] = 'デザイン選択';
$text['language'] = '言語';
$text['submit'] = '送信';
$text['created'] = 'Created by';
$text['days'] = '日';
$text['hours'] = '時間';
$text['minutes'] = '分';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,107 @@
<?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: ko.php,v 1.13 2005/12/31 17:25:02 bigmichi1 Exp $
// Translated by Sungkook KIM - ace@aceteam.org
$charset = 'euc-kr';
$text['title'] = '시스템 정보';
$text['vitals'] = '현재 시스템 상황';
$text['hostname'] = '시스템의 호스트네임';
$text['ip'] = '시스템의 IP 주소';
$text['kversion'] = '커널 버젼';
$text['dversion'] = 'Distro Name';
$text['uptime'] = '실행 시간';
$text['users'] = '현재 접속자 수';
$text['loadavg'] = '평균 로드';
$text['hardware'] = '하드웨어 정보';
$text['numcpu'] = '프로세서 갯수';
$text['cpumodel'] = '프로세서 모델';
$text['cpuspeed'] = '칩셋 클럭';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = '케쉬 사이즈';
$text['bogomips'] = '자체테스트 클럭';
$text['pci'] = 'PCI 장치';
$text['ide'] = 'IDE 장치';
$text['scsi'] = 'SCSI 장치';
$text['usb'] = 'USB 장치';
$text['netusage'] = ' 네트워크 사용정보';
$text['device'] = '장치';
$text['received'] = '받은 량';
$text['sent'] = '보낸 량';
$text['errors'] = '에러 / 실패';
$text['memusage'] = '메모리 사용량';
$text['phymem'] = '물리적 메모리';
$text['swap'] = '스왑 디스크';
$text['fs'] = '마운트 현황';
$text['mount'] = '마운트';
$text['partition'] = '파티션';
$text['percent'] = ' 퍼센트';
$text['type'] = '타입';
$text['free'] = '남은량';
$text['used'] = '사용량';
$text['size'] = '총 용량';
$text['totals'] = '합계';
$text['kb'] = '킬로바이트(KB)';
$text['mb'] = '메가바이트(MB)';
$text['gb'] = '기가바이트(GB)';
$text['none'] = '없음';
$text['capacity'] = '용량';
$text['template'] = '템플릿';
$text['language'] = '언어';
$text['submit'] = '적용';
$text['created'] = '만든이';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = '일';
$text['hours'] = '시';
$text['minutes'] = '분';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,109 @@
<?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.16 2005/12/31 17:25:02 bigmichi1 Exp $
$charset = 'utf-8';
$text['title'] = 'Informacija apie sistemą';
$text['vitals'] = 'Sistema';
$text['hostname'] = 'Kompiuterio vardas';
$text['ip'] = 'IP adresas';
$text['kversion'] = 'Branduolio versija';
$text['dversion'] = 'Distribucija';
$text['uptime'] = 'Veikimo laikas';
$text['users'] = 'Vartotojai';
$text['loadavg'] = 'Apkrovos vidurkiai';
$text['hardware'] = 'Aparatūra';
$text['numcpu'] = 'Procesorių kiekis';
$text['cpumodel'] = 'Modelis';
$text['cpuspeed'] = 'Procesoriaus dažnis';
$text['busspeed'] = 'Magistralės dažnis';
$text['cache'] = 'Spartinančioji atmintinė';
$text['bogomips'] = 'Sistemos „bogomips“';
$text['pci'] = 'PCI įrenginiai';
$text['ide'] = 'IDE įrenginiai';
$text['scsi'] = 'SCSI įrenginiai';
$text['usb'] = 'USB įrenginiai';
$text['netusage'] = 'Tinklas';
$text['device'] = 'Įrenginys';
$text['received'] = 'Gauta';
$text['sent'] = 'Išsiųsta';
$text['errors'] = 'Klaidos/pamesti paketai';
$text['memusage'] = 'Atmintis';
$text['phymem'] = 'Operatyvioji atmintis';
$text['swap'] = 'Disko swap skirsnis';
$text['fs'] = 'Bylų sistema';
$text['mount'] = 'Prijungimo vieta';
$text['partition'] = 'Skirsnis';
$text['percent'] = 'Apkrova procentais';
$text['type'] = 'Tipas';
$text['free'] = 'Laisva';
$text['used'] = 'Apkrauta';
$text['size'] = 'Dydis';
$text['totals'] = 'Iš viso';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'nėra';
$text['capacity'] = 'Talpa';
$text['template'] = 'Šablonas';
$text['language'] = 'Kalba';
$text['submit'] = 'Atnaujinti';
$text['created'] = 'Naudojamas';
$text['days'] = 'd.';
$text['hours'] = 'val.';
$text['minutes'] = 'min.';
$text['temperature'] = 'Temperatūra';
$text['voltage'] = 'Įtampa';
$text['fans'] = 'Aušintuvai';
$text['s_value'] = 'Reikšmė';
$text['s_min'] = 'Min';
$text['s_max'] = 'Maks';
$text['s_div'] = 'Div';
// Hysteresis is the value that defines at which temp
// the alarm should deactivate. If you have set an
// alarm to go off when CPU temp reaches 60 degrees,
// a hysteresis set at, say, 58 degress will deactivate
// the alarm when temp goes below 58 degrees.
$text['hysteresis'] = 'Signalizuojama ties';
$text['s_limit'] = 'Riba';
$text['s_label'] = 'Pavadinimas';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'aps./min';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,106 @@
<?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: lv.php,v 1.9 2005/12/31 17:25:02 bigmichi1 Exp $
$text['title'] = 'Sistçmas informâcija';
$text['vitals'] = 'Galvenie râdîtâji';
$text['hostname'] = 'Hosta vârds';
$text['ip'] = 'IP Adrese';
$text['kversion'] = 'Kerneïa versija';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Nepârtrauktais darba laiks';
$text['users'] = 'Lietotâji';
$text['loadavg'] = 'Vidçjie ielâdes râdîtâji';
$text['hardware'] = 'Aparatûra';
$text['numcpu'] = 'Procesors';
$text['cpumodel'] = 'Modelis';
$text['cpuspeed'] = 'Èipa MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Keð atmiòa';
$text['bogomips'] = 'Sistçmas "Bogomips"';
$text['pci'] = 'PCI ierîces';
$text['ide'] = 'IDE ierîces';
$text['scsi'] = 'SCSI ierîces';
$text['usb'] = 'USB ierîces';
$text['netusage'] = 'Tîkla informâcija';
$text['device'] = 'Ierîce';
$text['received'] = 'Saòemts';
$text['sent'] = 'Aizsûtîts';
$text['errors'] = 'Kïûdas/Zaudçtâs paketes';
$text['connections'] = 'Established Network Connections';
$text['memusage'] = 'Atmiòas lietojums';
$text['phymem'] = 'Operatîvâ atmiòa';
$text['swap'] = 'Swap atmiòa';
$text['fs'] = 'Cietie diski';
$text['mount'] = 'Mounta vieta';
$text['partition'] = 'Partîcija';
$text['percent'] = 'Aizòemts procentos';
$text['type'] = 'Tips';
$text['free'] = 'Brîvs';
$text['used'] = 'Aizòemts';
$text['size'] = 'Ietilpîba';
$text['totals'] = 'Kopâ';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'nav';
$text['capacity'] = 'Ietilpîba';
$text['template'] = 'Sagatave';
$text['language'] = 'Valoda';
$text['submit'] = 'Apstiprinât';
$text['created'] = 'Autors';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'dienas';
$text['hours'] = 'stundas';
$text['minutes'] = 'minûtes';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,110 @@
<?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.19 2005/12/31 17:25:02 bigmichi1 Exp $
if (PHP_OS == 'WINNT') {
$text['locale'] = 'dutch'; // (windows)
}
else {
$text['locale'] = 'nl-NL'; // (Linux and friends(?))
}
$text['title'] = 'Systeem Informatie';
$text['vitals'] = 'Systeem overzicht';
$text['hostname'] = 'Toegewezen naam';
$text['ip'] = 'IP-adres';
$text['kversion'] = 'Kernelversie';
$text['dversion'] = 'Distributie';
$text['uptime'] = 'Uptime';
$text['users'] = 'Huidige gebruikers';
$text['loadavg'] = 'Gemiddelde belasting';
$text['hardware'] = 'Hardware overzicht';
$text['numcpu'] = 'Processors';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'CPU snelheid';
$text['busspeed'] = 'BUS snelheid';
$text['cache'] = 'Cache grootte';
$text['bogomips'] = 'Systeem Bogomips';
$text['pci'] = 'PCI Apparaten';
$text['ide'] = 'IDE Apparaten';
$text['scsi'] = 'SCSI Apparaten';
$text['usb'] = 'USB 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'] = 'Opmaak-model';
$text['language'] = 'Taal';
$text['submit'] = 'Toepassen';
$text['created'] = 'Gegenereerd door';
$text['gen_time'] = 'op %d %B %Y, om %H:%M';
$text['days'] = 'dagen';
$text['hours'] = 'uren';
$text['minutes'] = 'minuten';
$text['temperature'] = 'Temperatuur';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Waarde';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysterie';
$text['s_limit'] = 'Limiet';
$text['s_label'] = 'Omschrijving';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,104 @@
<?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.15 2005/12/31 17:25:02 bigmichi1 Exp $
$text['title'] = 'Systeminformasjon';
$text['vitals'] = 'Vital Informasjon';
$text['hostname'] = 'Egentlige Tjenernavn';
$text['ip'] = 'IP-Adresse';
$text['kversion'] = 'Kernel Versjon';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Oppetid';
$text['users'] = 'Antall Brukere';
$text['loadavg'] = 'Gj.Snitt Belastning';
$text['hardware'] = 'Maskinvareinformasjon';
$text['numcpu'] = 'Prosessorer';
$text['cpumodel'] = 'Modell';
$text['cpuspeed'] = 'Brikke MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cache St&oslash;rrelse';
$text['bogomips'] = 'System Bogomips';
$text['pci'] = 'PCI Enheter';
$text['ide'] = 'IDE Enheter';
$text['scsi'] = 'SCSI Enheter';
$text['usb'] = 'USB Enheter';
$text['netusage'] = 'Nettverksbruk';
$text['device'] = 'Enhet';
$text['received'] = 'Mottatt';
$text['sent'] = 'Sendt';
$text['errors'] = 'Feil/Dropp';
$text['memusage'] = 'Minnebruk';
$text['phymem'] = 'Fysisk Minne';
$text['swap'] = 'Disk Swap';
$text['fs'] = 'Monterte Filsystemer';
$text['mount'] = 'Punkt';
$text['partition'] = 'Partisjon';
$text['percent'] = 'Brukt Kapasitet i Prosent';
$text['type'] = 'Type';
$text['free'] = 'Ledig';
$text['used'] = 'Brukt';
$text['size'] = 'St&oslash;rrelse';
$text['totals'] = 'Totalt';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'Ingen';
$text['capacity'] = 'Kapasitet';
$text['template'] = 'Mal';
$text['language'] = 'Spr&aring;k';
$text['submit'] = 'Endre';
$text['created'] = 'Generert av';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'dager';
$text['hours'] = 'timer';
$text['minutes'] = 'minutter';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,107 @@
<?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.12 2005/12/31 17:25:02 bigmichi1 Exp $
$charset = 'UTF-8';
$text['title'] = 'Informacja o systemie';
$text['vitals'] = 'Stan systemu';
$text['hostname'] = 'Nazwa kanoniczna hosta';
$text['ip'] = 'IP nas³uchuj±cy';
$text['kversion'] = 'Wersja j±dra';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Obecnych u¿ytkownków';
$text['loadavg'] = 'Obci±¿enia ¶rednie';
$text['hardware'] = 'Informacja o sprzêcie';
$text['numcpu'] = 'Procesory';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'Cz&#281;stotliwo&#347;&#263;';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cache Size';
$text['bogomips'] = 'System Bogomips';
$text['pci'] = 'Urz±dzenia PCI';
$text['ide'] = 'Urz±dzenia IDE';
$text['scsi'] = 'Urz±dzenia SCSI';
$text['usb'] = 'Urz±dzenia USB';
$text['netusage'] = 'Sieæ';
$text['device'] = 'Urz±dzenie';
$text['received'] = 'Odebrano';
$text['sent'] = 'Wys³ano';
$text['errors'] = 'B³êdow/Porzuconych';
$text['memusage'] = 'Obci±¿enie pamiêci';
$text['phymem'] = 'Pamiêæ fizyczna';
$text['swap'] = 'Pamiêæ Swap';
$text['fs'] = 'Zamontowane systemy plików';
$text['mount'] = 'Punkt montowania';
$text['partition'] = 'Partycja';
$text['percent'] = 'Procentowo zajête';
$text['type'] = 'Typ';
$text['free'] = 'Wolne';
$text['used'] = 'Zajête';
$text['size'] = 'Rozmiar';
$text['totals'] = 'Ca³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¶lij';
$text['created'] = 'Utworzone przez';
$text['locale'] = 'pl_PL';
$text['gen_time'] = " %e %b %Y o godzinie %T";
$text['days'] = 'dni';
$text['hours'] = 'godzin';
$text['minutes'] = 'minut';
$text['sensors'] = 'Czujniki (lm_sensors)';
$text['temperature'] = 'Temperatura';
$text['voltage'] = 'Napiêcia';
$text['fans'] = 'Wiatraczki';
$text['s_value'] = 'Warto¶æ';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hystereza';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Nazwa';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,110 @@
<?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: pt-br.php,v 1.9 2005/12/31 17:25:02 bigmichi1 Exp $
//
// Tradutor: Marcílio Cunha Marinho Maia, 29/03/2003 às 04:34 (Goiânia-GO,Brasil)
// E-mail: marcilio@nextsolution.com.br Web: http://www.nextsolution.com.br
// Icq: 22493131
$text['title'] = 'Informação Sobre o Sistema';
$text['vitals'] = 'Informações Vitais do Sistema';
$text['hostname'] = 'Nome do Servidor';
$text['ip'] = 'Número IP';
$text['kversion'] = 'Versão do Kernel';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Tempo Ativo do Sistema';
$text['users'] = 'Usuarios Ativos';
$text['loadavg'] = 'Carga do Sistema';
$text['hardware'] = 'Informações sobre o Hardware';
$text['numcpu'] = 'Processadores';
$text['cpumodel'] = 'Modelo';
$text['cpuspeed'] = 'Velocidade em MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Tamanho do Cache';
$text['bogomips'] = 'Velocidade em Bogomips';
$text['pci'] = 'Dispositivos PCI';
$text['ide'] = 'Dispositivos IDE';
$text['scsi'] = 'Dispositivos SCSI';
$text['usb'] = 'Dispositivos USB';
$text['netusage'] = 'Uso da Rede';
$text['device'] = 'Dispositivo';
$text['received'] = 'Recebido';
$text['sent'] = 'Enviado';
$text['errors'] = 'Perdido';
$text['connections'] = 'Conexões Estabelecidas';
$text['memusage'] = 'Utilização Memória';
$text['phymem'] = 'Memória Física';
$text['swap'] = 'Memória Virtual (SWAP)';
$text['fs'] = 'Sistemas de Arquivos';
$text['mount'] = 'Ponto de montagem';
$text['partition'] = 'Partição';
$text['percent'] = 'Capacidade Utilizada';
$text['type'] = 'Tipo';
$text['free'] = 'Livre';
$text['used'] = 'Utilizado';
$text['size'] = 'Tamanho';
$text['totals'] = 'Totais';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'N/A';
$text['capacity'] = 'Capacidade';
$text['template'] = 'Exemplos';
$text['language'] = 'Língua';
$text['submit'] = 'Entrar';
$text['created'] = 'Criado por';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'Dias';
$text['hours'] = 'Horas';
$text['minutes'] = 'Minutos';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,106 @@
<?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: pt.php,v 1.12 2005/12/31 17:25:02 bigmichi1 Exp $
$text['title'] = 'Informações do Sistema';
$text['vitals'] = 'Informações Vitais';
$text['hostname'] = 'Hostname Canónico';
$text['ip'] = 'IP';
$text['kversion'] = 'Versão do Kernel';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Utilizadores Ligados';
$text['loadavg'] = 'Carga Média';
$text['hardware'] = 'Informações do Hardware';
$text['numcpu'] = 'Processadores';
$text['cpumodel'] = 'Modelo';
$text['cpuspeed'] = 'CPU Speed';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Tamanho da Cache';
$text['bogomips'] = 'Bogomips do Sistema';
$text['pci'] = 'Hardware PCI';
$text['ide'] = 'Hardware IDE';
$text['scsi'] = 'Hardware SCSI';
$text['usb'] = 'Hardware USB';
$text['netusage'] = 'Utilização da Rede';
$text['device'] = 'Dispositivo';
$text['received'] = 'Recebidos';
$text['sent'] = 'Enviados';
$text['errors'] = 'Erro/Rejeitados';
$text['connections'] = 'Ligações Estabelecidas';
$text['memusage'] = 'Utilização da Memória';
$text['phymem'] = 'Memória Física';
$text['swap'] = 'Swap';
$text['fs'] = 'Sistema de Ficheiros (Mounted)';
$text['mount'] = 'Mount';
$text['partition'] = 'Partições';
$text['percent'] = 'Capacidade em Percentagem';
$text['type'] = 'Tipo';
$text['free'] = 'Livre';
$text['used'] = 'Utilizada';
$text['size'] = 'Tamanho';
$text['totals'] = 'Totais';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'indisponível';
$text['capacity'] = 'Capacidade';
$text['template'] = 'Template';
$text['language'] = 'Idioma';
$text['submit'] = 'Enviar';
$text['created'] = 'Produzido por';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'dias';
$text['hours'] = 'horas';
$text['minutes'] = 'minutos';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,105 @@
<?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['dversion'] = 'Distro Name';
$text['uptime'] = 'Timp de viata';
$text['users'] = 'Utilizatori curenti';
$text['loadavg'] = 'Incarcarea sistemului';
$text['hardware'] = 'Informatii hardware';
$text['numcpu'] = 'Procesoare';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'CPU Speed';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Marime Cache';
$text['bogomips'] = 'Bogomips';
$text['pci'] = 'Dispozitive PCI';
$text['ide'] = 'Dispozitive IDE';
$text['scsi'] = 'Dispozitive SCSI';
$text['usb'] = 'Dispozitive USB';
$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['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'zile';
$text['hours'] = 'ore';
$text['minutes'] = 'minute';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,108 @@
<?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: ru.php,v 1.0 2002/06/26 11:05:32
// Translated by Voldar (voldar@quality.s2.ru)
$charset = 'cp1251';
$text['title'] = 'Ñèñòåìíàÿ èíôîðìàöèÿ';
$text['vitals'] = 'Îñíîâíûå äàííûå';
$text['hostname'] = 'Èìÿ õîñòà';
$text['ip'] = 'Ïðîñëóøèâàåìûé IP';
$text['kversion'] = 'Âåðñèÿ ÿäðà';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Âðåìÿ ðàáîòû';
$text['users'] = 'Ïîëüçîâàòåëåé â ñèñòåìå';
$text['loadavg'] = 'Ñðåäíÿÿ çàãðóçêà';
$text['hardware'] = 'Àïïàðàòíîå îáåñïå÷åíèå';
$text['numcpu'] = 'Ïðîöåññîðû';
$text['cpumodel'] = 'Ìîäåëü';
$text['cpuspeed'] = 'Ñêîðîñòü ïðîöåññîðà MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Ðàçìåð êåøà';
$text['bogomips'] = 'System Bogomips';
$text['pci'] = 'Óñòðîéñòâà PCI';
$text['ide'] = 'Óñòðîéñòâà IDE';
$text['scsi'] = 'Óñòðîéñòâà SCSI';
$text['usb'] = 'Óñòðîéñòâà USB';
$text['netusage'] = 'Èñïîëüçîâàíèå ñåòè';
$text['device'] = 'Óñòðîéñòâî';
$text['received'] = 'Ïîëó÷åíî';
$text['sent'] = 'Îòïðàâëåíî';
$text['errors'] = 'Îøèáîê';
$text['connections'] = 'Óñòàíîâëåííûå ñåòåâûå ñîåäèíåíèÿ';
$text['memusage'] = 'Èñïîëüçîâàíèå ïàìÿòè';
$text['phymem'] = 'Ôèçè÷åñêàÿ ïàìÿòü';
$text['swap'] = 'Ôàéë ïîäêà÷êè';
$text['fs'] = 'Ñìîíòèðîâàííûå ôàéëîâûå ñèñòåìû';
$text['mount'] = 'Òî÷êà ìîíòèðîâàíèÿ';
$text['partition'] = 'Ðàçäåë';
$text['percent'] = 'Ïðîöåíò èñïîëüçîâàíèÿ';
$text['type'] = 'Òèï';
$text['free'] = 'Ñâîáîäíî';
$text['used'] = 'Çàíÿòî';
$text['size'] = 'Ðàçìåð';
$text['totals'] = 'Âñåãî';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'îòñóòñòâóåò';
$text['capacity'] = 'Ðàçìåð';
$text['template'] = 'Øàáëîí';
$text['language'] = 'ßçûê';
$text['submit'] = 'Ïðèìåíèòü';
$text['created'] = 'Ñîçäàíî';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'äíåé';
$text['hours'] = 'hours';
$text['minutes'] = 'minutes';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,106 @@
<?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: sk.php,v 1.13 2005/12/31 17:25:02 bigmichi1 Exp $
$charset = 'UTF-8';
$text['title'] = 'Informácie o systéme';
$text['vitals'] = 'Základné informácie';
$text['hostname'] = 'Meno poèítaèa';
$text['ip'] = 'IP adresa';
$text['kversion'] = 'Verzia jadra';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Prihlásených u¾ívateåov';
$text['loadavg'] = 'Priemer loadu';
$text['hardware'] = 'Hardwarové informácie';
$text['numcpu'] = 'Procesory';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'Frekvencia';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Veåkos» cache';
$text['bogomips'] = 'Bogomipsov';
$text['pci'] = 'PCI zariadenia';
$text['ide'] = 'IDE zariadenia';
$text['scsi'] = 'SCSI zariadenia';
$text['usb'] = 'USB zariadenia';
$text['netusage'] = 'Pou¾ívanie siete';
$text['device'] = 'Zariadenia';
$text['received'] = 'Prijatých';
$text['sent'] = 'Odoslaných';
$text['errors'] = 'Chyby/Vypustených';
$text['memusage'] = 'Obsadenie pamäti';
$text['phymem'] = 'Fyzická pamä»';
$text['swap'] = 'Swap';
$text['fs'] = 'Namountované súborové systémy';
$text['mount'] = 'Adresár';
$text['partition'] = 'Partícia';
$text['percent'] = 'Obsadených';
$text['type'] = 'Typ';
$text['free'] = 'Voåných';
$text['used'] = 'Pou¾itých';
$text['size'] = 'Veåkos»';
$text['totals'] = 'Celkom';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = '¾iadne';
$text['capacity'] = 'Kapacita';
$text['template'] = '©ablóna';
$text['language'] = 'Jazyk';
$text['submit'] = 'Odosla»';
$text['created'] = 'Vytvorené pomocou';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'dní';
$text['hours'] = 'hodín';
$text['minutes'] = 'minút';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,107 @@
<?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: sv.php,v 1.13 2005/12/31 17:25:02 bigmichi1 Exp $
//
// translation by shockzor
// updated/edited by jetthe
$text['title'] = 'Systeminformation';
$text['vitals'] = 'Allmän information';
$text['hostname'] = 'Värdnamn';
$text['ip'] = 'IP-adress';
$text['kversion'] = 'Kernel-version';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Drifttid';
$text['users'] = 'Aktuella användare';
$text['loadavg'] = 'Medelbelastning';
$text['hardware'] = 'Hårdvaruinformation';
$text['numcpu'] = 'Processorer';
$text['cpumodel'] = 'Modell';
$text['cpuspeed'] = 'Klockfrekvens';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cachestorlek';
$text['bogomips'] = 'Bogomips';
$text['pci'] = 'PCI-enheter';
$text['ide'] = 'IDE-enheter';
$text['scsi'] = 'SCSI-enheter';
$text['usb'] = 'USB-enheter';
$text['netusage'] = 'Nätverksanvändning';
$text['device'] = 'Enheter';
$text['received'] = 'Mottaget';
$text['sent'] = 'Skickat';
$text['errors'] = 'Fel/Förlorat';
$text['memusage'] = 'Minnesanvändning';
$text['phymem'] = 'Fysiskt minne';
$text['swap'] = 'Växlingsminne';
$text['fs'] = 'Monterade filsystem';
$text['mount'] = 'Monteringspunkt';
$text['partition'] = 'Partition';
$text['percent'] = 'Kapacitetsutnyttjande';
$text['type'] = 'Typ';
$text['free'] = 'Ledigt';
$text['used'] = 'Använt';
$text['size'] = 'Storlek';
$text['totals'] = 'Totalt';
$text['kb'] = 'kB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'inga';
$text['capacity'] = 'Kapacitet';
$text['template'] = 'Mall';
$text['language'] = 'Språk';
$text['submit'] = 'Skicka';
$text['days'] = 'dagar';
$text['hours'] = 'timmar';
$text['minutes'] = 'minuter';
$text['created'] = 'Skapat av';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,106 @@
<?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: tr.php,v 1.13 2005/12/31 17:25:02 bigmichi1 Exp $
$text['title'] = 'Sistem Bilgisi';
$text['vitals'] = 'Sistem Temel';
$text['hostname'] = 'Cannonical Host Adresi';
$text['ip'] = 'IP Adresi';
$text['kversion'] = 'Kernel Versiyonu';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Açýk Kaldýðý Süre';
$text['users'] = 'Þu Andaki Kullanýcýlar';
$text['loadavg'] = 'Yükleme Ortalamasý';
$text['hardware'] = 'Hardware Bilgisi';
$text['numcpu'] = 'CPU Sayýsý';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'CPU Hýzý( Mhz)';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cache Büyüklüðü';
$text['bogomips'] = 'Sistem Bogomips';
$text['pci'] = 'PCI Araçlar';
$text['ide'] = 'IDE Araçlar';
$text['scsi'] = 'SCSI Araçlar';
$text['usb'] = 'USB Araçlar';
$text['netusage'] = 'Network Kullanýmý';
$text['device'] = 'Arayüz';
$text['received'] = 'Alýnan';
$text['sent'] = 'Gönderilen';
$text['errors'] = 'Hata/Düþürülen';
$text['connections'] = 'Kurulmuþ Network Baðlantýlarý';
$text['memusage'] = 'Hafýza Kullanýmý';
$text['phymem'] = 'Fiziksel Hafýza';
$text['swap'] = 'Disk Swap';
$text['fs'] = 'Mount Edilmiþ Sistemler';
$text['mount'] = 'Mount';
$text['partition'] = 'Kýsým';
$text['percent'] = 'Yüzde Kapasite';
$text['type'] = 'Tür';
$text['free'] = 'Boþ Alan';
$text['used'] = 'Kullanýlan';
$text['size'] = 'Büyüklük';
$text['totals'] = 'Toplam';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = 'Hiçbiri';
$text['capacity'] = 'Kapasite';
$text['template'] = 'Arayüz';
$text['language'] = 'Dil';
$text['submit'] = 'Gönder';
$text['created'] = 'Yaratan';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = 'gün';
$text['hours'] = 'saat';
$text['minutes'] = 'dakika';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,106 @@
<?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.14 2005/12/31 17:25:02 bigmichi1 Exp $
$charset = 'big5';
$text['title'] = '系統資訊';
$text['vitals'] = '系統主要訊息';
$text['hostname'] = '主機名稱';
$text['ip'] = '主機對外 IP';
$text['kversion'] = '核心版本';
$text['dversion'] = 'Distro Name';
$text['uptime'] = '開機時間';
$text['users'] = '線上使用者';
$text['loadavg'] = '平均負載';
$text['hardware'] = '硬體資訊';
$text['numcpu'] = '處理器數量';
$text['cpumodel'] = 'CPU型號';
$text['cpuspeed'] = '晶片速度';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = '快取大小';
$text['bogomips'] = '系統 Bogomips';
$text['pci'] = 'PCI 設備';
$text['ide'] = 'IDE 設備';
$text['scsi'] = 'SCSI 設備';
$text['usb'] = 'USB 設備';
$text['netusage'] = '網路使用量';
$text['device'] = '網路設備';
$text['received'] = '接收';
$text['sent'] = '送出';
$text['errors'] = '錯誤/中斷';
$text['memusage'] = '記憶體使用量';
$text['phymem'] = '實體記憶體';
$text['swap'] = '虛擬記憶體(磁碟置換)';
$text['fs'] = '已掛載檔案系統';
$text['mount'] = '掛載路徑';
$text['partition'] = '分割磁區';
$text['percent'] = '使用量百分比';
$text['type'] = '型態';
$text['free'] = '剩餘空間';
$text['used'] = '已使用';
$text['size'] = '總容量';
$text['totals'] = '總使用量';
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
$text['none'] = '無';
$text['capacity'] = '容量';
$text['template'] = '範本';
$text['language'] = '語言';
$text['submit'] = '送出';
$text['created'] = '產生由';
$text['locale'] = 'zh_TW.Big5';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['days'] = '天';
$text['hours'] = '小時';
$text['minutes'] = '分鐘';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['s_div'] = 'Div';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degree_mark'] = '&ordm;C';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
?>
@@ -0,0 +1,119 @@
<?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.healthd.inc.php,v 1.5 2004/10/30 08:09:27 webbie Exp $
class mbinfo {
var $lines;
function temperature() {
$ar_buf = array();
$results = array();
if (!isset($this->lines)) {
$this->lines = execute_program('healthdc', '-t');
}
$ar_buf = preg_split("/\t+/", $this->lines);
$results[0]['label'] = 'temp1';
$results[0]['value'] = $ar_buf[1];
$results[0]['limit'] = '70.0';
$results[0]['percent'] = $results[0]['value'] * 100 / $results[0]['limit'];
$results[1]['label'] = 'temp2';
$results[1]['value'] = $ar_buf[2];
$results[1]['limit'] = '70.0';
$results[1]['percent'] = $results[1]['value'] * 100 / $results[1]['limit'];
$results[2]['label'] = 'temp3';
$results[2]['value'] = $ar_buf[3];
$results[2]['limit'] = '70.0';
$results[2]['percent'] = $results[2]['value'] * 100 / $results[2]['limit'];
return $results;
}
function fans() {
$ar_buf = array();
$results = array();
if (!isset($this->lines)) {
$this->lines = execute_program('healthdc', '-t');
}
$ar_buf = preg_split("/\t+/", $this->lines);
$results[0]['label'] = 'fan1';
$results[0]['value'] = $ar_buf[4];
$results[0]['min'] = '3000';
$results[0]['div'] = '2';
$results[1]['label'] = 'fan2';
$results[1]['value'] = $ar_buf[5];
$results[1]['min'] = '3000';
$results[1]['div'] = '2';
$results[2]['label'] = 'fan3';
$results[2]['value'] = $ar_buf[6];
$results[2]['min'] = '3000';
$results[2]['div'] = '2';
return $results;
}
function voltage() {
$ar_buf = array();
$results = array();
if (!isset($this->lines)) {
$this->lines = execute_program('healthdc', '-t');
}
$ar_buf = preg_split("/\t+/", $this->lines);
$results[0]['label'] = 'Vcore1';
$results[0]['value'] = $ar_buf[7];
$results[0]['min'] = '0.00';
$results[0]['max'] = '0.00';
$results[1]['label'] = 'Vcore2';
$results[1]['value'] = $ar_buf[8];
$results[1]['min'] = '0.00';
$results[1]['max'] = '0.00';
$results[2]['label'] = '3volt';
$results[2]['value'] = $ar_buf[9];
$results[2]['min'] = '0.00';
$results[2]['max'] = '0.00';
$results[3]['label'] = '+5Volt';
$results[3]['value'] = $ar_buf[10];
$results[3]['min'] = '0.00';
$results[3]['max'] = '0.00';
$results[4]['label'] = '+12Volt';
$results[4]['value'] = $ar_buf[11];
$results[4]['min'] = '0.00';
$results[4]['max'] = '0.00';
$results[5]['label'] = '-12Volt';
$results[5]['value'] = $ar_buf[12];
$results[5]['min'] = '0.00';
$results[5]['max'] = '0.00';
$results[6]['label'] = '-5Volt';
$results[6]['value'] = $ar_buf[13];
$results[6]['min'] = '0.00';
$results[6]['max'] = '0.00';
return $results;
}
}
?>
@@ -0,0 +1,102 @@
<?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.hwsensors.inc.php,v 1.3 2004/10/30 08:09:27 webbie Exp $
class mbinfo {
var $lines;
function temperature() {
$ar_buf = array();
$lines = array();
$results = array();
if (!isset($this->lines) ) {
$this->lines = execute_program('sysctl', '-w hw.sensors');
}
$lines = explode("\n", $this->lines);
for ($i = 0, $j = 0, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/[\s,]+/", $lines[$i]);
if ($ar_buf[2] == 'temp') {
$results[$j]['label'] = $ar_buf[1];
$results[$j]['value'] = $ar_buf[3];
$results[$j]['limit'] = '70.0';
$results[$j]['percent'] = $results[$j]['value'] * 100 / $results[$j]['limit'];
$j++;
}
}
return $results;
}
function fans() {
$ar_buf = array();
$lines = array();
$results = array();
if (!isset($this->lines) ) {
$this->lines = execute_program('sysctl', '-w hw.sensors');
}
$lines = explode("\n", $this->lines);
for ($i = 0, $j = 0, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/[\s,]+/", $lines[$i]);
if ($ar_buf[2] == 'fanrpm') {
$results[$j]['label'] = $ar_buf[1];
$results[$j]['value'] = $ar_buf[3];
$j++;
}
}
return $results;
}
function voltage() {
$ar_buf = array();
$lines = array();
$results = array();
if (!isset($this->lines) ) {
$this->lines = execute_program('sysctl', '-w hw.sensors');
}
$lines = explode("\n", $this->lines);
for ($i = 0, $j = 0, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/[\s,]+/", $lines[$i]);
if ($ar_buf[2] == 'volts_dc') {
$results[$j]['label'] = $ar_buf[1];
$results[$j]['value'] = $ar_buf[3];
$results[$j]['min'] = '0.00';
$results[$j]['max'] = '0.00';
$j++;
}
}
return $results;
}
}
?>
@@ -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: class.lmsensors.inc.php,v 1.17 2006/01/25 19:26:50 bigmichi1 Exp $
if (!defined('IN_PHPSYSINFO')) {
die("No Hacking");
}
require_once(APP_ROOT . "/includes/common_functions.php");
class mbinfo {
var $lines;
function mbinfo() {
$lines = execute_program("sensors", "");
// Martijn Stolk: Dirty fix for misinterpreted output of sensors,
// where info could come on next line when the label is too long.
$lines = str_replace(":\n", ":", $lines);
$lines = str_replace("\n\n", "\n", $lines);
$this->lines = explode("\n", $lines);
}
function temperature() {
$ar_buf = array();
$results = array();
$sensors_value = $this->lines;
foreach($sensors_value as $line) {
$data = array();
if (ereg("(.*):(.*)\((.*)=(.*),(.*)=(.*)\)(.*)", $line, $data)) ;
elseif (ereg("(.*):(.*)\((.*)=(.*)\)(.*)", $line, $data)) ;
else (ereg("(.*):(.*)", $line, $data));
if (count($data) > 1) {
$temp = substr(trim($data[2]), -1);
switch ($temp) {
case "C";
case "F":
array_push($ar_buf, $line);
break;
}
}
}
$i = 0;
foreach($ar_buf as $line) {
unset($data);
if (ereg("(.*):(.*).C[ ]*\((.*)=(.*).C,(.*)=(.*).C\)(.*)\)", $line, $data)) ;
elseif (ereg("(.*):(.*).C[ ]*\((.*)=(.*).C,(.*)=(.*).C\)(.*)", $line, $data)) ;
elseif (ereg("(.*):(.*).C[ ]*\((.*)=(.*).C\)(.*)", $line, $data)) ;
else (ereg("(.*):(.*).C", $line, $data));
$results[$i]['label'] = $data[1];
$results[$i]['value'] = trim($data[2]);
if ( trim( $data[2] ) > trim( $data[6] ) ) {
$results[$i]['limit'] = "+75";
$results[$i]['perce'] = "+75";
} else {
$results[$i]['limit'] = isset($data[4]) ? trim($data[4]) : "+75";
$results[$i]['perce'] = isset($data[6]) ? trim($data[6]) : "+75";
}
if ($results[$i]['limit'] < $results[$i]['perce']) {
$results[$i]['limit'] = $results[$i]['perce'];
}
$i++;
}
asort($results);
return array_values($results);
}
function fans() {
$ar_buf = array();
$results = array();
$sensors_value = $this->lines;
foreach($sensors_value as $line) {
$data = array();
if (ereg("(.*):(.*)\((.*)=(.*),(.*)=(.*)\)(.*)", $line, $data));
elseif (ereg("(.*):(.*)\((.*)=(.*)\)(.*)", $line, $data));
else ereg("(.*):(.*)", $line, $data);
if (count($data) > 1) {
$temp = explode(" ", trim($data[2]));
if (count($temp) == 1)
$temp = explode("\xb0", trim($data[2]));
if(isset($temp[1])) {
switch ($temp[1]) {
case "RPM":
array_push($ar_buf, $line);
break;
}
}
}
}
$i = 0;
foreach($ar_buf as $line) {
unset($data);
if (ereg("(.*):(.*) RPM \((.*)=(.*) RPM,(.*)=(.*)\)(.*)\)", $line, $data));
elseif (ereg("(.*):(.*) RPM \((.*)=(.*) RPM,(.*)=(.*)\)(.*)", $line, $data));
elseif (ereg("(.*):(.*) RPM \((.*)=(.*) RPM\)(.*)", $line, $data));
else ereg("(.*):(.*) RPM", $line, $data);
$results[$i]['label'] = trim($data[1]);
$results[$i]['value'] = trim($data[2]);
$results[$i]['min'] = isset($data[4]) ? trim($data[4]) : 0;
$results[$i]['div'] = isset($data[6]) ? trim($data[6]) : 0;
$i++;
}
asort($results);
return array_values($results);
}
function voltage() {
$ar_buf = array();
$results = array();
$sensors_value = $this->lines;
foreach($sensors_value as $line) {
$data = array();
if (ereg("(.*):(.*)\((.*)=(.*),(.*)=(.*)\)(.*)", $line, $data));
else ereg("(.*):(.*)", $line, $data);
if (count($data) > 1) {
$temp = explode(" ", trim($data[2]));
if (count($temp) == 1)
$temp = explode("\xb0", trim($data[2]));
if (isset($temp[1])) {
switch ($temp[1]) {
case "V":
array_push($ar_buf, $line);
break;
}
}
}
}
$i = 0;
foreach($ar_buf as $line) {
unset($data);
if (ereg("(.*):(.*) V \((.*)=(.*) V,(.*)=(.*) V\)(.*)\)", $line, $data));
elseif (ereg("(.*):(.*) V \((.*)=(.*) V,(.*)=(.*) V\)(.*)", $line, $data));
else ereg("(.*):(.*) V$", $line, $data);
if(isset($data[1])) {
$results[$i]['label'] = trim($data[1]);
$results[$i]['value'] = trim($data[2]);
$results[$i]['min'] = isset($data[4]) ? trim($data[4]) : 0;
$results[$i]['max'] = isset($data[6]) ? trim($data[6]) : 0;
$i++;
}
}
return $results;
}
}
?>
@@ -0,0 +1,127 @@
<?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.mbm5.inc.php 5728 2006-05-03 21:19:46Z allanbush $
//
// Note: Make sure you set MBM5 Interval Logging to csv and to the root of PHPSysInfo.
// Also make sure MBM5 doesn't at symbols to the values. Did is a Quick MBM5 log parser,
// need more csv logs to make it better.
//
class mbinfo {
var $buf_label;
var $buf_value;
function temperature() {
$results = array();
if (!isset($this->buf_label)) {
if ($fp = fopen('MBM5.csv', 'r')) {
$this->buf_label = split(';', fgets($fp));
$this->buf_value = split(';', fgets($fp));
fclose($fp);
}
}
$results[0]['label'] = $this->buf_label[3];
$results[0]['value'] = $this->buf_value[3];
$results[0]['limit'] = '70.0';
$results[0]['percent'] = $results[0]['value'] * 100 / $results[0]['limit'];
$results[1]['label'] = $this->buf_label[4];
$results[1]['value'] = $this->buf_value[4];
$results[1]['limit'] = '70.0';
$results[1]['percent'] = $results[1]['value'] * 100 / $results[1]['limit'];
$results[2]['label'] = $this->buf_label[5];
$results[2]['value'] = $this->buf_value[5];
$results[2]['limit'] = '70.0';
$results[2]['percent'] = $results[2]['value'] * 100 / $results[2]['limit'];
return $results;
}
function fans() {
$results = array();
if (!isset($this->buf_label)) {
if ($fp = fopen('MBM5.csv', 'r')) {
$this->buf_label = split(';', fgets($fp));
$this->buf_value = split(';', fgets($fp));
fclose($fp);
}
}
$results[0]['label'] = $this->buf_label[13];
$results[0]['value'] = $this->buf_value[13];
$results[0]['min'] = '3000';
$results[0]['div'] = '2';
$results[1]['label'] = $this->buf_label[14];
$results[1]['value'] = $this->buf_value[14];
$results[1]['min'] = '3000';
$results[1]['div'] = '2';
$results[2]['label'] = $this->buf_label[15];
$results[2]['value'] = $this->buf_value[15];
$results[2]['min'] = '3000';
$results[2]['div'] = '2';
return $results;
}
function voltage() {
$results = array();
if (!isset($this->buf_label)) {
if ($fp = fopen('MBM5.csv', 'r')) {
$this->buf_label = split(';', fgets($fp));
$this->buf_value = split(';', fgets($fp));
fclose($fp);
}
}
$results[0]['label'] = $this->buf_label[6];
$results[0]['value'] = $this->buf_value[6];
$results[0]['min'] = '0.00';
$results[0]['max'] = '0.00';
$results[1]['label'] = $this->buf_label[7];
$results[1]['value'] = $this->buf_value[7];
$results[1]['min'] = '0.00';
$results[1]['max'] = '0.00';
$results[2]['label'] = $this->buf_label[8];
$results[2]['value'] = $this->buf_value[8];
$results[2]['min'] = '0.00';
$results[2]['max'] = '0.00';
$results[3]['label'] = $this->buf_label[9];
$results[3]['value'] = $this->buf_value[9];
$results[3]['min'] = '0.00';
$results[3]['max'] = '0.00';
$results[4]['label'] = $this->buf_label[10];
$results[4]['value'] = $this->buf_value[10];
$results[4]['min'] = '0.00';
$results[4]['max'] = '0.00';
$results[5]['label'] = $this->buf_label[11];
$results[5]['value'] = $this->buf_value[11];
$results[5]['min'] = '0.00';
$results[5]['max'] = '0.00';
$results[6]['label'] = $this->buf_label[12];
$results[6]['value'] = $this->buf_value[12];
$results[6]['min'] = '0.00';
$results[6]['max'] = '0.00';
return $results;
}
}
?>
@@ -0,0 +1,100 @@
<?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.
// This class was created by Z. Frombach ( zoltan at frombach dot com )
// $Id: class.mbmon.inc.php,v 1.4 2005/11/22 15:08:29 bigmichi1 Exp $
class mbinfo {
var $lines;
function temperature() {
$results = array();
if (!isset($this->lines) ) {
$this->lines = explode("\n", execute_program('mbmon', '-c 1 -r'));
}
$i = 0;
foreach($this->lines as $line) {
if (preg_match('/^(TEMP\d*)\s*:\s*(.*)$/D', $line, $data)) {
if ($data[2]<>'0') {
$results[$i]['label'] = $data[1];
$results[$i]['limit'] = '70.0';
if($data[2] > 250) {
$results[$i]['value'] = 0;
$results[$i]['percent'] = 0;
} else {
$results[$i]['value'] = $data[2];
$results[$i]['percent'] = $results[$i]['value'] * 100 / $results[$i]['limit'];
}
$i++;
}
}
}
return $results;
}
function fans() {
$results = array();
if (!isset($this->lines) ) {
$this->lines = explode("\n", execute_program('mbmon', '-c 1 -r'));
}
$i = 0;
foreach($this->lines as $line) {
if (preg_match('/^(FAN\d*)\s*:\s*(.*)$/D', $line, $data)) {
if ($data[2]<>'0') {
$results[$i]['label'] = $data[1];
$results[$i]['value'] = $data[2];
$results[$i]['min'] = '3000';
$results[$i]['div'] = '2';
$i++;
}
}
}
return $results;
}
function voltage() {
$results = array();
if (!isset($this->lines) ) {
$this->lines = explode("\n", execute_program('mbmon', '-c 1 -r'));
}
$i = 0;
foreach($this->lines as $line) {
if (preg_match('/^(V.*)\s*:\s*(.*)$/D', $line, $data)) {
if ($data[2]<>'+0.00') {
$results[$i]['label'] = $data[1];
$results[$i]['value'] = $data[2];
$results[$i]['min'] = '0.00';
$results[$i]['max'] = '0.00';
$i++;
}
}
}
return $results;
}
}
?>
@@ -0,0 +1,298 @@
<?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.BSD.common.inc.php,v 1.50 2006/04/22 14:35:57 bigmichi1 Exp $
if (!defined('IN_PHPSYSINFO')) {
die("No Hacking");
}
require_once(APP_ROOT . '/includes/os/class.parseProgs.inc.php');
class bsd_common {
var $dmesg;
var $parser;
// Our constructor
// this function is run on the initialization of this class
function bsd_common () {
$this->parser = new Parser();
$this->parser->df_param = "";
}
// read /var/run/dmesg.boot, but only if we haven't already.
function read_dmesg () {
if (! $this->dmesg) {
$parts = explode("rebooting", rfts( '/var/run/dmesg.boot' ) );
$this->dmesg = explode("\n", $parts[count($parts) - 1]);
}
return $this->dmesg;
}
// grabs a key from sysctl(8)
function grab_key ($key) {
return execute_program('sysctl', "-n $key");
}
// get our apache SERVER_NAME or vhost
function hostname () {
if (!($result = getenv('SERVER_NAME'))) {
$result = "N.A.";
}
return $result;
}
// get our canonical hostname
function chostname () {
return execute_program('hostname');
}
// get the IP address of our canonical hostname
function ip_addr () {
if (!($result = getenv('SERVER_ADDR'))) {
$result = gethostbyname($this->chostname());
}
return $result;
}
function kernel () {
$s = $this->grab_key('kern.version');
$a = explode(':', $s);
return $a[0] . $a[1] . ':' . $a[2];
}
function uptime () {
$result = $this->get_sys_ticks();
return $result;
}
function users () {
return execute_program('who', '| wc -l');
}
function loadavg ($bar = false) {
$s = $this->grab_key('vm.loadavg');
$s = ereg_replace('{ ', '', $s);
$s = ereg_replace(' }', '', $s);
$results['avg'] = explode(' ', $s);
if ($bar) {
if ($fd = $this->grab_key('kern.cp_time')) {
// Find out the CPU load
// user + sys = load
// total = total
preg_match($this->cpu_regexp2, $fd, $res );
$load = $res[2] + $res[3] + $res[4]; // cpu.user + cpu.sys
$total = $res[2] + $res[3] + $res[4] + $res[5]; // cpu.total
// we need a second value, wait 1 second befor getting (< 1 second no good value will occour)
sleep(1);
$fd = $this->grab_key('kern.cp_time');
preg_match($this->cpu_regexp2, $fd, $res );
$load2 = $res[2] + $res[3] + $res[4];
$total2 = $res[2] + $res[3] + $res[4] + $res[5];
$results['cpupercent'] = (100*($load2 - $load)) / ($total2 - $total);
}
}
return $results;
}
function cpu_info () {
$results = array();
$ar_buf = array();
$results['model'] = $this->grab_key('hw.model');
$results['cpus'] = $this->grab_key('hw.ncpu');
for ($i = 0, $max = count($this->read_dmesg()); $i < $max; $i++) {
$buf = $this->dmesg[$i];
if (preg_match("/$this->cpu_regexp/", $buf, $ar_buf)) {
$results['cpuspeed'] = round($ar_buf[2]);
break;
}
}
return $results;
}
// get the scsi device information out of dmesg
function scsi () {
$results = array();
$ar_buf = array();
for ($i = 0, $max = count($this->read_dmesg()); $i < $max; $i++) {
$buf = $this->dmesg[$i];
if (preg_match("/$this->scsi_regexp1/", $buf, $ar_buf)) {
$s = $ar_buf[1];
$results[$s]['model'] = $ar_buf[2];
$results[$s]['media'] = 'Hard Disk';
} elseif (preg_match("/$this->scsi_regexp2/", $buf, $ar_buf)) {
$s = $ar_buf[1];
$results[$s]['capacity'] = $ar_buf[2] * 2048 * 1.049;
}
}
// return array_values(array_unique($results));
// 1. more useful to have device names
// 2. php 4.1.1 array_unique() deletes non-unique values.
asort($results);
return $results;
}
// get the pci device information out of dmesg
function pci () {
$results = array();
if( !( is_array($results = $this->parser->parse_lspci()) || is_array($results = $this->parser->parse_pciconf() ))) {
for ($i = 0, $s = 0; $i < count($this->read_dmesg()); $i++) {
$buf = $this->dmesg[$i];
if(!isset($this->pci_regexp1) && !isset($this->pci_regexp2)) {
$this->pci_regexp1 = '/(.*): <(.*)>(.*) pci[0-9]$/';
$this->pci_regexp2 = '/(.*): <(.*)>.* at [.0-9]+ irq/';
}
if (preg_match($this->pci_regexp1, $buf, $ar_buf)) {
$results[$s++] = $ar_buf[1] . ": " . $ar_buf[2];
} elseif (preg_match($this->pci_regexp2, $buf, $ar_buf)) {
$results[$s++] = $ar_buf[1] . ": " . $ar_buf[2];
}
}
asort($results);
}
return $results;
}
// get the ide device information out of dmesg
function ide () {
$results = array();
$s = 0;
for ($i = 0, $max = count($this->read_dmesg()); $i < $max; $i++) {
$buf = $this->dmesg[$i];
if (preg_match('/^(ad[0-9]+): (.*)MB <(.*)> (.*) (.*)/', $buf, $ar_buf)) {
$s = $ar_buf[1];
$results[$s]['model'] = $ar_buf[3];
$results[$s]['media'] = 'Hard Disk';
$results[$s]['capacity'] = $ar_buf[2] * 2048 * 1.049;
} elseif (preg_match('/^(acd[0-9]+): (.*) <(.*)> (.*)/', $buf, $ar_buf)) {
$s = $ar_buf[1];
$results[$s]['model'] = $ar_buf[3];
$results[$s]['media'] = 'CD-ROM';
}
}
// return array_values(array_unique($results));
// 1. more useful to have device names
// 2. php 4.1.1 array_unique() deletes non-unique values.
asort($results);
return $results;
}
// place holder function until we add acual usb detection
function usb () {
return array();
}
function sbus () {
$results = array();
$_results[0] = "";
// TODO. Nothing here yet. Move along.
$results = $_results;
return $results;
}
function memory () {
$s = $this->grab_key('hw.physmem');
if (PHP_OS == 'FreeBSD' || PHP_OS == 'OpenBSD') {
// vmstat on fbsd 4.4 or greater outputs kbytes not hw.pagesize
// I should probably add some version checking here, but for now
// we only support fbsd 4.4
$pagesize = 1024;
} else {
$pagesize = $this->grab_key('hw.pagesize');
}
$results['ram'] = array();
$pstat = execute_program('vmstat');
$lines = split("\n", $pstat);
for ($i = 0, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/\s+/", $lines[$i], 19);
if ($i == 2) {
if(PHP_OS == 'NetBSD') {
$results['ram']['free'] = $ar_buf[5];
} else {
$results['ram']['free'] = $ar_buf[5] * $pagesize / 1024;
}
}
}
$results['ram']['total'] = $s / 1024;
$results['ram']['shared'] = 0;
$results['ram']['buffers'] = 0;
$results['ram']['used'] = $results['ram']['total'] - $results['ram']['free'];
$results['ram']['cached'] = 0;
$results['ram']['t_used'] = $results['ram']['used'];
$results['ram']['t_free'] = $results['ram']['free'];
$results['ram']['percent'] = round(($results['ram']['used'] * 100) / $results['ram']['total']);
if (PHP_OS == 'OpenBSD' || PHP_OS == 'NetBSD') {
$pstat = execute_program('swapctl', '-l -k');
} else {
$pstat = execute_program('swapinfo', '-k');
}
$lines = split("\n", $pstat);
$results['swap']['total'] = 0;
$results['swap']['used'] = 0;
$results['swap']['free'] = 0;
for ($i = 1, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/\s+/", $lines[$i], 6);
if ($ar_buf[0] != 'Total') {
$results['swap']['total'] = $results['swap']['total'] + $ar_buf[1];
$results['swap']['used'] = $results['swap']['used'] + $ar_buf[2];
$results['swap']['free'] = $results['swap']['free'] + $ar_buf[3];
$results['devswap'][$i - 1] = array();
$results['devswap'][$i - 1]['dev'] = $ar_buf[0];
$results['devswap'][$i - 1]['total'] = $ar_buf[1];
$results['devswap'][$i - 1]['used'] = $ar_buf[2];
$results['devswap'][$i - 1]['free'] = ($results['devswap'][$i - 1]['total'] - $results['devswap'][$i - 1]['used']);
$results['devswap'][$i - 1]['percent'] = $ar_buf[2] > 0 ? round(($ar_buf[2] * 100) / $ar_buf[1]) : 0;
}
}
$results['swap']['percent'] = round(($results['swap']['used'] * 100) / $results['swap']['total']);
if( is_callable( array( 'sysinfo', 'memory_additional' ) ) ) {
$results = $this->memory_additional( $results );
}
return $results;
}
function filesystems () {
return $this->parser->parse_filesystems();
}
function distro () {
$distro = execute_program('uname', '-s');
$result = $distro;
return($result);
}
}
?>
@@ -0,0 +1,237 @@
<?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.Darwin.inc.php,v 1.26 2006/04/15 21:42:20 bigmichi1 Exp $
if (!defined('IN_PHPSYSINFO')) {
die("No Hacking");
}
require_once(APP_ROOT . '/includes/os/class.BSD.common.inc.php');
$error->addError("WARN", "The Darwin version of phpSysInfo is work in progress, some things currently don't work");
class sysinfo extends bsd_common {
var $cpu_regexp;
var $scsi_regexp;
// Our contstructor
// this function is run on the initialization of this class
function sysinfo () {
// $this->cpu_regexp = "CPU: (.*) \((.*)-MHz (.*)\)";
// $this->scsi_regexp1 = "^(.*): <(.*)> .*SCSI.*device";
$this->cpu_regexp2 = "/(.*) ([0-9]+) ([0-9]+) ([0-9]+) ([0-9]+)/";
}
function grab_key ($key) {
$s = execute_program('sysctl', $key);
$s = ereg_replace($key . ': ', '', $s);
$s = ereg_replace($key . ' = ', '', $s); // fix Apple set keys
return $s;
}
function grab_ioreg ($key) {
$s = execute_program('ioreg', '-cls "' . $key . '" | grep "' . $key . '"'); //ioreg -cls "$key" | grep "$key"
$s = ereg_replace('\|', '', $s);
$s = ereg_replace('\+\-\o', '', $s);
$s = ereg_replace('[ ]+', '', $s);
$s = ereg_replace('<[^>]+>', '', $s); // remove possible XML conflicts
return $s;
}
function get_sys_ticks () {
$a = execute_program('sysctl', '-n kern.boottime'); // get boottime (value in seconds)
$sys_ticks = time() - $a;
return $sys_ticks;
}
function cpu_info () {
$results = array();
// $results['model'] = $this->grab_key('hw.model'); // need to expand this somehow...
// $results['model'] = $this->grab_key('hw.machine');
$results['model'] = ereg_replace('Processor type: ', '', execute_program('hostinfo', '| grep "Processor type"')); // get processor type
$results['cpus'] = $this->grab_key('hw.ncpu');
$results['cpuspeed'] = round($this->grab_key('hw.cpufrequency') / 1000000); // return cpu speed - Mhz
$results['busspeed'] = round($this->grab_key('hw.busfrequency') / 1000000); // return bus speed - Mhz
$results['cache'] = round($this->grab_key('hw.l2cachesize') / 1024); // return l2 cache
if (($this->grab_key('hw.model') == "PowerMac3,6") && ($results['cpus'] == "2")) { $results['model'] = 'Dual G4 - (PowerPC 7450)';} // is Dual G4
if (($this->grab_key('hw.model') == "PowerMac7,2") && ($results['cpus'] == "2")) { $results['model'] = 'Dual G5 - (PowerPC 970)';} // is Dual G5
return $results;
}
// get the pci device information out of ioreg
function pci () {
$results = array();
$s = $this->grab_ioreg('IOPCIDevice');
$lines = split("\n", $s);
for ($i = 0, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/\s+/", $lines[$i], 19);
$results[$i] = $ar_buf[0];
}
asort($results);
return array_values(array_unique($results));
}
// get the ide device information out of ioreg
function ide () {
$results = array();
// ioreg | grep "Media <class IOMedia>"
$s = $this->grab_ioreg('IOATABlockStorageDevice');
$lines = split("\n", $s);
$j = 0;
for ($i = 0, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/\/\//", $lines[$i], 19);
if ($ar_buf[1] == 'class IOMedia' && preg_match('/Media/', $ar_buf[0])) {
$results[$j++]['model'] = $ar_buf[0];
}
}
asort($results);
return array_values(array_unique($results));
}
function memory () {
$s = $this->grab_key('hw.memsize');
$results['ram'] = array();
$pstat = execute_program('vm_stat'); // use darwin's vm_stat
$lines = split("\n", $pstat);
for ($i = 0, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/\s+/", $lines[$i], 19);
if ($i == 1) {
$results['ram']['free'] = $ar_buf[2] * 4; // calculate free memory from page sizes (each page = 4MB)
}
}
$results['ram']['total'] = $s / 1024;
$results['ram']['shared'] = 0;
$results['ram']['buffers'] = 0;
$results['ram']['used'] = $results['ram']['total'] - $results['ram']['free'];
$results['ram']['cached'] = 0;
$results['ram']['t_used'] = $results['ram']['used'];
$results['ram']['t_free'] = $results['ram']['free'];
$results['ram']['percent'] = round(($results['ram']['used'] * 100) / $results['ram']['total']);
// need to fix the swap info...
$pstat = execute_program('swapinfo', '-k');
$lines = split("\n", $pstat);
for ($i = 0, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/\s+/", $lines[$i], 6);
if ($i == 0) {
$results['swap']['total'] = 0;
$results['swap']['used'] = 0;
$results['swap']['free'] = 0;
} else {
$results['swap']['total'] = $results['swap']['total'] + $ar_buf[1];
$results['swap']['used'] = $results['swap']['used'] + $ar_buf[2];
$results['swap']['free'] = $results['swap']['free'] + $ar_buf[3];
}
}
$results['swap']['percent'] = round(($results['swap']['used'] * 100) / $results['swap']['total']);
return $results;
}
function network () {
$netstat = execute_program('netstat', '-nbdi | cut -c1-24,42- | grep Link');
$lines = split("\n", $netstat);
$results = array();
for ($i = 0, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/\s+/", $lines[$i]);
if (!empty($ar_buf[0])) {
$results[$ar_buf[0]] = array();
$results[$ar_buf[0]]['rx_bytes'] = $ar_buf[5];
$results[$ar_buf[0]]['rx_packets'] = $ar_buf[3];
$results[$ar_buf[0]]['rx_errs'] = $ar_buf[4];
$results[$ar_buf[0]]['rx_drop'] = $ar_buf[10];
$results[$ar_buf[0]]['tx_bytes'] = $ar_buf[8];
$results[$ar_buf[0]]['tx_packets'] = $ar_buf[6];
$results[$ar_buf[0]]['tx_errs'] = $ar_buf[7];
$results[$ar_buf[0]]['tx_drop'] = $ar_buf[10];
$results[$ar_buf[0]]['errs'] = $ar_buf[4] + $ar_buf[7];
$results[$ar_buf[0]]['drop'] = $ar_buf[10];
}
}
return $results;
}
function filesystems () {
$df = execute_program('df', '-k');
$mounts = split("\n", $df);
$fstype = array();
$s = execute_program('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, $j = 0, $max = sizeof($mounts); $i < $max; $i++) {
$ar_buf = preg_split("/\s+/", $mounts[$i], 6);
switch ($ar_buf[0]) {
case 'automount': // skip the automount entries
case 'devfs': // skip the dev filesystem
case 'fdesc': // skip the fdesc
case 'procfs': // skip the proc filesystem
case '<volfs>': // skip the vol filesystem
continue 2;
break;
}
if (hide_mount($ar_buf[5])) {
continue;
}
$results[$j] = array();
$results[$j]['disk'] = $ar_buf[0];
$results[$j]['size'] = $ar_buf[1];
$results[$j]['used'] = $ar_buf[2];
$results[$j]['free'] = $ar_buf[3];
$results[$j]['percent'] = $ar_buf[4];
$results[$j]['mount'] = $ar_buf[5];
($fstype[$ar_buf[5]]) ? $results[$j]['fstype'] = $fstype[$ar_buf[5]] : $results[$j]['fstype'] = $fsdev[$ar_buf[0]];
$j++;
}
return $results;
}
function distroicon () {
$result = 'Darwin.png';
return($result);
}
}
?>
@@ -0,0 +1,108 @@
<?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.17 2006/04/18 16:22:26 bigmichi1 Exp $
if (!defined('IN_PHPSYSINFO')) {
die("No Hacking");
}
require_once(APP_ROOT . '/includes/os/class.BSD.common.inc.php');
class sysinfo extends bsd_common {
var $cpu_regexp = "";
var $scsi_regexp1 = "";
var $scsi_regexp2 = "";
var $cpu_regexp2 = "";
// Our contstructor
// this function is run on the initialization of this class
function sysinfo () {
$this->bsd_common();
$this->cpu_regexp = "CPU: (.*) \((.*)-MHz (.*)\)";
$this->scsi_regexp1 = "^(.*): <(.*)> .*SCSI.*device";
$this->scsi_regexp2 = "^(da[0-9]): (.*)MB ";
$this->cpu_regexp2 = "/(.*) ([0-9]+) ([0-9]+) ([0-9]+) ([0-9]+)/";
}
function get_sys_ticks () {
$s = explode(' ', $this->grab_key('kern.boottime'));
$a = ereg_replace('{ ', '', $s[3]);
$sys_ticks = time() - $a;
return $sys_ticks;
}
function network () {
$netstat = execute_program('netstat', '-nibd | grep Link');
$lines = split("\n", $netstat);
$results = array();
for ($i = 0, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/\s+/", $lines[$i]);
if (!empty($ar_buf[0])) {
$results[$ar_buf[0]] = array();
if (strlen($ar_buf[3]) < 15) {
$results[$ar_buf[0]]['rx_bytes'] = $ar_buf[5];
$results[$ar_buf[0]]['rx_packets'] = $ar_buf[3];
$results[$ar_buf[0]]['rx_errs'] = $ar_buf[4];
$results[$ar_buf[0]]['rx_drop'] = $ar_buf[10];
$results[$ar_buf[0]]['tx_bytes'] = $ar_buf[8];
$results[$ar_buf[0]]['tx_packets'] = $ar_buf[6];
$results[$ar_buf[0]]['tx_errs'] = $ar_buf[7];
$results[$ar_buf[0]]['tx_drop'] = $ar_buf[10];
$results[$ar_buf[0]]['errs'] = $ar_buf[4] + $ar_buf[7];
$results[$ar_buf[0]]['drop'] = $ar_buf[10];
} else {
$results[$ar_buf[0]]['rx_bytes'] = $ar_buf[6];
$results[$ar_buf[0]]['rx_packets'] = $ar_buf[4];
$results[$ar_buf[0]]['rx_errs'] = $ar_buf[5];
$results[$ar_buf[0]]['rx_drop'] = $ar_buf[11];
$results[$ar_buf[0]]['tx_bytes'] = $ar_buf[9];
$results[$ar_buf[0]]['tx_packets'] = $ar_buf[7];
$results[$ar_buf[0]]['tx_errs'] = $ar_buf[8];
$results[$ar_buf[0]]['tx_drop'] = $ar_buf[11];
$results[$ar_buf[0]]['errs'] = $ar_buf[5] + $ar_buf[8];
$results[$ar_buf[0]]['drop'] = $ar_buf[11];
}
}
}
return $results;
}
function distroicon () {
$result = 'FreeBSD.png';
return($result);
}
function memory_additional($results) {
$pagesize = $this->grab_key("hw.pagesize");
$results['ram']['cached'] = $this->grab_key("vm.stats.vm.v_cache_count") * $pagesize / 1024;
$results['ram']['cached_percent'] = round( $results['ram']['cached'] * 100 / $results['ram']['total']);
$results['ram']['app'] = $this->grab_key("vm.stats.vm.v_active_count") * $pagesize / 1024;
$results['ram']['app_percent'] = round( $results['ram']['app'] * 100 / $results['ram']['total']);
$results['ram']['buffers'] = $results['ram']['used'] - $results['ram']['app'] - $results['ram']['cached'];
$results['ram']['buffers_percent'] = round( $results['ram']['buffers'] * 100 / $results['ram']['total']);
return $results;
}
}
?>
@@ -0,0 +1,421 @@
<?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.HP-UX.inc.php,v 1.17 2006/02/11 17:31:03 bigmichi1 Exp $
class sysinfo {
// get our apache SERVER_NAME or vhost
function vhostname () {
if (! ($result = getenv('SERVER_NAME'))) {
$result = 'N.A.';
}
return $result;
}
// get our canonical hostname
function chostname () {
return execute_program('hostname');
}
// get the IP address of our canonical hostname
function ip_addr () {
if (!($result = getenv('SERVER_ADDR'))) {
$result = gethostbyname($this->chostname());
}
return $result;
}
function kernel () {
return execute_program('uname', '-srvm');
}
function uptime () {
$result = 0;
$ar_buf = array();
$buf = execute_program('uptime');
if (preg_match("/up (\d+) days,\s*(\d+):(\d+),/", $buf, $ar_buf)) {
$min = $ar_buf[3];
$hours = $ar_buf[2];
$days = $ar_buf[1];
$result = $days * 86400 + $hours * 3600 + $min * 60;
}
return $result;
}
function users () {
$who = split('=', execute_program('who', '-q'));
$result = $who[1];
return $result;
}
function loadavg ($bar = false) {
$ar_buf = array();
$buf = execute_program('uptime');
if (preg_match("/average: (.*), (.*), (.*)$/", $buf, $ar_buf)) {
$results['avg'] = array($ar_buf[1], $ar_buf[2], $ar_buf[3]);
} else {
$results['avg'] = array('N.A.', 'N.A.', 'N.A.');
}
return $results;
}
function cpu_info () {
$results = array();
$ar_buf = array();
$bufr = rfts( '/proc/cpuinfo' );
if( $bufr != "ERROR" ) {
$bufe = explode( "\n", $bufr );
foreach( $bufe as $buf ) {
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.
switch ($key) {
case 'model name':
$results['model'] = $value;
break;
case 'cpu MHz':
$results['cpuspeed'] = sprintf('%.2f', $value);
break;
case 'cycle frequency [Hz]': // For Alpha arch - 2.2.x
$results['cpuspeed'] = sprintf('%.2f', $value / 1000000);
break;
case 'clock': // For PPC arch (damn borked POS)
$results['cpuspeed'] = 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 'cpu model': // For Alpha arch - 2.2.x
$results['model'] .= ' (' . $value . ')';
break;
case 'cache size':
$results['cache'] = $value;
break;
case 'bogomips':
$results['bogomips'] += $value;
break;
case 'BogoMIPS': // For alpha arch - 2.2.x
$results['bogomips'] += $value;
break;
case 'BogoMips': // For sparc arch
$results['bogomips'] += $value;
break;
case 'cpus detected': // For Alpha arch - 2.2.x
$results['cpus'] += $value;
break;
case 'system type': // Alpha arch - 2.2.x
$results['model'] .= ', ' . $value . ' ';
break;
case 'platform string': // Alpha arch - 2.2.x
$results['model'] .= ' (' . $value . ')';
break;
case 'processor':
$results['cpus'] += 1;
break;
}
}
fclose($fd);
}
$keys = array_keys($results);
$keys2be = array('model', 'cpuspeed', 'cache', 'bogomips', 'cpus');
while ($ar_buf = each($keys2be)) {
if (! in_array($ar_buf[1], $keys)) {
$results[$ar_buf[1]] = 'N.A.';
}
}
return $results;
}
function pci () {
$results = array();
$bufr = rfts( '/proc/pci' );
if( $bufr != "ERROR" ) {
$bufe = explode( "\n", $bufr );
foreach( $bufe as $buf ) {
if (preg_match('/Bus/', $buf)) {
$device = true;
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 = false;
}
}
}
asort($results);
return $results;
}
function ide () {
$results = array();
$bufd = gdc( '/proc/ide' );
foreach( $bufd as $file ) {
if (preg_match('/^hd/', $file)) {
$results[$file] = array();
// Check if device is CD-ROM (CD-ROM capacity shows as 1024 GB)
$buf = rfts( "/proc/ide/" . $file . "/media", 1 );
if( $buf != "ERROR" ) {
$results[$file]['media'] = trim( $buf );
if ($results[$file]['media'] == 'disk') {
$results[$file]['media'] = 'Hard Disk';
}
if ($results[$file]['media'] == 'cdrom') {
$results[$file]['media'] = 'CD-ROM';
}
}
$buf = rfts( "/proc/ide/" . $file . "/model", 1 );
if( $buf != "ERROR" ) {
$results[$file]['model'] = trim( $buf );
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';
}
}
$buf = rfts( "/proc/ide/" . $file . "/capacity", 1 );
if( $buf != "ERROR" ) {
$results[$file]['capacity'] = trim( $buf );
if ($results[$file]['media'] == 'CD-ROM') {
unset($results[$file]['capacity']);
}
}
}
}
asort($results);
return $results;
}
function scsi () {
$results = array();
$dev_vendor = '';
$dev_model = '';
$dev_rev = '';
$dev_type = '';
$s = 1;
$bufr = rfts( '/proc/scsi/scsi' );
if( $bufr != "ERROR" ) {
$bufe = explode( "\n", $bufr );
foreach( $bufe as $buf ) {
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[$s]['model'] = "$dev[1] $dev[2] ($dev_type[1])";
$results[$s]['media'] = "Hard Disk";
$s++;
$get_type = 0;
}
}
}
asort($results);
return $results;
}
function usb () {
$results = array();
$devstring = 0;
$devnum = -1;
$bufr = rfts( '/proc/bus/usb/devices' );
if( $bufr != "ERROR" ) {
$bufe = explode( "\n", $bufr );
foreach( $bufe as $buf ) {
if (preg_match('/^T/', $buf)) {
$devnum += 1;
}
if (preg_match('/^S/', $buf)) {
$devstring = 1;
}
if ($devstring) {
list($key, $value) = split(': ', $buf, 2);
list($key, $value2) = split('=', $value, 2);
$results[$devnum] .= " " . trim($value2);
$devstring = 0;
}
}
}
return $results;
}
function sbus () {
$results = array();
$_results[0] = "";
// TODO. Nothing here yet. Move along.
$results = $_results;
return $results;
}
function network () {
$netstat = execute_program('netstat', '-ni | tail -n +2');
$lines = split("\n", $netstat);
$results = array();
for ($i = 0, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/\s+/", $lines[$i]);
if (!empty($ar_buf[0]) && !empty($ar_buf[3])) {
$results[$ar_buf[0]] = array();
$results[$ar_buf[0]]['rx_bytes'] = $ar_buf[4];
$results[$ar_buf[0]]['rx_packets'] = $ar_buf[4];
$results[$ar_buf[0]]['rx_errs'] = $ar_buf[5];
$results[$ar_buf[0]]['rx_drop'] = $ar_buf[8];
$results[$ar_buf[0]]['tx_bytes'] = $ar_buf[6];
$results[$ar_buf[0]]['tx_packets'] = $ar_buf[6];
$results[$ar_buf[0]]['tx_errs'] = $ar_buf[7];
$results[$ar_buf[0]]['tx_drop'] = $ar_buf[8];
$results[$ar_buf[0]]['errs'] = $ar_buf[5] + $ar_buf[7];
$results[$ar_buf[0]]['drop'] = $ar_buf[8];
}
}
return $results;
}
function memory () {
$results['ram'] = array();
$results['swap'] = array();
$results['devswap'] = array();
$bufr = rfts( '/proc/meminfo' );
if( $bufr != "ERROR" ) {
$bufe = explode( "\n", $bufr );
foreach( $bufe as $buf ) {
if (preg_match('/Mem:\s+(.*)$/', $buf, $ar_buf)) {
$ar_buf = preg_split('/\s+/', $ar_buf[1], 6);
$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;
// I don't like this since buffers and cache really aren't
// 'used' per say, but I get too many emails about it.
$results['ram']['t_used'] = $results['ram']['used'];
$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']['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 = rfts( '/proc/swaps' );
if( $swaps != "ERROR" ) {
$swapdevs = split("\n", $swaps);
for ($i = 1, $max = (sizeof($swapdevs) - 1); $i < $max; $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;
}
}
}
}
return $results;
}
function filesystems () {
$df = execute_program('df', '-kP');
$mounts = split("\n", $df);
$fstype = array();
$s = execute_program('mount', '-v');
$lines = explode("\n", $s);
$i = 0;
while (list(, $line) = each($lines)) {
$a = split(' ', $line);
$fsdev[$a[0]] = $a[4];
}
for ($i = 1, $j = 0, $max = sizeof($mounts); $i < $max; $i++) {
$ar_buf = preg_split("/\s+/", $mounts[$i], 6);
if (hide_mount($ar_buf[5])) {
continue;
}
$results[$j] = array();
$results[$j]['disk'] = $ar_buf[0];
$results[$j]['size'] = $ar_buf[1];
$results[$j]['used'] = $ar_buf[2];
$results[$j]['free'] = $ar_buf[3];
$results[$j]['percent'] = $ar_buf[4];
$results[$j]['mount'] = $ar_buf[5];
($fstype[$ar_buf[5]]) ? $results[$j]['fstype'] = $fstype[$ar_buf[5]] : $results[$j]['fstype'] = $fsdev[$ar_buf[0]];
$j++;
}
return $results;
}
function distro () {
$result = 'HP-UX';
return($result);
}
function distroicon () {
$result = 'unknown.png';
return($result);
}
}
?>
@@ -0,0 +1,528 @@
<?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.73 2006/04/22 14:35:57 bigmichi1 Exp $
if (!defined('IN_PHPSYSINFO')) {
die("No Hacking");
}
require_once(APP_ROOT . '/includes/os/class.BSD.common.inc.php');
class sysinfo {
var $inifile = "distros.ini";
var $icon = "unknown.png";
var $distro = "unknown";
var $parser;
// get the distro name and icon when create the sysinfo object
function sysinfo() {
$this->parser = new Parser();
$this->parser->df_param = 'P';
$list = @parse_ini_file(APP_ROOT . "/" . $this->inifile, true);
if (!$list) {
return;
}
foreach ($list as $section => $distribution) {
if (!isset($distribution["Files"])) {
continue;
} else {
foreach (explode(";", $distribution["Files"]) as $filename) {
if (file_exists($filename)) {
$buf = rfts( $filename );
$this->icon = isset($distribution["Image"]) ? $distribution["Image"] : $this->icon;
$this->distro = isset($distribution["Name"]) ? $distribution["Name"] . " " . trim($buf) : trim($buf);
break 2;
}
}
}
}
}
// get our apache SERVER_NAME or vhost
function vhostname () {
if (! ($result = getenv('SERVER_NAME'))) {
$result = 'N.A.';
}
return $result;
}
// get our canonical hostname
function chostname () {
$result = rfts( '/proc/sys/kernel/hostname', 1 );
if ( $result == "ERROR" ) {
$result = "N.A.";
} else {
$result = gethostbyaddr( gethostbyname( trim( $result ) ) );
}
return $result;
}
// get the IP address of our canonical hostname
function ip_addr () {
if (!($result = getenv('SERVER_ADDR'))) {
$result = gethostbyname($this->chostname());
}
return $result;
}
function kernel () {
$buf = rfts( '/proc/version', 1 );
if ( $buf == "ERROR" ) {
$result = "N.A.";
} else {
if (preg_match('/version (.*?) /', $buf, $ar_buf)) {
$result = $ar_buf[1];
if (preg_match('/SMP/', $buf)) {
$result .= ' (SMP)';
}
}
}
return $result;
}
function uptime () {
$buf = rfts( '/proc/uptime', 1 );
$ar_buf = split( ' ', $buf );
$result = trim( $ar_buf[0] );
return $result;
}
function users () {
$who = split('=', execute_program('who', '-q'));
$result = $who[1];
return $result;
}
function loadavg ($bar = false) {
$buf = rfts( '/proc/loadavg' );
if( $buf == "ERROR" ) {
$results['avg'] = array('N.A.', 'N.A.', 'N.A.');
} else {
$results['avg'] = preg_split("/\s/", $buf, 4);
unset($results['avg'][3]); // don't need the extra values, only first three
}
if ($bar) {
$buf = rfts( '/proc/stat', 1 );
if( $buf != "ERROR" ) {
sscanf($buf, "%*s %Ld %Ld %Ld %Ld", $ab, $ac, $ad, $ae);
// Find out the CPU load
// user + sys = load
// total = total
$load = $ab + $ac + $ad; // cpu.user + cpu.sys
$total = $ab + $ac + $ad + $ae; // cpu.total
// we need a second value, wait 1 second befor getting (< 1 second no good value will occour)
sleep(1);
$buf = rfts( '/proc/stat', 1 );
sscanf($buf, "%*s %Ld %Ld %Ld %Ld", $ab, $ac, $ad, $ae);
$load2 = $ab + $ac + $ad;
$total2 = $ab + $ac + $ad + $ae;
$results['cpupercent'] = (100*($load2 - $load)) / ($total2 - $total);
}
}
return $results;
}
function cpu_info () {
$bufr = rfts( '/proc/cpuinfo' );
if ( $bufr != "ERROR" ) {
$bufe = explode("\n", $bufr);
$results = array('cpus' => 0, 'bogomips' => 0);
$ar_buf = array();
foreach( $bufe as $buf ) {
if(trim($buf) != "") {
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.
switch ($key) {
case 'model name':
$results['model'] = $value;
break;
case 'cpu MHz':
$results['cpuspeed'] = sprintf('%.2f', $value);
break;
case 'cycle frequency [Hz]': // For Alpha arch - 2.2.x
$results['cpuspeed'] = sprintf('%.2f', $value / 1000000);
break;
case 'clock': // For PPC arch (damn borked POS)
$results['cpuspeed'] = sprintf('%.2f', $value);
break;
case 'cpu': // For PPC arch (damn borked POS)
$results['model'] = $value;
break;
case 'L2 cache': // More for PPC
$results['cache'] = $value;
break;
case 'revision': // For PPC arch (damn borked POS)
$results['model'] .= ' ( rev: ' . $value . ')';
break;
case 'cpu model': // For Alpha arch - 2.2.x
$results['model'] .= ' (' . $value . ')';
break;
case 'cache size':
$results['cache'] = $value;
break;
case 'bogomips':
$results['bogomips'] += $value;
break;
case 'BogoMIPS': // For alpha arch - 2.2.x
$results['bogomips'] += $value;
break;
case 'BogoMips': // For sparc arch
$results['bogomips'] += $value;
break;
case 'cpus detected': // For Alpha arch - 2.2.x
$results['cpus'] += $value;
break;
case 'system type': // Alpha arch - 2.2.x
$results['model'] .= ', ' . $value . ' ';
break;
case 'platform string': // Alpha arch - 2.2.x
$results['model'] .= ' (' . $value . ')';
break;
case 'processor':
$results['cpus'] += 1;
break;
case 'Cpu0ClkTck': // Linux sparc64
$results['cpuspeed'] = sprintf('%.2f', hexdec($value) / 1000000);
break;
case 'Cpu0Bogo': // Linux sparc64 & sparc32
$results['bogomips'] = $value;
break;
case 'ncpus probed': // Linux sparc64 & sparc32
$results['cpus'] = $value;
break;
}
}
}
}
// sparc64 specific code follows
// This adds the ability to display the cache that a CPU has
// Originally made by Sven Blumenstein <bazik@gentoo.org> in 2004
// Modified by Tom Weustink <freshy98@gmx.net> in 2004
$sparclist = array('SUNW,UltraSPARC@0,0', 'SUNW,UltraSPARC-II@0,0', 'SUNW,UltraSPARC@1c,0', 'SUNW,UltraSPARC-IIi@1c,0', 'SUNW,UltraSPARC-II@1c,0');
foreach ($sparclist as $name) {
$buf = rfts( '/proc/openprom/' . $name . '/ecache-size',1 , 32, false );
if( $buf != "ERROR" ) {
$results['cache'] = base_convert($buf, 16, 10)/1024 . ' KB';
}
}
// sparc64 specific code ends
// XScale detection code
if ( $results['cpus'] == 0 ) {
foreach( $bufe as $buf ) {
if($buf != "\n") {
list($key, $value) = preg_split('/\s+:\s+/', trim($buf), 2);
switch($key) {
case 'Processor':
$results['cpus'] += 1;
$results['model'] = $value;
break;
case 'BogoMIPS': //BogoMIPS are not BogoMIPS on this CPU, it's the speed, no BogoMIPS available
$results['cpuspeed'] = $value;
break;
case 'I size':
$results['cache'] = $value;
break;
case 'D size':
$results['cache'] += $value;
break;
}
}
}
$results['cache'] = $results['cache'] / 1024 . " KB";
}
$keys = array_keys($results);
$keys2be = array('model', 'cpuspeed', 'cache', 'bogomips', 'cpus');
while ($ar_buf = each($keys2be)) {
if (! in_array($ar_buf[1], $keys)) {
$results[$ar_buf[1]] = 'N.A.';
}
}
return $results;
}
function pci () {
$results = array();
if( !$results = $this->parser->parse_lspci() ) {
$bufr = rfts( '/proc/pci' );
//Pinaki : Fix for ticket #4462 and #5147
if(!is_null($bufr) && is_array($bufr)) {
foreach( $bufr as $buf ) {
if (preg_match('/Bus/', $buf)) {
$device = true;
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 = false;
}
}
asort($results);
}
}
return $results;
}
function ide () {
$results = array();
$bufd = gdc( '/proc/ide' );
//Pinaki: Fix for ticket #4462
if(!is_null($bufd)){
foreach( $bufd as $file ) {
if (preg_match('/^hd/', $file)) {
$results[$file] = array();
$buf = rfts("/proc/ide/" . $file . "/media", 1 );
if ( $buf != "ERROR" ) {
$results[$file]['media'] = trim($buf);
if ($results[$file]['media'] == 'disk') {
$results[$file]['media'] = 'Hard Disk';
$buf = rfts( "/proc/ide/" . $file . "/capacity", 1, 4096, false);
if( $buf == "ERROR" ) {
$buf = rfts( "/sys/block/" . $file . "/size", 1, 4096, false);
}
if ( $buf != "ERROR" ) {
$results[$file]['capacity'] = trim( $buf );
}
} elseif ($results[$file]['media'] == 'cdrom') {
$results[$file]['media'] = 'CD-ROM';
unset($results[$file]['capacity']);
}
}
$buf = rfts( "/proc/ide/" . $file . "/model", 1 );
if ( $buf != "ERROR" ) {
$results[$file]['model'] = trim( $buf );
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';
}
}
}
}
asort($results);
}
return $results;
}
function scsi () {
$results = array();
$dev_vendor = '';
$dev_model = '';
$dev_rev = '';
$dev_type = '';
$s = 1;
$get_type = 0;
$bufr = execute_program('lsscsi', '-c', false);
if( is_null( $bufr )) {
$bufr = rfts( '/proc/scsi/scsi', 0, 4096, false );
}
if ( $bufr != "ERROR" ) {
$bufe = explode("\n", $bufr);
foreach( $bufe as $buf ) {
if (preg_match('/Vendor/', $buf)) {
preg_match('/Vendor: (.*) Model: (.*) Rev: (.*)/i', $buf, $dev);
list($key, $value) = split(': ', $buf, 2);
$dev_str = $value;
$get_type = true;
continue;
}
if ($get_type) {
preg_match('/Type:\s+(\S+)/i', $buf, $dev_type);
$results[$s]['model'] = "$dev[1] $dev[2] ($dev_type[1])";
$results[$s]['media'] = "Hard Disk";
$s++;
$get_type = false;
}
}
}
asort($results);
return $results;
}
function usb () {
$results = array();
$devnum = -1;
$bufr = execute_program('lsusb', '', false);
if( is_null( $bufr )) {
$bufr = rfts( '/proc/bus/usb/devices' );
if ( $bufr != "ERROR" ) {
$bufe = explode("\n", $bufr);
foreach( $bufe as $buf ) {
if (preg_match('/^T/', $buf)) {
$devnum += 1;
$results[$devnum] = "";
} elseif (preg_match('/^S:/', $buf)) {
list($key, $value) = split(': ', $buf, 2);
list($key, $value2) = split('=', $value, 2);
if (trim($key) != "SerialNumber") {
$results[$devnum] .= " " . trim($value2);
$devstring = 0;
}
}
}
}
} else {
$bufe = explode( "\n", $bufr );
foreach( $bufe as $buf ) {
$device = preg_split("/ /", $buf, 7);
if( isset( $device[6] ) && trim( $device[6] ) != "" ) {
$results[$devnum++] = trim( $device[6] );
}
}
}
return $results;
}
function sbus () {
$results = array();
$_results[0] = "";
// TODO. Nothing here yet. Move along.
$results = $_results;
return $results;
}
function network () {
$results = array();
$bufr = rfts( '/proc/net/dev' );
//Pinaki: Fix for ticket #4462
if ( !is_null($bufr) && $bufr != "ERROR") {
$bufe = explode("\n", $bufr);
foreach( $bufe as $buf ) {
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 () {
$results['ram'] = array();
$results['swap'] = array();
$results['devswap'] = array();
$bufr = rfts( '/proc/meminfo' );
if ( $bufr != "ERROR" ) {
$bufe = explode("\n", $bufr);
foreach( $bufe as $buf ) {
if (preg_match('/^MemTotal:\s+(.*)\s*kB/i', $buf, $ar_buf)) {
$results['ram']['total'] = $ar_buf[1];
} else if (preg_match('/^MemFree:\s+(.*)\s*kB/i', $buf, $ar_buf)) {
$results['ram']['t_free'] = $ar_buf[1];
} else if (preg_match('/^Cached:\s+(.*)\s*kB/i', $buf, $ar_buf)) {
$results['ram']['cached'] = $ar_buf[1];
} else if (preg_match('/^Buffers:\s+(.*)\s*kB/i', $buf, $ar_buf)) {
$results['ram']['buffers'] = $ar_buf[1];
} else if (preg_match('/^SwapTotal:\s+(.*)\s*kB/i', $buf, $ar_buf)) {
$results['swap']['total'] = $ar_buf[1];
} else if (preg_match('/^SwapFree:\s+(.*)\s*kB/i', $buf, $ar_buf)) {
$results['swap']['free'] = $ar_buf[1];
}
}
$results['ram']['t_used'] = $results['ram']['total'] - $results['ram']['t_free'];
$results['ram']['percent'] = round(($results['ram']['t_used'] * 100) / $results['ram']['total']);
$results['swap']['used'] = $results['swap']['total'] - $results['swap']['free'];
$results['swap']['percent'] = round(($results['swap']['used'] * 100) / $results['swap']['total']);
// values for splitting memory usage
if (isset($results['ram']['cached']) && isset($results['ram']['buffers'])) {
$results['ram']['app'] = $results['ram']['t_used'] - $results['ram']['cached'] - $results['ram']['buffers'];
$results['ram']['app_percent'] = round(($results['ram']['app'] * 100) / $results['ram']['total']);
$results['ram']['buffers_percent'] = round(($results['ram']['buffers'] * 100) / $results['ram']['total']);
$results['ram']['cached_percent'] = round(($results['ram']['cached'] * 100) / $results['ram']['total']);
}
$bufr = rfts( '/proc/swaps' );
//Pinaki: Fix for ticket #4462
if ( !is_null($bufr) && $bufr != "ERROR") {
$swaps = explode("\n", $bufr);
for ($i = 1; $i < (sizeof($swaps)); $i++) {
if( trim( $swaps[$i] ) != "" ) {
$ar_buf = preg_split('/\s+/', $swaps[$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]);
}
}
}
}
return $results;
}
function filesystems () {
return $this->parser->parse_filesystems();
}
function distro () {
return $this->distro;
}
function distroicon () {
return $this->icon;
}
}
?>
@@ -0,0 +1,111 @@
<?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.NetBSD.inc.php,v 1.18 2006/04/18 16:57:32 bigmichi1 Exp $
if (!defined('IN_PHPSYSINFO')) {
die("No Hacking");
}
require_once(APP_ROOT . '/includes/os/class.BSD.common.inc.php');
class sysinfo extends bsd_common {
var $cpu_regexp;
var $scsi_regexp;
// Our contstructor
// this function is run on the initialization of this class
function sysinfo () {
$this->bsd_common();
$this->cpu_regexp = "^cpu(.*)\, (.*) MHz";
$this->scsi_regexp1 = "^(.*) at scsibus.*: <(.*)> .*";
$this->scsi_regexp2 = "^(da[0-9]): (.*)MB ";
$this->cpu_regexp2 = "/user = (.*), nice = (.*), sys = (.*), intr = (.*), idle = (.*)/";
$this->pci_regexp1 = '/(.*) at pci[0-9] dev [0-9]* function [0-9]*: (.*)$/';
$this->pci_regexp2 = '/"(.*)" (.*).* at [.0-9]+ irq/';
}
function get_sys_ticks () {
$a = $this->grab_key('kern.boottime');
$sys_ticks = time() - $a;
return $sys_ticks;
}
function network () {
$netstat_b = execute_program('netstat', '-nbdi | cut -c1-25,44- | grep "^[a-z]*[0-9][ \t].*Link"');
$netstat_n = execute_program('netstat', '-ndi | cut -c1-25,44- | grep "^[a-z]*[0-9][ \t].*Link"');
$lines_b = split("\n", $netstat_b);
$lines_n = split("\n", $netstat_n);
$results = array();
for ($i = 0, $max = sizeof($lines_b); $i < $max; $i++) {
$ar_buf_b = preg_split("/\s+/", $lines_b[$i]);
$ar_buf_n = preg_split("/\s+/", $lines_n[$i]);
if (!empty($ar_buf_b[0]) && !empty($ar_buf_n[3])) {
$results[$ar_buf_b[0]] = array();
$results[$ar_buf_b[0]]['rx_bytes'] = $ar_buf_b[3];
$results[$ar_buf_b[0]]['rx_packets'] = $ar_buf_n[3];
$results[$ar_buf_b[0]]['rx_errs'] = $ar_buf_n[4];
$results[$ar_buf_b[0]]['rx_drop'] = $ar_buf_n[8];
$results[$ar_buf_b[0]]['tx_bytes'] = $ar_buf_b[4];
$results[$ar_buf_b[0]]['tx_packets'] = $ar_buf_n[5];
$results[$ar_buf_b[0]]['tx_errs'] = $ar_buf_n[6];
$results[$ar_buf_b[0]]['tx_drop'] = $ar_buf_n[8];
$results[$ar_buf_b[0]]['errs'] = $ar_buf_n[4] + $ar_buf_n[6];
$results[$ar_buf_b[0]]['drop'] = $ar_buf_n[8];
}
}
return $results;
}
// get the ide device information out of dmesg
function ide () {
$results = array();
$s = 0;
for ($i = 0, $max = count($this->read_dmesg()); $i < $max; $i++) {
$buf = $this->dmesg[$i];
if (preg_match('/^(.*) at (pciide|wdc|atabus|atapibus)[0-9] (.*): <(.*)>/', $buf, $ar_buf)) {
$s = $ar_buf[1];
$results[$s]['model'] = $ar_buf[4];
$results[$s]['media'] = 'Hard Disk';
// now loop again and find the capacity
for ($j = 0, $max1 = count($this->read_dmesg()); $j < $max1; $j++) {
$buf_n = $this->dmesg[$j];
if (preg_match("/^($s): (.*), (.*), (.*)MB, .*$/", $buf_n, $ar_buf_n)) {
$results[$s]['capacity'] = $ar_buf_n[4] * 2048 * 1.049;
} elseif (preg_match("/^($s): (.*) MB, (.*), (.*), .*$/", $buf_n, $ar_buf_n)) {
$results[$s]['capacity'] = $ar_buf_n[2] * 2048;
}
}
}
}
asort($results);
return $results;
}
function distroicon () {
$result = 'NetBSD.png';
return($result);
}
}
?>
@@ -0,0 +1,110 @@
<?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.OpenBSD.inc.php,v 1.21 2006/04/18 17:46:15 bigmichi1 Exp $
if (!defined('IN_PHPSYSINFO')) {
die("No Hacking");
}
require_once(APP_ROOT . '/includes/os/class.BSD.common.inc.php');
class sysinfo extends bsd_common {
var $cpu_regexp = "";
var $scsi_regexp1 = "";
var $scsi_regexp2 = "";
var $cpu_regexp2 = "";
// Our contstructor
// this function is run on the initialization of this class
function sysinfo () {
$this->bsd_common();
$this->cpu_regexp = "^cpu(.*) (.*) MHz";
$this->scsi_regexp1 = "^(.*) at scsibus.*: <(.*)> .*";
$this->scsi_regexp2 = "^(da[0-9]): (.*)MB ";
$this->cpu_regexp2 = "/(.*),(.*),(.*),(.*),(.*)/";
$this->pci_regexp1 = '/(.*) at pci[0-9] .* "(.*)"/';
$this->pci_regexp2 = '/"(.*)" (.*).* at [.0-9]+ irq/';
}
function get_sys_ticks () {
$a = $this->grab_key('kern.boottime');
$sys_ticks = time() - $a;
return $sys_ticks;
}
function network () {
$netstat_b = execute_program('netstat', '-nbdi | cut -c1-25,44- | grep Link | grep -v \'* \'');
$netstat_n = execute_program('netstat', '-ndi | cut -c1-25,44- | grep Link | grep -v \'* \'');
$lines_b = split("\n", $netstat_b);
$lines_n = split("\n", $netstat_n);
$results = array();
for ($i = 0, $max = sizeof($lines_b); $i < $max; $i++) {
$ar_buf_b = preg_split("/\s+/", $lines_b[$i]);
$ar_buf_n = preg_split("/\s+/", $lines_n[$i]);
if (!empty($ar_buf_b[0]) && !empty($ar_buf_n[3])) {
$results[$ar_buf_b[0]] = array();
$results[$ar_buf_b[0]]['rx_bytes'] = $ar_buf_b[3];
$results[$ar_buf_b[0]]['rx_packets'] = $ar_buf_n[3];
$results[$ar_buf_b[0]]['rx_errs'] = $ar_buf_n[4];
$results[$ar_buf_b[0]]['rx_drop'] = $ar_buf_n[8];
$results[$ar_buf_b[0]]['tx_bytes'] = $ar_buf_b[4];
$results[$ar_buf_b[0]]['tx_packets'] = $ar_buf_n[5];
$results[$ar_buf_b[0]]['tx_errs'] = $ar_buf_n[6];
$results[$ar_buf_b[0]]['tx_drop'] = $ar_buf_n[8];
$results[$ar_buf_b[0]]['errs'] = $ar_buf_n[4] + $ar_buf_n[6];
$results[$ar_buf_b[0]]['drop'] = $ar_buf_n[8];
}
}
return $results;
}
// get the ide device information out of dmesg
function ide () {
$results = array();
$s = 0;
for ($i = 0, $max = count($this->read_dmesg()); $i < $max; $i++) {
$buf = $this->dmesg[$i];
if (preg_match('/^(.*) at pciide[0-9] (.*): <(.*)>/', $buf, $ar_buf)) {
$s = $ar_buf[1];
$results[$s]['model'] = $ar_buf[3];
$results[$s]['media'] = 'Hard Disk';
// now loop again and find the capacity
for ($j = 0, $max1 = count($this->read_dmesg()); $j < $max1; $j++) {
$buf_n = $this->dmesg[$j];
if (preg_match("/^($s): (.*), (.*), (.*)MB, .*$/", $buf_n, $ar_buf_n)) {
$results[$s]['capacity'] = $ar_buf_n[4] * 2048 * 1.049;;
}
}
}
}
asort($results);
return $results;
}
function distroicon () {
$result = 'OpenBSD.png';
return($result);
}
}
?>
@@ -0,0 +1,238 @@
<?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.SunOS.inc.php,v 1.22 2006/02/11 17:55:25 bigmichi1 Exp $
$error->addError("WARN", "The SunOS version of phpSysInfo is work in progress, some things currently don't work");
class sysinfo {
// Extract kernel values via kstat() interface
function kstat ($key) {
$m = execute_program('kstat', "-p d $key");
list($key, $value) = split("\t", trim($m), 2);
return $value;
}
function vhostname () {
if (! ($result = getenv('SERVER_NAME'))) {
$result = 'N.A.';
}
return $result;
}
// get our canonical hostname
function chostname () {
if ($result = execute_program('uname', '-n')) {
$result = gethostbyaddr(gethostbyname($result));
} else {
$result = 'N.A.';
}
return $result;
}
// get the IP address of our canonical hostname
function ip_addr () {
if (!($result = getenv('SERVER_ADDR'))) {
$result = gethostbyname($this->chostname());
}
return $result;
}
function kernel () {
$os = execute_program('uname', '-s');
$version = execute_program('uname', '-r');
return $os . ' ' . $version;
}
function uptime () {
$result = time() - $this->kstat('unix:0:system_misc:boot_time');
return $result;
}
function users () {
$who = split('=', execute_program('who', '-q'));
$result = $who[1];
return $result;
}
function loadavg ($bar = false) {
$load1 = $this->kstat('unix:0:system_misc:avenrun_1min');
$load5 = $this->kstat('unix:0:system_misc:avenrun_5min');
$load15 = $this->kstat('unix:0:system_misc:avenrun_15min');
$results['avg'] = array( round($load1/256, 2), round($load5/256, 2), round($load15/256, 2) );
return $results;
}
function cpu_info () {
$results = array();
$ar_buf = array();
$results['model'] = execute_program('uname', '-i');
$results['cpuspeed'] = $this->kstat('cpu_info:0:cpu_info0:clock_MHz');
$results['cache'] = $this->kstat('cpu_info:0:cpu_info0:cpu_type');
$results['cpus'] = $this->kstat('unix:0:system_misc:ncpus');
return $results;
}
function pci () {
// FIXME
$results = array();
return $results;
}
function ide () {
// FIXME
$results = array();
return $results;
}
function scsi () {
// FIXME
$results = array();
return $results;
}
function usb () {
// FIXME
$results = array();
return $results;
}
function sbus () {
$results = array();
$_results[0] = "";
// TODO. Nothing here yet. Move along.
$results = $_results;
return $results;
}
function network () {
$results = array();
$netstat = execute_program('netstat', '-ni | awk \'(NF ==10){print;}\'');
$lines = split("\n", $netstat);
$results = array();
for ($i = 0, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/\s+/", $lines[$i]);
if ((!empty($ar_buf[0])) && ($ar_buf[0] != 'Name')) {
$results[$ar_buf[0]] = array();
$results[$ar_buf[0]]['rx_bytes'] = 0;
$results[$ar_buf[0]]['rx_packets'] = $ar_buf[4];
$results[$ar_buf[0]]['rx_errs'] = $ar_buf[5];
$results[$ar_buf[0]]['rx_drop'] = 0;
$results[$ar_buf[0]]['tx_bytes'] = 0;
$results[$ar_buf[0]]['tx_packets'] = $ar_buf[6];
$results[$ar_buf[0]]['tx_errs'] = $ar_buf[7];
$results[$ar_buf[0]]['tx_drop'] = 0;
$results[$ar_buf[0]]['errs'] = $ar_buf[5] + $ar_buf[
7];
$results[$ar_buf[0]]['drop'] = 0;
preg_match('/^(\D+)(\d+)$/', $ar_buf[0], $intf);
$prefix = $intf[1] . ':' . $intf[2] . ':' . $intf[1] . $intf[2] . ':';
$cnt = $this->kstat($prefix . 'drop');
if ($cnt > 0) {
$results[$ar_buf[0]]['rx_drop'] = $cnt;
}
$cnt = $this->kstat($prefix . 'obytes64');
if ($cnt > 0) {
$results[$ar_buf[0]]['tx_bytes'] = $cnt;
}
$cnt = $this->kstat($prefix . 'rbytes64');
if ($cnt > 0) {
$results[$ar_buf[0]]['rx_bytes'] = $cnt;
}
}
}
return $results;
}
function memory () {
$results['devswap'] = array();
$results['ram'] = array();
$pagesize = $this->kstat('unix:0:seg_cache:slab_size');
$results['ram']['total'] = $this->kstat('unix:0:system_pages:pagestotal') * $pagesize / 1024;
$results['ram']['used'] = $this->kstat('unix:0:system_pages:pageslocked') * $pagesize / 1024;
$results['ram']['free'] = $this->kstat('unix:0:system_pages:pagesfree') * $pagesize / 1024;
$results['ram']['shared'] = 0;
$results['ram']['buffers'] = 0;
$results['ram']['cached'] = 0;
$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']['used'] * 100) / $results['ram']['total']);
$results['swap'] = array();
$results['swap']['total'] = $this->kstat('unix:0:vminfo:swap_avail') / 1024 / 1024;
$results['swap']['used'] = $this->kstat('unix:0:vminfo:swap_alloc') / 1024 / 1024;
$results['swap']['free'] = $this->kstat('unix:0:vminfo:swap_free') / 1024 / 1024;
$results['swap']['percent'] = round(($ar_buf[1] * 100) / $ar_buf[0]);
$results['swap']['percent'] = round(($results['swap']['used'] * 100) / $results['swap']['total']);
return $results;
}
function filesystems () {
$df = execute_program('df', '-k');
$mounts = split("\n", $df);
$dftypes = execute_program('df', '-n');
$mounttypes = split("\n", $dftypes);
for ($i = 1, $j = 0, $max = sizeof($mounts); $i < $max; $i++) {
$ar_buf = preg_split('/\s+/', $mounts[$i], 6);
$ty_buf = split(':', $mounttypes[$i-1], 2);
if (hide_mount($ar_buf[5])) {
continue;
}
$results[$j] = array();
$results[$j]['disk'] = $ar_buf[0];
$results[$j]['size'] = $ar_buf[1];
$results[$j]['used'] = $ar_buf[2];
$results[$j]['free'] = $ar_buf[3];
$results[$j]['percent'] = round(($results[$j]['used'] * 100) / $results[$j]['size']);
$results[$j]['mount'] = $ar_buf[5];
$results[$j]['fstype'] = $ty_buf[1];
$j++;
}
return $results;
}
function distro () {
$result = 'SunOS';
return($result);
}
function distroicon () {
$result = 'SunOS.png';
return($result);
}
}
?>
@@ -0,0 +1,295 @@
<?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.
// WINNT implementation written by Carl C. Longnecker, longneck@iname.com
// $Id: class.WINNT.inc.bak.php 5728 2006-05-03 21:19:46Z allanbush $
class sysinfo {
// winnt needs some special prep
// $wmi holds the COM object that we pull all the WMI data from
var $wmi;
// this constructor initialis the $wmi object
function sysinfo ()
{
$this->wmi = new COM("WinMgmts:\\\\.");
}
// get our apache SERVER_NAME or vhost
function vhostname ()
{
if (! ($result = getenv('SERVER_NAME'))) {
$result = 'N.A.';
}
return $result;
}
// get our canonical hostname
function chostname ()
{
if (! ($result = getenv('SERVER_NAME'))) {
$result = 'N.A.';
}
return $result;
}
// get the IP address of our canonical hostname
function ip_addr ()
{
if (!($result = getenv('SERVER_ADDR'))) {
$result = 'N.A.';
}
return $result;
}
function kernel ()
{
$objInstance = $this->wmi->InstancesOf("Win32_OperatingSystem");
foreach ($objInstance as $obj) {
$result = $obj->Version;
if ($obj->ServicePackMajorVersion > 0) {
$result .= ' SP' . $obj->ServicePackMajorVersion;
}
}
return $result;
}
function uptime ()
{
$objInstance = $this->wmi->InstancesOf("Win32_OperatingSystem");
foreach ($objInstance as $obj) {
$result = 0;
$year = intval(substr($obj->LastBootUpTime, 0, 4));
$month = intval(substr($obj->LastBootUpTime, 4, 2));
$day = intval(substr($obj->LastBootUpTime, 6, 2));
$hour = intval(substr($obj->LastBootUpTime, 8, 2));
$minute = intval(substr($obj->LastBootUpTime, 10, 2));
$seconds = intval(substr($obj->LastBootUpTime, 12, 2));
$boottime = mktime($hour, $minute, $seconds, $month, $day, $year);
$diff_seconds = mktime() - $boottime;
$result = $diff_seconds;
}
return $result;
}
function users ()
{
$objInstance = $this->wmi->InstancesOf("Win32_PerfRawData_TermService_TerminalServices");
foreach ($objInstance as $obj) {
return $obj->TotalSessions;
}
}
function loadavg ()
{
$objInstance = $this->wmi->InstancesOf("Win32_Processor");
$cpuload = array();
foreach ($objInstance as $obj) {
$cpuload[] = $obj->LoadPercentage;
}
// while
return $cpuload;
}
function cpu_info ()
{
$objInstance = $this->wmi->InstancesOf("Win32_Processor");
foreach ($objInstance as $obj) {
// still need bogomips (wtf are bogomips?)
$results['cpus'] = getenv('NUMBER_OF_PROCESSORS');
$results['model'] = $obj->Name;
$results['cache'] = $obj->L2CacheSize;
$results['mhz'] = $obj->CurrentClockSpeed . "/" . $obj->ExtClock;
}
return $results;
}
function pci ()
{
$objInstance = $this->wmi->InstancesOf("Win32_PnPEntity");
$pci = array();
foreach ($objInstance as $obj) {
if (substr($obj->PNPDeviceID, 0, 4) == "PCI\\") {
$pci[] = $obj->Name;
}
} // while
return $pci;
}
function ide ()
{
$objInstance = $this->wmi->InstancesOf("Win32_PnPEntity");
$ide = array();
foreach ($objInstance as $obj) {
if (substr($obj->PNPDeviceID, 0, 4) == "IDE\\") {
$ide[]['model'] = $obj->Name;
}
} // while
return $ide;
}
function scsi ()
{
$objInstance = $this->wmi->InstancesOf("Win32_PnPEntity");
$scsi = array();
foreach ($objInstance as $obj) {
if (substr($obj->PNPDeviceID, 0, 5) == "SCSI\\") {
$scsi[] = $obj->Name;
}
} // while
return $scsi;
}
function usb ()
{
$objInstance = $this->wmi->InstancesOf("Win32_PnPEntity");
$usb = array();
foreach ($objInstance as $obj) {
if (substr($obj->PNPDeviceID, 0, 4) == "USB\\") {
$usb[] = $obj->Name;
}
} // while
return $usb;
}
function sbus ()
{
$objInstance = $this->wmi->InstancesOf("Win32_PnPEntity");
$sbus = array();
foreach ($objInstance as $obj) {
if (substr($obj->PNPDeviceID, 0, 5) == "SBUS\\") {
$sbus[] = $obj->Name;
}
} // while
return $sbus;
}
function network ()
{
/**
* need this for documentation in case i find some better net stats
* $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];
*/
$objInstance = $this->wmi->InstancesOf("Win32_PerfRawData_Tcpip_NetworkInterface");
$results = array();
foreach ($objInstance as $obj) {
$results[$obj->Name]['errs'] = $obj->PacketsReceivedErrors;
$results[$obj->Name]['drop'] = $obj->PacketsReceivedDiscarded;
} // while
return $results;
}
function memory ()
{
$objInstance = $this->wmi->InstancesOf("Win32_LogicalMemoryConfiguration");
foreach ($objInstance as $obj) {
$results['ram']['total'] = $obj->TotalPhysicalMemory;
}
$objInstance = $this->wmi->InstancesOf("Win32_PerfRawData_PerfOS_Memory");
foreach ($objInstance as $obj) {
$results['ram']['free'] = $obj->AvailableKBytes;
}
$results['ram']['used'] = $results['ram']['total'] - $results['ram']['free'];
$results['ram']['t_used'] = $results['ram']['used'];
$results['ram']['t_free'] = $results['ram']['total'] - $results['ram']['t_used'];
$results['ram']['percent'] = round(($results['ram']['t_used'] * 100) / $results['ram']['total']);
$results['swap']['total'] = 0;
$results['swap']['used'] = 0;
$results['swap']['free'] = 0;
$objInstance = $this->wmi->InstancesOf("Win32_PageFileUsage");
$k = 0;
foreach ($objInstance as $obj) {
$results['devswap'][$k]['dev'] = $obj->Name;
$results['devswap'][$k]['total'] = $obj->AllocatedBaseSize * 1024;
$results['devswap'][$k]['used'] = $obj->CurrentUsage * 1024;
$results['devswap'][$k]['free'] = ($obj->AllocatedBaseSize - $obj->CurrentUsage) * 1024;
$results['devswap'][$k]['percent'] = $obj->CurrentUsage / $obj->AllocatedBaseSize;
$results['swap']['total'] += $results['devswap'][$k]['total'];
$results['swap']['used'] += $results['devswap'][$k]['used'];
$results['swap']['free'] += $results['devswap'][$k]['free'];
$k += 1;
}
$results['swap']['percent'] = round($results['swap']['used'] / $results['swap']['total'] * 100);
return $results;
}
function filesystems ()
{
$objInstance = $this->wmi->InstancesOf("Win32_LogicalDisk");
$k = 0;
foreach ($objInstance as $obj) {
$results[$k]['mount'] = $obj->Name;
$results[$k]['size'] = $obj->Size / 1024;
$results[$k]['used'] = ($obj->Size - $obj->FreeSpace) / 1024;
$results[$k]['free'] = $obj->FreeSpace / 1024;
$results[$k]['percent'] = round($results[$k]['used'] / $results[$k]['size'] * 100);
$results[$k]['fstype'] = $obj->FileSystem;
$typearray = array("Unknown", "No Root Directory", "Removeable Disk",
"Local Disk", "Network Drive", "Compact Disc", "RAM Disk");
$floppyarray = array("Unknown", "5 1/4 in.", "3 1/2 in.", "3 1/2 in.",
"3 1/2 in.", "3 1/2 in.", "5 1/4 in.", "5 1/4 in.", "5 1/4 in.",
"5 1/4 in.", "5 1/4 in.", "Other", "HD", "3 1/2 in.", "3 1/2 in.",
"5 1/4 in.", "5 1/4 in.", "3 1/2 in.", "3 1/2 in.", "5 1/4 in.",
"3 1/2 in.", "3 1/2 in.", "8 in.");
$results[$k]['disk'] = $typearray[$obj->DriveType];
if ($obj->DriveType == 2) $results[$k]['disk'] .= " (" . $floppyarray[$obj->MediaType] . ")";
$k += 1;
}
return $results;
}
function distro ()
{
$objInstance = $this->wmi->InstancesOf("Win32_OperatingSystem");
foreach ($objInstance as $obj) {
return $obj->Caption;
}
}
function distroicon ()
{
return 'xp.gif';
}
}
?>
@@ -0,0 +1,315 @@
<?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.
// WINNT implementation written by Carl C. Longnecker, longneck@iname.com
// $Id: class.WINNT.inc.php,v 1.19 2006/04/22 16:47:25 bigmichi1 Exp $
class sysinfo {
// $wmi holds the COM object that we pull all the WMI data from
var $wmi;
// $wmidevices holds all devices, which are in the system
var $wmidevices;
// this constructor initialis the $wmi object
function sysinfo ()
{
// don't set this params for local connection, it will not work
$strHostname = '';
$strUser = '';
$strPassword = '';
// initialize the wmi object
$objLocator = new COM("WbemScripting.SWbemLocator");
if($strHostname == "") {
$this->wmi = $objLocator->ConnectServer();
} else{
$this->wmi = $objLocator->ConnectServer($strHostname, "rootcimv2", "$strHostname\$strUser", $strPassword);
}
}
// private function for getting a list of values in the specified context, optionally filter this list, based on the list from second parameter
function _GetWMI($strClass, $strValue = array() ) {
$objWEBM = $this->wmi->Get($strClass);
if( PHP_VERSION < 5 ) {
$objProp = $objWEBM->Properties_;
$arrProp = $objProp->Next($objProp->Count);
$objWEBMCol = $objWEBM->Instances_();
$arrWEBMCol = $objWEBMCol->Next($objWEBMCol->Count);
} else {
$arrProp = $objWEBM->Properties_;
$arrWEBMCol = $objWEBM->Instances_();
}
foreach($arrWEBMCol as $objItem)
{
@reset($arrProp);
$arrInstance = array();
foreach($arrProp as $propItem)
{
eval("\$value = \$objItem->" .$propItem->Name .";");
if( empty( $strValue ) ) {
$arrInstance[$propItem->Name] = trim($value);
} else {
if( in_array( $propItem->Name, $strValue ) ) {
$arrInstance[$propItem->Name] = trim($value);
}
}
}
$arrData[] = $arrInstance;
}
return $arrData;
}
// private function for getting different device types from the system
function _devicelist ( $strType ) {
if( empty( $this->wmidevices ) ) {
$this->wmidevices = $this->_GetWMI( "Win32_PnPEntity", array( "Name", "PNPDeviceID" ) );
}
$list = array();
foreach ( $this->wmidevices as $device ) {
if ( substr( $device["PNPDeviceID"], 0, strpos( $device["PNPDeviceID"], "\\" ) + 1 ) == ( $strType . "\\" ) ) {
$list[] = $device["Name"];
}
}
return $list;
}
// get our canonical hostname
function chostname ()
{
$buffer = $this->_GetWMI( "Win32_ComputerSystem", array( "Name" ) );
$result = $buffer[0]["Name"];
return gethostbyaddr(gethostbyname($result));
}
// get the IP address of our canonical hostname
function ip_addr ()
{
$buffer = $this->_GetWMI( "Win32_ComputerSystem", array( "Name" ) );
$result = $buffer[0]["Name"];
return gethostbyname($result);
}
function kernel ()
{
$buffer = $this->_GetWMI( "Win32_OperatingSystem", array( "Version", "ServicePackMajorVersion" ) );
$result = $buffer[0]["Version"];
if( $buffer[0]["ServicePackMajorVersion"] > 0 ) {
$result .= " SP" . $buffer[0]["ServicePackMajorVersion"];
}
return $result;
}
// get the time the system is running
function uptime ()
{
$result = 0;
$buffer = $this->_GetWMI( "Win32_OperatingSystem", array( "LastBootUpTime" ) );
$year = intval(substr($buffer[0]["LastBootUpTime"], 0, 4));
$month = intval(substr($buffer[0]["LastBootUpTime"], 4, 2));
$day = intval(substr($buffer[0]["LastBootUpTime"], 6, 2));
$hour = intval(substr($buffer[0]["LastBootUpTime"], 8, 2));
$minute = intval(substr($buffer[0]["LastBootUpTime"], 10, 2));
$seconds = intval(substr($buffer[0]["LastBootUpTime"], 12, 2));
$hour -= date("Z") / 60 / 60; // GMT-Offset
$boottime = mktime($hour, $minute, $seconds, $month, $day, $year);
$result = mktime() - $boottime;
return $result;
}
// count the users, which are logged in
function users ()
{
if( !stristr( $this->kernel(), "2000 P" ) ) return "N.A.";
$buffer = $this->_GetWMI( "Win32_PerfRawData_TermService_TerminalServices", array( "TotalSessions" ) );
return $buffer[0]["TotalSessions"];
}
// get the load of the processors
function loadavg ($bar = false)
{
$buffer = $this->_GetWMI( "Win32_Processor", array( "LoadPercentage" ) );
$cpuload = array();
for( $i = 0; $i < count( $buffer ); $i++ ) {
$cpuload['avg'][] = $buffer[$i]["LoadPercentage"];
}
if ($bar) {
$cpuload['cpupercent'] = array_sum( $cpuload['avg'] ) / count( $buffer );
}
return $cpuload;
}
// get some informations about the cpu's
function cpu_info ()
{
$buffer = $this->_GetWMI( "Win32_Processor", array( "Name", "L2CacheSize", "CurrentClockSpeed", "ExtClock" ) );
$results["cpus"] = 0;
foreach ($buffer as $cpu) {
$results["cpus"]++;
$results["model"] = $cpu["Name"];
$results["cache"] = $cpu["L2CacheSize"];
$results["cpuspeed"] = $cpu["CurrentClockSpeed"];
$results["busspeed"] = $cpu["ExtClock"];
}
return $results;
}
// get the pci devices from the system
function pci ()
{
$pci = $this->_devicelist( "PCI" );
return $pci;
}
// get the ide devices from the system
function ide ()
{
$buffer = $this->_devicelist( "IDE" );
$ide = array();
foreach ( $buffer as $device ) {
$ide[]['model'] = $device;
}
return $ide;
}
// get the scsi devices from the system
function scsi ()
{
$scsi = $this->_devicelist( "SCSI" );
return $scsi;
}
// get the usb devices from the system
function usb ()
{
$usb = $this->_devicelist( "USB" );
return $usb;
}
// get the sbus devices from the system - currently not called
function sbus ()
{
$sbus = $this->_devicelist( "SBUS" );
return $sbus;
}
// get the netowrk devices and rx/tx bytes
function network ()
{
$buffer = $this->_GetWMI( "Win32_PerfRawData_Tcpip_NetworkInterface" );
$results = array();
foreach ( $buffer as $device ) {
$dev_name = $device["Name"];
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_perfrawdata_tcpip_networkinterface.asp
$results[$dev_name]['rx_bytes'] = $device["BytesReceivedPersec"];
$results[$dev_name]['rx_packets'] = $device["PacketsReceivedPersec"];
$results[$dev_name]['rx_errs'] = $device["PacketsReceivedErrors"];
$results[$dev_name]['rx_drop'] = $device["PacketsReceivedDiscarded"];
$results[$dev_name]['tx_bytes'] = $device["BytesSentPersec"];
$results[$dev_name]['tx_packets'] = $device["PacketsSentPersec"];
$results[$dev_name]['errs'] = $device["PacketsReceivedErrors"];
$results[$dev_name]['drop'] = $device["PacketsReceivedDiscarded"];
}
return $results;
}
function memory ()
{
$buffer = $this->_GetWMI( "Win32_LogicalMemoryConfiguration", array( "TotalPhysicalMemory" ) );
$results['ram']['total'] = $buffer[0]["TotalPhysicalMemory"];
$buffer = $this->_GetWMI( "Win32_PerfRawData_PerfOS_Memory", array( "AvailableKBytes" ) );
$results['ram']['free'] = $buffer[0]["AvailableKBytes"];
$results['ram']['used'] = $results['ram']['total'] - $results['ram']['free'];
$results['ram']['t_used'] = $results['ram']['used'];
$results['ram']['t_free'] = $results['ram']['total'] - $results['ram']['t_used'];
$results['ram']['percent'] = ceil( ( $results['ram']['t_used'] * 100 ) / $results['ram']['total'] );
$results['swap']['total'] = 0;
$results['swap']['used'] = 0;
$results['swap']['free'] = 0;
$buffer = $this->_GetWMI( "Win32_PageFileUsage" ); // no need to filter, using nearly everything from output
$k = 0;
foreach ($buffer as $swapdevice) {
$results['devswap'][$k]['dev'] = $swapdevice["Name"];
$results['devswap'][$k]['total'] = $swapdevice["AllocatedBaseSize"] * 1024;
$results['devswap'][$k]['used'] = $swapdevice["CurrentUsage"] * 1024;
$results['devswap'][$k]['free'] = ( $swapdevice["AllocatedBaseSize"] - $swapdevice["CurrentUsage"] ) * 1024;
$results['devswap'][$k]['percent'] = ceil( $swapdevice["CurrentUsage"] / $swapdevice["AllocatedBaseSize"] );
$results['swap']['total'] += $results['devswap'][$k]['total'];
$results['swap']['used'] += $results['devswap'][$k]['used'];
$results['swap']['free'] += $results['devswap'][$k]['free'];
$k += 1;
}
$results['swap']['percent'] = ceil( $results['swap']['used'] / $results['swap']['total'] * 100 );
return $results;
}
// get the filesystem informations
function filesystems ()
{
$typearray = array("Unknown", "No Root Directory", "Removeable Disk",
"Local Disk", "Network Drive", "Compact Disc", "RAM Disk");
$floppyarray = array("Unknown", "5 1/4 in.", "3 1/2 in.", "3 1/2 in.",
"3 1/2 in.", "3 1/2 in.", "5 1/4 in.", "5 1/4 in.", "5 1/4 in.",
"5 1/4 in.", "5 1/4 in.", "Other", "HD", "3 1/2 in.", "3 1/2 in.",
"5 1/4 in.", "5 1/4 in.", "3 1/2 in.", "3 1/2 in.", "5 1/4 in.",
"3 1/2 in.", "3 1/2 in.", "8 in.");
$buffer = $this->_GetWMI( "Win32_LogicalDisk" , array( "Name", "Size", "FreeSpace", "FileSystem", "DriveType", "MediaType" ) );
$k = 0;
foreach ( $buffer as $filesystem ) {
if ( hide_mount( $filesystem["Name"] ) ) {
continue;
}
$results[$k]['mount'] = $filesystem["Name"];
$results[$k]['size'] = $filesystem["Size"] / 1024;
$results[$k]['used'] = ( $filesystem["Size"] - $filesystem["FreeSpace"] ) / 1024;
$results[$k]['free'] = $filesystem["FreeSpace"] / 1024;
@$results[$k]['percent'] = ceil( $results[$k]['used'] / $results[$k]['size'] * 100 ); // silence this line, nobody is having a floppy in the drive everytime
$results[$k]['fstype'] = $filesystem["FileSystem"];
$results[$k]['disk'] = $typearray[$filesystem["DriveType"]];
if ( $filesystem["DriveType"] == 2 ) $results[$k]['disk'] .= " (" . $floppyarray[$filesystem["MediaType"]] . ")";
$k += 1;
}
return $results;
}
function distro ()
{
$buffer = $this->_GetWMI( "Win32_OperatingSystem", array( "Caption" ) );
return $buffer[0]["Caption"];
}
function distroicon ()
{
return 'xp.gif';
}
}
?>
@@ -0,0 +1,133 @@
<?php
class Parser {
var $debug = false;
var $df_param;
function parse_lspci() {
$results = array();
if ($_results = execute_program('lspci', '', $this->debug)) {
$lines = split("\n", $_results);
for ($i = 0, $max = sizeof($lines); $i < $max; $i++) {
list($addr, $name) = explode(' ', trim($lines[$i]), 2);
//if (!preg_match('/bridge/i', $name) && !preg_match('/USB/i', $name)) {
// remove all the version strings
$name = preg_replace('/\(.*\)/', '', $name);
// is addr really usefull for this??? i think it's not
// $results[] = $addr . ' ' . $name;
$results[] = $name;
//}
}
}
if( empty( $results ) ) {
return false;
} else {
asort( $results );
return $results;
}
}
function parse_pciconf() {
$results = array();
if($buf = execute_program("pciconf", "-lv", $this->debug)) {
$buf = explode("\n", $buf); $s = 0;
foreach($buf as $line) {
if (preg_match("/(.*) = '(.*)'/", $line, $strings)) {
if (trim($strings[1]) == "vendor") {
$results[$s] = trim($strings[2]);
} elseif (trim($strings[1]) == "device") {
$results[$s] .= " - " . trim($strings[2]);
$s++;
}
}
}
}
if( empty( $results ) ) {
return false;
} else {
asort( $results );
return $results;
}
}
function parse_filesystems() {
global $show_bind, $show_inodes;
$j = 0;
$df = execute_program('df', '-k' . $this->df_param );
$df = preg_split("/\n/", $df, -1, PREG_SPLIT_NO_EMPTY);
if( $show_inodes ) {
$df2 = execute_program('df', '-i' . $this->df_param );
$df2 = preg_split("/\n/", $df2, -1, PREG_SPLIT_NO_EMPTY);
}
$mount = execute_program('mount');
$mount = preg_split("/\n/", $mount, -1, PREG_SPLIT_NO_EMPTY);
foreach( $df as $df_line) {
$df_buf1 = preg_split("/(\%\s)/", $df_line, 2);
if( count($df_buf1) != 2) {
continue;
}
preg_match("/(.*)(\s+)(([0-9]+)(\s+)([0-9]+)(\s+)([0-9]+)(\s+)([0-9]+)$)/", $df_buf1[0], $df_buf2);
$df_buf = array($df_buf2[1], $df_buf2[4], $df_buf2[6], $df_buf2[8], $df_buf2[10], $df_buf1[1]);
if( $show_inodes ) {
preg_match_all("/([0-9]+)%/", $df2[$j + 1], $inode_buf, PREG_SET_ORDER);
}
if( count($df_buf) == 6 ) {
if( hide_mount( $df_buf[5] ) ) {
continue;
}
$df_buf[0] = trim( str_replace("\$", "\\$", $df_buf[0] ) );
$df_buf[5] = trim( $df_buf[5] );
$current = 0;
foreach( $mount as $mount_line ) {
$current++;
if ( preg_match("#" . $df_buf[0] . " on " . $df_buf[5] . " type (.*) \((.*)\)#", $mount_line, $mount_buf) ) {
$mount_buf[1] .= "," . $mount_buf[2];
} elseif ( !preg_match("#" . $df_buf[0] . "(.*) on " . $df_buf[5] . " \((.*)\)#", $mount_line, $mount_buf) ) {
continue;
}
if ( $show_bind || !stristr($mount_buf[2], "bind")) {
$results[$j] = array();
$results[$j]['disk'] = str_replace( "\\$", "\$", $df_buf[0] );
$results[$j]['size'] = $df_buf[1];
$results[$j]['used'] = $df_buf[2];
$results[$j]['free'] = $df_buf[3];
$results[$j]['percent'] = round(($results[$j]['used'] * 100) / $results[$j]['size']);
$results[$j]['mount'] = $df_buf[5];
$results[$j]['fstype'] = substr( $mount_buf[1], 0, strpos( $mount_buf[1], "," ) );
$results[$j]['options'] = substr( $mount_buf[1], strpos( $mount_buf[1], "," ) + 1, strlen( $mount_buf[1] ) );
if( $show_inodes && isset($inode_buf[ count( $inode_buf ) - 1][1]) ) {
$results[$j]['inodes'] = $inode_buf[ count( $inode_buf ) - 1][1];
}
$j++;
unset( $mount[$current - 1] );
sort( $mount );
break;
}
}
}
}
return $results;
}
}
?>
@@ -0,0 +1,107 @@
<?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.46 2006/01/21 09:30:19 bigmichi1 Exp $
//
if (!defined('IN_PHPSYSINFO')) {
die("No Hacking");
}
$direction = direction();
if (!$hide_picklist) {
echo "<center>";
$update_form = "<form method=\"POST\" action=\"" . $_SERVER['PHP_SELF'] . "\">\n" . "\t" . $text['template'] . ":&nbsp;\n" . "\t<select name=\"template\">\n";
$dir = opendir(getcwd().'/modules/System/templates/');
while (false !== ($file = readdir($dir))) {
if ($file != 'CVS' && $file[0] != '.' && is_dir((getcwd().'/modules/System/templates/' . $file)) ){
$filelist[] = $file;
}
}
closedir($dir);
asort($filelist);
while (list ($key, $val) = each ($filelist)) {
if ($_COOKIE['template'] == $val) {
$update_form .= "\t\t<option value=\"$val\" SELECTED>$val</option>\n";
} else {
$update_form .= "\t\t<option value=\"$val\">$val</option>\n";
}
}
$update_form .= "\t\t<option value=\"xml\">XML</option>\n";
$update_form .= "\t\t<option value=\"wml\">WML - experimental</option>\n";
// auto select the random template, if we're set to random
$update_form .= "\t\t<option value=\"random\"";
if ($_COOKIE['template']=='random') {
$update_form .= " SELECTED";
}
$update_form .= ">random</option>\n";
$update_form .= "\t</select>\n";
$update_form .= "\t&nbsp;&nbsp;" . $text['language'] . ":&nbsp;\n" . "\t<select name=\"lng\">\n";
unset($filelist);
$dir = opendir(getcwd().'/modules/System/includes/lang/');
while (false !== ($file = readdir($dir))) {
if ($file[0] != '.' && is_file(getcwd().'/modules/System/includes/lang/' . $file) && eregi("\.php$", $file)) {
$filelist[] = eregi_replace('.php', '', $file);
}
}
closedir($dir);
asort($filelist);
while (list ($key, $val) = each ($filelist)) {
if ($_COOKIE['lng'] == $val) {
$update_form .= "\t\t<option value=\"$val\" SELECTED>$val</option>\n";
} else {
$update_form .= "\t\t<option value=\"$val\">$val</option>\n";
}
}
$update_form .= "\t\t<option value=\"browser\"";
if ($_COOKIE['lng']=='browser') {
$update_form .= " SELECTED";
}
$update_form .= ">browser default</option>\n";
$update_form .= "\t</select>\n" . "\t<input type=\"submit\" value=\"" . $text['submit'] . "\">\n" . "</form>\n";
echo $update_form;
echo "\n\n</center>";
} else {
echo "\n\n<br>";
}
echo "\n<hr>\n";
//echo "<table width=\"100%\">\n <tr>\n";
//echo "<td align=\"" . $direction['left'] . "\"><font size=\"-1\">" . $text['created'] . '&nbsp;<a href="http://phpsysinfo.sourceforge.net" target="_blank">phpSysInfo-' . $VERSION . '</a> ' . strftime ($text['gen_time'], time()) . "</font></td>\n";
//echo "<td align=\"" . $direction['right'] . "\"><font size=\"-1\">" . round( ( array_sum( explode( " ", microtime() ) ) - $startTime ), 4 ). " sec</font></td>\n";
//echo " </tr>\n</table>\n";
echo "\n<br>\n</body>\n</html>\n";
?>
@@ -0,0 +1,64 @@
<?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.27 2005/12/10 15:54:41 bigmichi1 Exp $
global $app_strings;
if (!defined('IN_PHPSYSINFO')) {
die("No Hacking");
}
@header("Cache-Control: no-cache, must-revalidate");
if (!isset($charset)) {
$charset = $app_strings['LBL_CHARSET'];
}
setlocale (LC_ALL, $text['locale']);
@header('Content-Type: text/html; charset=' . $charset);
global $XPath;
global $theme;
$theme_path="themes/".$theme."/";
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
echo "<html>\n";
echo created_by();
echo "<head>\n";
echo "<style type='text/css'>@import url('$theme_path/style.css');</style>\n";
echo " <title>" . $text['title'], " -- ", $XPath->getData('/phpsysinfo/Vitals/Hostname'), " --</title>\n";
if (isset($charset) && $charset == 'euc-jp') {
echo " <meta http-equiv=\"content-type\" content=\"text/html;charset=$charset\">\n";
}
if (isset($refresh) && ($refresh = intval($refresh))) {
echo " <meta http-equiv=\"Refresh\" content=\"$refresh\">\n";
}
if (file_exists(APP_ROOT . "/templates/$template/$template.css")) {
echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"" . $webpath . "templates/" . $template . "/" . $template . ".css\">\n";
}
echo "</head>\n";
if (file_exists(APP_ROOT . "/templates/$template/images/$template" . "_background.gif")) {
echo "<body background='modules/System/templates/' . $webpath . 'templates/' . $template . '/images/' . $template . '_background.gif\'>";
} else {
echo "<body>\n";
}
?>
@@ -0,0 +1,162 @@
<?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: filesystems.php,v 1.27 2006/04/22 14:35:57 bigmichi1 Exp $
//
// xml_filesystems()
//
function xml_filesystems () {
global $sysinfo;
global $show_mount_point;
$fs = $sysinfo->filesystems();
$_text = " <FileSystem>\n";
for ($i=0, $max = sizeof($fs); $i < $max; $i++) {
$_text .= " <Mount>\n";
$_text .= " <MountPointID>" . htmlspecialchars($i, ENT_QUOTES) . "</MountPointID>\n";
if ($show_mount_point) {
$_text .= " <MountPoint>" . htmlspecialchars($fs[$i]['mount'], ENT_QUOTES) . "</MountPoint>\n";
}
$_text .= " <Type>" . htmlspecialchars($fs[$i]['fstype'], ENT_QUOTES) . "</Type>\n"
. " <Device><Name>" . htmlspecialchars($fs[$i]['disk'], ENT_QUOTES) . "</Name></Device>\n"
. " <Percent>" . htmlspecialchars($fs[$i]['percent'], ENT_QUOTES) . "</Percent>\n"
. " <Free>" . htmlspecialchars($fs[$i]['free'], ENT_QUOTES) . "</Free>\n"
. " <Used>" . htmlspecialchars($fs[$i]['used'], ENT_QUOTES) . "</Used>\n"
. " <Size>" . htmlspecialchars($fs[$i]['size'], ENT_QUOTES) . "</Size>\n";
if (isset($fs[$i]['options']))
$_text .= " <Options>" . htmlspecialchars($fs[$i]['options'], ENT_QUOTES) . "</Options>\n";
if( isset( $fs[$i]['inodes'] ) )
$_text .= " <Inodes>" . htmlspecialchars( $fs[$i]['inodes'], ENT_QUOTES ) . "</Inodes>\n";
$_text .= " </Mount>\n";
}
$_text .= " </FileSystem>\n";
return $_text;
}
//
// html_filesystems()
//
function html_filesystems () {
global $XPath;
global $text;
global $show_mount_point;
$textdir = direction();
$sum = array("size" => 0, "used" => 0, "free" => 0);
$counted_devlist = array();
$scale_factor = 2;
$_text = "<table cellspacing=0 cellpadding=5 border=\"0\" width=\"100%\" align=\"center\">\n";
$_text .= " <tr>\n";
if ($show_mount_point) {
$_text .= " <td class=\"colHeader small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['mount'] . "</b></font></td>\n";
}
$_text .= " <td class=\"colHeader small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['type'] . "</b></font></td>\n"
. " <td class=\"colHeader small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['partition'] . "</b></font></td>\n"
. " <td class=\"colHeader small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['percent'] . "</b></font></td>\n"
. " <td class=\"colHeader small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['free'] . "</b></font></td>\n"
. " <td class=\"colHeader small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['used'] . "</b></font></td>\n"
. " <td class=\"colHeader small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['size'] . "</b></font></td>\n </tr>\n";
for ($i=1, $max = sizeof($XPath->getDataParts('/phpsysinfo/FileSystem')); $i < $max; $i++) {
if ($XPath->match("/phpsysinfo/FileSystem/Mount[$i]/MountPointID")) {
if (!$XPath->match("/phpsysinfo/FileSystem/Mount[$i]/Options") || !stristr($XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Options"), "bind")) {
if (!in_array($XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Device/Name"), $counted_devlist)) {
$sum['size'] += $XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Size");
$sum['used'] += $XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Used");
$sum['free'] += $XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Free");
if (PHP_OS != "WINNT")
$counted_devlist[] = $XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Device/Name");
else
$counted_devlist[] = $XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/MountPoint");
}
}
$_text .= " <tr>\n";
if ($show_mount_point) {
$_text .= " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/MountPoint") . "</font></td>\n";
}
$_text .= " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Type") . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Device/Name") . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">"
. create_bargraph($XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Used"), $XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Size"), $scale_factor, $XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Type"))
. "&nbsp;" . $XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Percent") . "%";
if( $XPath->match( "/phpsysinfo/FileSystem/Mount[$i]/Inodes" ) )
$_text .= " (" . $XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Inodes") . "%)";
$_text .= "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Free")) . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Used")) . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Size")) . "</font></td>\n"
. " </tr>\n";
}
}
$_text .= " <tr>\n";
if ($show_mount_point) {
$_text .= " <td class=\"listTableRow small\" colspan=\"3\" align=\"" . $textdir['right'] . "\" valign=\"top\"><b><font size=\"-1\"><i>" . $text['totals'] . " :&nbsp;&nbsp;</i></font></td>\n";
} else {
$_text .= " <td class=\"listTableRow small\" colspan=\"2\" align=\"" . $textdir['right'] . "\" valign=\"top\"><b><font size=\"-1\"><i>" . $text['totals'] . " :&nbsp;&nbsp;</i></font></td>\n";
}
$_text .= " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"><b>"
. create_bargraph($sum['used'], $sum['size'], $scale_factor)
. "&nbsp;" . round(100 / $sum['size'] * $sum['used']) . "%" . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><b><font size=\"-1\"><b>" . format_bytesize($sum['free']) . "</font></b></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><b><font size=\"-1\"><b>" . format_bytesize($sum['used']) . "</font></b></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><b><font size=\"-1\"><b>" . format_bytesize($sum['size']) . "</font></b></td>\n </tr>\n"
. "</table>\n";
return $_text;
}
function wml_filesystem() {
global $XPath;
global $text;
global $show_mount_point;
$_text = "<card id=\"filesystem\" title=\"" . $text['fs'] . "\">\n";
for ($i = 1; $i < sizeof($XPath->getDataParts('/phpsysinfo/FileSystem')); $i++) {
if ($XPath->match("/phpsysinfo/FileSystem/Mount[$i]/MountPointID")) {
$_text .= "<p>\n";
if ($show_mount_point) {
$_text .= $XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/MountPoint") . "<br/>\n";
} else {
$_text .= $XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Device/Name") . "<br/>\n";
}
$_text .= "- " . $text['free'] . ": " . format_bytesize($XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Free")) . "<br/>\n"
. "- " . $text['used'] . ": " . format_bytesize($XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Used")) . "<br/>\n"
. "- " . $text['size'] . ": " . format_bytesize($XPath->getData("/phpsysinfo/FileSystem/Mount[$i]/Size")) . "<br/>\n"
. "</p>\n";
}
}
$_text .= "</card>\n";
return $_text;
}
?>
@@ -0,0 +1,252 @@
<?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: hardware.php,v 1.31 2006/01/15 17:17:54 bigmichi1 Exp $
function xml_hardware (&$hddtemp_devices)
{
global $sysinfo;
global $text;
$pci_devices = ""; $ide_devices = ""; $usb_devices = ""; $scsi_devices = "";
$sys = $sysinfo->cpu_info();
$ar_buf = finddups($sysinfo->pci());
if (count($ar_buf)) {
for ($i = 0, $max = sizeof($ar_buf); $i < $max; $i++) {
if ($ar_buf[$i]) {
$pci_devices .= " <Device><Name>" . htmlspecialchars(chop($ar_buf[$i]), ENT_QUOTES) . "</Name></Device>\n";
}
}
}
$ar_buf = $sysinfo->ide();
ksort($ar_buf);
if (count($ar_buf)) {
while (list($key, $value) = each($ar_buf)) {
$ide_devices .= " <Device>\n<Name>" . htmlspecialchars($key . ': ' . $ar_buf[$key]['model'], ENT_QUOTES) . "</Name>\n";
if (isset($ar_buf[$key]['capacity'])) {
$ide_devices .= '<Capacity>' . htmlspecialchars($ar_buf[$key]['capacity'], ENT_QUOTES) . '</Capacity>';
}
$hddtemp_devices[] = $key;
$ide_devices .= "</Device>\n";
}
}
$ar_buf = $sysinfo->scsi();
ksort($ar_buf);
if (count($ar_buf)) {
while (list($key, $value) = each($ar_buf)) {
$scsi_devices .= "<Device>\n";
if ($key >= '0' && $key <= '9') {
$scsi_devices .= " <Name>" . htmlspecialchars($ar_buf[$key]['model'], ENT_QUOTES) . "</Name>\n";
} else {
$scsi_devices .= " <Name>" . htmlspecialchars($key . ': ' . $ar_buf[$key]['model'], ENT_QUOTES) . "</Name>\n";
}
if (isset($ar_buf[$key]['capacity'])) {
$scsi_devices .= '<Capacity>' . htmlspecialchars($ar_buf[$key]['capacity'], ENT_QUOTES) . '</Capacity>';
}
$scsi_devices .= "</Device>\n";
}
}
$ar_buf = finddups( $sysinfo->usb() );
if (count($ar_buf)) {
for ($i = 0, $max = sizeof($ar_buf); $i < $max; $i++) {
if ($ar_buf[$i]) {
$usb_devices .= " <Device><Name>" . htmlspecialchars(chop($ar_buf[$i]), ENT_QUOTES) . "</Name></Device>\n";
}
}
}
/* disabled since we output this information
$ar_buf = $sysinfo->sbus();
if (count($ar_buf)) {
for ($i = 0, $max = sizeof($ar_buf); $i < $max; $i++) {
if ($ar_buf[$i]) {
$sbus_devices .= " <Device>" . htmlspecialchars(chop($ar_buf[$i]), ENT_QUOTES) . "</Device>\n";
}
}
}
*/
$_text = " <Hardware>\n";
$_text .= " <CPU>\n";
if (isset($sys['cpus'])) {
$_text .= " <Number>" . htmlspecialchars($sys['cpus'], ENT_QUOTES) . "</Number>\n";
}
if (isset($sys['model'])) {
$_text .= " <Model>" . htmlspecialchars($sys['model'], ENT_QUOTES) . "</Model>\n";
}
if (isset($sys['cpuspeed'])) {
$_text .= " <Cpuspeed>" . htmlspecialchars($sys['cpuspeed'], ENT_QUOTES) . "</Cpuspeed>\n";
}
if (isset($sys['busspeed'])) {
$_text .= " <Busspeed>" . htmlspecialchars($sys['busspeed'], ENT_QUOTES) . "</Busspeed>\n";
}
if (isset($sys['cache'])) {
$_text .= " <Cache>" . htmlspecialchars($sys['cache'], ENT_QUOTES) . "</Cache>\n";
}
if (isset($sys['bogomips'])) {
$_text .= " <Bogomips>" . htmlspecialchars($sys['bogomips'], ENT_QUOTES) . "</Bogomips>\n";
}
$_text .= " </CPU>\n";
$_text .= " <PCI>\n";
if ($pci_devices) {
$_text .= $pci_devices;
}
$_text .= " </PCI>\n";
$_text .= " <IDE>\n";
if ($ide_devices) {
$_text .= $ide_devices;
}
$_text .= " </IDE>\n";
$_text .= " <SCSI>\n";
if ($scsi_devices) {
$_text .= $scsi_devices;
}
$_text .= " </SCSI>\n";
$_text .= " <USB>\n";
if ($usb_devices) {
$_text .= $usb_devices;
}
$_text .= " </USB>\n";
/*
$_text .= " <SBUS>\n";
if ($sbus_devices) {
$_text .= $sbus_devices;
}
$_text .= " </SBUS>\n";
*/
$_text .= " </Hardware>\n";
return $_text;
}
function html_hardware ()
{
global $XPath;
global $text;
$pci_devices = ""; $ide_devices = ""; $usb_devices = ""; $scsi_devices = "";
$textdir = direction();
for ($i = 1, $max = sizeof($XPath->getDataParts('/phpsysinfo/Hardware/PCI')); $i < $max; $i++) {
if ($XPath->match("/phpsysinfo/Hardware/PCI/Device[$i]/Name")) {
$pci_devices .= "<tr><td valign=\"top\"><font size=\"-1\">-</font></td><td><font size=\"-1\">" . $XPath->getData("/phpsysinfo/Hardware/PCI/Device[$i]/Name") . "</font></td></tr>";
}
}
for ($i = 1, $max = sizeof($XPath->getDataParts('/phpsysinfo/Hardware/IDE')); $i < $max; $i++) {
if ($XPath->match("/phpsysinfo/Hardware/IDE/Device[$i]")) {
$ide_devices .= "<tr><td valign=\"top\"><font size=\"-1\">-</font></td><td><font size=\"-1\">" . $XPath->getData("/phpsysinfo/Hardware/IDE/Device[$i]/Name");
if ($XPath->match("/phpsysinfo/Hardware/IDE/Device[$i]/Capacity")) {
$ide_devices .= " (" . $text['capacity'] . ": " . format_bytesize($XPath->getData("/phpsysinfo/Hardware/IDE/Device[$i]/Capacity") / 2) . ")";
}
$ide_devices .= "</font></td></tr>";
}
}
for ($i = 1, $max = sizeof($XPath->getDataParts('/phpsysinfo/Hardware/SCSI')); $i < $max; $i++) {
if ($XPath->match("/phpsysinfo/Hardware/SCSI/Device[$i]")) {
$scsi_devices .= "<tr><td valign=\"top\"><font size=\"-1\">-</font></td><td><font size=\"-1\">" . $XPath->getData("/phpsysinfo/Hardware/SCSI/Device[$i]/Name");
if ($XPath->match("/phpsysinfo/Hardware/SCSI/Device[$i]/Capacity")) {
$scsi_devices .= " (" . $text['capacity'] . ": " . format_bytesize($XPath->getData("/phpsysinfo/Hardware/SCSI/Device[$i]/Capacity") / 2) . ")";
}
$scsi_devices .= "</font></td></tr>";
}
}
for ($i = 1, $max = sizeof($XPath->getDataParts('/phpsysinfo/Hardware/USB')); $i < $max; $i++) {
if ($XPath->match("/phpsysinfo/Hardware/USB/Device[$i]/Name")) {
$usb_devices .= "<tr><td valign=\"top\"><font size=\"-1\">-</font></td><td><font size=\"-1\">" . $XPath->getData("/phpsysinfo/Hardware/USB/Device[$i]/Name") . "</font></td></tr>";
}
}
$_text = "<table cellspacing=0 cellpadding=5 border=\"0\" width=\"100%\" align=\"center\">\n";
if ($XPath->match("/phpsysinfo/Hardware/CPU/Number")) {
$_text .= " <tr>\n <td class=\"cellLabel small\" align=right valign=\"top\"><font size=\"-1\">" . $text['numcpu'] . "</font></td>\n <td class=\"cellText small\"><font size=\"-1\">" . $XPath->getData("/phpsysinfo/Hardware/CPU/Number") . "</font></td>\n </tr>\n";
}
if ($XPath->match("/phpsysinfo/Hardware/CPU/Model")) {
$_text .= " <tr>\n <td class=\"cellLabel small\" align=right valign=\"top\"><font size=\"-1\">" . $text['cpumodel'] . "</font></td>\n <td class=\"cellText small\"><font size=\"-1\">" . $XPath->getData("/phpsysinfo/Hardware/CPU/Model") . "</font></td>\n </tr>\n";
}
if ($XPath->match("/phpsysinfo/Hardware/CPU/Cpuspeed")) {
$tmp_speed = $XPath->getData("/phpsysinfo/Hardware/CPU/Cpuspeed");
if ($tmp_speed < 1000) {
$_text .= " <tr>\n <td class=\"cellLabel small\" align=right valign=\"top\"><font size=\"-1\">" . $text['cpuspeed'] . "</font></td>\n <td class=\"cellText small\"><font size=\"-1\">" . $tmp_speed . " MHz</font></td>\n </tr>\n";
} else {
$_text .= " <tr>\n <td class=\"cellLabel small\" align=right valign=\"top\"><font size=\"-1\">" . $text['cpuspeed'] . "</font></td>\n <td class=\"cellText small\"><font size=\"-1\">" . round($tmp_speed / 1000, 2) . " GHz</font></td>\n </tr>\n";
}
}
if ($XPath->match("/phpsysinfo/Hardware/CPU/Busspeed")) {
$tmp_speed = $XPath->getData("/phpsysinfo/Hardware/CPU/Busspeed");
if ($tmp_speed < 1000) {
$_text .= " <tr>\n <td class=\"cellLabel small\" align=right valign=\"top\"><font size=\"-1\">" . $text['busspeed'] . "</font></td>\n <td class=\"cellText small\"><font size=\"-1\">" . $tmp_speed . " MHz</font></td>\n </tr>\n";
} else {
$_text .= " <tr>\n <td class=\"cellLabel small\" align=right valign=\"top\"><font size=\"-1\">" . $text['busspeed'] . "</font></td>\n <td class=\"cellText small\"><font size=\"-1\">" . round($tmp_speed / 1000, 2) . " GHz</font></td>\n </tr>\n";
}
}
if ($XPath->match("/phpsysinfo/Hardware/CPU/Cache")) {
$_text .= " <tr>\n <td class=\"cellLabel small\" align=right valign=\"top\"><font size=\"-1\">" . $text['cache'] . "</font></td>\n <td class=\"cellText small\"><font size=\"-1\">" . $XPath->getData("/phpsysinfo/Hardware/CPU/Cache") . "</font></td>\n </tr>\n";
}
if ($XPath->match("/phpsysinfo/Hardware/CPU/Bogomips")) {
$_text .= " <tr>\n <td class=\"cellLabel small\" align=right valign=\"top\"><font size=\"-1\">" . $text['bogomips'] . "</font></td>\n <td class=\"cellText small\"><font size=\"-1\">" . $XPath->getData("/phpsysinfo/Hardware/CPU/Bogomips") . "</font></td>\n </tr>\n";
}
$_text .= " <tr>\n <td class=\"cellLabel small\" align=right valign=\"top\"><font size=\"-1\">" . $text['pci'] . "</font></td>\n <td class=\"cellText small\">";
if ($pci_devices) {
$_text .= "<table border=0 cellspacing=0 cellpadding=2>" . $pci_devices . "</table>";
} else {
$_text .= "<font size=\"-1\"><i>" . $text['none'] . "</i></font>";
}
$_text .= "</td>\n </tr>\n";
$_text .= " <tr>\n <td class=\"cellLabel small\" align=right valign=\"top\"><font size=\"-1\">" . $text['ide'] . "</font></td>\n <td class=\"cellText small\">";
if ($ide_devices) {
$_text .= "<table>" . $ide_devices . "</table>";
} else {
$_text .= "<font size=\"-1\"><i>" . $text['none'] . "</i></font>";
}
$_text .= "</td>\n </tr>\n";
if ($scsi_devices) {
$_text .= " <tr>\n <td class=\"cellLabel small\" align=right valign=\"top\"><font size=\"-1\">" . $text['scsi'] . "</font></td>\n <td class=\"cellText small\"><table>" . $scsi_devices . "</table></td>\n </tr>";
}
if ($usb_devices) {
$_text .= " <tr>\n <td class=\"cellLabel small\" align=right valign=\"top\"><font size=\"-1\">" . $text['usb'] . "</font></td>\n <td class=\"cellText small\"><table>" . $usb_devices . "</table></td>\n </tr>";
}
$_text .= "</table>";
return $_text;
}
?>
@@ -0,0 +1,88 @@
<?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: hddtemp.php,v 1.8 2005/12/31 17:25:26 bigmichi1 Exp $
function xml_hddtemp($hddtemp) {
global $hddtemp_avail;
$data = $hddtemp->temperature($hddtemp_avail);
$_text = " <HDDTemp>\n";
if (sizeof($data) > 0) {
for ($i=0, $max = sizeof($data); $i < $max; $i++) {
$_text .= " <Item>\n";
$_text .= " <Label>" . htmlspecialchars($data[$i]['label'], ENT_QUOTES) . "</Label>\n";
$_text .= " <Value>" . htmlspecialchars($data[$i]['value'], ENT_QUOTES) . "</Value>\n";
$_text .= " <Model>" . htmlspecialchars($data[$i]['model'], ENT_QUOTES) . "</Model>\n";
$_text .= " </Item>\n";
}
}
$_text .= " </HDDTemp>\n";
return $_text;
}
function html_hddtemp() {
global $XPath;
global $text;
global $sensor_program;
$textdir = direction();
$scale_factor = 2;
$_text = "";
$maxvalue = "+60";
if ($XPath->match("/phpsysinfo/HDDTemp")) {
for ($i=1, $max = sizeof($XPath->getDataParts('/phpsysinfo/HDDTemp')); $i < $max; $i++) {
if( $XPath->getData("/phpsysinfo/HDDTemp/Item[$i]/Value") != 0) {
$_text .= " <tr>\n";
$_text .= " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">". $XPath->getData("/phpsysinfo/HDDTemp/Item[$i]/Model") . "</font></td>\n";
$_text .= " <td align=\"" . $textdir['left'] . "\" valign=\"top\" nowrap><font size=\"-1\">";
$_text .= create_bargraph($XPath->getData("/phpsysinfo/HDDTemp/Item[$i]/Value"), $maxvalue, $scale_factor);
$_text .= "&nbsp;" . round($XPath->getData("/phpsysinfo/HDDTemp/Item[$i]/Value")) . " " . $text['degree_mark'] . "</font></td>\n";
$_text .= " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">". $maxvalue . " " . $text['degree_mark'] . "</font></td></tr>\n";
}
}
};
if (strlen($_text) > 0 && empty($sensor_program)) {
$_text = " <tr>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['s_label'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['s_value'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['s_limit'] . "</b></font></td>\n"
. " </tr>" . $_text;
}
return $_text;
};
function wml_hddtemp() {
global $XPath;
global $text;
if ($XPath->match("/phpsysinfo/HDDTemp")) {
for ($i = 1; $i < sizeof($XPath->getDataParts('/phpsysinfo/HDDTemp')); $i++) {
if( $XPath->getData("/phpsysinfo/HDDTemp/Item[$i]/Value") != 0) {
$_text .= "<p>\n";
$_text .= $XPath->getData("/phpsysinfo/HDDTemp/Item[$i]/Model") . ": " . round($XPath->getData("/phpsysinfo/HDDTemp/Item[$i]/Value")) . " " . str_replace("&ordm;", "", $text['degree_mark']) . "</p>\n";
}
}
};
return $_text;
}
?>
@@ -0,0 +1,246 @@
<?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: mbinfo.php,v 1.14 2005/12/31 17:25:26 bigmichi1 Exp $
function xml_mbtemp() {
global $text;
global $mbinfo;
$_text = "";
$data = $mbinfo->temperature();
$_text = " <MBinfo>\n";
if (sizeof($data) > 0) {
$_text .= " <Temperature>\n";
for ($i=0, $max = sizeof($data); $i < $max; $i++) {
$_text .= " <Item>\n";
$_text .= " <Label>" . htmlspecialchars($data[$i]['label'], ENT_QUOTES) . "</Label>\n";
$_text .= " <Value>" . htmlspecialchars($data[$i]['value'], ENT_QUOTES) . "</Value>\n";
$_text .= " <Limit>" . htmlspecialchars($data[$i]['limit'], ENT_QUOTES) . "</Limit>\n";
$_text .= " </Item>\n";
}
$_text .= " </Temperature>\n";
}
return $_text;
};
function xml_mbfans() {
global $text;
global $mbinfo;
$_text = "";
$data = $mbinfo->fans();
if (sizeof($data) > 0) {
$_text = " <Fans>\n";
for ($i=0, $max = sizeof($data); $i < $max; $i++) {
$_text .= " <Item>\n";
$_text .= " <Label>" . htmlspecialchars($data[$i]['label'], ENT_QUOTES) . "</Label>\n";
$_text .= " <Value>" . htmlspecialchars($data[$i]['value'], ENT_QUOTES) . "</Value>\n";
$_text .= " <Min>" . htmlspecialchars($data[$i]['min'], ENT_QUOTES) . "</Min>\n";
$_text .= " <Div>" . htmlspecialchars($data[$i]['div'], ENT_QUOTES) . "</Div>\n";
$_text .= " </Item>\n";
}
$_text .= " </Fans>\n";
}
return $_text;
};
function xml_mbvoltage() {
global $text;
global $mbinfo;
$_text = "";
$data = $mbinfo->voltage();
if (sizeof($data) > 0) {
$_text = " <Voltage>\n";
for ($i=0, $max = sizeof($data); $i < $max; $i++) {
$_text .= " <Item>\n";
$_text .= " <Label>" . htmlspecialchars($data[$i]['label'], ENT_QUOTES) . "</Label>\n";
$_text .= " <Value>" . htmlspecialchars($data[$i]['value'], ENT_QUOTES) . "</Value>\n";
$_text .= " <Min>" . htmlspecialchars($data[$i]['min'], ENT_QUOTES) . "</Min>\n";
$_text .= " <Max>" . htmlspecialchars($data[$i]['max'], ENT_QUOTES) . "</Max>\n";
$_text .= " </Item>\n";
}
$_text .= " </Voltage>\n";
}
$_text .= " </MBinfo>\n";
return $_text;
};
function html_mbtemp() {
global $text;
global $mbinfo;
$textdir = direction();
$data = array();
$scale_factor = 2;
$_text = " <tr>\n"
. " <td><font size=\"-1\"><b>" . $text['s_label'] . "</b></font></td>\n"
. " <td><font size=\"-1\"><b>" . $text['s_value'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['s_limit'] . "</b></font></td>\n"
. " </tr>\n";
$data = $mbinfo->temperature();
for ($i=0, $max = sizeof($data); $i < $max; $i++) {
$_text .= " <tr>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">". $data[$i]['label'] . "</font></td>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">";
if ($data[$i]['value'] == 0) {
$_text .= "Unknown - Not connected?";
} else {
$_text .= create_bargraph($data[$i]['value'], $data[$i]['limit'], $scale_factor);
}
$_text .= "&nbsp;" . round($data[$i]['value']) . "&nbsp;" . $text['degree_mark'] . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">". $data[$i]['limit'] . "&nbsp;" . $text['degree_mark'] . "</font></td>\n"
. " </tr>\n";
};
return $_text;
};
function html_mbfans() {
global $text;
global $mbinfo;
$textdir = direction();
$_text ="<table width=\"100%\">\n";
$_text .= " <tr>\n"
. " <td><font size=\"-1\"><b>" . $text['s_label'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\"><font size=\"-1\"><b>" . $text['s_value'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\"><font size=\"-1\"><b>" . $text['s_min'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\"><font size=\"-1\"><b>" . $text['s_div'] . "</b></font></td>\n"
. " </tr>\n";
$data = $mbinfo->fans();
$show_fans = false;
for ($i=0, $max = sizeof($data); $i < $max; $i++) {
$_text .= " <tr>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">". $data[$i]['label'] . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">". round($data[$i]['value']) . " " . $text['rpm_mark'] . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">". $data[$i]['min'] . " " . $text['rpm_mark'] . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . $data[$i]['div'] . "</font></td>\n"
. " </tr>\n";
if (round($data[$i]['value']) > 0) {
$show_fans = true;
}
};
$_text .= "</table>\n";
if (!$show_fans) {
$_text = "";
}
return $_text;
};
function html_mbvoltage() {
global $text;
global $mbinfo;
$textdir = direction();
$_text = "<table width=\"100%\">\n";
$_text .= " <tr>\n"
. " <td><font size=\"-1\"><b>" . $text['s_label'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\"><font size=\"-1\"><b>" . $text['s_value'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\"><font size=\"-1\"><b>" . $text['s_min'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\"><font size=\"-1\"><b>" . $text['s_max'] . "</b></font></td>\n"
. " </tr>\n";
$data = $mbinfo->voltage();
for ($i=0, $max = sizeof($data); $i < $max; $i++) {
$_text .= " <tr>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">". $data[$i]['label'] . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">". $data[$i]['value'] . " " . $text['voltage_mark'] . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">". $data[$i]['min'] . " " . $text['voltage_mark'] . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . $data[$i]['max'] . " " . $text['voltage_mark'] . "</font></td>\n"
. " </tr>\n";
};
$_text .= "</table>\n";
return $_text;
};
function wml_mbtemp() {
global $text;
global $mbinfo;
$data = array();
$data = $mbinfo->temperature();
for ($i=0; $i < $max = sizeof($data); $i++) {
$_text .= "<p>\n"
. $data[$i]['label'] . ": ";
if ($data[$i]['value'] == 0) {
$_text .= "Unknown - Not connected?</p>";
} else {
$_text .= round($data[$i]['value']) . "&nbsp;" . str_replace("&ordm;", "", $text['degree_mark']) . "</p>\n";
}
};
return $_text;
}
function wml_mbfans() {
global $text;
global $mbinfo;
$data = array();
$data = $mbinfo->fans();
$_text = "<card id=\"fans\" title=\"" . $text['fans'] . "\">\n";
for ($i = 0; $i < sizeof($data); $i++) {
$_text .= "<p>\n"
. $data[$i]['label'] . ": " . round($data[$i]['value']) . "&nbsp;" . $text['rpm_mark'] . "</p>\n";
}
$_text .= "</card>\n";
return $_text;
}
function wml_mbvoltage() {
global $text;
global $mbinfo;
$data = array();
$data = $mbinfo->voltage();
$_text = "<card id=\"volt\" title=\"" . $text['voltage'] . "\">\n";
for ($i = 0; $i < sizeof($data); $i++) {
$_text .= "<p><br/>\n"
. $data[$i]['label'] . ": " . $data[$i]['value'] . "&nbsp;" . $text['voltage_mark'] . "<br/>\n"
. "- " . $text['s_min'] . ": " . $data[$i]['min'] . " " . $text['voltage_mark'] . "<br/>\n"
. "- " . $text['s_max'] . ": " . $data[$i]['max'] . " " . $text['voltage_mark'] . "</p>\n";
};
$_text .= "</card>\n";
return $_text;
};
?>
@@ -0,0 +1,200 @@
<?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: memory.php,v 1.15 2005/12/31 17:25:26 bigmichi1 Exp $
//
// xml_memory()
//
function xml_memory () {
global $sysinfo;
$mem = $sysinfo->memory();
$_text = " <Memory>\n"
. " <Free>" . htmlspecialchars($mem['ram']['t_free'], ENT_QUOTES) . "</Free>\n"
. " <Used>" . htmlspecialchars($mem['ram']['t_used'], ENT_QUOTES) . "</Used>\n"
. " <Total>" . htmlspecialchars($mem['ram']['total'], ENT_QUOTES) . "</Total>\n"
. " <Percent>" . htmlspecialchars($mem['ram']['percent'], ENT_QUOTES) . "</Percent>\n";
if (isset($mem['ram']['app_percent']))
$_text .= " <App>" . htmlspecialchars($mem['ram']['app'], ENT_QUOTES) . "</App>\n <AppPercent>" . htmlspecialchars($mem['ram']['app_percent'], ENT_QUOTES) . "</AppPercent>\n";
if (isset($mem['ram']['buffers_percent']))
$_text .= " <Buffers>" . htmlspecialchars($mem['ram']['buffers'], ENT_QUOTES) . "</Buffers>\n <BuffersPercent>" . htmlspecialchars($mem['ram']['buffers_percent'], ENT_QUOTES) . "</BuffersPercent>\n";
if (isset($mem['ram']['cached_percent']))
$_text .= " <Cached>" . htmlspecialchars($mem['ram']['cached'], ENT_QUOTES) . "</Cached>\n <CachedPercent>" . htmlspecialchars($mem['ram']['cached_percent'], ENT_QUOTES) . "</CachedPercent>\n";
$_text .= " </Memory>\n"
. " <Swap>\n"
. " <Free>" . htmlspecialchars($mem['swap']['free'], ENT_QUOTES) . "</Free>\n"
. " <Used>" . htmlspecialchars($mem['swap']['used'], ENT_QUOTES) . "</Used>\n"
. " <Total>" . htmlspecialchars($mem['swap']['total'], ENT_QUOTES) . "</Total>\n"
. " <Percent>" . htmlspecialchars($mem['swap']['percent'], ENT_QUOTES) . "</Percent>\n"
. " </Swap>\n"
. " <Swapdevices>\n";
$i = 0;
foreach ($mem['devswap'] as $device) {
$_text .=" <Mount>\n"
. " <MountPointID>" . htmlspecialchars($i++, ENT_QUOTES) . "</MountPointID>\n"
. " <Type>Swap</Type>"
. " <Device><Name>" . htmlspecialchars($device['dev'], ENT_QUOTES) . "</Name></Device>\n"
. " <Percent>" . htmlspecialchars($device['percent'], ENT_QUOTES) . "</Percent>\n"
. " <Free>" . htmlspecialchars($device['free'], ENT_QUOTES) . "</Free>\n"
. " <Used>" . htmlspecialchars($device['used'], ENT_QUOTES) . "</Used>\n"
. " <Size>" . htmlspecialchars($device['total'], ENT_QUOTES) . "</Size>\n"
. " </Mount>\n";
}
$_text .= " </Swapdevices>\n";
return $_text;
}
//
// xml_memory()
//
function html_memory () {
global $XPath;
global $text;
$textdir = direction();
$scale_factor = 2;
$ram = create_bargraph($XPath->getData("/phpsysinfo/Memory/Used"), $XPath->getData("/phpsysinfo/Memory/Total"), $scale_factor);
$ram .= "&nbsp;&nbsp;" . $XPath->getData("/phpsysinfo/Memory/Percent") . "% ";
$swap = create_bargraph($XPath->getData("/phpsysinfo/Swap/Used"), $XPath->getData("/phpsysinfo/Swap/Total"), $scale_factor);
$swap .= "&nbsp;&nbsp;" . $XPath->getData("/phpsysinfo/Swap/Percent") . "% ";
if ($XPath->match("/phpsysinfo/Memory/AppPercent")) {
$app = create_bargraph($XPath->getData("/phpsysinfo/Memory/App"), $XPath->getData("/phpsysinfo/Memory/Total"), $scale_factor);
$app .= "&nbsp;&nbsp;" . $XPath->getData("/phpsysinfo/Memory/AppPercent") . "% ";
}
if ($XPath->match("/phpsysinfo/Memory/BuffersPercent")) {
$buffers = create_bargraph($XPath->getData("/phpsysinfo/Memory/Buffers"), $XPath->getData("/phpsysinfo/Memory/Total"), $scale_factor);
$buffers .= "&nbsp;&nbsp;" . $XPath->getData("/phpsysinfo/Memory/BuffersPercent") . "% ";
}
if ($XPath->match("/phpsysinfo/Memory/CachedPercent")) {
$cached = create_bargraph($XPath->getData("/phpsysinfo/Memory/Cached"), $XPath->getData("/phpsysinfo/Memory/Total"), $scale_factor);
$cached .= "&nbsp;&nbsp;" . $XPath->getData("/phpsysinfo/Memory/CachedPercent") . "% ";
}
$_text = "<table cellspacing=0 cellpadding=5 border=\"0\" width=\"100%\" align=\"center\">\n"
. " <tr>\n"
. " <td class=\"colHeader small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['type'] . "</b></font></td>\n"
. " <td class=\"colHeader small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['percent'] . "</b></font></td>\n"
. " <td class=\"colHeader small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['free'] . "</b></font></td>\n"
. " <td class=\"colHeader small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['used'] . "</b></font></td>\n"
. " <td class=\"colHeader small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['size'] . "</b></font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $text['phymem'] . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $ram . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/Memory/Free")) . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/Memory/Used")) . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/Memory/Total")) . "</font></td>\n"
. " </tr>\n";
if (isset($app)) {
$_text .= " <tr>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">- " . $text['app'] . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $app . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">&nbsp;</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/Memory/App")) . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">&nbsp;</font></td>\n"
. " </tr>\n";
}
if (isset($buffers)) {
$_text .= " <tr>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">- " . $text['buffers'] . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $buffers . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">&nbsp;</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/Memory/Buffers")) . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">&nbsp;</font></td>\n"
. " </tr>\n";
}
if (isset($cached)) {
$_text .= " <tr>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">- " . $text['cached'] . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $cached . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">&nbsp;</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/Memory/Cached")) . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">&nbsp;</font></td>\n"
. " </tr>\n";
}
$_text .= " <tr>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $text['swap'] . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $swap . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/Swap/Free")) . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/Swap/Used")) . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/Swap/Total")) . "</font></td>\n"
. " </tr>\n";
if (($max = sizeof($XPath->getDataParts("/phpsysinfo/Swapdevices"))) > 2) {
for($i = 1; $i < $max; $i++) {
$swapdev = create_bargraph($XPath->getData("/phpsysinfo/Swapdevices/Mount[$i]/Used"), $XPath->getData("/phpsysinfo/Swapdevices/Mount[$i]/Size"), $scale_factor);
$swapdev .= "&nbsp;&nbsp;" . $XPath->getData("/phpsysinfo/Swapdevices/Mount[$i]/Percent") . "% ";
$_text .= " <tr>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"> - " . $XPath->getData("/phpsysinfo/Swapdevices/Mount[$i]/Device/Name") . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $swapdev . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/Swapdevices/Mount[$i]/Free")) . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/Swapdevices/Mount[$i]/Used")) . "</font></td>\n"
. " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/Swapdevices/Mount[$i]/Size")) . "</font></td>\n"
. " </tr>\n";
}
}
$_text .= "</table>";
return $_text;
}
function wml_memory() {
global $XPath;
global $text;
$_text = "<card id=\"memory\" title=\"" . $text['memusage'] . "\">\n"
. "<p>" . $text['phymem'] . ":<br/>\n"
. "- " . $text['free'] . ": " . format_bytesize($XPath->getData("/phpsysinfo/Memory/Free")) . "<br/>\n"
. "- " . $text['used'] . ": " . format_bytesize($XPath->getData("/phpsysinfo/Memory/Used")) . "<br/>\n"
. "- " . $text['size'] . ": " . format_bytesize($XPath->getData("/phpsysinfo/Memory/Total")) . "</p>\n";
if ($XPath->match("/phpsysinfo/Memory/App")) {
$_text .= "<p>" . $text['app'] . ":<br/>\n"
. "- " . $text['used'] . ": " . format_bytesize($XPath->getData("/phpsysinfo/Memory/App")) . "</p>\n";
}
if ($XPath->match("/phpsysinfo/Memory/Cached")) {
$_text .= "<p>" . $text['cached'] . ":<br/>\n"
. "- " . $text['used'] . ": " . format_bytesize($XPath->getData("/phpsysinfo/Memory/Cached")) . "</p>\n";
}
if ($XPath->match("/phpsysinfo/Memory/Buffers")) {
$_text .= "<p>" . $text['buffers'] . ":<br/>\n"
. "- " . $text['used'] . ": " . format_bytesize($XPath->getData("/phpsysinfo/Memory/Buffers")) . "</p>\n";
}
$_text .= "<p><br/>" . $text['swap'] . ":<br/>\n"
. "- " . $text['free'] . ": " . format_bytesize($XPath->getData("/phpsysinfo/Swap/Free")) . "<br/>\n"
. "- " . $text['used'] . ": " . format_bytesize($XPath->getData("/phpsysinfo/Swap/Used")) . "<br/>\n"
. "- " . $text['size'] . ": " . format_bytesize($XPath->getData("/phpsysinfo/Swap/Total")) . "</p>\n";
$_text .= "</card>\n";
return $_text;
}
?>
@@ -0,0 +1,93 @@
<?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: network.php,v 1.13 2005/12/31 17:25:26 bigmichi1 Exp $
//
// xml_network()
//
function xml_network () {
global $sysinfo;
$net = $sysinfo->network();
$_text = " <Network>\n";
while (list($dev, $stats) = each($net)) {
$_text .= " <NetDevice>\n"
. " <Name>" . htmlspecialchars(trim($dev), ENT_QUOTES) . "</Name>\n"
. " <RxBytes>" . htmlspecialchars($stats['rx_bytes'], ENT_QUOTES) . "</RxBytes>\n"
. " <TxBytes>" . htmlspecialchars($stats['tx_bytes'], ENT_QUOTES) . "</TxBytes>\n"
. " <Errors>" . htmlspecialchars($stats['errs'], ENT_QUOTES) . "</Errors>\n"
. " <Drops>" . htmlspecialchars($stats['drop'], ENT_QUOTES) . "</Drops>\n"
. " </NetDevice>\n";
}
$_text .= " </Network>\n";
return $_text;
}
//
// html_network()
//
function html_network () {
global $XPath;
global $text;
$textdir = direction();
$_text = "<table border=\"0\" cellspacing=0 cellpadding=5 width=\"100%\" align=\"center\">\n"
. " <tr>\n"
. " <td width=40% class=\"colHeader small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['device'] . "</b></font></td>\n"
. " <td width=20% class=\"colHeader small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['received'] . "</b></font></td>\n"
. " <td width=20% class=\"colHeader small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['sent'] . "</b></font></td>\n"
. " <td width=20% class=\"colHeader small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['errors'] . "</b></font></td>\n"
. " </tr>\n";
for ($i=1, $max = sizeof($XPath->getDataParts("/phpsysinfo/Network")); $i < $max; $i++) {
if ($XPath->match("/phpsysinfo/Network/NetDevice[$i]/Name")) {
$_text .= " <tr>\n";
$_text .= " <td class=\"listTableRow small\" align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData("/phpsysinfo/Network/NetDevice[$i]/Name") . "</font></td>\n";
$_text .= " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/Network/NetDevice[$i]/RxBytes") / 1024) . "</font></td>\n";
$_text .= " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize($XPath->getData("/phpsysinfo/Network/NetDevice[$i]/TxBytes") / 1024) . "</font></td>\n";
$_text .= " <td class=\"listTableRow small\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData("/phpsysinfo/Network/NetDevice[$i]/Errors") . '/' . $XPath->getData("/phpsysinfo/Network/NetDevice[$i]/Drops") . "</font></td>\n";
$_text .= " </tr>\n";
}
}
$_text .= "</table>";
return $_text;
}
function wml_network() {
global $XPath;
global $text;
$_text = "<card id=\"network\" title=\"" . $text['network'] . "\">\n";
for ($i=1, $max = sizeof($XPath->getDataParts("/phpsysinfo/Network")); $i < $max; $i++) {
if ($XPath->match("/phpsysinfo/Network/NetDevice[$i]/Name")) {
$_text .= "<p>" . $text['device'] . ": " . $XPath->getData("/phpsysinfo/Network/NetDevice[$i]/Name") . "<br/>"
. "- U: " . format_bytesize($XPath->getData("/phpsysinfo/Network/NetDevice[$i]/TxBytes") / 1024) . "<br/>"
. "- D: " . format_bytesize($XPath->getData("/phpsysinfo/Network/NetDevice[$i]/RxBytes") / 1024) . "<br/>"
. "- E: " . $XPath->getData("/phpsysinfo/Network/NetDevice[$i]/Errors") . '/' . $XPath->getData("/phpsysinfo/Network/NetDevice[$i]/Drops") . "</p>\n";
}
}
$_text .= "</card>\n";
return $_text;
}
?>
@@ -0,0 +1,123 @@
<?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: vitals.php,v 1.27 2005/12/31 17:25:26 bigmichi1 Exp $
// xml_vitals()
function xml_vitals ()
{
global $sysinfo;
global $loadbar;
$load_avg = "";
$ar_buf = ($loadbar ? $sysinfo->loadavg($loadbar) : $sysinfo->loadavg());
for ($i = 0; $i < count($ar_buf['avg']); $i++) {
$load_avg .= $ar_buf['avg'][$i] . ' ';
}
$_text = " <Vitals>\n"
. " <Hostname>" . htmlspecialchars($sysinfo->chostname(), ENT_QUOTES) . "</Hostname>\n"
. " <IPAddr>" . htmlspecialchars($sysinfo->ip_addr(), ENT_QUOTES) . "</IPAddr>\n"
. " <Kernel>" . htmlspecialchars($sysinfo->kernel(), ENT_QUOTES) . "</Kernel>\n"
. " <Distro>" . htmlspecialchars($sysinfo->distro(), ENT_QUOTES) . "</Distro>\n"
. " <Distroicon>" . htmlspecialchars($sysinfo->distroicon(), ENT_QUOTES) . "</Distroicon>\n"
. " <Uptime>" . htmlspecialchars($sysinfo->uptime(), ENT_QUOTES) . "</Uptime>\n"
. " <Users>" . htmlspecialchars($sysinfo->users(), ENT_QUOTES) . "</Users>\n"
. " <LoadAvg>" . htmlspecialchars(trim($load_avg), ENT_QUOTES) . "</LoadAvg>\n";
if (isset($ar_buf['cpupercent']))
$_text .= " <CPULoad>" . htmlspecialchars(round($ar_buf['cpupercent'], 2), ENT_QUOTES) . "</CPULoad>";
$_text .= " </Vitals>\n";
return $_text;
}
// html_vitals()
function html_vitals ()
{
global $webpath;
global $XPath;
global $text;
$textdir = direction();
$scale_factor = 2;
$loadbar = "";
$uptime = "";
if($XPath->match("/phpsysinfo/Vitals/CPULoad"))
$loadbar = "<br/>" . create_bargraph($XPath->getData("/phpsysinfo/Vitals/CPULoad"), 100, $scale_factor) . "&nbsp;" . $XPath->getData("/phpsysinfo/Vitals/CPULoad") . "%";
$_text = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" "
. " <tr>\n"
. " <td width=20% align=right class=\"cellLabel small\" valign=\"top\"><font size=\"-1\">" . $text['hostname'] . "</font></td>\n"
. " <td width=80% class=\"cellText small\"><font size=\"-1\">" . $XPath->getData("/phpsysinfo/Vitals/Hostname") . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td align=right class=\"cellLabel small\" valign=\"top\"><font size=\"-1\">" . $text['ip'] . "</font></td>\n"
. " <td class=\"cellText small\"><font size=\"-1\">" . $XPath->getData("/phpsysinfo/Vitals/IPAddr") . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td align=right class=\"cellLabel small\" valign=\"top\"><font size=\"-1\">" . $text['kversion'] . "</font></td>\n"
. " <td class=\"cellText small\"><font size=\"-1\">" . $XPath->getData("/phpsysinfo/Vitals/Kernel") . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td align=right class=\"cellLabel small\" valign=\"top\"><font size=\"-1\">" . $text['dversion'] . "</font></td>\n"
. " <td class=\"cellText small\"><img width=\"16\" height=\"16\" alt=\"\" src=\"modules/System/images/" . $XPath->getData("/phpsysinfo/Vitals/Distroicon") . "\">&nbsp;<font size=\"-1\">" . $XPath->getData("/phpsysinfo/Vitals/Distro") . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td align=right class=\"cellLabel small\" valign=\"top\"><font size=\"-1\">" . $text['uptime'] . "</font></td>\n"
. " <td class=\"cellText small\"><font size=\"-1\">" . uptime($XPath->getData('/phpsysinfo/Vitals/Uptime')) . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td align=right class=\"cellLabel small\" valign=\"top\"><font size=\"-1\">" . $text['users'] . "</font></td>\n"
. " <td class=\"cellText small\"><font size=\"-1\">" . $XPath->getData("/phpsysinfo/Vitals/Users") . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td align=right class=\"cellLabel small\" valign=\"top\"><font size=\"-1\">" . $text['loadavg'] . "</font></td>\n"
. " <td class=\"cellText small\"><font size=\"-1\">" . $XPath->getData("/phpsysinfo/Vitals/LoadAvg") . $loadbar . "</font></td>\n"
. " </tr>\n"
. "</table>\n";
return $_text;
}
function wml_vitals ()
{
global $XPath;
global $text;
$_text = "<card id=\"vitals\" title=\"" . $text['vitals'] . "\">\n"
. "<p>" . $text['hostname'] . ":<br/>\n"
. "- " . $XPath->getData("/phpsysinfo/Vitals/Hostname") . "</p>\n"
. "<p>" . $text['ip'] . ":<br/>\n"
. "- " . $XPath->getData("/phpsysinfo/Vitals/IPAddr") . "</p>\n"
. "<p>" . $text['kversion'] . ":<br/>\n"
. "- " . $XPath->getData("/phpsysinfo/Vitals/Kernel") . "</p>\n"
. "<p>" . $text['uptime'] . ":<br/>\n"
. "- " . uptime($XPath->getData('/phpsysinfo/Vitals/Uptime')) . "</p>"
. "<p>" . $text['users'] . ":<br/>"
. "- " . $XPath->getData("/phpsysinfo/Vitals/Users") . "</p>"
. "<p>" . $text['loadavg'] . ":<br/>"
. "- " . $XPath->getData("/phpsysinfo/Vitals/LoadAvg") . "</p>"
. "</card>\n";
return $_text;
}
?>
@@ -0,0 +1,27 @@
<?php
/*********************************************************************************
* The contents of this file are subject to the SugarCRM Public License Version 1.1.2
* ("License"); You may not use this file except in compliance with the
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the License.
* The Original Code is: SugarCRM Open Source
* The Initial Developer of the Original Code is SugarCRM, Inc.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
* All Rights Reserved.
* Contributor(s): ______________________________________.
********************************************************************************/
/*********************************************************************************
* $Header: /advent/projects/wesat/vtiger_crm/vtigercrm/modules/System/language/en_us.lang.php,v 1.1 2005/03/14 07:43:45 richie Exp $
* Description: Defines the English language pack
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$mod_strings = Array(
'LBL_SYSTEM_CONFIG'=>'System Configuration',
);
?>
@@ -0,0 +1,27 @@
<?php
/*********************************************************************************
* The contents of this file are subject to the SugarCRM Public License Version 1.1.2
* ("License"); You may not use this file except in compliance with the
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the License.
* The Original Code is: SugarCRM Open Source
* The Initial Developer of the Original Code is SugarCRM, Inc.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
* All Rights Reserved.
* Contributor(s): ______________________________________.
********************************************************************************/
/*********************************************************************************
* $Header: /advent/projects/wesat/vtiger_crm/vtigercrm/modules/System/language/en_us.lang.php,v 1.1 2005/03/14 07:43:45 richie Exp $
* Description: Defines the English language pack
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$mod_strings = Array(
'LBL_SYSTEM_CONFIG'=>'系统环境设定',
);
?>
@@ -0,0 +1,28 @@
<?php
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
********************************************************************************/
require_once('Smarty_setup.php');
global $theme, $app_strings, $mod_strings;
$theme_path="themes/".$theme."/";
$image_path=$theme_path."images/";
$smarty = new vtigerCRM_Smarty;
$smarty->assign("MOD", return_module_language($current_language,'Settings'));
$smarty->assign("CMOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("THEME", $theme);
$smarty->assign("THEME_PATH",$theme_path);
$smarty->assign("IMAGE_PATH",$image_path);
$smarty->display("SysInformation.tpl");
?>
@@ -0,0 +1,87 @@
<!--
phpSysInfo - A PHP System Information Script
http://phpsysinfo.sourceforge.net/
$Id: phpsysinfo.dtd,v 1.12 2006/04/22 18:01:14 bigmichi1 Exp $
-->
<!ELEMENT phpsysinfo (Generation, Vitals, Network, Hardware, Memory, Swap, Swapdevices, FileSystem, MBinfo*, HDDTemp*)>
<!ELEMENT Generation EMPTY>
<!ATTLIST Generation version CDATA "2.3">
<!ATTLIST Generation timestamp CDATA "000000000">
<!ELEMENT Vitals (Hostname, IPAddr, Kernel, Distro, Distroicon, Uptime, Users, LoadAvg)>
<!ELEMENT Hostname (#PCDATA)>
<!ELEMENT IPAddr (#PCDATA)>
<!ELEMENT Kernel (#PCDATA)>
<!ELEMENT Distro (#PCDATA)>
<!ELEMENT Distroicon (#PCDATA)>
<!ELEMENT Uptime (#PCDATA)>
<!ELEMENT Users (#PCDATA)>
<!ELEMENT LoadAvg (#PCDATA)>
<!ELEMENT Network (NetDevice*)>
<!ELEMENT NetDevice (Name, RxBytes, TxBytes, Errors, Drops)>
<!ELEMENT Name (#PCDATA)>
<!ELEMENT RxBytes (#PCDATA)>
<!ELEMENT TxBytes (#PCDATA)>
<!ELEMENT Errors (#PCDATA)>
<!ELEMENT Drops (#PCDATA)>
<!ELEMENT Hardware (CPU*, PCI*, IDE*, SCSI*, USB*, SBUS*)>
<!ELEMENT CPU (Number*, Model*, Cpuspeed*, Busspeed*, Cache*, Bogomips*)>
<!ELEMENT Number (#PCDATA)>
<!ELEMENT Model (#PCDATA)>
<!ELEMENT Busspeed (#PCDATA)>
<!ELEMENT Cpuspeed (#PCDATA)>
<!ELEMENT Cache (#PCDATA)>
<!ELEMENT Bogomips (#PCDATA)>
<!ELEMENT PCI (Device*)>
<!ELEMENT Device (Name, Capacity*)>
<!ELEMENT Capacity (#PCDATA)>
<!ELEMENT IDE (Device*)>
<!ELEMENT SCSI (Device*)>
<!ELEMENT USB (Device*)>
<!ELEMENT SBUS (Device*)>
<!ELEMENT Memory (Free, Used, Total, Percent, App*, AppPercent*, Buffers*, BuffersPercent*, Cached*, CachedPercent*)>
<!ELEMENT Free (#PCDATA)>
<!ELEMENT Used (#PCDATA)>
<!ELEMENT Total (#PCDATA)>
<!ELEMENT Percent (#PCDATA)>
<!ELEMENT App (#PCDATA)>
<!ELEMENT AppPercent (#PCDATA)>
<!ELEMENT Buffers (#PCDATA)>
<!ELEMENT BuffersPercent (#PCDATA)>
<!ELEMENT Cached (#PCDATA)>
<!ELEMENT CachedPercent (#PCDATA)>
<!ELEMENT Swap (Free, Used, Total, Percent)>
<!ELEMENT Swapdevices (Mount*)>
<!ELEMENT FileSystem (Mount*)>
<!ELEMENT Mount (MountPointID, MountPoint*, Type, Device, Percent, Free, Used, Size, Options*, Inodes*)>
<!ELEMENT MountPointID (#PCDATA)>
<!ELEMENT MountPoint (#PCDATA)>
<!ELEMENT Type (#PCDATA)>
<!ELEMENT Size (#PCDATA)>
<!ELEMENT Options (#PCDATA)>
<!ELEMENT Inodes (#PCDATA)>
<!ELEMENT MBinfo (Temperature*, Fans*, Voltage*)>
<!ELEMENT Temperature (Item*)>
<!ELEMENT Item (Label, Value, Limit*, Min*, Max*, Div*, Model*)>
<!ELEMENT Label (#PCDATA)>
<!ELEMENT Value (#PCDATA)>
<!ELEMENT Limit (#PCDATA)>
<!ELEMENT Min (#PCDATA)>
<!ELEMENT Max (#PCDATA)>
<!ELEMENT Div (#PCDATA)>
<!ELEMENT Fans (Item*)>
<!ELEMENT Voltage (Item*)>
<!ELEMENT HDDTemp (Item*)>
@@ -0,0 +1,324 @@
<?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: index.php,v 1.113 2006/04/17 15:24:46 bigmichi1 Exp $
// phpsysinfo release version number
$VERSION = "2.5.2_rc2";
$startTime = array_sum( explode( " ", microtime() ) );
global $app_strings;
define('IN_PHPSYSINFO', true);
ini_set('magic_quotes_runtime', 'off');
ini_set('register_globals', 'off');
// ini_set('display_errors','on');
define('APP_ROOT', getcwd().'/modules/System');
require_once(APP_ROOT . '/includes/class.error.inc.php');
$error = new Error;
// Figure out which OS where running on, and detect support
if ( file_exists( APP_ROOT . '/includes/os/class.' . PHP_OS . '.inc.php' ) ) {
} else {
$error->addError('include(class.' . PHP_OS . '.php.inc)' , PHP_OS . ' is not currently supported', __LINE__, __FILE__ );
}
if (!extension_loaded('xml')) {
$error->addError('extension_loaded(xml)', 'phpsysinfo requires the xml module for php to work', __LINE__, __FILE__);
}
if (!extension_loaded('pcre')) {
$error->addError('extension_loaded(pcre)', 'phpsysinfo requires the pcre module for php to work', __LINE__, __FILE__);
}
if (!file_exists(APP_ROOT . '/config.php')) {
$error->addError('file_exists(config.php)', 'config.php does not exist in the phpsysinfo directory.', __LINE__, __FILE__);
} else {
require_once(APP_ROOT . '/config.php'); // get the config file
}
if ( !empty( $sensor_program ) ) {
$sensor_program = basename( $sensor_program );
if( !file_exists( APP_ROOT . '/includes/mb/class.' . $sensor_program . '.inc.php' ) ) {
$error->addError('include(class.' . htmlspecialchars($sensor_program, ENT_QUOTES) . '.inc.php)', 'specified sensor programm is not supported', __LINE__, __FILE__ );
}
}
if ( !empty( $hddtemp_avail ) && $hddtemp_avail != "tcp" && $hddtemp_avail != "suid" ) {
$error->addError('include(class.hddtemp.inc.php)', 'bad configuration in config.php for $hddtemp_avail', __LINE__, __FILE__ );
}
if( $error->ErrorsExist() ) {
echo $error->ErrorsAsHTML();
exit;
}
require_once(APP_ROOT . '/includes/common_functions.php'); // Set of common functions used through out the app
// commented for security
// Check to see if where running inside of phpGroupWare
//if (file_exists("../header.inc.php") && isset($_REQUEST['sessionid']) && $_REQUEST['sessionid'] && $_REQUEST['kp3'] && $_REQUEST['domain']) {
// define('PHPGROUPWARE', 1);
// $phpgw_info['flags'] = array('currentapp' => 'phpsysinfo-dev');
// include('../header.inc.php');
//} else {
// define('PHPGROUPWARE', 0);
//}
// DEFINE TEMPLATE_SET
if (isset($_POST['template'])) {
$template = $_POST['template'];
} elseif (isset($_GET['template'])) {
$template = $_GET['template'];
} elseif (isset($_COOKIE['template'])) {
$template = $_COOKIE['template'];
} else {
$template = $default_template;
}
// check to see if we have a random
if ($template == 'random') {
$buf = gdc( APP_ROOT . "/templates/" );
$template = $buf[array_rand($buf, 1)];
}
if ($template != 'xml' && $template != 'wml') {
// figure out if the template exists
$template = basename(APP_ROOT .'/templates/' . $template);
if (!file_exists(APP_ROOT . "/templates/" . $template)) {
// use default if not exists.
$template = $default_template;
}
// Store the current template name in a cookie, set expire date to 30 days later
// if template is xml then skip
@setcookie("template", $template, (time() + 60 * 60 * 24 * 30));
$_COOKIE['template'] = $template; //update COOKIE Var
}
// get our current language
// default to english, but this is negotiable.
if ($template == "wml") {
$lng = "en";
} elseif (isset($_POST['lng'])) {
$lng = $_POST['lng'];
} elseif (isset($_GET['lng'])) {
$lng = $_GET['lng'];
} elseif (isset($_COOKIE['lng'])) {
$lng = $_COOKIE['lng'];
} else {
$lng = $default_lng;
}
if ($lng == 'browser') {
// see if the browser knows the right languange.
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
$plng = split(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
if (count($plng) > 0) {
while (list($k, $v) = each($plng)) {
$k = split(';', $v, 1);
$k = split('-', $k[0]);
if (file_exists(APP_ROOT . '/includes/lang/' . $k[0] . '.php')) {
$lng = $k[0];
break;
}
}
}
}
}
$lng = basename($lng);
if (file_exists(APP_ROOT . '/includes/lang/' . $lng . '.php')) {
$charset = $app_strings['LBL_CHARSET'];
require_once(APP_ROOT . '/includes/lang/' . $lng . '.php'); // get our language include
// Store the current language selection in a cookie, set expire date to 30 days later
@setcookie("lng", $lng, (time() + 60 * 60 * 24 * 30));
$_COOKIE['lng'] = $lng; //update COOKIE Var
} else {
$error->addError('include(' . $lng . ')', 'we do not support this language', __LINE__, __FILE__ );
$lng = $default_lng;
}
// include the files and create the instances
define('TEMPLATE_SET', $template);
require_once( APP_ROOT . '/includes/os/class.' . PHP_OS . '.inc.php' );
$sysinfo = new sysinfo;
if( !empty( $sensor_program ) ) {
require_once(APP_ROOT . '/includes/mb/class.' . $sensor_program . '.inc.php');
$mbinfo = new mbinfo;
}
if ( !empty($hddtemp_avail ) ) {
require_once(APP_ROOT . '/includes/mb/class.hddtemp.inc.php');
}
require_once(APP_ROOT . '/includes/xml/vitals.php');
require_once(APP_ROOT . '/includes/xml/network.php');
require_once(APP_ROOT . '/includes/xml/hardware.php');
require_once(APP_ROOT . '/includes/xml/memory.php');
require_once(APP_ROOT . '/includes/xml/filesystems.php');
require_once(APP_ROOT . '/includes/xml/mbinfo.php');
require_once(APP_ROOT . '/includes/xml/hddtemp.php');
// build the xml
$xml = "<?xml version=\"1.0\" encoding=\"".$app_strings['LBL_CHARSET']."\"?>\n";
$xml .= "<!DOCTYPE phpsysinfo SYSTEM \"phpsysinfo.dtd\">\n\n";
$xml .= created_by();
$xml .= "<phpsysinfo>\n";
$xml .= " <Generation version=\"$VERSION\" timestamp=\"" . time() . "\"/>\n";
$xml .= xml_vitals();
$xml .= xml_network();
$xml .= xml_hardware($hddtemp_devices);
$xml .= xml_memory();
$xml .= xml_filesystems();
if ( !empty( $sensor_program ) ) {
$xml .= xml_mbtemp();
$xml .= xml_mbfans();
$xml .= xml_mbvoltage();
};
if ( !empty($hddtemp_avail ) ) {
$hddtemp = new hddtemp($hddtemp_devices);
$xml .= xml_hddtemp($hddtemp);
}
$xml .= "</phpsysinfo>";
replace_specialchars($xml);
// output
if (TEMPLATE_SET == 'xml') {
// just printout the XML and exit
header("Content-Type: text/xml\n\n");
print $xml;
} elseif (TEMPLATE_SET == 'wml') {
require_once(APP_ROOT . '/includes/XPath.class.php');
$XPath = new XPath();
$XPath->importFromString($xml);
header("Content-type: text/vnd.wap.wml; charset=".$app_strings['LBL_CHARSET']);
header("");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo "<?xml version='1.0' encoding='".$app_strings['LBL_CHARSET']."'?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\" >\n";
echo "<wml>\n";
echo "<card id=\"start\" title=\"phpSysInfo - Menu\">\n";
echo "<p><a href=\"#vitals\">" . $text['vitals'] . "</a></p>\n";
echo "<p><a href=\"#network\">" . $text['netusage'] . "</a></p>\n";
echo "<p><a href=\"#memory\">" . $text['memusage'] . "</a></p>\n";
echo "<p><a href=\"#filesystem\">" . $text['fs'] . "</a></p>\n";
if (!empty($sensor_program) || (isset($hddtemp_avail) && $hddtemp_avail)) {
echo "<p><a href=\"#temp\">" . $text['temperature'] . "</a></p>\n";
}
if (!empty($sensor_program)) {
echo "<p><a href=\"#fans\">" . $text['fans'] . "</a></p>\n";
echo "<p><a href=\"#volt\">" . $text['voltage'] . "</a></p>\n";
}
echo "</card>\n";
echo wml_vitals();
echo wml_network();
echo wml_memory();
echo wml_filesystem();
$temp = "";
if (!empty($sensor_program)) {
echo wml_mbfans();
echo wml_mbvoltage();
$temp .= wml_mbtemp();
}
if (isset($hddtemp_avail) && $hddtemp_avail)
if ($XPath->match("/phpsysinfo/HDDTemp/Item"))
$temp .= wml_hddtemp();
if(strlen($temp) > 0)
echo "<card id=\"temp\" title=\"" . $text['temperature'] . "\">" . $temp . "</card>";
echo "</wml>\n";
} else {
$image_height = get_gif_image_height(APP_ROOT . '/templates/' . TEMPLATE_SET . '/images/bar_middle.gif');
define('BAR_HEIGHT', $image_height);
// if (PHPGROUPWARE != 1) {
require_once(APP_ROOT . '/includes/class.Template.inc.php'); // template library
// }
// fire up the template engine
$tpl = new Template(APP_ROOT . '/templates/' . TEMPLATE_SET);
$tpl->set_file(array('form' => 'form.tpl'));
// print out a box of information
function makebox ($title, $content)
{
if (empty($content)) {
return "";
} else {
global $webpath;
$textdir = direction();
$t = new Template(APP_ROOT . '/templates/' . TEMPLATE_SET);
$t->set_file(array('box' => 'box.tpl'));
$t->set_var('title', $title);
$t->set_var('content', $content);
$t->set_var('webpath', $webpath);
$t->set_var('text_dir', $textdir['direction']);
return $t->parse('out', 'box');
}
}
// Fire off the XPath class
require_once(APP_ROOT . '/includes/XPath.class.php');
$XPath = new XPath();
$XPath->importFromString($xml);
// let the page begin.
require_once(APP_ROOT . '/includes/system_header.php');
if ( $error->ErrorsExist() && isset($showerrors) && $showerrors ) {
$tpl->set_var('errors', makebox("ERRORS", $error->ErrorsAsHTML() ));
}
$tpl->set_var('title', $text['title'] . ': ' . $XPath->getData('/phpsysinfo/Vitals/Hostname') . ' (' . $XPath->getData('/phpsysinfo/Vitals/IPAddr') . ')');
$tpl->set_var('vitals', makebox($text['vitals'], html_vitals()));
$tpl->set_var('network', makebox($text['netusage'], html_network()));
$tpl->set_var('hardware', makebox($text['hardware'], html_hardware()));
$tpl->set_var('memory', makebox($text['memusage'], html_memory()));
$tpl->set_var('filesystems', makebox($text['fs'], html_filesystems()));
// Timo van Roermund: change the condition for showing the temperature, voltage and fans section
$html_temp = "";
if (!empty($sensor_program)) {
if ($XPath->match("/phpsysinfo/MBinfo/Temperature/Item")) {
$html_temp = html_mbtemp();
}
if ($XPath->match("/phpsysinfo/MBinfo/Fans/Item")) {
$tpl->set_var('mbfans', makebox($text['fans'], html_mbfans()));
} else {
$tpl->set_var('mbfans', '');
};
if ($XPath->match("/phpsysinfo/MBinfo/Voltage/Item")) {
$tpl->set_var('mbvoltage', makebox($text['voltage'], html_mbvoltage()));
} else {
$tpl->set_var('mbvoltage', '');
};
}
if (isset($hddtemp_avail) && $hddtemp_avail) {
if ($XPath->match("/phpsysinfo/HDDTemp/Item")) {
$html_temp .= html_hddtemp();
};
}
if (strlen($html_temp) > 0) {
$tpl->set_var('mbtemp', makebox($text['temperature'], "\n<table width=\"100%\">\n" . $html_temp . "</table>\n"));
}
// parse our the template
$tpl->pfp('out', 'form');
// finally our print our footer
// if (PHPGROUPWARE == 1) {
// $phpgw->common->phpgw_footer();
// } else {
require_once(APP_ROOT . '/includes/system_footer.php');
// }
}
?>
@@ -0,0 +1,32 @@
<!--
// 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: index.php,v 1.113 2006/04/17 15:24:46 bigmichi1 Exp $
// phpsysinfo release version number
-->
<table width="100%" cellspacing="0" cellpadding="10" border="0">
<tr>
<td>
<table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
<tr><td class="big">{title}</td></tr></table>
<table border=0 cellspacing=0 cellpadding=0 width=100% >
<tr ><td dir="{text_dir}">{content}</td></tr></table>
<br>
</td>
</tr>
</table>
@@ -0,0 +1,79 @@
/* A {
text-decoration: none;
}
A:link {
color: #486591;
background-color: transparent;
}
A:visited {
color: #6f6c81;
background-color: transparent;
}
A:active {
color: blue;
background-color: transparent;
}
body {
color: #000000;
background-color: #fefefe;
text-decoration: none;
font-family: arial,Verdana,Helvetica,sans-serif;
font-size: 11px;
font-weight: normal;
} */
font {
color: #000000;
text-decoration: none;
font-family: arial, Verdana,Helvetica,sans-serif;
font-size: 11px;
font-weight: normal;
}
/*
H1 {
color: #000000;
background-color: transparent;
text-decoration: none;
font-family: Verdana,Helvetica,sans-serif;
font-size: 20px;
}
select {
color: black;
text-decoration: none;
font-family: Verdana,Helvetica,sans-serif;
font-size: 10px;
font-weight: normal;
}
input {
color: black;
text-decoration: none;
font-family: Verdana,Helvetica,sans-serif;
font-size: 10px;
font-weight: bold;
}
table
{
border: none;
margin: 0px;
padding: 0px;
}
table.box {
color: #fefefe;
background-color: #486591;
border: none;
padding: 1px;
width: 100%;
}
tr.boxheader {
background-color: #486591;
}
td.boxheader {
text-align: center;
}
tr.boxbody {
color: #fefefe;
background-color: #e6e6e6;
}
*/

Some files were not shown because too many files have changed in this diff Show More