initial commit of file from CVS for smeserver-phpsysinfo on Sat Sep 7 20:53:46 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:53:46 +10:00
parent 8f9c36d1f5
commit 9552652292
693 changed files with 86806 additions and 2 deletions

View File

@@ -0,0 +1,239 @@
<?php
/**
* SNMPPInfo Plugin
*
* PHP version 5
*
* @category PHP
* @package PSI_Plugin_SNMPPInfo
* @author Mieczyslaw Nalewaj <namiltd@users.sourceforge.net>
* @copyright 2011 phpSysInfo
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @version SVN: $Id: class.snmppinfo.inc.php 661 2012-08-27 11:26:39Z namiltd $
* @link http://phpsysinfo.sourceforge.net
*/
/**
* SNMPPInfo Plugin, which displays battery state
*
* @category PHP
* @package PSI_Plugin_SNMPPInfo
* @author Mieczyslaw Nalewaj <namiltd@users.sourceforge.net>
* @copyright 2011 phpSysInfo
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @version $Id: class.snmppinfo.inc.php 661 2012-08-27 11:26:39Z namiltd $
* @link http://phpsysinfo.sourceforge.net
*/
class SNMPPInfo extends PSI_Plugin
{
/**
* variable, which holds the content of the command
* @var array
*/
private $_filecontent = array();
/**
* variable, which holds the result before the xml is generated out of this array
* @var array
*/
private $_result = array();
/**
* read the data into an internal array and also call the parent constructor
*
* @param String $enc encoding
*/
public function __construct($enc)
{
parent::__construct(__CLASS__, $enc);
switch (strtolower(PSI_PLUGIN_SNMPPINFO_ACCESS)) {
case 'command':
if (defined('PSI_PLUGIN_SNMPPINFO_DEVICES') && is_string(PSI_PLUGIN_SNMPPINFO_DEVICES)) {
if (preg_match(ARRAY_EXP, PSI_PLUGIN_SNMPPINFO_DEVICES)) {
$printers = eval(PSI_PLUGIN_SNMPPINFO_DEVICES);
} else {
$printers = array(PSI_PLUGIN_SNMPPINFO_DEVICES);
}
foreach ($printers as $printer) {
CommonFunctions::executeProgram("snmpwalk", "-Ona -c public -v 1 ".$printer." .1.3.6.1.2.1.1.5", $buffer, PSI_DEBUG);
if (strlen(trim($buffer)) > 0) {
$this->_filecontent[$printer] = $buffer;
CommonFunctions::executeProgram("snmpwalk", "-Ona -c public -v 1 ".$printer." .1.3.6.1.2.1.43.11.1.1", $buffer2, PSI_DEBUG);
if (strlen(trim($buffer2)) > 0) {
$this->_filecontent[$printer] = $this->_filecontent[$printer]."\n".$buffer2;
}
CommonFunctions::executeProgram("snmpwalk", "-Ona -c public -v 1 ".$printer." .1.3.6.1.2.1.43.18.1.1", $buffer3, PSI_DEBUG);
if (strlen(trim($buffer3)) > 0) {
$this->_filecontent[$printer] = $this->_filecontent[$printer]."\n".$buffer3;
}
}
}
}
break;
case 'php-snmp':
snmp_set_valueretrieval(SNMP_VALUE_LIBRARY);
snmp_set_oid_output_format(SNMP_OID_OUTPUT_NUMERIC);
if (defined('PSI_PLUGIN_SNMPPINFO_DEVICES') && is_string(PSI_PLUGIN_SNMPPINFO_DEVICES)) {
if (preg_match(ARRAY_EXP, PSI_PLUGIN_SNMPPINFO_DEVICES)) {
$printers = eval(PSI_PLUGIN_SNMPPINFO_DEVICES);
} else {
$printers = array(PSI_PLUGIN_SNMPPINFO_DEVICES);
}
foreach ($printers as $printer) {
if (! PSI_DEBUG) {
restore_error_handler(); /* default error handler */
$old_err_rep = error_reporting();
error_reporting(E_ERROR); /* fatal errors only */
}
$bufferarr=snmprealwalk($printer, "public", ".1.3.6.1.2.1.1.5", 1000000, 1);
if (! PSI_DEBUG) {
error_reporting($old_err_rep); /* restore error level */
set_error_handler('errorHandlerPsi'); /* restore error handler */
}
if (! empty($bufferarr)) {
$buffer="";
foreach ($bufferarr as $id=>$string) {
$buffer=$buffer.$id." = ".$string."\n";
}
if (! PSI_DEBUG) {
restore_error_handler(); /* default error handler */
$old_err_rep = error_reporting();
error_reporting(E_ERROR); /* fatal errors only */
}
$bufferarr2=snmprealwalk($printer, "public", ".1.3.6.1.2.1.43.11.1.1", 1000000, 1);
if (! PSI_DEBUG) {
error_reporting($old_err_rep); /* restore error level */
set_error_handler('errorHandlerPsi'); /* restore error handler */
}
if (! empty($bufferarr2)) {
foreach ($bufferarr2 as $id=>$string) {
$buffer=$buffer.$id." = ".$string."\n";
}
}
if (! PSI_DEBUG) {
restore_error_handler(); /* default error handler */
$old_err_rep = error_reporting();
error_reporting(E_ERROR); /* fatal errors only */
}
$bufferarr3=snmprealwalk($printer, "public", ".1.3.6.1.2.1.43.18.1.1", 1000000, 1);
if (! PSI_DEBUG) {
error_reporting($old_err_rep); /* restore error level */
set_error_handler('errorHandlerPsi'); /* restore error handler */
}
if (! empty($bufferarr3)) {
foreach ($bufferarr3 as $id=>$string) {
$buffer=$buffer.$id." = ".$string."\n";
}
}
if (strlen(trim($buffer)) > 0) {
$this->_filecontent[$printer] = $buffer;
}
}
}
}
break;
case 'data':
if (defined('PSI_PLUGIN_SNMPPINFO_DEVICES') && is_string(PSI_PLUGIN_SNMPPINFO_DEVICES)) {
if (preg_match(ARRAY_EXP, PSI_PLUGIN_SNMPPINFO_DEVICES)) {
$printers = eval(PSI_PLUGIN_SNMPPINFO_DEVICES);
} else {
$printers = array(PSI_PLUGIN_SNMPPINFO_DEVICES);
}
$pn=0;
foreach ($printers as $printer) {
$buffer="";
if (CommonFunctions::rfts(APP_ROOT."/data/snmppinfo{$pn}.txt", $buffer) && !empty($buffer)) {
$this->_filecontent[$printer] = $buffer;
}
$pn++;
}
}
break;
default:
$this->global_error->addError("switch(PSI_PLUGIN_SNMPPINFO_ACCESS)", "Bad SNMPPInfo configuration in phpsysinfo.ini");
break;
}
}
/**
* doing all tasks to get the required informations that the plugin needs
* result is stored in an internal array
*
* @return void
*/
public function execute()
{
if (empty($this->_filecontent)) {
return;
}
foreach ($this->_filecontent as $printer=>$result) {
$lines = preg_split('/\r?\n/', $result);
foreach ($lines as $line) {
if (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.11\.1\.1\.6\.1\.(.*) = STRING:\s(.*)/', $line, $data)) {
$this->_result[$printer][$data[1]]['prtMarkerSuppliesDescription']=trim($data[2], "\"");
}
if (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.11\.1\.1\.7\.1\.(.*) = INTEGER:\s(.*)/', $line, $data)) {
$this->_result[$printer][$data[1]]['prtMarkerSuppliesSupplyUnit']=$data[2];
}
if (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.11\.1\.1\.8\.1\.(.*) = INTEGER:\s(.*)/', $line, $data)) {
$this->_result[$printer][$data[1]]['prtMarkerSuppliesMaxCapacity']=$data[2];
}
if (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.11\.1\.1\.9\.1\.(.*) = INTEGER:\s(.*)/', $line, $data)) {
$this->_result[$printer][$data[1]]['prtMarkerSuppliesLevel']=$data[2];
}
if (preg_match('/^\.1\.3\.6\.1\.2\.1\.1\.5\.0 = STRING:\s(.*)/', $line, $data)) {
$this->_result[$printer][0]['prtMarkerSuppliesDescription']=trim($data[1], "\"");;
}
if (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.18\.1\.1\.8\.1\.(.*) = STRING:\s(.*)/', $line, $data)) {
$this->_result[$printer][99][$data[1]]["message"]=trim($data[2], "\"");
}
if (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.18\.1\.1\.2\.1\.(.*) = INTEGER:\s(.*)/', $line, $data)) {
$this->_result[$printer][99][$data[1]]["severity"]=$data[2];
}
}
}
}
/**
* generates the XML content for the plugin
*
* @return SimpleXMLElement entire XML content for the plugin
*/
public function xml()
{
foreach ($this->_result as $printer=>$markersupplies_item) {
$xmlsnmppinfo_printer = $this->xml->addChild("Printer");
$xmlsnmppinfo_printer->addAttribute("Device", $printer);
foreach ($markersupplies_item as $marker=>$snmppinfo_item) {
if ($marker==0) {
$xmlsnmppinfo_printer->addAttribute("Name", $snmppinfo_item['prtMarkerSuppliesDescription']);
} elseif ($marker==99) {
foreach ($snmppinfo_item as $item=>$iarr) {
if (isset($iarr["message"]) && $iarr["message"] != "") {
$xmlsnmppinfo_errors = $xmlsnmppinfo_printer->addChild("PrinterMessage");
$xmlsnmppinfo_errors->addAttribute("Message", $iarr["message"]);
$xmlsnmppinfo_errors->addAttribute("Severity", $iarr["severity"]);
}
}
} else {
$xmlsnmppinfo = $xmlsnmppinfo_printer->addChild("MarkerSupplies");
if (isset($snmppinfo_item['prtMarkerSuppliesDescription']))
$xmlsnmppinfo->addAttribute("Description", $snmppinfo_item['prtMarkerSuppliesDescription']);
else
$xmlsnmppinfo->addAttribute("Description", ""); /* empty on some devices */
$xmlsnmppinfo->addAttribute("SupplyUnit", $snmppinfo_item['prtMarkerSuppliesSupplyUnit']);
$xmlsnmppinfo->addAttribute("MaxCapacity", $snmppinfo_item['prtMarkerSuppliesMaxCapacity']);
$xmlsnmppinfo->addAttribute("Level", $snmppinfo_item['prtMarkerSuppliesLevel']);
}
}
}
return $this->xml->getSimpleXmlElement();
}
}

View File

@@ -0,0 +1,139 @@
/***************************************************************************
* Copyright (C) 2008 by 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: snmppinfo.js 661 2012-08-27 11:26:39Z namiltd $
//
/*global $, jQuery, buildBlock, datetime, plugin_translate, createBar, genlang */
"use strict";
var snmppinfo_show = false;
/**
* build the table where content is inserted
* @param {jQuery} xml plugin-XML
*/
function snmppinfo_buildTable(xml) {
var html = "", tree = [], closed = [];
$("#Plugin_SNMPPInfo #Plugin_SNMPPInfoTable").remove();
html += " <table id=\"Plugin_SNMPPInfoTable\" class=\"tablemain\" style=\"width:100%;\">\n";
html += " <thead>\n";
html += " <tr>\n";
html += " <th>" + genlang(3, false, "SNMPPInfo") + "</th>\n";
html += " <th style=\"width:120px;\">" + genlang(4, false, "SNMPPInfo") + "</th>\n";
html += " <th style=\"width:80px;\">" + genlang(5, false, "SNMPPInfo") + "</th>\n";
html += " </tr>\n";
html += " </thead>\n";
html += " <tbody class=\"tree\">\n";
var lastdev="", index = 0 ;
$("Plugins Plugin_SNMPPInfo Printer MarkerSupplies", xml).each(function snmppinfo_getprinters(id) {
var close = 0, name = "", device = "", desc = "", unit = 0, max = 0, level = 0, percent = 0, units = "";
name = $(this).parent().attr("Name");
device = $(this).parent().attr("Device");
desc = $(this).attr("Description");
unit = parseInt($(this).attr("SupplyUnit"), 10);
max = parseInt($(this).attr("MaxCapacity"), 10);
level = parseInt($(this).attr("Level"), 10);
if (max>0 && (level>=0) && (level<=max) ) {
percent = Math.round(100*level/max);
units = level+" / "+max;
} else if (max==-2 && (level>=0) && (level<=100) ) {
percent = level;
units = level+" / 100";
} else if (level==-3) {
percent = 100;
units = genlang(6, false, "SNMPPInfo")
} else {
percent = 0;
units = genlang(7, false, "SNMPPInfo")
}
if (device!=lastdev) {
html += " <tr><td><strong>" + device + " (" + name + ") </strong></td></tr>\n";
index = tree.push(0);
lastdev = device;
}
html += " <tr><td>" + desc + "</td><td>" + createBar(percent) +"</td><td>" + units +"</td></tr>\n";
tree.push(index);
snmppinfo_show = true;
});
html += " </tbody>\n";
html += " </table>\n";
$("#Plugin_SNMPPInfo").append(html);
$("#Plugin_SNMPPInfoTable").jqTreeTable(tree, {
openImg: "./gfx/treeTable/tv-collapsable.gif",
shutImg: "./gfx/treeTable/tv-expandable.gif",
leafImg: "./gfx/treeTable/tv-item.gif",
lastOpenImg: "./gfx/treeTable/tv-collapsable-last.gif",
lastShutImg: "./gfx/treeTable/tv-expandable-last.gif",
lastLeafImg: "./gfx/treeTable/tv-item-last.gif",
vertLineImg: "./gfx/treeTable/vertline.gif",
blankImg: "./gfx/treeTable/blank.gif",
collapse: closed,
column: 0,
striped: true,
highlight: false,
state: false
});
}
/**
* load the xml via ajax
*/
function snmppinfo_request() {
$.ajax({
url: "xml.php?plugin=SNMPPInfo",
dataType: "xml",
error: function snmppinfo_error() {
$.jGrowl("Error loading XML document for Plugin SNMPPInfo!");
},
success: function snmppinfo_buildblock(xml) {
populateErrors(xml);
snmppinfo_buildTable(xml);
if (snmppinfo_show) {
plugin_translate("SNMPPInfo");
$("#Plugin_SNMPPInfo").show();
}
}
});
}
$(document).ready(function snmppinfo_buildpage() {
$("#footer").before(buildBlock("SNMPPInfo", 1, true));
$("#Plugin_SNMPPInfo").css("width", "451px");
snmppinfo_request();
$("#Reload_SNMPPInfoTable").click(function snmppinfo_reload(id) {
snmppinfo_request();
$("#Reload_SNMPPInfoTable").attr("title",datetime());
});
});

View File

@@ -0,0 +1,106 @@
function renderPlugin_snmppinfo(data) {
var directives = {
Device: {
text: function () {
var Name = (this["Name"] !== undefined) ? (' (' + this["Name"] + ')'): '';
return this["Device"] + Name;
}
},
Percent: {
html: function () {
var max = parseInt(this["MaxCapacity"]);
var level = parseInt(this["Level"]);
var percent = 0;
if (max>0 && (level>=0) && (level<=max) ) {
percent = Math.round(100*level/max);
} else if (max==-2 && (level>=0) && (level<=100) ) {
percent = level;
} else if (level==-3) {
percent = 100;
}
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width: ' + percent + '%;"></div>' +
'</div><div class="percent">' + percent + '%</div>';
}
},
Units: {
text: function () {
var max = parseInt(this["MaxCapacity"]);
var level = parseInt(this["Level"]);
if (max>0 && (level>=0) && (level<=max) ) {
return level+" / "+max;
} else if (max==-2 && (level>=0) && (level<=100) ) {
return level+" / 100";
} else if (level==-3) {
return "enough";
} else {
return "unknown";
}
}
}
};
if (data['Plugins']['Plugin_SNMPPInfo'] !== undefined) {
var printers = items(data['Plugins']['Plugin_SNMPPInfo']['Printer']);
if (printers.length > 0) {
var html = "";
html+="<thead>";
html+="<tr>";
html+="<th>Printer</th>";
html+="<th>Percent</th>";
html+="<th class=\"rightCell\">Units</th>";
html+="</tr>";
html+="</thead>";
for (var i = 0; i < printers.length; i++) {
html+="<tr id=\"snmppinfo-" + i + "\" class=\"treegrid-snmppinfo-" + i + "\" style=\"display:none\" >";
html+="<td><b><span data-bind=\"Device\"></span></b></td>";
html+="<td></td>";
html+="<td></td>";
html+="</tr>";
try {
var datas = items(printers[i]["MarkerSupplies"]);
for (var j = 0; j < datas.length; j++) {
html+="<tr id=\"snmppinfo-" + i + "-" + j +"\" class=\"treegrid-parent-snmppinfo-" + i + "\">";
html+="<th><span data-bind=\"Description\"></span></th>";
html+="<td><span data-bind=\"Percent\"></span></td>";
html+="<td class=\"rightCell\"><span data-bind=\"Units\"></span></td>";
html+="</tr>";
}
}
catch (err) {
$("#snmppinfo-" + i).hide();
}
}
$("#snmppinfo").empty().append(html);
for (var i = 0; i < printers.length; i++) {
$('#snmppinfo-'+ i).render(printers[i]["@attributes"], directives);
try {
var datas = items(printers[i]["MarkerSupplies"]);
for (var j = 0; j < datas.length; j++) {
$('#snmppinfo-'+ i+ "-" + j).render(datas[j]["@attributes"], directives);
}
}
catch (err) {
$("#snmppinfo-" + i).hide();
}
}
$('#snmppinfo').treegrid({
initialState: 'expanded',
expanderExpandedClass: 'normalicon normalicon-down',
expanderCollapsedClass: 'normalicon normalicon-right'
});
$('#block_snmppinfo').show();
} else {
$('#block_snmppinfo').hide();
}
} else {
$('#block_snmppinfo').hide();
}
}

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: cz.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
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_snmppinfo_001" name="snmppinfo_title">
<exp>Informace o tiskárnách</exp>
</expression>
<expression id="plugin_snmppinfo_002" name="snmppinfo_date">
<exp>Poslední aktualizace</exp>
</expression>
<expression id="plugin_snmppinfo_003" name="snmppinfo_printer">
<exp>Tiskárna</exp>
</expression>
<expression id="plugin_snmppinfo_004" name="snmppinfo_percent">
<exp>Procenta</exp>
</expression>
<expression id="plugin_snmppinfo_005" name="snmppinfo_units">
<exp>Jednotky</exp>
</expression>
<expression id="plugin_snmppinfo_006" name="snmppinfo_enough">
<exp>dostatek</exp>
</expression>
<expression id="plugin_snmppinfo_007" name="snmppinfo_unknown">
<exp>neznámé</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: de.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: German Created by: Matthias Freund (MAFLO321)
-->
<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_snmppinfo_001" name="snmppinfo_title">
<exp>Drucker Information</exp>
</expression>
<expression id="plugin_snmppinfo_002" name="snmppinfo_date">
<exp>Letzte Aktualisierung</exp>
</expression>
<expression id="plugin_snmppinfo_003" name="snmppinfo_printer">
<exp>Drucker</exp>
</expression>
<expression id="plugin_snmppinfo_004" name="snmppinfo_percent">
<exp>Prozent</exp>
</expression>
<expression id="plugin_snmppinfo_005" name="snmppinfo_units">
<exp>Units</exp>
</expression>
<expression id="plugin_snmppinfo_006" name="snmppinfo_enough">
<exp>genug</exp>
</expression>
<expression id="plugin_snmppinfo_007" name="snmppinfo_unknown">
<exp>unbekannt</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: en.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: English Created by: Mieczyslaw Nalewaj
-->
<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_snmppinfo_001" name="snmppinfo_title">
<exp>Printer Information</exp>
</expression>
<expression id="plugin_snmppinfo_002" name="snmppinfo_date">
<exp>Last refresh</exp>
</expression>
<expression id="plugin_snmppinfo_003" name="snmppinfo_printer">
<exp>Printer</exp>
</expression>
<expression id="plugin_snmppinfo_004" name="snmppinfo_percent">
<exp>Percent</exp>
</expression>
<expression id="plugin_snmppinfo_005" name="snmppinfo_units">
<exp>Units</exp>
</expression>
<expression id="plugin_snmppinfo_006" name="snmppinfo_enough">
<exp>enough</exp>
</expression>
<expression id="plugin_snmppinfo_007" name="snmppinfo_unknown">
<exp>unknown</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
phpSysInfo language file Language: French Created by: phpsysinfo
-->
<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_snmppinfo_001" name="snmppinfo_title">
<exp>Imprimantes</exp>
</expression>
<expression id="plugin_snmppinfo_002" name="snmppinfo_date">
<exp>Dernière actualisation</exp>
</expression>
<expression id="plugin_snmppinfo_003" name="snmppinfo_printer">
<exp>Imprimante</exp>
</expression>
<expression id="plugin_snmppinfo_004" name="snmppinfo_percent">
<exp>Pourcent</exp>
</expression>
<expression id="plugin_snmppinfo_005" name="snmppinfo_units">
<exp>Unité</exp>
</expression>
<expression id="plugin_snmppinfo_006" name="snmppinfo_enough">
<exp>suffisamment</exp>
</expression>
<expression id="plugin_snmppinfo_007" name="snmppinfo_unknown">
<exp>inconnu</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: pl.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
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_snmppinfo_001" name="snmppinfo_title">
<exp>Drukarki</exp>
</expression>
<expression id="plugin_snmppinfo_002" name="snmppinfo_date">
<exp>Ostatnie odświeżenie</exp>
</expression>
<expression id="plugin_snmppinfo_003" name="snmppinfo_printer">
<exp>Drukarka</exp>
</expression>
<expression id="plugin_snmppinfo_004" name="snmppinfo_percent">
<exp>Procent</exp>
</expression>
<expression id="plugin_snmppinfo_005" name="snmppinfo_units">
<exp>Jednostek</exp>
</expression>
<expression id="plugin_snmppinfo_006" name="snmppinfo_enough">
<exp>dość</exp>
</expression>
<expression id="plugin_snmppinfo_007" name="snmppinfo_unknown">
<exp>nieznany</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: ro.xml 661 2014-05-02 11:26:39Z namiltd $ -->
<!--
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_snmppinfo_001" name="snmppinfo_title">
<exp>Informații Imprimantă</exp>
</expression>
<expression id="plugin_snmppinfo_002" name="snmppinfo_date">
<exp>Ultimul refresh</exp>
</expression>
<expression id="plugin_snmppinfo_003" name="snmppinfo_printer">
<exp>Imprimantă</exp>
</expression>
<expression id="plugin_snmppinfo_004" name="snmppinfo_percent">
<exp>Procent</exp>
</expression>
<expression id="plugin_snmppinfo_005" name="snmppinfo_units">
<exp>Unități</exp>
</expression>
<expression id="plugin_snmppinfo_006" name="snmppinfo_enough">
<exp>suficient</exp>
</expression>
<expression id="plugin_snmppinfo_007" name="snmppinfo_unknown">
<exp>necunoscut</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $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_snmppinfo_001" name="snmppinfo_title">
<exp>Информация о принтерах</exp>
</expression>
<expression id="plugin_snmppinfo_002" name="snmppinfo_date">
<exp>Последнее обновление</exp>
</expression>
<expression id="plugin_snmppinfo_003" name="snmppinfo_printer">
<exp>Принтер</exp>
</expression>
<expression id="plugin_snmppinfo_004" name="snmppinfo_percent">
<exp>Процент</exp>
</expression>
<expression id="plugin_snmppinfo_005" name="snmppinfo_units">
<exp>Еденицы</exp>
</expression>
<expression id="plugin_snmppinfo_006" name="snmppinfo_enough">
<exp>достаточно</exp>
</expression>
<expression id="plugin_snmppinfo_007" name="snmppinfo_unknown">
<exp>неизвестный</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,9 @@
<div class="col-lg-6" id="block_snmppinfo" style="display:none">
<div class="panel panel-primary">
<div class="panel-heading">Printer Information</div>
<div class="panel-body">
<table id="snmppinfo" class="table table-hover table-condensed">
</table>
</div>
</div>
</div>