* 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
/**
* PSStatus Plugin
*
* PHP version 5
*
* @category PHP
* @package PSI_Plugin_PSStatus
* @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.psstatus.inc.php 692 2012-09-08 17:12:08Z namiltd $
* @link http://phpsysinfo.sourceforge.net
*/
/**
* process Plugin, which displays the status of configured processes
* PSStatus Plugin, which displays the status of configured processes
* a simple view which shows a process name and the status
* status determined by calling the "pidof" command line utility, another way is to provide
* a file with the output of the pidof utility, so there is no need to run a executeable by the
@@ -25,7 +12,7 @@
* @package PSI_Plugin_PSStatus
* @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,6 +30,12 @@ class PSStatus extends PSI_Plugin
*/
private $_result = array();
/**
* variable, which holds the current codepage
* @var string
*/
private $_enc;
/**
* read the data into an internal array and also call the parent constructor
*
@@ -51,56 +44,85 @@ class PSStatus extends PSI_Plugin
public function __construct($enc)
{
parent::__construct(__CLASS__, $enc);
switch (strtolower(PSI_PLUGIN_PSSTATUS_ACCESS)) {
case 'command':
if (PSI_OS == 'WINNT') {
try {
$objLocator = new COM("WbemScripting.SWbemLocator");
$wmi = $objLocator->ConnectServer();
$process_wmi = $wmi->InstancesOf('Win32_Process');
foreach ($process_wmi as $process) {
$this->_filecontent[] = array(strtolower(trim($process->Caption)), trim($process->ProcessId));
}
} catch (Exception $e) {
$this->_enc = $enc;
if (defined('PSI_PLUGIN_PSSTATUS_PROCESSES') && is_string(PSI_PLUGIN_PSSTATUS_PROCESSES)) {
switch (strtolower(PSI_PLUGIN_PSSTATUS_ACCESS)) {
case 'command':
if (preg_match(ARRAY_EXP, PSI_PLUGIN_PSSTATUS_PROCESSES)) {
$processes = eval(PSI_PLUGIN_PSSTATUS_PROCESSES);
} else {
$processes = array(PSI_PLUGIN_PSSTATUS_PROCESSES);
}
} else {
if (defined('PSI_PLUGIN_PSSTATUS_PROCESSES') && is_string(PSI_PLUGIN_PSSTATUS_PROCESSES)) {
if (preg_match(ARRAY_EXP, PSI_PLUGIN_PSSTATUS_PROCESSES)) {
$processes = eval(PSI_PLUGIN_PSSTATUS_PROCESSES);
} else {
$processes = array(PSI_PLUGIN_PSSTATUS_PROCESSES);
}
if (defined('PSI_PLUGIN_PSSTATUS_USE_REGEX') && PSI_PLUGIN_PSSTATUS_USE_REGEX === true) {
if (((PSI_OS == 'WINNT') && !defined('PSI_EMU_HOSTNAME')) || (defined('PSI_EMU_HOSTNAME') && !defined('PSI_EMU_PORT'))) {
$short = true;
if (strcasecmp($enc, "UTF-8") == 0) {
foreach ($processes as $process) {
CommonFunctions::executeProgram("pgrep", "-n -x ".$process, $buffer, PSI_DEBUG);
if (strlen(trim($buffer)) > 0) {
$this->_filecontent[] = array($process, trim($buffer));
if (mb_strlen($process, "UTF-8") > 15) {
$short = false;
break;
}
}
} else {
foreach ($processes as $process) {
CommonFunctions::executeProgram("pidof", "-s ".$process, $buffer, PSI_DEBUG);
if (strlen(trim($buffer)) > 0) {
$this->_filecontent[] = array($process, trim($buffer));
if (strlen($process) > 15) {
$short = false;
break;
}
}
}
if (!defined('PSI_EMU_HOSTNAME') && $short && CommonFunctions::executeProgram('qprocess', '*', $strBuf, false) && (strlen($strBuf) > 0)) {
$psdata = preg_split("/\r?\n/", $strBuf, -1, PREG_SPLIT_NO_EMPTY);
if (!empty($psdata)) foreach ($psdata as $psline) {
$psvalues = preg_split("/ /", $psline, -1, PREG_SPLIT_NO_EMPTY);
if ((count($psvalues) == 5) && is_numeric($psvalues[3])) {
$this->_filecontent[] = array(strtolower($psvalues[4]), $psvalues[3]);
}
}
}
if (!$short || (count($this->_filecontent) == 0)) {
try {
$wmi = WINNT::getcimv2wmi();
$process_wmi = WINNT::getWMI($wmi, 'Win32_Process', array('Caption', 'ProcessId'));
foreach ($process_wmi as $process) {
$this->_filecontent[] = array(strtolower(trim($process['Caption'])), trim($process['ProcessId']));
}
} catch (Exception $e) {
}
}
} elseif ((PSI_OS != 'WINNT') && (!defined('PSI_EMU_HOSTNAME') || defined('PSI_EMU_PORT'))) {
if (defined('PSI_PLUGIN_PSSTATUS_USE_REGEX') && PSI_PLUGIN_PSSTATUS_USE_REGEX) {
foreach ($processes as $process) {
CommonFunctions::executeProgram("pgrep", "-n -x \"".$process."\"", $buffer, PSI_DEBUG);
if (strlen($buffer) > 0) {
$this->_filecontent[] = array($process, $buffer);
}
}
} else {
foreach ($processes as $process) {
CommonFunctions::executeProgram("pidof", "-s -x \"".$process."\"", $buffer, PSI_DEBUG);
if (strlen($buffer) > 0) {
$this->_filecontent[] = array($process, $buffer);
}
}
}
}
}
break;
case 'data':
CommonFunctions::rfts(APP_ROOT."/data/psstatus.txt", $buffer);
$processes = preg_split("/\n/", $buffer, -1, PREG_SPLIT_NO_EMPTY);
foreach ($processes as $process) {
$ps = preg_split("/[\s]?\|[\s]?/", $process, -1, PREG_SPLIT_NO_EMPTY);
if (count($ps) == 2) {
$this->_filecontent[] = array(trim($ps[0]), trim($ps[1]));
break;
case 'data':
if (!defined('PSI_EMU_HOSTNAME')) {
CommonFunctions::rftsdata("psstatus.tmp", $buffer);
$processes = preg_split("/\n/", $buffer, -1, PREG_SPLIT_NO_EMPTY);
foreach ($processes as $process) {
$ps = preg_split("/[\s]?\|[\s]?/", $process, -1, PREG_SPLIT_NO_EMPTY);
if (count($ps) == 2) {
$this->_filecontent[] = array(trim($ps[0]), trim($ps[1]));
}
}
}
break;
default:
$this->global_error->addConfigError("__construct()", "[psstatus] ACCESS");
}
break;
default:
$this->global_error->addError("switch(PSI_PLUGIN_PSSTATUS_ACCESS)", "Bad psstatus configuration in phpsysinfo.ini");
break;
}
}
@@ -113,30 +135,31 @@ class PSStatus extends PSI_Plugin
*/
public function execute()
{
if (empty($this->_filecontent)) {
return;
}
if (defined('PSI_PLUGIN_PSSTATUS_PROCESSES') && is_string(PSI_PLUGIN_PSSTATUS_PROCESSES)) {
if (preg_match(ARRAY_EXP, PSI_PLUGIN_PSSTATUS_PROCESSES)) {
$processes = eval(PSI_PLUGIN_PSSTATUS_PROCESSES);
} else {
$processes = array(PSI_PLUGIN_PSSTATUS_PROCESSES);
}
if ((PSI_OS == 'WINNT') && (strtolower(PSI_PLUGIN_PSSTATUS_ACCESS) == 'command')) {
if ((((PSI_OS == 'WINNT') && !defined('PSI_EMU_HOSTNAME')) || (defined('PSI_EMU_HOSTNAME') && !defined('PSI_EMU_PORT'))) &&
(strtolower(PSI_PLUGIN_PSSTATUS_ACCESS) == 'command')) {
$strBuf = PSI_PLUGIN_PSSTATUS_PROCESSES;
if (defined('PSI_EMU_HOSTNAME')) {
WINNT::convertCP($strBuf, $this->_enc);
}
if (preg_match(ARRAY_EXP, $strBuf)) {
$processes = eval($strBuf);
} else {
$processes = array($strBuf);
}
foreach ($processes as $process) {
if ($this->_recursiveinarray(strtolower($process), $this->_filecontent)) {
$this->_result[] = array($process, true);
} else {
$this->_result[] = array($process, false);
}
$this->_result[] = array($process, $this->process_inarray(strtolower($process), $this->_filecontent));
}
} else {
if (preg_match(ARRAY_EXP, PSI_PLUGIN_PSSTATUS_PROCESSES)) {
$processes = eval(PSI_PLUGIN_PSSTATUS_PROCESSES);
} else {
$processes = array(PSI_PLUGIN_PSSTATUS_PROCESSES);
}
foreach ($processes as $process) {
if ($this->_recursiveinarray($process, $this->_filecontent)) {
$this->_result[] = array($process, true);
} else {
$this->_result[] = array($process, false);
}
$this->_result[] = array($process, $this->process_inarray($process, $this->_filecontent));
}
}
}
@@ -149,7 +172,7 @@ class PSStatus extends PSI_Plugin
*/
public function xml()
{
foreach ($this->_result as $ps) {
if (!defined('PSI_EMU_HOSTNAME') || defined('PSI_EMU_PORT') || !empty($this->_filecontent)) foreach ($this->_result as $ps) {
$xmlps = $this->xml->addChild("Process");
$xmlps->addAttribute("Name", $ps[0]);
$xmlps->addAttribute("Status", $ps[1] ? 1 : 0);
@@ -159,17 +182,17 @@ class PSStatus extends PSI_Plugin
}
/**
* checks an array recursive if an value is in, extended version of in_array()
* checks an array if process name is in
*
* @param mixed $needle what to find
* @param array $haystack where to find
*
* @return boolean true - found<br>false - not found
*/
private function _recursiveinarray($needle, $haystack)
private function process_inarray($needle, $haystack)
{
foreach ($haystack as $stalk) {
if ($needle == $stalk || (is_array($stalk) && $this->_recursiveinarray($needle, $stalk))) {
if ($needle === $stalk[0]) {
return true;
}
}

View File

@@ -1,6 +1,6 @@
/*
$Id: psstatus.css 661 2012-08-27 11:26:39Z namiltd $
*/
#plugin_psstatusTable thead tr .header {
#Plugin_PSStatusTable thead tr th {
cursor: pointer;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 992 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 993 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 755 B

View File

@@ -34,18 +34,23 @@ var psstatus_show = false, psstatus_table;
* @param {jQuery} xml plugin-XML
*/
function psstatus_populate(xml) {
var name = "", status = 0, state = "";
var name = "", status = 0, state = "", hostname = "";
psstatus_table.fnClearTable();
hostname = $("Plugins Plugin_PSStatus", xml).attr('Hostname');
if (hostname !== undefined) {
$('span[class=Hostname_PSStatus]').html(hostname);
}
$("Plugins Plugin_PSStatus Process", xml).each(function psstatus_getprocess(idp) {
name = $(this).attr("Name");
status = parseInt($(this).attr("Status"), 10);
if (!isNaN(status) && (status === 1)) {
state = "<span style=\"display:none;\">" + status.toString() + "</span><img src=\"./plugins/psstatus/gfx/online.png\" alt=\"online\" />";
state = "<span style=\"display:none;\">" + status.toString() + "</span><img src=\"./plugins/psstatus/gfx/online.gif\" alt=\"online\" title=\"\" style=\"width:18px;\" />";
}
else {
state = "<span style=\"display:none;\">" + status.toString() + "</span><img src=\"./plugins/psstatus/gfx/offline.png\" alt=\"offline\" />";
state = "<span style=\"display:none;\">" + status.toString() + "</span><img src=\"./plugins/psstatus/gfx/offline.gif\" alt=\"offline\" title=\"\" style=\"width:18px;\" />";
}
psstatus_table.fnAddData(["<span style=\"display:none;\">" + name + "</span>" + name, state]);
psstatus_show = true;
@@ -58,16 +63,18 @@ function psstatus_populate(xml) {
function psstatus_buildTable() {
var html = "";
html += "<table id=\"Plugin_PSStatusTable\" style=\"border-spacing:0;\">\n";
html += " <thead>\n";
html += " <tr>\n";
html += " <th>" + genlang(3, false, "PSStatus") + "</th>\n";
html += " <th>" + genlang(4, false, "PSStatus") + "</th>\n";
html += " </tr>\n";
html += " </thead>\n";
html += " <tbody>\n";
html += " </tbody>\n";
html += "</table>\n";
html += "<div style=\"overflow-x:auto;\">\n";
html += " <table id=\"Plugin_PSStatusTable\" style=\"border-collapse:collapse;\">\n";
html += " <thead>\n";
html += " <tr>\n";
html += " <th>" + genlang(2, "PSStatus") + "</th>\n";
html += " <th>" + genlang(3, "PSStatus") + "</th>\n";
html += " </tr>\n";
html += " </thead>\n";
html += " <tbody>\n";
html += " </tbody>\n";
html += " </table>\n";
html += "</div>\n";
$("#Plugin_PSStatus").append(html);
@@ -92,6 +99,7 @@ function psstatus_buildTable() {
* load the xml via ajax
*/
function psstatus_request() {
$("#Reload_PSStatusTable").attr("title", "reload");
$.ajax({
url: "xml.php?plugin=PSStatus",
dataType: "xml",
@@ -111,7 +119,7 @@ function psstatus_request() {
$(document).ready(function psstatus_buildpage() {
$("#footer").before(buildBlock("PSStatus", 1, true));
$("#Plugin_PSStatus").css("width", "451px");
$("#Plugin_PSStatus").addClass("halfsize");
psstatus_buildTable();
@@ -119,6 +127,6 @@ $(document).ready(function psstatus_buildpage() {
$("#Reload_PSStatusTable").click(function psstatus_reload(id) {
psstatus_request();
$("#Reload_PSStatusTable").attr("title",datetime());
$(this).attr("title", datetime());
});
});

View File

@@ -1,15 +1,20 @@
function renderPlugin_psstatus(data) {
var directives = {
Status: {
Status1: {
text: function () {
return (this['Status'] === "1") ? "ON" : "OFF";
return (this.Status === "1") ? "ON" : "";
}
},
Status0: {
text: function () {
return (this.Status === "1") ? "" : "OFF";
}
}
};
if (data['Plugins']['Plugin_PSStatus'] !== undefined) {
var psitems = items(data['Plugins']['Plugin_PSStatus']['Process']);
if (data.Plugins.Plugin_PSStatus !== undefined) {
var psitems = items(data.Plugins.Plugin_PSStatus.Process);
if (psitems.length > 0) {
var ps_memory = [];
ps_memory.push_attrs(psitems);

View File

@@ -6,16 +6,13 @@ phpSysInfo language file Language: Czech Created by: Tomáš Růžička
<tns:translationPlugin language="czech" 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_psstatus_001" name="ps_title">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Stav procesů</exp>
</expression>
<expression id="plugin_psstatus_002" name="ps_date">
<exp>Aktualizováno</exp>
</expression>
<expression id="plugin_psstatus_003" name="ps_name">
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Název</exp>
</expression>
<expression id="plugin_psstatus_004" name="ps_status">
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Stav</exp>
</expression>
</tns:translationPlugin>

View File

@@ -6,16 +6,13 @@ phpSysInfo language file Language: German Created by: Michael Cramer
<tns:translationPlugin language="german" 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_psstatus_001" name="ps_title">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Prozess Status</exp>
</expression>
<expression id="plugin_psstatus_002" name="ps_date">
<exp>Letzte Aktualisierung</exp>
</expression>
<expression id="plugin_psstatus_003" name="ps_name">
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Name</exp>
</expression>
<expression id="plugin_psstatus_004" name="ps_status">
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Status</exp>
</expression>
</tns:translationPlugin>

View File

@@ -6,16 +6,13 @@ phpSysInfo language file Language: English Created by: Michael Cramer
<tns:translationPlugin language="english" 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_psstatus_001" name="ps_title">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Process Status</exp>
</expression>
<expression id="plugin_psstatus_002" name="ps_date">
<exp>Last refresh</exp>
</expression>
<expression id="plugin_psstatus_003" name="ps_name">
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Name</exp>
</expression>
<expression id="plugin_psstatus_004" name="ps_status">
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Status</exp>
</expression>
</tns:translationPlugin>

View File

@@ -6,16 +6,13 @@ phpSysInfo language file Language: French Created by: Erkan VALENTIN
<tns:translationPlugin language="french" 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_psstatus_001" name="ps_title">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Etat des processus</exp>
</expression>
<expression id="plugin_psstatus_002" name="ps_date">
<exp>Dernière actualisation</exp>
</expression>
<expression id="plugin_psstatus_003" name="ps_name">
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Nom</exp>
</expression>
<expression id="plugin_psstatus_004" name="ps_status">
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Etat</exp>
</expression>
</tns:translationPlugin>

View File

@@ -3,19 +3,16 @@
<!--
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_psstatus_001" name="ps_title">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Κατάσταση Κρίσιμων Διεργασιών</exp>
</expression>
<expression id="plugin_psstatus_002" name="ps_date">
<exp>Ενημέρωση</exp>
</expression>
<expression id="plugin_psstatus_003" name="ps_name">
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Διεργασία</exp>
</expression>
<expression id="plugin_psstatus_004" name="ps_status">
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Κατάσταση</exp>
</expression>
</tns:translationPlugin>

View File

@@ -6,16 +6,13 @@ phpSysInfo language file Language: Polish Created by: Mieczyslaw Nalewaj
<tns:translationPlugin language="polish" 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_psstatus_001" name="ps_title">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Status Procesów</exp>
</expression>
<expression id="plugin_psstatus_002" name="ps_date">
<exp>Ostatnie odświeżenie</exp>
</expression>
<expression id="plugin_psstatus_003" name="ps_name">
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Nazwa</exp>
</expression>
<expression id="plugin_psstatus_004" name="ps_status">
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Status</exp>
</expression>
</tns:translationPlugin>

View File

@@ -6,16 +6,13 @@ phpSysInfo language file Language: Romană Created by: Iulian Alexe
<tns:translationPlugin language="romana" 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_psstatus_001" name="ps_title">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Stare proces</exp>
</expression>
<expression id="plugin_psstatus_002" name="ps_date">
<exp>Ultimul refresh</exp>
</expression>
<expression id="plugin_psstatus_003" name="ps_name">
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Nume</exp>
</expression>
<expression id="plugin_psstatus_004" name="ps_status">
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Stare</exp>
</expression>
</tns:translationPlugin>

View File

@@ -1,21 +1,18 @@
<?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)
-->
<tns:translationPlugin language="russian" 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_psstatus_001" name="ps_title">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Статус служб</exp>
</expression>
<expression id="plugin_psstatus_002" name="ps_date">
<exp>Последнее обновление</exp>
</expression>
<expression id="plugin_psstatus_003" name="ps_name">
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Имя службы</exp>
</expression>
<expression id="plugin_psstatus_004" name="ps_status">
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Статус</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: uk.xml 661 2017-06-03 16:48: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_psstatus_001" name="psstatus_title">
<exp>Стан процесів</exp>
</expression>
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Ім`я процесу</exp>
</expression>
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Стан</exp>
</expression>
</tns:translationPlugin>

View File

@@ -1,21 +1,26 @@
<div class="col-lg-6" id="block_psstatus" style="display:none">
<div class="panel panel-primary">
<div class="panel-heading">Processes Status</div>
<div class="panel-body">
<table id="psstatus" class="table table-hover table-condensed sortable">
<thead>
<tr>
<th id="psstatus_Name">Name</th>
<th class="rightCell">Status</th>
</tr>
</thead>
<tbody id="psstatus-data">
<tr>
<th><span data-bind="Name"></span></th>
<td class="rightCell"><span class="badge" data-bind="Status"></span></td>
</tr>
</tbody>
</table>
<div class="col-lg-6" id="block_psstatus" style="display:none;">
<div class="card" id="panel_psstatus" style="display:none;">
<div class="card-header"><span class="lang_plugin_psstatus_001">Processes Status</span>
<span class="hostname_psstatus"></span>
<div id="reload_psstatus" class="reload" title="reload"></div>
</div>
<div class="card-body">
<div class="table-responsive">
<table id="psstatus" class="table table-hover table-sm sortable">
<thead>
<tr>
<th id="psstatus_Name"><span class="lang_plugin_psstatus_002">Name</span></th>
<th class="rightCell"><span class="lang_plugin_psstatus_003">Status</span></th>
</tr>
</thead>
<tbody id="psstatus-data">
<tr>
<th><span data-bind="Name"></span></th>
<td class="rightCell"><span class="badge badge-success" data-bind="Status1"></span><span class="badge badge-danger" data-bind="Status0"></span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>