* Mon May 12 2025 Brian Read <brianr@koozali.org> 11.0.0-1.sme

- Adding SM2 panel [SME: 13004]
- Upgrade to phpsysinfo 3.4.4
- Add code to delete inline styles and add css to make it look better.
- version saved / built uses the static version, which means no drops downs and choices.
This commit is contained in:
2025-05-14 16:14:01 +01:00
parent 80b1da5fa5
commit c8ce77259d
952 changed files with 51341 additions and 28699 deletions

View File

@@ -1,19 +1,6 @@
<?php
/**
* PS Plugin
*
* PHP version 5
*
* @category PHP
* @package PSI_Plugin_PS
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
* @copyright 2009 phpSysInfo
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @version SVN: $Id: class.ps.inc.php 692 2012-09-08 17:12:08Z namiltd $
* @link http://phpsysinfo.sourceforge.net
*/
/**
* process Plugin, which displays all running processes
* PS Plugin, which displays all running processes
* a simple tree view which is filled with the running processes which are determined by
* calling the "ps" command line utility, another way is to provide
* a file with the output of the ps utility, so there is no need to run a execute by the
@@ -24,7 +11,7 @@
* @package PSI_Plugin_PS
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
* @copyright 2009 phpSysInfo
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
* @version Release: 3.0
* @link http://phpsysinfo.sourceforge.net
*/
@@ -43,30 +30,43 @@ class PS extends PSI_Plugin
/**
* read the data into an internal array and also call the parent constructor
*
* @param String $enc encoding
* @param string $enc encoding
*/
public function __construct($enc)
{
parent::__construct(__CLASS__, $enc);
$buffer = "";
switch (strtolower(PSI_PLUGIN_PS_ACCESS)) {
case 'command':
if (PSI_OS == 'WINNT') {
if (((PSI_OS == 'WINNT') && !defined('PSI_EMU_HOSTNAME')) || (defined('PSI_EMU_HOSTNAME') && !defined('PSI_EMU_PORT'))) {
try {
$objLocator = new COM("WbemScripting.SWbemLocator");
$wmi = $objLocator->ConnectServer();
$os_wmi = $wmi->InstancesOf('Win32_OperatingSystem');
$os_wmi = WINNT::_get_Win32_OperatingSystem();
$memtotal = 0;
foreach ($os_wmi as $os) {
$memtotal = $os->TotalVisibleMemorySize * 1024;
$memtotal = $os['TotalVisibleMemorySize'] * 1024;
break;
}
$process_wmi = $wmi->InstancesOf('Win32_Process');
$wmi = WINNT::getcimv2wmi();
$perf_wmi = WINNT::getWMI($wmi, 'Win32_PerfFormattedData_PerfProc_Process', array('IDProcess', 'CreatingProcessID', 'PercentProcessorTime'));
$proccpu = array();
foreach ($perf_wmi as $perf) {
$proccpu[trim($perf['IDProcess'])] = array('ParentProcessId'=>trim($perf['CreatingProcessID']), 'PercentProcessorTime'=>trim($perf['PercentProcessorTime']));
}
$process_wmi = WINNT::getWMI($wmi, 'Win32_Process', array('Caption', 'CommandLine', 'ProcessId', 'ParentProcessId', 'WorkingSetSize'));
foreach ($process_wmi as $process) {
if (strlen(trim($process->CommandLine)) > 0) {
$ps = trim($process->CommandLine);
if (isset($process['CommandLine']) && strlen(trim($process['CommandLine'])) > 0) {
$ps = trim($process['CommandLine']);
} else {
$ps = trim($process->Caption);
$ps = trim($process['Caption']);
}
if (trim($process->ProcessId) != 0) {
$memusage = round(trim($process->WorkingSetSize) * 100 / $memtotal, 1);
if (($procid = trim($process['ProcessId'])) != 0) {
$memusage = round(trim($process['WorkingSetSize']) * 100 / $memtotal, 1);
$parentid = trim($process['ParentProcessId']);
$cpu = 0;
if (isset($proccpu[$procid]) && ($proccpu[$procid]['ParentProcessId'] == $parentid)) {
$cpu = $proccpu[$procid]['PercentProcessorTime'];
}
//ParentProcessId
//Unique identifier of the process that creates a process. Process identifier numbers are reused, so they
//only identify a process for the lifetime of that process. It is possible that the process identified by
@@ -75,29 +75,29 @@ class PS extends PSI_Plugin
//use the CreationDate property to determine whether the specified parent was created after the process
//represented by this Win32_Process instance was created.
//=> subtrees of processes may be missing (WHAT TODO?!?)
$this->_filecontent[] = trim($process->ProcessId)." ".trim($process->ParentProcessId)." ".$memusage." ".$ps;
$this->_filecontent[] = $procid." ".$parentid." ".$memusage." ".$cpu." ".$ps;
}
}
} catch (Exception $e) {
}
} else {
CommonFunctions::executeProgram("ps", "axo pid,ppid,pmem,args", $buffer, PSI_DEBUG);
if (((PSI_OS == 'Linux') || (PSI_OS == 'Android')) && (!preg_match("/^[^\n]+\n.+/", $buffer))) { //alternative method if no data
} elseif ((PSI_OS != 'WINNT') && (!defined('PSI_EMU_HOSTNAME') || defined('PSI_EMU_PORT'))) {
CommonFunctions::executeProgram("ps", "axo pid,ppid,pmem,pcpu,args", $buffer, PSI_DEBUG);
if (((PSI_OS == 'Linux') || (PSI_OS == 'Android')) && (!preg_match("/^[^\n]+\n\s*\d+\s+\d+\s+[\d\.]+\s+[\d\.]+\s+.+/", $buffer))) { //alternative method if no data
if (CommonFunctions::rfts('/proc/meminfo', $mbuf)) {
$bufe = preg_split("/\n/", $mbuf, -1, PREG_SPLIT_NO_EMPTY);
$totalmem = 0;
foreach ($bufe as $buf) {
if (preg_match('/^MemTotal:\s+(.*)\s*kB/i', $buf, $ar_buf)) {
if (preg_match('/^MemTotal:\s+(\d+)\s*kB/i', $buf, $ar_buf)) {
$totalmem = $ar_buf[1];
break;
}
}
$buffer = " PID PPID %MEM COMMAND\n";
$buffer = " PID PPID %MEM %CPU COMMAND\n";
$processlist = glob('/proc/*/status', GLOB_NOSORT);
if (($total = count($processlist)) > 0) {
$processlist = CommonFunctions::findglob('/proc/*/status', GLOB_NOSORT);
if (is_array($processlist) && (($total = count($processlist)) > 0)) {
natsort($processlist); //first sort
$prosess = array();
$process = array();
foreach ($processlist as $processitem) { //second sort
$process[] = $processitem;
}
@@ -129,7 +129,7 @@ class PS extends PSI_Plugin
$args = "[".$args."]";
}
}
$buffer .= $pid." ".$ppid." ".$pmem." ".$args."\n";
$buffer .= $pid." ".$ppid." ".$pmem." 0.0 ".$args."\n";
}
}
@@ -140,19 +140,16 @@ class PS extends PSI_Plugin
}
break;
case 'data':
CommonFunctions::rfts(APP_ROOT."/data/ps.txt", $buffer);
if (!defined('PSI_EMU_HOSTNAME')) {
CommonFunctions::rftsdata("ps.tmp", $buffer);
}
break;
default:
$this->global_error->addConfigError("__construct()", "PSI_PLUGIN_PS_ACCESS");
break;
$this->global_error->addConfigError("__construct()", "[ps] ACCESS");
}
if (PSI_OS != 'WINNT') {
if (trim($buffer) != "") {
$this->_filecontent = preg_split("/\n/", $buffer, -1, PREG_SPLIT_NO_EMPTY);
unset($this->_filecontent[0]);
} else {
$this->_filecontent = array();
}
if (trim($buffer) != "") {
$this->_filecontent = preg_split("/\n/", $buffer, -1, PREG_SPLIT_NO_EMPTY);
unset($this->_filecontent[0]);
}
}
/**
@@ -167,9 +164,10 @@ class PS extends PSI_Plugin
if (empty($this->_filecontent)) {
return;
}
$items = array();
foreach ($this->_filecontent as $roworig) {
$row = preg_split("/[\s]+/", trim($roworig), 4);
if (count($row) != 4) {
$row = preg_split("/[\s]+/", trim($roworig), 5);
if (count($row) != 5) {
break;
}
foreach ($row as $key=>$val) {
@@ -187,7 +185,8 @@ class PS extends PSI_Plugin
$items[$zombie]["0"] = $zombie;
$items[$zombie]["1"] = "0";
$items[$zombie]["2"] = "0";
$items[$zombie]["3"] = "unknown";
$items[$zombie]["3"] = "0";
$items[$zombie]["4"] = "unknown";
$items[0]['childs'][$zombie] = &$items[$zombie];
}
break; //first is sufficient
@@ -197,7 +196,7 @@ class PS extends PSI_Plugin
if (isset($items[0])) {
$this->_result = $items[0];
} else {
$_result = array();
$this->_result = array();
}
}
/**
@@ -217,9 +216,9 @@ class PS extends PSI_Plugin
/**
* recursive function to allow appending child processes to a parent process
*
* @param Array $child part of the array which should be appended to the XML
* @param array $child part of the array which should be appended to the XML
* @param SimpleXMLExtended $xml XML-Object to which the array content is appended
* @param Array &$positions array with parent positions in xml structure
* @param array &$positions array with parent positions in xml structure
*
* @return SimpleXMLExtended Object with the appended array content
*/
@@ -233,15 +232,17 @@ class PS extends PSI_Plugin
$parentid = array_search($value[1], $positions);
$xmlnode->addAttribute('ParentID', $parentid);
$xmlnode->addAttribute('PPID', $value[1]);
$xmlnode->addAttribute('MemoryUsage', $value[2]);
$xmlnode->addAttribute('Name', str_replace("...","",$value[3]));
if (PSI_OS !== 'WINNT') {
if ($parentid === 1){
$xmlnode->addAttribute('Expanded', 0);
}
if (defined('PSI_PLUGIN_PS_SHOW_KTHREADD_EXPANDED') && (PSI_PLUGIN_PS_SHOW_KTHREADD_EXPANDED === false) && ($value[3] === "[kthreadd]")) {
$xmlnode->addAttribute('Expanded', 0);
}
if (!defined('PSI_PLUGIN_PS_MEMORY_USAGE') || (PSI_PLUGIN_PS_MEMORY_USAGE !== false)) {
$xmlnode->addAttribute('MemoryUsage', str_replace(',', '.', $value[2]));
}
if (!defined('PSI_PLUGIN_PS_CPU_USAGE') || (PSI_PLUGIN_PS_CPU_USAGE !== false)) {
$xmlnode->addAttribute('CPUUsage', str_replace(',', '.', $value[3]));
}
$xmlnode->addAttribute('Name', $value[4]);
if ((PSI_OS != 'WINNT') && !defined('PSI_EMU_HOSTNAME') &&
((($parentid === 1) && (!defined('PSI_PLUGIN_PS_SHOW_PID1CHILD_EXPANDED') || (PSI_PLUGIN_PS_SHOW_PID1CHILD_EXPANDED === false)))
|| ((!defined('PSI_PLUGIN_PS_SHOW_KTHREADD_EXPANDED') || (PSI_PLUGIN_PS_SHOW_KTHREADD_EXPANDED === false)) && ($value[4] === "[kthreadd]")))) {
$xmlnode->addAttribute('Expanded', 0);
}
}
if (isset($value['childs'])) {

View File

@@ -32,43 +32,69 @@ var ps_show = false;
* @param {jQuery} xml plugin-XML
*/
function ps_buildTable(xml) {
var html = "", tree = [], closed = [2];
var html = "", tree = [], closed = [], memwas = false, cpuwas = false, hostname = "";
$("#Plugin_PS #Plugin_PSTable").remove();
html += " <table id=\"Plugin_PSTable\" class=\"tablemain\" style=\"width:100%;\">\n";
html += " <thead>\n";
html += " <tr>\n";
html += " <th>" + genlang(3, false, "PS") + "</th>\n";
html += " <th style=\"width:80px;\">" + genlang(4, false, "PS") + "</th>\n";
html += " <th style=\"width:80px;\">" + genlang(5, false, "PS") + "</th>\n";
html += " <th style=\"width:110px;\">" + genlang(6, false, "PS") + "</th>\n";
html += " </tr>\n";
html += " </thead>\n";
html += " <tbody class=\"tree\">\n";
hostname = $("Plugins Plugin_PS", xml).attr('Hostname');
if (hostname !== undefined) {
$('span[class=Hostname_PS]').html(hostname);
}
html += " <div style=\"overflow-x:auto;\">\n";
html += " <table id=\"Plugin_PSTable\" class=\"tablemain\">\n";
html += " <thead>\n";
html += " <tr>\n";
html += " <th>" + genlang(2, "PS") + "</th>\n";
html += " <th style=\"width:6.6%;\">" + genlang(3, "PS") + "</th>\n";
html += " <th style=\"width:6.6%;\">" + genlang(4, "PS") + "</th>\n";
html += " <th style=\"width:15.25%;\">" + genlang(5, "PS") + "</th>\n";
html += " <th style=\"width:15.25%;\">" + genlang(6, "PS") + "</th>\n";
html += " </tr>\n";
html += " </thead>\n";
html += " <tbody class=\"tree\">\n";
$("Plugins Plugin_PS Process", xml).each(function ps_getprocess(id) {
var close = 0, pid = 0, ppid = 0, name = "", percent = 0, parentId = 0, expanded = 0;
name = $(this).attr("Name");
var close = 0, pid = 0, ppid = 0, name = "", percent = 0, parentId = 0, expanded = 0, cpu = 0;
name = $(this).attr("Name").replace(/AAAAAAAA/g, "A<wbr>A<wbr>A<wbr>A<wbr>A<wbr>A<wbr>A<wbr>A<wbr>").replace(/,/g, ",<wbr>").replace(/\s/g, " <wbr>").replace(/\./g, ".<wbr>").replace(/-/g, "<wbr>-").replace(/\//g, "<wbr>/"); /* split long name */
parentId = parseInt($(this).attr("ParentID"), 10);
pid = parseInt($(this).attr("PID"), 10);
ppid = parseInt($(this).attr("PPID"), 10);
percent = parseInt($(this).attr("MemoryUsage"), 10);
cpu = parseInt($(this).attr("CPUUsage"), 10);
expanded = parseInt($(this).attr("Expanded"), 10);
html += " <tr><td>" + name + "</td><td>" + pid + "</td><td>" + ppid + "</td><td>" + createBar(percent) + "</td></tr>\n";
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + name + "</div></span></td><td>" + pid + "</td><td>" + ppid + "</td><td>" + createBar(percent) + "</td><td>" + createBar(cpu) + "</td></tr>\n";
close = tree.push(parentId);
if (!isNaN(expanded) && (expanded === 0)) {
closed.push(close);
}
if (!memwas && !isNaN(percent)) {
memwas = true;
}
if (!cpuwas && !isNaN(cpu)) {
cpuwas = true;
}
ps_show = true;
});
html += " </tbody>\n";
html += " </table>\n";
html += " </tbody>\n";
html += " </table>\n";
html += " </div>\n";
$("#Plugin_PS").append(html);
if (memwas) {
$('#Plugin_PSTable td:nth-child(4),#Plugin_PSTable th:nth-child(4)').show();
} else {
$('#Plugin_PSTable td:nth-child(4),#Plugin_PSTable th:nth-child(4)').hide();
}
if (cpuwas) {
$('#Plugin_PSTable td:nth-child(5),#Plugin_PSTable th:nth-child(5)').show();
} else {
$('#Plugin_PSTable td:nth-child(5),#Plugin_PSTable th:nth-child(5)').hide();
}
$("#Plugin_PSTable").jqTreeTable(tree, {
openImg: "./gfx/treeTable/tv-collapsable.gif",
shutImg: "./gfx/treeTable/tv-expandable.gif",
@@ -90,6 +116,7 @@ function ps_buildTable(xml) {
* load the xml via ajax
*/
function ps_request() {
$("#Reload_PSTable").attr("title", "reload");
$.ajax({
url: "xml.php?plugin=PS",
dataType: "xml",
@@ -109,12 +136,12 @@ function ps_request() {
$(document).ready(function ps_buildpage() {
$("#footer").before(buildBlock("PS", 1, true));
$("#Plugin_PS").css("width", "915px");
$("#Plugin_PS").addClass("fullsize");
ps_request();
$("#Reload_PSTable").click(function ps_reload(id) {
ps_request();
$("#Reload_PSTable").attr("title",datetime());
$(this).attr("title", datetime());
});
});

View File

@@ -3,30 +3,77 @@ function renderPlugin_ps(data) {
var directives = {
MemoryUsage: {
html: function () {
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width: ' + this["MemoryUsage"] + '%;"></div>' +
'</div><div class="percent">' + this["MemoryUsage"] + '%</div>';
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + this.MemoryUsage + '%;"></div>' +
'</div><div class="percent">' + this.MemoryUsage + '%</div>';
}
},
CPUUsage: {
html: function () {
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + this.CPUUsage + '%;"></div>' +
'</div><div class="percent">' + this.CPUUsage + '%</div>';
}
},
Name: {
html: function () {
return this["Name"];
return this.Name.replace(/AAAAAAAA/g, "A<wbr>A<wbr>A<wbr>A<wbr>A<wbr>A<wbr>A<wbr>A<wbr>").replace(/,/g, ",<wbr>").replace(/\s/g, " <wbr>").replace(/\./g, ".<wbr>").replace(/-/g, "<wbr>-").replace(/\//g, "<wbr>/"); /* split long name */
}
}
};
if (data['Plugins']['Plugin_PS'] !== undefined) {
var psitems = items(data['Plugins']['Plugin_PS']['Process']);
if (data.Plugins.Plugin_PS !== undefined) {
var psitems = items(data.Plugins.Plugin_PS.Process);
if (psitems.length > 0) {
var ps_memory = [];
var ps_item = [];
for (i = 0; i < psitems.length ; i++) {
var html = "", ps_item = [], expanded = 0, memwas = false, cpuwas = false;
for (var i = 0; i < psitems.length ; i++) {
ps_item = psitems[i]["@attributes"];
ps_item["number"] = i + 1;
ps_memory.push(ps_item);
if (ps_item.ParentID === "0") {
html+="<tr id=\"ps-" + (i+1) + "\" class=\"treegrid-ps-" + (i+1) + "\" style=\"display:none;\" >";
} else {
html+="<tr id=\"ps-" + (i+1) + "\" class=\"treegrid-ps-" + (i+1) + " treegrid-parent-ps-" + ps_item.ParentID + "\" style=\"display:none;\" >";
}
html+="<td><span class=\"treegrid-span\" data-bind=\"Name\"></span></td>";
html+="<td><span data-bind=\"PID\"></span></td>";
html+="<td><span data-bind=\"PPID\"></span></td>";
html+="<td style=\"width:10%;\"><span data-bind=\"MemoryUsage\"></span></td>";
html+="<td style=\"width:10%;\"><span data-bind=\"CPUUsage\"></span></td>";
html+="</tr>";
}
$("#ps-data").empty().append(html);
$('#ps').treegrid({
initialState: 'expanded',
expanderExpandedClass: 'normalicon normalicon-down',
expanderCollapsedClass: 'normalicon normalicon-right'
});
for (var j = 0; j < psitems.length ; j++) {
ps_item = psitems[j]["@attributes"];
$('#ps-'+(j+1)).render(ps_item, directives);
if (!memwas && (ps_item.MemoryUsage !== undefined)) {
memwas = true;
}
if (!cpuwas && (ps_item.CPUUsage !== undefined)) {
cpuwas = true;
}
expanded = ps_item.Expanded;
if ((expanded !== undefined) && (expanded === "0")) {
$('#ps-'+(j+1)).treegrid('collapse');
}
}
if (memwas) {
$('#ps td:nth-child(4),#ps th:nth-child(4)').show();
} else {
$('#ps td:nth-child(4),#ps th:nth-child(4)').hide();
}
if (cpuwas) {
$('#ps td:nth-child(5),#ps th:nth-child(5)').show();
} else {
$('#ps td:nth-child(5),#ps th:nth-child(5)').hide();
}
$('#ps-data').render(ps_memory, directives);
$('#ps_number').removeClass("sorttable_sorted"); // reset sort order
sorttable.innerSortFunction.apply($('#ps_number')[0], []);
$('#block_ps').show();
} else {

View File

@@ -9,19 +9,19 @@
<expression id="plugin_ps_001" name="ps_title">
<exp>Procesy</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Aktualizováno</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<expression id="plugin_ps_002" name="ps_command">
<exp>Příkaz</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<expression id="plugin_ps_003" name="ps_pid">
<exp>PID</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<expression id="plugin_ps_004" name="ps_ppid">
<exp>Rodičovský PID</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<expression id="plugin_ps_005" name="ps_mem">
<exp>Spotřeba paměti</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>CPU Usage</exp>
</expression>
</tns:translationPlugin>

View File

@@ -9,19 +9,19 @@
<expression id="plugin_ps_001" name="ps_title">
<exp>Prozess Status</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Letzte Aktualisierung</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<expression id="plugin_ps_002" name="ps_command">
<exp>Befehl</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<expression id="plugin_ps_003" name="ps_pid">
<exp>Prozess ID</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<expression id="plugin_ps_004" name="ps_ppid">
<exp>Eltern ID</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<expression id="plugin_ps_005" name="ps_mem">
<exp>Speichernutzung</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>CPU Usage</exp>
</expression>
</tns:translationPlugin>

View File

@@ -9,19 +9,19 @@
<expression id="plugin_ps_001" name="ps_title">
<exp>Process Status</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Last refresh</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<expression id="plugin_ps_002" name="ps_command">
<exp>Command</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<expression id="plugin_ps_003" name="ps_pid">
<exp>Process ID</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<expression id="plugin_ps_004" name="ps_ppid">
<exp>Parent ID</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<expression id="plugin_ps_005" name="ps_mem">
<exp>Memory Usage</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>CPU Usage</exp>
</expression>
</tns:translationPlugin>

View File

@@ -9,19 +9,19 @@
<expression id="plugin_ps_001" name="ps_title">
<exp>Etat des processus</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Dernière actualisation</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<expression id="plugin_ps_002" name="ps_command">
<exp>Commande</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<expression id="plugin_ps_003" name="ps_pid">
<exp>ID processus</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<expression id="plugin_ps_004" name="ps_ppid">
<exp>ID processus père</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<expression id="plugin_ps_005" name="ps_mem">
<exp>Utilisation mémoire</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>CPU Usage</exp>
</expression>
</tns:translationPlugin>

View File

@@ -3,25 +3,25 @@
<!--
phpSysInfo language file Language: Greek Created by: mojiro
-->
<tns:translationPlugin language="english" charset="utf-8"
<tns:translationPlugin language="greek" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_ps_001" name="ps_title">
<exp>Διεργασίες Συστήματος</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Ενημέρωση</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<expression id="plugin_ps_002" name="ps_command">
<exp>Εντολή</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<expression id="plugin_ps_003" name="ps_pid">
<exp>ID Διεργασίας</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<expression id="plugin_ps_004" name="ps_ppid">
<exp>ID Κύριας Διεργασίας</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<expression id="plugin_ps_005" name="ps_mem">
<exp>Χρήση Μνήμης</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>Χρήση Επεξεργαστή</exp>
</expression>
</tns:translationPlugin>

View File

@@ -9,19 +9,19 @@
<expression id="plugin_ps_001" name="ps_title">
<exp>Status Procesów</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Ostatnie odświeżenie</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<expression id="plugin_ps_002" name="ps_command">
<exp>Polecenie</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<expression id="plugin_ps_003" name="ps_pid">
<exp>PID</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<expression id="plugin_ps_004" name="ps_ppid">
<exp>PID rodzica</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<expression id="plugin_ps_005" name="ps_mem">
<exp>Wykorzystanie pamięci</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>Wykorzystanie procesora</exp>
</expression>
</tns:translationPlugin>

View File

@@ -9,19 +9,19 @@
<expression id="plugin_ps_001" name="ps_title">
<exp>Stare proces</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Ultimul refresh</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<expression id="plugin_ps_002" name="ps_command">
<exp>Comanda</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<expression id="plugin_ps_003" name="ps_pid">
<exp>ID Proces</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<expression id="plugin_ps_004" name="ps_ppid">
<exp>ID Parinte</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<expression id="plugin_ps_005" name="ps_mem">
<exp>Utilizare Memorie</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>CPU Usage</exp>
</expression>
</tns:translationPlugin>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: en.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!-- $Id: ru.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: Russian Created by: Denis Sevostyanov (den007)
-->
@@ -9,19 +9,19 @@
<expression id="plugin_ps_001" name="ps_title">
<exp>Статус процессов</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Последнее обновление</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<expression id="plugin_ps_002" name="ps_command">
<exp>Команда</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<expression id="plugin_ps_003" name="ps_pid">
<exp>ID процесса</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<expression id="plugin_ps_004" name="ps_ppid">
<exp>ID родителя</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<expression id="plugin_ps_005" name="ps_mem">
<exp>Использовано памяти</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>CPU Usage</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: uk.xml 661 2017-06-03 16:32:39Z namiltd $ -->
<!--
phpSysInfo language file Language: Ukrainian Created by: Rostyslav Gaitkulov (nightfly)
-->
<tns:translationPlugin language="ukrainian" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_ps_001" name="ps_title">
<exp>Стан процесів</exp>
</expression>
<expression id="plugin_ps_002" name="ps_command">
<exp>Команда</exp>
</expression>
<expression id="plugin_ps_003" name="ps_pid">
<exp>ID процесу</exp>
</expression>
<expression id="plugin_ps_004" name="ps_ppid">
<exp>ID батьківський</exp>
</expression>
<expression id="plugin_ps_005" name="ps_mem">
<exp>Використано пам`яті</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>CPU Usage</exp>
</expression>
</tns:translationPlugin>

View File

@@ -1,27 +1,25 @@
<div class="col-lg-12" id="block_ps" style="display:none">
<div class="panel panel-primary">
<div class="panel-heading">Processes Status</div>
<div class="panel-body">
<table id="ps" class="table table-hover table-condensed sortable">
<thead>
<tr>
<th id="ps_number" class="sorttable_numeric">#</th>
<th>Command</th>
<th class="rightCell sorttable_numeric">Process ID</th>
<th class="rightCell sorttable_numeric">Parent ID</th>
<th class="rightCell sorttable_numeric">Memory Usage</th>
</tr>
</thead>
<tbody id="ps-data">
<tr>
<th><span data-bind="number"></span></th>
<td><span data-bind="Name"></span></td>
<td class="rightCell"><span data-bind="PID"></span></td>
<td class="rightCell"><span data-bind="PPID"></span></td>
<td class="rightCell"><span data-bind="MemoryUsage"></span></td>
</tr>
</tbody>
</table>
<div class="col-lg-12" id="block_ps" style="display:none;">
<div class="card" id="panel_ps" style="display:none;">
<div class="card-header"><span class="lang_plugin_ps_001">Processes Status</span>
<span class="hostname_ps"></span>
<div id="reload_ps" class="reload" title="reload"></div>
</div>
<div class="card-body">
<div class="table-responsive">
<table id="ps" class="table table-hover table-sm">
<thead>
<tr>
<th><span class="lang_plugin_ps_002">Command</span></th>
<th><span class="lang_plugin_ps_003">Process ID</span></th>
<th><span class="lang_plugin_ps_004">Parent ID</span></th>
<th><span class="lang_plugin_ps_005">Memory Usage</span></th>
<th><span class="lang_plugin_ps_006">CPU Usage</span></th>
</tr>
</thead>
<tbody id="ps-data">
</tbody>
</table>
</div>
</div>
</div>
</div>