* 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:
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
/**
|
||||
* StableBit Plugin, which displays disks state
|
||||
*
|
||||
* @category PHP
|
||||
* @package PSI_Plugin_StableBit
|
||||
* @author Mieczyslaw Nalewaj <namiltd@users.sourceforge.net>
|
||||
* @copyright 2017 phpSysInfo
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
|
||||
* @version $Id: class.stablebit.inc.php 661 2012-08-27 11:26:39Z namiltd $
|
||||
* @link http://phpsysinfo.sourceforge.net
|
||||
*/
|
||||
class StableBit extends PSI_Plugin
|
||||
{
|
||||
/**
|
||||
* variable, which holds the result before the xml is generated out of this array
|
||||
* @var array
|
||||
*/
|
||||
private $_result;
|
||||
|
||||
/**
|
||||
* 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);
|
||||
|
||||
$this->_result = array();
|
||||
}
|
||||
|
||||
private $stablebit_items = array('Name', 'Firmware', 'Size', 'TemperatureC', 'PowerState', 'IsHot', 'IsSmartWarning', 'IsSmartPastThresholds', 'IsSmartPastAdvisoryThresholds', 'IsSmartFailurePredicted', 'IsDamaged', 'SerialNumber');
|
||||
|
||||
/**
|
||||
* 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 (((PSI_OS == 'WINNT') && !defined('PSI_EMU_HOSTNAME')) || (defined('PSI_EMU_HOSTNAME') && !defined('PSI_EMU_PORT'))) {
|
||||
try {
|
||||
$wmi = WINNT::initWMI('root\StableBit\Scanner');
|
||||
$this->_result = WINNT::getWMI($wmi, 'Disks', $this->stablebit_items);
|
||||
} catch (Exception $e) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* generates the XML content for the plugin
|
||||
*
|
||||
* @return SimpleXMLElement entire XML content for the plugin
|
||||
*/
|
||||
public function xml()
|
||||
{
|
||||
foreach ($this->_result as $disk_items) {
|
||||
if (isset($disk_items['Name']) && (trim($disk_items['Name']) !== '')) {
|
||||
$xmlstablebit_disk = $this->xml->addChild("Disk");
|
||||
foreach ($this->stablebit_items as $item) {
|
||||
if (isset($disk_items[$item]) && (($itemvalue=$disk_items[$item]) !== '') &&
|
||||
(($item !== 'TemperatureC') || ($itemvalue > 0)) &&
|
||||
(($item !== 'SerialNumber') || (defined('PSI_PLUGIN_STABLEBIT_SHOW_SERIAL') && PSI_PLUGIN_STABLEBIT_SHOW_SERIAL))) {
|
||||
$xmlstablebit_disk ->addAttribute($item, $itemvalue);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $this->xml->getSimpleXmlElement();
|
||||
}
|
||||
}
|
BIN
root/opt/phpsysinfo/plugins/stablebit/gfx/off.gif
Normal file
BIN
root/opt/phpsysinfo/plugins/stablebit/gfx/off.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 988 B |
BIN
root/opt/phpsysinfo/plugins/stablebit/gfx/on.gif
Normal file
BIN
root/opt/phpsysinfo/plugins/stablebit/gfx/on.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 992 B |
213
root/opt/phpsysinfo/plugins/stablebit/js/stablebit.js
Normal file
213
root/opt/phpsysinfo/plugins/stablebit/js/stablebit.js
Normal file
@@ -0,0 +1,213 @@
|
||||
/***************************************************************************
|
||||
* 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: stablebit.js 661 2012-08-27 11:26:39Z namiltd $
|
||||
//
|
||||
|
||||
/*global $, jQuery, buildBlock, datetime, plugin_translate, genlang */
|
||||
|
||||
"use strict";
|
||||
|
||||
var stablebit_show = false;
|
||||
|
||||
/**
|
||||
* build the table where content is inserted
|
||||
* @param {jQuery} xml plugin-XML
|
||||
*/
|
||||
function stablebit_buildTable(xml) {
|
||||
var html = "", tree = [], closed = [], hostname = "";
|
||||
|
||||
$("#Plugin_StableBit #Plugin_StableBitTable").remove();
|
||||
|
||||
hostname = $("Plugins Plugin_StableBit", xml).attr('Hostname');
|
||||
if (hostname !== undefined) {
|
||||
$('span[class=Hostname_StableBit]').html(hostname);
|
||||
}
|
||||
|
||||
html += " <div style=\"overflow-x:auto;\">\n";
|
||||
html += " <table id=\"Plugin_StableBitTable\" class=\"tablemain\">\n";
|
||||
html += " <thead>\n";
|
||||
html += " <tr>\n";
|
||||
html += " <th>" + genlang(2, "StableBit") + "</th>\n";
|
||||
html += " <th style=\"width:31%;\">" + genlang(3, "StableBit") + "</th>\n";
|
||||
html += " </tr>\n";
|
||||
html += " </thead>\n";
|
||||
html += " <tbody class=\"tree\">\n";
|
||||
|
||||
var index = 0;
|
||||
|
||||
$("Plugins Plugin_StableBit Disk", xml).each(function stablebit_getdisks(id) {
|
||||
var name = "";
|
||||
name = $(this).attr("Name");
|
||||
if (name !== undefined) {
|
||||
var serialnumber = "", firmware = "", size = 0, powerstate = "", temperaturec = "",
|
||||
ishot = 0, issmartwarning = 0, issmartpastthresholds = 0, issmartpastadvisorythresholds = 0,
|
||||
issmartfailurepredicted = 0, isdamaged = 0;
|
||||
|
||||
html += " <tr><td colspan=\"2\"><div class=\"treediv\"><span class=\"treespanbold\">" + name + "</div></span></td></tr>\n";
|
||||
index = tree.push(0);
|
||||
|
||||
serialnumber = $(this).attr("SerialNumber");
|
||||
if (serialnumber !== undefined) {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(4, "StableBit") + "</div></span></td><td>" + serialnumber +"</td></tr>\n";
|
||||
tree.push(index);
|
||||
}
|
||||
firmware = $(this).attr("Firmware");
|
||||
if (firmware !== undefined) {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(5, "StableBit") + "</div></span></td><td>" + firmware +"</td></tr>\n";
|
||||
tree.push(index);
|
||||
}
|
||||
size = parseInt($(this).attr("Size"), 10);
|
||||
if (!isNaN(size)) {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(6, "StableBit") + "</div></span></td><td>" + formatBytes(size, xml) +"</td></tr>\n";
|
||||
tree.push(index);
|
||||
}
|
||||
powerstate = $(this).attr("PowerState");
|
||||
if (powerstate !== undefined) {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(7, "StableBit") + "</div></span></td><td>" + powerstate +"</td></tr>\n";
|
||||
tree.push(index);
|
||||
}
|
||||
temperaturec = $(this).attr("TemperatureC");
|
||||
if (temperaturec !== undefined) {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(8, "StableBit") + "</div></span></td><td>" + formatTemp(temperaturec, xml) +"</td></tr>\n";
|
||||
tree.push(index);
|
||||
}
|
||||
if ($(this).attr("IsHot") !== undefined) {
|
||||
ishot = parseInt($(this).attr("IsHot"), 10);
|
||||
if (!isNaN(ishot) && (ishot === 1)) {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(9, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
|
||||
}
|
||||
else {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(9, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/off.gif\" alt=\"off\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
|
||||
}
|
||||
tree.push(index);
|
||||
}
|
||||
if ($(this).attr("IsSmartWarning") !== undefined) {
|
||||
issmartwarning = parseInt($(this).attr("IsSmartWarning"), 10);
|
||||
if (!isNaN(issmartwarning) && (issmartwarning === 1)) {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(10, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
|
||||
}
|
||||
else {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(10, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/off.gif\" alt=\"off\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
|
||||
}
|
||||
tree.push(index);
|
||||
}
|
||||
if ($(this).attr("IsSmartPastThresholds") !== undefined) {
|
||||
issmartpastthresholds = parseInt($(this).attr("IsSmartPastThresholds"), 10);
|
||||
if (!isNaN(issmartpastthresholds) && (issmartpastthresholds === 1)) {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(11, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
|
||||
}
|
||||
else {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(11, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/off.gif\" alt=\"off\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
|
||||
}
|
||||
tree.push(index);
|
||||
}
|
||||
if ($(this).attr("IsSmartPastAdvisoryThresholds") !== undefined) {
|
||||
issmartpastadvisorythresholds = parseInt($(this).attr("IsSmartPastAdvisoryThresholds"), 10);
|
||||
if (!isNaN(issmartpastadvisorythresholds) && (issmartpastadvisorythresholds === 1)) {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(12, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
|
||||
}
|
||||
else {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(12, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/off.gif\" alt=\"off\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
|
||||
}
|
||||
tree.push(index);
|
||||
}
|
||||
if ($(this).attr("IsSmartFailurePredicted") !== undefined) {
|
||||
issmartfailurepredicted = parseInt($(this).attr("IsSmartFailurePredicted"), 10);
|
||||
if (!isNaN(issmartfailurepredicted) && (issmartfailurepredicted === 1)) {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(13, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
|
||||
}
|
||||
else {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(13, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/off.gif\" alt=\"off\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
|
||||
}
|
||||
tree.push(index);
|
||||
}
|
||||
if ($(this).attr("IsDamaged") !== undefined) {
|
||||
isdamaged = parseInt($(this).attr("IsDamaged"), 10);
|
||||
if (!isNaN(isdamaged) && (isdamaged === 1)) {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(14, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
|
||||
}
|
||||
else {
|
||||
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(14, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/off.gif\" alt=\"off\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
|
||||
}
|
||||
tree.push(index);
|
||||
}
|
||||
|
||||
stablebit_show = true;
|
||||
}
|
||||
});
|
||||
|
||||
html += " </tbody>\n";
|
||||
html += " </table>\n";
|
||||
html += " </div>\n";
|
||||
|
||||
$("#Plugin_StableBit").append(html);
|
||||
|
||||
$("#Plugin_StableBitTable").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 stablebit_request() {
|
||||
$("#Reload_StableBitTable").attr("title", "reload");
|
||||
$.ajax({
|
||||
url: "xml.php?plugin=StableBit",
|
||||
dataType: "xml",
|
||||
error: function stablebit_error() {
|
||||
$.jGrowl("Error loading XML document for Plugin StableBit!");
|
||||
},
|
||||
success: function stablebit_buildblock(xml) {
|
||||
populateErrors(xml);
|
||||
stablebit_buildTable(xml);
|
||||
if (stablebit_show) {
|
||||
plugin_translate("StableBit");
|
||||
$("#Plugin_StableBit").show();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function stablebit_buildpage() {
|
||||
$("#footer").before(buildBlock("StableBit", 1, true));
|
||||
$("#Plugin_StableBit").addClass("halfsize");
|
||||
|
||||
stablebit_request();
|
||||
|
||||
$("#Reload_StableBitTable").click(function stablebit_reload(id) {
|
||||
stablebit_request();
|
||||
$(this).attr("title", datetime());
|
||||
});
|
||||
});
|
102
root/opt/phpsysinfo/plugins/stablebit/js/stablebit_bootstrap.js
Normal file
102
root/opt/phpsysinfo/plugins/stablebit/js/stablebit_bootstrap.js
Normal file
@@ -0,0 +1,102 @@
|
||||
function renderPlugin_stablebit(data) {
|
||||
|
||||
var directives = {
|
||||
IsHot: {
|
||||
html: function () {
|
||||
return (this.IsHot === "1") ? "<span class=\"badge badge-danger\">YES</span>" : "<span class=\"badge badge-success\">NO</span>";
|
||||
}
|
||||
},
|
||||
IsSmartWarning: {
|
||||
html: function () {
|
||||
return (this.IsSmartWarning === "1") ? "<span class=\"badge badge-danger\">YES</span>" : "<span class=\"badge badge-success\">NO</span>";
|
||||
}
|
||||
},
|
||||
IsSmartPastThresholds: {
|
||||
html: function () {
|
||||
return (this.IsSmartPastThresholds === "1") ? "<span class=\"badge badge-danger\">YES</span>" : "<span class=\"badge badge-success\">NO</span>";
|
||||
}
|
||||
},
|
||||
IsSmartPastAdvisoryThresholds: {
|
||||
html: function () {
|
||||
return (this.IsSmartPastAdvisoryThresholds === "1") ? "<span class=\"badge badge-danger\">YES</span>" : "<span class=\"badge badge-success\">NO</span>";
|
||||
}
|
||||
},
|
||||
IsSmartFailurePredicted: {
|
||||
html: function () {
|
||||
return (this.IsSmartFailurePredicted === "1") ? "<span class=\"badge badge-danger\">YES</span>" : "<span class=\"badge badge-success\">NO</span>";
|
||||
}
|
||||
},
|
||||
IsDamaged: {
|
||||
html: function () {
|
||||
return (this.IsDamaged === "1") ? "<span class=\"badge badge-danger\">YES</span>" : "<span class=\"badge badge-success\">NO</span>";
|
||||
}
|
||||
},
|
||||
TemperatureC: {
|
||||
html: function () {
|
||||
return formatTemp(this.TemperatureC, data.Options["@attributes"].tempFormat);
|
||||
}
|
||||
},
|
||||
Size: {
|
||||
html: function () {
|
||||
return formatBytes(this.Size, data.Options["@attributes"].byteFormat);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
if (data.Plugins.Plugin_StableBit !== undefined) {
|
||||
var disks = items(data.Plugins.Plugin_StableBit.Disk);
|
||||
if (disks.length > 0) {
|
||||
var i, proc_param;
|
||||
var html = "";
|
||||
var paramlist = {SerialNumber:4, Firmware:5, Size:6, PowerState:7, TemperatureC:8, IsHot:9, IsSmartWarning:10, IsSmartPastThresholds:11, IsSmartPastAdvisoryThresholds:12, IsSmartFailurePredicted:13, IsDamaged:14};
|
||||
for (i = 0; i < disks.length; i++) {
|
||||
try {
|
||||
html+="<tr id=\"stablebit-" + i + "\" class=\"treegrid-stablebit-" + i + "\" style=\"display:none;\" >";
|
||||
html+="<td><span class=\"treegrid-spanbold\" data-bind=\"Name\"></span></td>";
|
||||
html+="<td></td>";
|
||||
html+="</tr>";
|
||||
for (proc_param in paramlist) {
|
||||
if (disks[i]["@attributes"][proc_param] !== undefined) {
|
||||
html+="<tr id=\"stablebit-" + i + "-" + proc_param + "\" class=\"treegrid-parent-stablebit-" + i + "\">";
|
||||
html+="<td><span class=\"treegrid-spanbold\">" + genlang(paramlist[proc_param], 'stablebit') + "</span></td>";
|
||||
html+="<td class=\"rightCell\"><span data-bind=\"" + proc_param + "\"></span></td>";
|
||||
html+="</tr>";
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
$("#stablebit-" + i).hide();
|
||||
}
|
||||
}
|
||||
|
||||
$("#stablebit-data").empty().append(html);
|
||||
|
||||
for (i = 0; i < disks.length; i++) {
|
||||
try {
|
||||
$('#stablebit-'+ i).render(disks[i]["@attributes"]);
|
||||
$("#stablebit-" + i).show();
|
||||
for (proc_param in paramlist) {
|
||||
if (disks[i]["@attributes"][proc_param] !== undefined) {
|
||||
$('#stablebit-'+ i+ "-" + proc_param).render(disks[i]["@attributes"], directives);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
$("#stablebit-" + i).hide();
|
||||
}
|
||||
}
|
||||
|
||||
$('#stablebit').treegrid({
|
||||
initialState: 'expanded',
|
||||
expanderExpandedClass: 'normalicon normalicon-down',
|
||||
expanderCollapsedClass: 'normalicon normalicon-right'
|
||||
});
|
||||
|
||||
$('#block_stablebit').show();
|
||||
} else {
|
||||
$('#block_stablebit').hide();
|
||||
}
|
||||
} else {
|
||||
$('#block_stablebit').hide();
|
||||
}
|
||||
}
|
51
root/opt/phpsysinfo/plugins/stablebit/lang/en.xml
Normal file
51
root/opt/phpsysinfo/plugins/stablebit/lang/en.xml
Normal file
@@ -0,0 +1,51 @@
|
||||
<?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_stablebit_001" name="stablebit_title">
|
||||
<exp>StableBit Scanner Information</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_002" name="stablebit_disk">
|
||||
<exp>Disk</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_003" name="stablebit_value">
|
||||
<exp>Value</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_004" name="stablebit_serialnumber">
|
||||
<exp>Serial Number</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_005" name="stablebit_firmware">
|
||||
<exp>Firmware</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_006" name="stablebit_size">
|
||||
<exp>Size</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_007" name="stablebit_powerstate">
|
||||
<exp>Power state</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_008" name="stablebit_temperaturec">
|
||||
<exp>Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_009" name="stablebit_ishot">
|
||||
<exp>Is Hot</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_010" name="stablebit_issmartwarning">
|
||||
<exp>Is SMART Warning</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_011" name="stablebit_issmartpastthresholds">
|
||||
<exp>Is SMART Past Thresholds</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_012" name="stablebit_issmartpastadvisorythresholds">
|
||||
<exp>Is SMART Past Advisory Thresholds</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_013" name="stablebit_issmartfailurepredicted">
|
||||
<exp>Is SMART Failure Predicted</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_014" name="stablebit_isdamaged">
|
||||
<exp>Is Damaged</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
51
root/opt/phpsysinfo/plugins/stablebit/lang/gr.xml
Normal file
51
root/opt/phpsysinfo/plugins/stablebit/lang/gr.xml
Normal file
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Id: gr.xml 661 2012-08-27 11:26:39Z namiltd $ -->
|
||||
<!--
|
||||
phpSysInfo language file Language: Greek Created by: ChriZathens
|
||||
-->
|
||||
<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_stablebit_001" name="stablebit_title">
|
||||
<exp>Πληροφορίες Ανιχνευτή StableBit</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_002" name="stablebit_disk">
|
||||
<exp>Δίσκος</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_003" name="stablebit_value">
|
||||
<exp>Τιμή</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_004" name="stablebit_serialnumber">
|
||||
<exp>Σειριακός Αριθμός</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_005" name="stablebit_firmware">
|
||||
<exp>Yλικολογισμικό</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_006" name="stablebit_size">
|
||||
<exp>Μέγεθος</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_007" name="stablebit_powerstate">
|
||||
<exp>Κατάσταση ενέργειας</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_008" name="stablebit_temperaturec">
|
||||
<exp>Θερμοκρασία</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_009" name="stablebit_ishot">
|
||||
<exp>Είναι πολύ ζεστός</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_010" name="stablebit_issmartwarning">
|
||||
<exp>Έχει Προειδοποίηση SMART</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_011" name="stablebit_issmartpastthresholds">
|
||||
<exp>Έχει Προηγούμενα Όρια SMART</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_012" name="stablebit_issmartpastadvisorythresholds">
|
||||
<exp>Έχει Προηγούμενα Ενδεικνυόμενα Κατώτατα Όρια SMART</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_013" name="stablebit_issmartfailurepredicted">
|
||||
<exp>Έχει προβλεπόμενη αποτυχία SMART</exp>
|
||||
</expression>
|
||||
<expression id="plugin_stablebit_014" name="stablebit_isdamaged">
|
||||
<exp>Έχει Βλάβη</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
@@ -0,0 +1,22 @@
|
||||
<div class="col-lg-6" id="block_stablebit" style="display:none;">
|
||||
<div class="card" id="panel_stablebit" style="display:none;">
|
||||
<div class="card-header"><span class="lang_plugin_stablebit_001">StableBit Scanner Information</span>
|
||||
<span class="hostname_stablebit"></span>
|
||||
<div id="reload_stablebit" class="reload" title="reload"></div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table id="stablebit" class="table table-hover table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><span class="lang_plugin_stablebit_002">Disk</span></th>
|
||||
<th class="rightCell"><span class="lang_plugin_stablebit_003">Value</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="stablebit-data">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user