Subversion Repositories ALCASAR

Compare Revisions

No changes between revisions

Ignore whitespace Rev 2805 → Rev 2804

/web/acc/phpsysinfo/plugins/bat/js/bat.js
0,0 → 1,215
/***************************************************************************
* 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: bat.js 661 2012-08-27 11:26:39Z namiltd $
//
 
/*global $, jQuery, buildBlock, datetime, plugin_translate, genlang */
 
"use strict";
 
var bat_show = false;
 
/**
* build the table where content is inserted
* @param {jQuery} xml plugin-XML
*/
function bat_buildTable(xml) {
var html = "", tree = [], closed = [], batcount = 0;
 
$("#Plugin_BAT #Plugin_BATTable").remove();
 
html += " <div style=\"overflow-x:auto;\">\n";
html += " <table id=\"Plugin_BATTable\" class=\"tablemain\">\n";
html += " <thead>\n";
html += " <tr>\n";
html += " <th>" + genlang(6, "BAT") + "</th>\n";
html += " <th style=\"width:120px;\">" + genlang(7, "BAT") + "</th>\n";
html += " <th></th>\n";
html += " </tr>\n";
html += " </thead>\n";
html += " <tbody class=\"tree\">\n";
 
var index = 0;
 
$("Plugins Plugin_Bat Bat", xml).each(function bat_getdisks(id) {
var name = "", DesignCapacity = "", FullCapacity = "", Capacity = "", DesignVoltage = "", BatteryType = "",RemainingCapacity = "", PresentVoltage = "", ChargingState = "", BatteryTemperature = "", BatteryCondition = "", CapacityUnit = "", CycleCount = "", DesignVoltageMax = "", Manufacturer = "", Model = "", SerialNumber = "";
name = $(this).attr("Name");
if (name === undefined) {
name = "Battery"+(batcount++);
}
DesignCapacity = $(this).attr("DesignCapacity");
FullCapacity = $(this).attr("FullCapacity");
DesignVoltage = $(this).attr("DesignVoltage");
BatteryType = $(this).attr("BatteryType");
RemainingCapacity = $(this).attr("RemainingCapacity");
PresentVoltage = $(this).attr("PresentVoltage");
ChargingState = $(this).attr("ChargingState");
BatteryTemperature = $(this).attr("BatteryTemperature");
BatteryCondition = $(this).attr("BatteryCondition");
CapacityUnit = $(this).attr("CapacityUnit");
CycleCount = $(this).attr("CycleCount");
DesignVoltageMax = $(this).attr("DesignVoltageMax");
Manufacturer = $(this).attr("Manufacturer");
Model = $(this).attr("Model");
SerialNumber = $(this).attr("SerialNumber");
 
html += " <tr><td colspan=\"3\"><div class=\"treediv\"><span class=\"treespanbold\">" + name + "</div></span></td></tr>\n";
index = tree.push(0);
 
if (Model !== undefined) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(15, "BAT") + "</div></span></td><td>" + Model +"</td><td></td></tr>\n";
tree.push(index);
}
if (Manufacturer !== undefined) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(14, "BAT") + "</div></span></td><td>" + Manufacturer +"</td><td></td></tr>\n";
tree.push(index);
}
if (SerialNumber !== undefined) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(16, "BAT") + "</div></span></td><td>" + SerialNumber +"</td><td></td></tr>\n";
tree.push(index);
}
if (CapacityUnit === undefined) {
CapacityUnit = "mWh";
}
if ((CapacityUnit == "%") && (RemainingCapacity !== undefined)) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(3, "BAT") + "</div></span></td><td>" + createBar(round(parseInt(RemainingCapacity, 10),0)) +"</td><td></td></tr>\n";
tree.push(index);
} else {
if (DesignCapacity !== undefined) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(2, "BAT") + "</div></span></td><td>" + DesignCapacity+' '+CapacityUnit +"</td><td></td></tr>\n";
tree.push(index);
}
if (FullCapacity === undefined) {
if (RemainingCapacity !== undefined) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(3, "BAT") + "</div></span></td><td>" + RemainingCapacity+' '+CapacityUnit +"</td><td></td></tr>\n";
tree.push(index);
}
} else {
if (DesignCapacity === undefined) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(13, "BAT") + "</div></span></td><td>" + FullCapacity+' '+CapacityUnit +"</td><td></td></tr>\n";
tree.push(index);
} else {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(13, "BAT") + "</div></span></td><td>" + FullCapacity+' '+CapacityUnit +"</td><td>" + createBar(parseInt(DesignCapacity, 10) !== 0 ? round(parseInt(FullCapacity, 10) / parseInt(DesignCapacity, 10) * 100, 0) : 0) + "</td></tr>\n";
tree.push(index);
}
if (RemainingCapacity !== undefined) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(3, "BAT") + "</div></span></td><td>" + RemainingCapacity+' '+CapacityUnit +"</td><td>" + createBar(parseInt(FullCapacity, 10) !== 0 ? round(parseInt(RemainingCapacity, 10) / parseInt(FullCapacity, 10) * 100, 0) : 0) + "</td></tr>\n";
tree.push(index);
}
}
}
if (ChargingState !== undefined) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(8, "BAT") + "</div></span></td><td>" + ChargingState +"</td><td></td></tr>\n";
tree.push(index);
}
if (DesignVoltage !== undefined) {
if (DesignVoltageMax !== undefined) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(4, "BAT") + "</div></span></td><td>" + DesignVoltage+' mV' +"</td><td>" + DesignVoltageMax+' mV'+ "</td></tr>\n";
tree.push(index);
} else {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(4, "BAT") + "</div></span></td><td>" + DesignVoltage+' mV' +"</td><td></td></tr>\n";
tree.push(index);
}
} else if (DesignVoltageMax !== undefined) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(4, "BAT") + "</div></span></td><td>" + DesignVoltageMax+' mV' +"</td><td></td></tr>\n";
tree.push(index);
}
if (PresentVoltage !== undefined) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(5, "BAT") + "</div></span></td><td>" + PresentVoltage+' mV' +"</td><td></td></tr>\n";
tree.push(index);
}
if (BatteryType !== undefined) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(9, "BAT") + "</div></span></td><td>" + BatteryType +"</td><td></td></tr>\n";
tree.push(index);
}
if (BatteryTemperature !== undefined) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(10, "BAT") + "</div></span></td><td>" + formatTemp(BatteryTemperature, xml) +"</td><td></td></tr>\n";
tree.push(index);
}
if (BatteryCondition !== undefined) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(11, "BAT") + "</div></span></td><td>" + BatteryCondition +"</td><td></td></tr>\n";
tree.push(index);
}
if (CycleCount !== undefined) {
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(12, "BAT") + "</div></span></td><td>" + CycleCount +"</td><td></td></tr>\n";
tree.push(index);
}
 
bat_show = true;
});
 
html += " </tbody>\n";
html += " </table>\n";
html += " </div>\n";
 
$("#Plugin_BAT").append(html);
 
$("#Plugin_BATTable").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 bat_request() {
$("#Reload_BATTable").attr("title", "reload");
$.ajax({
url: "xml.php?plugin=BAT",
dataType: "xml",
error: function bat_error() {
$.jGrowl("Error loading XML document for Plugin BAT!");
},
success: function bat_buildblock(xml) {
populateErrors(xml);
bat_buildTable(xml);
if (bat_show) {
plugin_translate("BAT");
$("#Plugin_BAT").show();
}
}
});
}
 
$(document).ready(function bat_buildpage() {
$("#footer").before(buildBlock("BAT", 1, true));
$("#Plugin_BAT").css("width", "451px");
 
bat_request();
 
$("#Reload_BATTable").click(function bat_reload(id) {
bat_request();
$(this).attr("title", datetime());
});
});
/web/acc/phpsysinfo/plugins/bat/js/bat_bootstrap.js
0,0 → 1,146
function renderPlugin_bat(data) {
var batcount = 0;
var directives = {
Name: {
text: function () {
return (this.Name !== undefined) ? this.Name : 'Battery'+(batcount++);
}
},
DesignCapacity: {
html: function () {
return this.DesignCapacity + String.fromCharCode(160) + this.CapacityUnit;
}
},
FullCapacity: {
html: function () {
return this.FullCapacity + String.fromCharCode(160) + this.CapacityUnit;
}
},
FullCapacityBar: {
html: function () {
if (( this.CapacityUnit !== "%" ) && (this.DesignCapacity !== undefined)){
var percent = (this.DesignCapacity > 0) ? round(100*this.FullCapacity/this.DesignCapacity,0) : 0;
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + percent + '%;"></div>' +
'</div><div class="percent">' + percent + '%</div>';
} else {
return '';
}
}
},
RemainingCapacity: {
html: function () {
if ( this.CapacityUnit === "%" ) {
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + round(this.RemainingCapacity,0) + '%;"></div>' +
'</div><div class="percent">' + round(this.RemainingCapacity,0) + '%</div>';
} else {
return this.RemainingCapacity + String.fromCharCode(160) + this.CapacityUnit;
}
}
},
RemainingCapacityBar: {
html: function () {
if (( this.CapacityUnit !== "%" ) && (this.FullCapacity !== undefined)){
var percent = (this.FullCapacity > 0) ? round(100*this.RemainingCapacity/this.FullCapacity,0) : 0;
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + percent + '%;"></div>' +
'</div><div class="percent">' + percent + '%</div>';
} else {
return '';
}
}
},
PresentVoltage: {
text: function () {
return this.PresentVoltage + String.fromCharCode(160) + 'mV';
}
},
BatteryTemperature: {
html: function () {
return formatTemp(this.BatteryTemperature, data.Options["@attributes"].tempFormat);
}
},
DesignVoltage: {
text: function () {
return this.DesignVoltage + String.fromCharCode(160) + 'mV';
}
},
DesignVoltageMax: {
text: function () {
return (this.DesignVoltageMax !== undefined) ? this.DesignVoltageMax + String.fromCharCode(160) + 'mV' : '';
}
}
};
 
if (data.Plugins.Plugin_BAT !== undefined) {
var bats = items(data.Plugins.Plugin_BAT.Bat);
if (bats.length > 0) {
var html = "";
var paramlist = {Model:15,Manufacturer:14,SerialNumber:16,DesignCapacity:2,FullCapacity:13,RemainingCapacity:3,ChargingState:8,DesignVoltage:4,PresentVoltage:5,BatteryType:9,BatteryTemperature:10,BatteryCondition:11,CycleCount:12};
var paramlis2 = {FullCapacity:'FullCapacityBar',RemainingCapacity:'RemainingCapacityBar',DesignVoltage:'DesignVoltageMax'};
var i, proc_param;
 
for (i = 0; i < bats.length; i++) {
if (bats[i]["@attributes"].CapacityUnit === undefined) {
bats[i]["@attributes"].CapacityUnit = 'mWh';
} else if ((bats[i]["@attributes"].CapacityUnit === '%') && (bats[i]["@attributes"].RemainingCapacity !== undefined)) {
if (bats[i]["@attributes"].DesignCapacity !== undefined) {
delete bats[i]["@attributes"].DesignCapacity;
}
if (bats[i]["@attributes"].FullCapacity !== undefined) {
delete bats[i]["@attributes"].FullCapacity;
}
}
 
try {
html+="<tr id=\"bat-" + i + "\" class=\"treegrid-bat-" + i + "\" style=\"display:none;\" >";
html+="<td colspan=\"3\"><span class=\"treegrid-spanbold\" data-bind=\"Name\"></span></td>";
html+="</tr>";
for (proc_param in paramlist) {
if (bats[i]["@attributes"][proc_param] !== undefined) {
html+="<tr id=\"bat-" + i + "-" + proc_param + "\" class=\"treegrid-parent-bat-" + i + "\">";
html+="<td><span class=\"treegrid-spanbold\">" + genlang(paramlist[proc_param], 'bat') + "</span></td>";
html+="<td><span data-bind=\"" + proc_param + "\"></span></td>";
if (paramlis2[proc_param] !== undefined) {
html+="<td class=\"rightCell\"><span data-bind=\"" + paramlis2[proc_param] + "\"></span></td>";
} else {
html+="<td></td>";
}
html+="</tr>";
}
}
}
catch (err) {
$("#bat-" + i).hide();
}
}
 
$("#bat-data").empty().append(html);
 
for (i = 0; i < bats.length; i++) {
try {
$('#bat-'+ i).render(bats[i]["@attributes"], directives);
$("#bat-" + i).show();
for (proc_param in paramlist) {
if (bats[i]["@attributes"][proc_param] !== undefined) {
$('#bat-'+ i+ "-" + proc_param).render(bats[i]["@attributes"], directives);
}
}
}
catch (err) {
$("#bat-" + i).hide();
}
}
 
$('#bat').treegrid({
initialState: 'expanded',
expanderExpandedClass: 'normalicon normalicon-down',
expanderCollapsedClass: 'normalicon normalicon-right'
});
 
$('#block_bat').show();
} else {
$('#block_bat').hide();
}
} else {
$('#block_bat').hide();
}
}
/web/acc/phpsysinfo/plugins/bat/lang/cz.xml
0,0 → 1,57
<?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_bat_001" name="bat_title">
<exp>Stav baterie</exp>
</expression>
<expression id="plugin_bat_002" name="bat_design_capacity">
<exp>Konstrukční kapacita</exp>
</expression>
<expression id="plugin_bat_003" name="bat_remaining_capacity">
<exp>Zbývající kapacita</exp>
</expression>
<expression id="plugin_bat_004" name="bat_design_voltage">
<exp>Konstrukční napětí</exp>
</expression>
<expression id="plugin_bat_005" name="bat_present_voltage">
<exp>Aktuální napětí</exp>
</expression>
<expression id="plugin_bat_006" name="bat_battery">
<exp>Baterie</exp>
</expression>
<expression id="plugin_bat_007" name="bat_value">
<exp>Hodnota</exp>
</expression>
<expression id="plugin_bat_008" name="bat_charging_state">
<exp>Stav nabíjení</exp>
</expression>
<expression id="plugin_bat_009" name="bat_battery_type">
<exp>Battery Type</exp>
</expression>
<expression id="plugin_bat_010" name="bat_battery_temperature">
<exp>Battery Temperature</exp>
</expression>
<expression id="plugin_bat_011" name="bat_battery_condition">
<exp>Battery Condition</exp>
</expression>
<expression id="plugin_bat_012" name="bat_cycle_count">
<exp>Cycle Count</exp>
</expression>
<expression id="plugin_bat_013" name="bat_full_capacity">
<exp>Plná kapacita</exp>
</expression>
<expression id="plugin_bat_014" name="bat_manufacturer">
<exp>Manufacturer</exp>
</expression>
<expression id="plugin_bat_015" name="bat_model">
<exp>Model</exp>
</expression>
<expression id="plugin_bat_016" name="bat_serialnumber">
<exp>Serial Number</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/bat/lang/de.xml
0,0 → 1,57
<?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_bat_001" name="bat_title">
<exp>Akku-Status</exp>
</expression>
<expression id="plugin_bat_002" name="bat_design_capacity">
<exp>Bemeskapazität</exp>
</expression>
<expression id="plugin_bat_003" name="bat_remaining_capacity">
<exp>Übrige Kapazität</exp>
</expression>
<expression id="plugin_bat_004" name="bat_design_voltage">
<exp>Bemessungsspannung</exp>
</expression>
<expression id="plugin_bat_005" name="bat_present_voltage">
<exp>Momentane Spannung</exp>
</expression>
<expression id="plugin_bat_006" name="bat_battery">
<exp>Akku</exp>
</expression>
<expression id="plugin_bat_007" name="bat_value">
<exp>Wert</exp>
</expression>
<expression id="plugin_bat_008" name="bat_charging_state">
<exp>Ladezustand</exp>
</expression>
<expression id="plugin_bat_009" name="bat_battery_type">
<exp>Akku-Typ</exp>
</expression>
<expression id="plugin_bat_010" name="bat_battery_temperature">
<exp>Akku-Temperatur</exp>
</expression>
<expression id="plugin_bat_011" name="bat_battery_condition">
<exp>Akku-Zustand</exp>
</expression>
<expression id="plugin_bat_012" name="bat_cycle_count">
<exp>Cycle Count</exp>
</expression>
<expression id="plugin_bat_013" name="bat_full_capacity">
<exp>Volle Kapazität</exp>
</expression>
<expression id="plugin_bat_014" name="bat_manufacturer">
<exp>Manufacturer</exp>
</expression>
<expression id="plugin_bat_015" name="bat_model">
<exp>Model</exp>
</expression>
<expression id="plugin_bat_016" name="bat_serialnumber">
<exp>Serial Number</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/bat/lang/en.xml
0,0 → 1,57
<?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: Erkan VALENTIN
-->
<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_bat_001" name="bat_title">
<exp>Battery Status</exp>
</expression>
<expression id="plugin_bat_002" name="bat_design_capacity">
<exp>Design capacity</exp>
</expression>
<expression id="plugin_bat_003" name="bat_remaining_capacity">
<exp>Remaining capacity</exp>
</expression>
<expression id="plugin_bat_004" name="bat_design_voltage">
<exp>Design voltage</exp>
</expression>
<expression id="plugin_bat_005" name="bat_present_voltage">
<exp>Present voltage</exp>
</expression>
<expression id="plugin_bat_006" name="bat_battery">
<exp>Battery</exp>
</expression>
<expression id="plugin_bat_007" name="bat_value">
<exp>Value</exp>
</expression>
<expression id="plugin_bat_008" name="bat_charging_state">
<exp>Charging state</exp>
</expression>
<expression id="plugin_bat_009" name="bat_battery_type">
<exp>Battery Type</exp>
</expression>
<expression id="plugin_bat_010" name="bat_battery_temperature">
<exp>Battery Temperature</exp>
</expression>
<expression id="plugin_bat_011" name="bat_battery_condition">
<exp>Battery Condition</exp>
</expression>
<expression id="plugin_bat_012" name="bat_cycle_count">
<exp>Cycle Count</exp>
</expression>
<expression id="plugin_bat_013" name="bat_full_capacity">
<exp>Full capacity</exp>
</expression>
<expression id="plugin_bat_014" name="bat_manufacturer">
<exp>Manufacturer</exp>
</expression>
<expression id="plugin_bat_015" name="bat_model">
<exp>Model</exp>
</expression>
<expression id="plugin_bat_016" name="bat_serialnumber">
<exp>Serial Number</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/bat/lang/fr.xml
0,0 → 1,57
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: fr.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
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_bat_001" name="bat_title">
<exp>Etat des batteries</exp>
</expression>
<expression id="plugin_bat_002" name="bat_design_capacity">
<exp>Capacité d'origine</exp>
</expression>
<expression id="plugin_bat_003" name="bat_remaining_capacity">
<exp>Capacité restante</exp>
</expression>
<expression id="plugin_bat_004" name="bat_design_voltage">
<exp>Tension d'origine</exp>
</expression>
<expression id="plugin_bat_005" name="bat_present_voltage">
<exp>Tension actuelle</exp>
</expression>
<expression id="plugin_bat_006" name="bat_battery">
<exp>Elements</exp>
</expression>
<expression id="plugin_bat_007" name="bat_value">
<exp>Valeur</exp>
</expression>
<expression id="plugin_bat_008" name="bat_charging_state">
<exp>Etat</exp>
</expression>
<expression id="plugin_bat_009" name="bat_battery_type">
<exp>Battery Type</exp>
</expression>
<expression id="plugin_bat_010" name="bat_battery_temperature">
<exp>Battery Temperature</exp>
</expression>
<expression id="plugin_bat_011" name="bat_battery_condition">
<exp>Battery Condition</exp>
</expression>
<expression id="plugin_bat_012" name="bat_cycle_count">
<exp>Cycle Count</exp>
</expression>
<expression id="plugin_bat_013" name="bat_full_capacity">
<exp>Capacité pleine</exp>
</expression>
<expression id="plugin_bat_014" name="bat_manufacturer">
<exp>Manufacturer</exp>
</expression>
<expression id="plugin_bat_015" name="bat_model">
<exp>Model</exp>
</expression>
<expression id="plugin_bat_016" name="bat_serialnumber">
<exp>Serial Number</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/bat/lang/gr.xml
0,0 → 1,57
<?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_bat_001" name="bat_title">
<exp>Κατάσταση Μπαταρίας</exp>
</expression>
<expression id="plugin_bat_002" name="bat_design_capacity">
<exp>Εργοστασιακή χωρητικότητα</exp>
</expression>
<expression id="plugin_bat_003" name="bat_remaining_capacity">
<exp>Εναπομείνουσα χωρητικότητα</exp>
</expression>
<expression id="plugin_bat_004" name="bat_design_voltage">
<exp>Εργοστασιακή τάση</exp>
</expression>
<expression id="plugin_bat_005" name="bat_present_voltage">
<exp>Τρέχουσα τάση</exp>
</expression>
<expression id="plugin_bat_006" name="bat_battery">
<exp>Μπαταρία</exp>
</expression>
<expression id="plugin_bat_007" name="bat_value">
<exp>Τιμή</exp>
</expression>
<expression id="plugin_bat_008" name="bat_charging_state">
<exp>Κατάσταση φόρτισης</exp>
</expression>
<expression id="plugin_bat_009" name="bat_battery_type">
<exp>Τύπος Μπαταρίας</exp>
</expression>
<expression id="plugin_bat_010" name="bat_battery_temperature">
<exp>Θερμοκρασία Μπαταρίας</exp>
</expression>
<expression id="plugin_bat_011" name="bat_battery_condition">
<exp>Κατάσταση Μπαταρίας</exp>
</expression>
<expression id="plugin_bat_012" name="bat_cycle_count">
<exp>Κύκλοι φόρτισης</exp>
</expression>
<expression id="plugin_bat_013" name="bat_full_capacity">
<exp>Πλήρης χωρητικότητα</exp>
</expression>
<expression id="plugin_bat_014" name="bat_manufacturer">
<exp>Κατασκευαστής</exp>
</expression>
<expression id="plugin_bat_015" name="bat_model">
<exp>Μοντέλο</exp>
</expression>
<expression id="plugin_bat_016" name="bat_serialnumber">
<exp>Σειριακός Αριθμός</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/bat/lang/pl.xml
0,0 → 1,57
<?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_bat_001" name="bat_title">
<exp>Status Baterii</exp>
</expression>
<expression id="plugin_bat_002" name="bat_design_capacity">
<exp>Pojemność znamionowa</exp>
</expression>
<expression id="plugin_bat_003" name="bat_remaining_capacity">
<exp>Pojemność aktualna</exp>
</expression>
<expression id="plugin_bat_004" name="bat_design_voltage">
<exp>Napięcie znamionowe</exp>
</expression>
<expression id="plugin_bat_005" name="bat_present_voltage">
<exp>Napięcie aktualne</exp>
</expression>
<expression id="plugin_bat_006" name="bat_battery">
<exp>Bateria</exp>
</expression>
<expression id="plugin_bat_007" name="bat_value">
<exp>Wartość</exp>
</expression>
<expression id="plugin_bat_008" name="bat_charging_state">
<exp>Stan ładowania</exp>
</expression>
<expression id="plugin_bat_009" name="bat_battery_type">
<exp>Typ ogniw</exp>
</expression>
<expression id="plugin_bat_010" name="bat_battery_temperature">
<exp>Temperatura ogniw</exp>
</expression>
<expression id="plugin_bat_011" name="bat_battery_condition">
<exp>Kondycja ogniw</exp>
</expression>
<expression id="plugin_bat_012" name="bat_cycle_count">
<exp>Cykli ładowania</exp>
</expression>
<expression id="plugin_bat_013" name="bat_full_capacity">
<exp>Pojemność pełna</exp>
</expression>
<expression id="plugin_bat_014" name="bat_manufacturer">
<exp>Producent</exp>
</expression>
<expression id="plugin_bat_015" name="bat_model">
<exp>Model</exp>
</expression>
<expression id="plugin_bat_016" name="bat_serialnumber">
<exp>Numer seryjny</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/bat/lang/ro.xml
0,0 → 1,57
<?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_bat_001" name="bat_title">
<exp>Stare Baterie</exp>
</expression>
<expression id="plugin_bat_002" name="bat_design_capacity">
<exp>Capacitate Design</exp>
</expression>
<expression id="plugin_bat_003" name="bat_remaining_capacity">
<exp>Capacitate rămasă</exp>
</expression>
<expression id="plugin_bat_004" name="bat_design_voltage">
<exp>Voltaj design</exp>
</expression>
<expression id="plugin_bat_005" name="bat_present_voltage">
<exp>Voltaj prezent</exp>
</expression>
<expression id="plugin_bat_006" name="bat_battery">
<exp>Baterie</exp>
</expression>
<expression id="plugin_bat_007" name="bat_value">
<exp>valoare</exp>
</expression>
<expression id="plugin_bat_008" name="bat_charging_state">
<exp>Stare de Încărcare</exp>
</expression>
<expression id="plugin_bat_009" name="bat_battery_type">
<exp>Tip Baterie</exp>
</expression>
<expression id="plugin_bat_010" name="bat_battery_temperature">
<exp>Temperatura Baterie</exp>
</expression>
<expression id="plugin_bat_011" name="bat_battery_condition">
<exp>Condiții Baterie</exp>
</expression>
<expression id="plugin_bat_012" name="bat_cycle_count">
<exp>Cycle Count</exp>
</expression>
<expression id="plugin_bat_013" name="bat_full_capacity">
<exp>Capacitate maximă</exp>
</expression>
<expression id="plugin_bat_014" name="bat_manufacturer">
<exp>Manufacturer</exp>
</expression>
<expression id="plugin_bat_015" name="bat_model">
<exp>Model</exp>
</expression>
<expression id="plugin_bat_016" name="bat_serialnumber">
<exp>Serial Number</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/bat/lang/ru.xml
0,0 → 1,57
<?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_bat_001" name="bat_title">
<exp>Состояние батареи</exp>
</expression>
<expression id="plugin_bat_002" name="bat_design_capacity">
<exp>Проектная мощность</exp>
</expression>
<expression id="plugin_bat_003" name="bat_remaining_capacity">
<exp>Оставшийся объем</exp>
</expression>
<expression id="plugin_bat_004" name="bat_design_voltage">
<exp>Проектное напряжение</exp>
</expression>
<expression id="plugin_bat_005" name="bat_present_voltage">
<exp>Фактическое напряжение</exp>
</expression>
<expression id="plugin_bat_006" name="bat_battery">
<exp>Aккумулятор</exp>
</expression>
<expression id="plugin_bat_007" name="bat_value">
<exp>Значение</exp>
</expression>
<expression id="plugin_bat_008" name="bat_charging_state">
<exp>Состояние зарядки</exp>
</expression>
<expression id="plugin_bat_009" name="bat_battery_type">
<exp>Тип батареи</exp>
</expression>
<expression id="plugin_bat_010" name="bat_battery_temperature">
<exp>Температура батареи</exp>
</expression>
<expression id="plugin_bat_011" name="bat_battery_condition">
<exp>Состояние аккумулятора</exp>
</expression>
<expression id="plugin_bat_012" name="bat_cycle_count">
<exp>Циклы</exp>
</expression>
<expression id="plugin_bat_013" name="bat_full_capacity">
<exp>Полная мощность</exp>
</expression>
<expression id="plugin_bat_014" name="bat_manufacturer">
<exp>Manufacturer</exp>
</expression>
<expression id="plugin_bat_015" name="bat_model">
<exp>Model</exp>
</expression>
<expression id="plugin_bat_016" name="bat_serialnumber">
<exp>Serial Number</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/bat/bat_bootstrap.html
0,0 → 1,22
<div class="col-lg-6" id="block_bat" style="display:none;">
<div class="card" id="panel_bat" style="display:none;">
<div class="card-header"><span class="lang_plugin_bat_001">Battery Status</span>
<div id="reload_bat" class="reload" title="reload"></div>
</div>
<div class="card-body">
<div class="table-responsive">
<table id="bat" class="table table-hover table-sm">
<thead>
<tr>
<th><span class="lang_plugin_bat_006">Battery</span></th>
<th><span class="lang_plugin_bat_007">Value</span></th>
<th></th>
</tr>
</thead>
<tbody id="bat-data">
</tbody>
</table>
</div>
</div>
</div>
</div>
/web/acc/phpsysinfo/plugins/bat/class.bat.inc.php
0,0 → 1,777
<?php
/**
* BAT Plugin, which displays battery state
*
* @category PHP
* @package PSI_Plugin_BAT
* @author Erkan V
* @copyright 2009 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.bat.inc.php 661 2012-08-27 11:26:39Z namiltd $
* @link http://phpsysinfo.sourceforge.net
*/
class BAT 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);
$buffer = array();
switch (strtolower(PSI_PLUGIN_BAT_ACCESS)) {
case 'command':
if (PSI_OS == 'WINNT') {
$_cim = null; //root\CIMv2
$_wmi = null; //root\WMI
try {
// initialize the wmi object
$objLocatorCIM = new COM('WbemScripting.SWbemLocator');
$_cim = $objLocatorCIM->ConnectServer('', 'root\CIMv2');
 
// initialize the wmi object
$objLocatorWMI = new COM('WbemScripting.SWbemLocator');
$_wmi = $objLocatorWMI->ConnectServer('', 'root\WMI');
} catch (Exception $e) {
$this->global_error->addError("WMI connect error", "PhpSysInfo can not connect to the WMI interface for security reasons.\nCheck an authentication mechanism for the directory where phpSysInfo is installed.");
}
 
$bufferWB = CommonFunctions::getWMI($_cim, 'Win32_Battery', array('Caption', 'Name', 'EstimatedChargeRemaining', 'DesignVoltage', 'BatteryStatus', 'Chemistry'));
if (sizeof($bufferWB)>0) {
$bufferWPB = CommonFunctions::getWMI($_cim, 'Win32_PortableBattery', array('DesignVoltage', 'Chemistry', 'DesignCapacity', 'FullChargeCapacity', 'Manufacturer'));
$bufferBS = CommonFunctions::getWMI($_wmi, 'BatteryStatus', array('RemainingCapacity', 'Voltage'));
$bufferBCC = CommonFunctions::getWMI($_wmi, 'BatteryCycleCount', array('CycleCount'));
$bufferBFCC = CommonFunctions::getWMI($_wmi, 'BatteryFullChargedCapacity', array('FullChargedCapacity'));
$sobWB = sizeof($bufferWB);
if (sizeof($bufferWPB) != $sobWB) {
$bufferWPB = array();
}
if (sizeof($bufferBS) != $sobWB) {
$bufferBS = array();
}
if (sizeof($bufferBCC) != $sobWB) {
$bufferBCC = array();
}
if (sizeof($bufferBFCC) != $sobWB) {
$bufferBFCC = array();
}
for ($bi = 0; $bi < $sobWB; $bi++) {
$buffer[$bi]['state'] = '';
$buffer[$bi]['info'] = '';
$capacity = '';
if (isset($bufferWB[$bi]['EstimatedChargeRemaining'])) {
$capacity = $bufferWB[$bi]['EstimatedChargeRemaining'];
}
if (isset($bufferWB[$bi]['BatteryStatus'])) {
switch ($bufferWB[$bi]['BatteryStatus']) {
case 1: $batstat = 'Discharging'; break;
case 2: $batstat = 'AC connected'; break;
case 3: $batstat = 'Fully Charged'; break;
case 4: $batstat = 'Low'; break;
case 5: $batstat = 'Critical'; break;
case 6: $batstat = 'Charging'; break;
case 7: $batstat = 'Charging and High'; break;
case 8: $batstat = 'Charging and Low'; break;
case 9: $batstat = 'Charging and Critical'; break;
case 10: $batstat = 'Undefined'; break;
case 11: $batstat = 'Partially Charged'; break;
default: $batstat = '';
}
if ($batstat != '') $buffer[$bi]['state'] .= 'POWER_SUPPLY_STATUS='.$batstat."\n";
}
$techn = '';
if (isset($bufferWB[$bi]['Chemistry'])) {
switch ($bufferWB[$bi]['Chemistry']) {
case 1: $techn = 'Other'; break;
case 2: $techn = 'Unknown'; break;
case 3: $techn = 'PbAc'; break;
case 4: $techn = 'NiCd'; break;
case 5: $techn = 'NiMH'; break;
case 6: $techn = 'Li-ion'; break;
case 7: $techn = 'Zinc-air'; break;
case 8: $techn = 'Li-poly'; break;
}
}
if (isset($bufferWPB[$bi]['DesignVoltage'])) {
$buffer[$bi]['info'] .= 'POWER_SUPPLY_VOLTAGE_MIN_DESIGN='.($bufferWPB[$bi]['DesignVoltage']*1000)."\n";
}
 
if (isset($bufferWPB[$bi]['Manufacturer'])) {
$buffer[$bi]['info'] .= 'POWER_SUPPLY_MANUFACTURER='.$bufferWPB[$bi]['Manufacturer']."\n";
}
// sometimes Chemistry from Win32_Battery returns 2 but Win32_PortableBattery returns e.g. 6
if ((($techn == '') || ($techn == 'Unknown')) && isset($bufferWPB[$bi]['Chemistry'])) {
switch ($bufferWPB[$bi]['Chemistry']) {
case 1: $techn = 'Other'; break;
case 2: $techn = 'Unknown'; break;
case 3: $techn = 'PbAc'; break;
case 4: $techn = 'NiCd'; break;
case 5: $techn = 'NiMH'; break;
case 6: $techn = 'Li-ion'; break;
case 7: $techn = 'Zinc-air'; break;
case 8: $techn = 'Li-poly'; break;
}
}
if ($techn != '') $buffer[$bi]['info'] .= 'POWER_SUPPLY_TECHNOLOGY='.$techn."\n";
 
if (sizeof($bufferBS)>0) {
$hasvolt = false;
if (isset($bufferBS[$bi]['Voltage']) && ($bufferBS[$bi]['Voltage']>0)) {
$buffer[$bi]['state'] .= 'POWER_SUPPLY_VOLTAGE_NOW='.($bufferBS[$bi]['Voltage']*1000)."\n";
$hasvolt = true;
} elseif (isset($bufferWB[$bi]['DesignVoltage']) && ($bufferWB[$bi]['DesignVoltage']>0)) {
$buffer[$bi]['state'] .= 'POWER_SUPPLY_VOLTAGE_NOW='.($bufferWB[$bi]['DesignVoltage']*1000)."\n";
$hasvolt = true;
}
if (isset($bufferBS[$bi]['RemainingCapacity']) &&
(($bufferBS[$bi]['RemainingCapacity']>0) || ($hasvolt && ($bufferBS[$bi]['RemainingCapacity']==0)))) {
$buffer[$bi]['state'] .= 'POWER_SUPPLY_ENERGY_NOW='.($bufferBS[$bi]['RemainingCapacity']*1000)."\n";
$capacity = '';
}
}
 
if (isset($bufferWB[$bi]['Caption'])) {
$buffer[$bi]['state'] .= 'POWER_SUPPLY_NAME='.$bufferWB[$bi]['Caption']."\n";
}
if (isset($bufferWB[$bi]['Name'])) {
$buffer[$bi]['state'] .= 'POWER_SUPPLY_MODEL_NAME='.$bufferWB[$bi]['Name']."\n";
}
if (!isset($bufferWPB[$bi]['FullChargeCapacity']) && isset($bufferBFCC[$bi]['FullChargedCapacity'])) {
$bufferWPB[$bi]['FullChargeCapacity'] = $bufferBFCC[$bi]['FullChargedCapacity'];
}
if (isset($bufferWPB[$bi]['FullChargeCapacity'])) {
$buffer[$bi]['info'] .= 'POWER_SUPPLY_ENERGY_FULL='.($bufferWPB[$bi]['FullChargeCapacity']*1000)."\n";
if ($capacity != '') $buffer[$bi]['state'] .= 'POWER_SUPPLY_ENERGY_NOW='.(round($capacity*$bufferWPB[$bi]['FullChargeCapacity']*10)."\n");
if (isset($bufferWPB[$bi]['DesignCapacity']) && ($bufferWPB[$bi]['DesignCapacity']>0))
$buffer[$bi]['info'] .= 'POWER_SUPPLY_ENERGY_FULL_DESIGN='.($bufferWPB[$bi]['DesignCapacity']*1000)."\n";
} elseif (isset($bufferWPB[$bi]['DesignCapacity']) && ($bufferWPB[$bi]['DesignCapacity']>0)) {
$buffer[$bi]['info'] .= 'POWER_SUPPLY_ENERGY_FULL_DESIGN='.($bufferWPB[$bi]['DesignCapacity']*1000)."\n";
if ($capacity != '') $buffer[$bi]['state'] .= 'POWER_SUPPLY_ENERGY_NOW='.(round($capacity*$bufferWPB[$bi]['DesignCapacity']*10)."\n");
} else {
if ($capacity != '') $buffer[$bi]['state'] .= 'POWER_SUPPLY_CAPACITY='.$capacity."\n";
}
 
if (isset($bufferBCC[$bi]['CycleCount']) && ($bufferBCC[$bi]['CycleCount']>0)) {
$buffer[$bi]['info'] .= 'POWER_SUPPLY_CYCLE_COUNT='.$bufferBCC[$bi]['CycleCount']."\n";
}
}
}
} elseif (PSI_OS == 'Darwin') {
$buffer[0]['info'] = '';
CommonFunctions::executeProgram('ioreg', '-w0 -l -n AppleSmartBattery -r', $buffer[0]['info'], false);
if ($buffer[0]['info'] !== '') {
$buffer[0]['info'] .= "POWER_SUPPLY_NAME=AppleSmartBattery\n";
}
} elseif (PSI_OS == 'FreeBSD') {
$buffer[0]['info'] = '';
CommonFunctions::executeProgram('acpiconf', '-i batt', $buffer[0]['info'], false);
if ($buffer[0]['info'] !== '') {
$buffer[0]['info'] .= "POWER_SUPPLY_NAME=batt\n";
}
} elseif (PSI_OS == 'OpenBSD') {
$buffer[0]['info'] = '';
CommonFunctions::executeProgram('sysctl', 'hw.sensors.acpibat0', $buffer[0]['info'], false);
if ($buffer[0]['info'] !== '') {
$buffer[0]['info'] .= "POWER_SUPPLY_NAME=acpibat0\n";
}
} else {
$itemcount = 0;
if ((PSI_OS == 'Linux') && defined('PSI_PLUGIN_BAT_UPOWER') && PSI_PLUGIN_BAT_UPOWER) {
$info = '';
CommonFunctions::executeProgram('upower', '-d', $info, false);
if ($info !== '') {
$infoarray = preg_split("/(?=^Device:|^Daemon:)/m", $info);
foreach ($infoarray as $infoitem) { //upower detection
if (preg_match('/^Device: \/org\/freedesktop\/UPower\/devices\//', $infoitem)
&& !preg_match('/^Device: \/org\/freedesktop\/UPower\/devices\/line_power/', $infoitem)
&& !preg_match('/^Device: \/org\/freedesktop\/UPower\/devices\/DisplayDevice/', $infoitem)) {
$buffer[$itemcount++]['info'] = $infoitem;
}
}
}
}
if ($itemcount == 0) {
$batdevices = glob('/proc/acpi/battery/BAT*/info', GLOB_NOSORT);
if (is_array($batdevices) && (($total = count($batdevices)) > 0)) {
for ($i = 0; $i < $total; $i++) {
$infoitem = '';
$stateitem = '';
$rfts_bi = CommonFunctions::rfts($batdevices[$i], $infoitem, 0, 4096, false);
$rfts_bs = CommonFunctions::rfts(preg_replace('/\/info$/', '/state', $batdevices[$i]), $stateitem, 0, 4096, false);
if (($rfts_bi && ($infoitem!=='')) || ($rfts_bs && ($stateitem!==''))) {
if (preg_match('/^\/proc\/acpi\/battery\/(.+)\/info$/', $batdevices[$i], $batname)) {
if ($infoitem!=='') {
$infoitem .= 'POWER_SUPPLY_NAME='.$batname[1]."\n";
} else {
$stateitem.= 'POWER_SUPPLY_NAME='.$batname[1]."\n";
}
}
if ($infoitem!=='') {
$buffer[$itemcount]['info'] = $infoitem;
}
if ($stateitem!=='') {
$buffer[$itemcount]['state'] = $stateitem;
}
$itemcount++;
}
}
}
}
if ($itemcount == 0) {
$batdevices = glob('/sys/class/power_supply/[Bb][Aa][Tt]*/present', GLOB_NOSORT);
if (is_array($batdevices) && (($total = count($batdevices)) > 0)) {
for ($i = 0; $i < $total; $i++) {
$pbuffer = '';
if (CommonFunctions::rfts($batdevices[$i], $pbuffer, 1, 4096, false) && trim($pbuffer[0]==="1")) {
$infoitem = '';
$stateitem = '';
CommonFunctions::rfts(preg_replace('/\/present$/', '/uevent', $batdevices[$i]), $infoitem, 0, 4096, false);
 
if ((($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/voltage_min_design'))!==null)
|| (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/voltage_max'))!==null)) {
$stateitem .= 'POWER_SUPPLY_VOLTAGE_MIN_DESIGN='.$buffer1."\n";
}
if (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/voltage_max_design'))!==null) {
$stateitem .= 'POWER_SUPPLY_VOLTAGE_MAX_DESIGN='.$buffer1."\n";
}
if (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/voltage_now'))!==null) {
$stateitem .= 'POWER_SUPPLY_VOLTAGE_NOW='.$buffer1."\n";
}
if (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/energy_full'))!==null) {
$stateitem .= 'POWER_SUPPLY_ENERGY_FULL='.$buffer1."\n";
}
if (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/energy_now'))!==null) {
$stateitem .= 'POWER_SUPPLY_ENERGY_NOW='.$buffer1."\n";
}
if (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/charge_full'))!==null) {
$stateitem .= 'POWER_SUPPLY_CHARGE_FULL='.$buffer1."\n";
}
if (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/charge_now'))!==null) {
$stateitem .= 'POWER_SUPPLY_CHARGE_NOW='.$buffer1."\n";
}
if (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/capacity'))!==null) {
$stateitem .= 'POWER_SUPPLY_CAPACITY='.$buffer1."\n";
}
if (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/technology'))!==null) {
$stateitem .= 'POWER_SUPPLY_TECHNOLOGY='.$buffer1."\n";
}
if (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/status'))!==null) {
$stateitem .= 'POWER_SUPPLY_STATUS='.$buffer1."\n";
}
if (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/batt_temp'))!==null) {
$stateitem .= 'POWER_SUPPLY_TEMP='.$buffer1."\n";
}
if (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/batt_vol'))!==null) {
$stateitem .= 'POWER_SUPPLY_VOLTAGE_NOW='.$buffer1."\n";
}
if (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/health'))!==null) {
$stateitem .= 'POWER_SUPPLY_HEALTH='.$buffer1."\n";
}
if (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/manufacturer'))!==null) {
$stateitem .= 'POWER_SUPPLY_MANUFACTURER='.$buffer1."\n";
}
if (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/temp'))!==null) {
$stateitem .= 'POWER_SUPPLY_TEMP='.$buffer1."\n";
}
if (defined('PSI_PLUGIN_BAT_SHOW_SERIAL') && PSI_PLUGIN_BAT_SHOW_SERIAL
&& (($buffer1 = CommonFunctions::rolv($batdevices[$i], '/\/present$/', '/serial_number'))!==null)) {
$stateitem .= 'POWER_SUPPLY_SERIAL_NUMBER='.$buffer1."\n";
}
if (($stateitem!=='') || ($infoitem!=='')) {
if (preg_match('/^\/sys\/class\/power_supply\/(.+)\/present$/', $batdevices[$i], $batname)) {
$stateitem .= 'POWER_SUPPLY_NAME='.$batname[1]."\n";
}
if ($infoitem!=='') {
$buffer[$itemcount]['info'] = $infoitem;
}
if ($stateitem!=='') {
$buffer[$itemcount]['state'] = $stateitem;
}
$itemcount++;
}
}
}
}
}
}
break;
case 'data':
CommonFunctions::rfts(PSI_APP_ROOT."/data/bat_info.txt", $info);
$itemcount = 0;
$infoarray = preg_split("/(?=^Device:|^Daemon:)/m", $info);
foreach ($infoarray as $infoitem) { //upower detection
if (preg_match('/^Device: \/org\/freedesktop\/UPower\/devices\//', $infoitem)
&& !preg_match('/^Device: \/org\/freedesktop\/UPower\/devices\/line_power/', $infoitem)
&& !preg_match('/^Device: \/org\/freedesktop\/UPower\/devices\/DisplayDevice/', $infoitem)) {
$buffer[$itemcount++]['info'] = $infoitem;
}
}
if ($itemcount == 0) {
$buffer[0]['info'] = $info;
}
CommonFunctions::rfts(PSI_APP_ROOT."/data/bat_state.txt", $buffer[0]['state']);
break;
default:
$this->global_error->addConfigError("__construct()", "[bat] ACCESS");
break;
}
for ($bi = 0; $bi < sizeof($buffer); $bi++) {
if (isset($buffer[$bi]['info'])) {
$this->_filecontent[$bi]['info'] = preg_split("/\n/", $buffer[$bi]['info'], -1, PREG_SPLIT_NO_EMPTY);
}
if (isset($buffer[$bi]['state'])) {
$this->_filecontent[$bi]['state'] = preg_split("/\n/", $buffer[$bi]['state'], -1, PREG_SPLIT_NO_EMPTY);
}
}
}
 
/**
* 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;
}
for ($bi = 0; $bi < sizeof($this->_filecontent); $bi++) {
$bat = array();
if (isset($this->_filecontent[$bi]['info'])) foreach ($this->_filecontent[$bi]['info'] as $roworig) {
$roworig = trim($roworig);
if (preg_match('/^[dD]esign capacity:\s*(.*) (.*)$/', $roworig, $data)
|| preg_match('/^energy-full-design:\s*(.*) (.*)$/', $roworig, $data)) {
$bat['design_capacity'] = str_replace(',', '.', $data[1])+0;
if (!isset($bat['capacity_unit'])) {
$bat['capacity_unit'] = trim($data[2]);
} elseif ($bat['capacity_unit'] != trim($data[2])) {
$bat['capacity_unit'] = "???";
}
} elseif (preg_match('/^[lL]ast full capacity:\s*(.*) (.*)$/', $roworig, $data)
|| preg_match('/^energy-full:\s*(.*) (.*)$/', $roworig, $data)) {
$bat['full_capacity'] = str_replace(',', '.', $data[1])+0;
if (!isset($bat['capacity_unit'])) {
$bat['capacity_unit'] = trim($data[2]);
} elseif ($bat['capacity_unit'] != trim($data[2])) {
$bat['capacity_unit'] = "???";
}
} elseif (preg_match('/^energy:\s*(.*) (.*)$/', $roworig, $data)) {
$bat['remaining_capacity'] = str_replace(',', '.', $data[1])+0;
if (!isset($bat['capacity_unit'])) {
$bat['capacity_unit'] = trim($data[2]);
} elseif ($bat['capacity_unit'] != trim($data[2])) {
$bat['capacity_unit'] = "???";
}
} elseif (preg_match('/^cycle count:\s*(.*)$/', $roworig, $data) && ($data[1]>0)) {
$bat['cycle_count'] = $data[1];
} elseif (preg_match('/^[dD]esign voltage:\s*(.*) (.*)$/', $roworig, $data)) {
if ($data[2]=="mV") { // uV or mV detection
$bat['design_voltage'] = $data[1];
} else {
$bat['design_voltage'] = round($data[1]/1000);
}
} elseif (preg_match('/^battery type:\s*(.*)$/', $roworig, $data)
|| preg_match('/^technology:\s*(.*)$/', $roworig, $data)) {
$bat['battery_type'] = $data[1];
} elseif (preg_match('/^OEM info:\s*(.*)$/', $roworig, $data)
|| preg_match('/^vendor:\s*(.*)$/', $roworig, $data)) {
$bat['manufacturer'] = $data[1];
} elseif (preg_match('/^state:\s*(.*)$/', $roworig, $data)) {
$bat['charging_state'] = $data[1];
} elseif (preg_match('/^voltage:\s*(.*) V$/', $roworig, $data)) {
$bat['present_voltage'] = str_replace(',', '.', $data[1])*1000;
} elseif (preg_match('/^percentage:\s*(.*)%$/', $roworig, $data)) {
$bat['capacity'] = $data[1];
} elseif (preg_match('/^Device:\s*\/org\/freedesktop\/UPower\/devices\/([^_]*)_/', $roworig, $data)) {
$bat['name'] = $data[1];
} elseif (preg_match('/^native-path:\s*(.*)$/', $roworig, $data) && isset($data[1][0]) && ($data[1][0]!=='/')) {
$bat['name'] = $data[1];
} elseif (preg_match('/^model:\s*(.*)$/', $roworig, $data)
|| preg_match('/^[Mm]odel number:\s*(.*)$/', $roworig, $data)) {
$bat['model'] = $data[1];
} elseif (defined('PSI_PLUGIN_BAT_SHOW_SERIAL') && PSI_PLUGIN_BAT_SHOW_SERIAL
&& (preg_match('/^serial:\s*(.*)$/', $roworig, $data)
|| preg_match('/^[Ss]erial number:\s*(.*)$/', $roworig, $data))) {
$bat['serialnumber'] = $data[1];
 
} elseif (preg_match('/^POWER_SUPPLY_CYCLE_COUNT=(.*)$/', $roworig, $data) && ($data[1]>0)) {
$bat['cycle_count'] = $data[1];
} elseif (preg_match('/^POWER_SUPPLY_VOLTAGE_MIN_DESIGN=(.*)$/', $roworig, $data)) {
if ($data[1]<100000) { // uV or mV detection
$bat['design_voltage'] = $data[1];
} else {
$bat['design_voltage'] = round($data[1]/1000);
}
} elseif (preg_match('/^POWER_SUPPLY_VOLTAGE_MAX_DESIGN=(.*)$/', $roworig, $data)) {
if ($data[1]<100000) { // uV or mV detection
$bat['design_voltage_max'] = $data[1];
} else {
$bat['design_voltage_max'] = round($data[1]/1000);
}
} elseif (preg_match('/^POWER_SUPPLY_ENERGY_FULL=(.*)$/', $roworig, $data)) {
$bat['full_capacity'] = ($data[1]/1000);
if ($data[1]>=1000000000) { // µWh or nWh detection
if (!isset($bat['capacity_unit'])) {
$bat['capacity_unit'] = "µWh";
} elseif ($bat['capacity_unit'] != "µWh") {
$bat['capacity_unit'] = "???";
}
} else {
if (!isset($bat['capacity_unit'])) {
$bat['capacity_unit'] = "mWh";
} elseif ($bat['capacity_unit'] != "mWh") {
$bat['capacity_unit'] = "???";
}
}
} elseif (preg_match('/^POWER_SUPPLY_CHARGE_FULL=(.*)$/', $roworig, $data)) {
$bat['full_capacity'] = ($data[1]/1000);
if (!isset($bat['capacity_unit'])) {
$bat['capacity_unit'] = "mAh";
} elseif ($bat['capacity_unit'] != "mAh") {
$bat['capacity_unit'] = "???";
}
} elseif (preg_match('/^POWER_SUPPLY_ENERGY_NOW=(.*)$/', $roworig, $data)) {
if (!isset($bat['capacity_unit']) || ($bat['capacity_unit'] == "mWh")) {
$bat['capacity_unit'] = "mWh";
$bat['remaining_capacity'] = ($data[1]/1000);
}
} elseif (preg_match('/^POWER_SUPPLY_CHARGE_NOW=(.*)$/', $roworig, $data)) {
if (!isset($bat['capacity_unit']) || ($bat['capacity_unit'] == "mAh")) {
$bat['capacity_unit'] = "mAh";
$bat['remaining_capacity'] = ($data[1]/1000);
}
 
/* auxiary */
} elseif (preg_match('/^POWER_SUPPLY_ENERGY_FULL_DESIGN=(.*)$/', $roworig, $data)) {
$bat['design_capacity'] = ($data[1]/1000);
if ($data[1]>=1000000000) { // µWh or nWh detection
if (!isset($bat['capacity_unit'])) {
$bat['capacity_unit'] = "µWh";
} elseif ($bat['capacity_unit'] != "µWh") {
$bat['capacity_unit'] = "???";
}
} else {
if (!isset($bat['capacity_unit'])) {
$bat['capacity_unit'] = "mWh";
} elseif ($bat['capacity_unit'] != "mWh") {
$bat['capacity_unit'] = "???";
}
}
} elseif (preg_match('/^POWER_SUPPLY_CHARGE_FULL_DESIGN=(.*)$/', $roworig, $data)) {
$bat['design_capacity'] = ($data[1]/1000);
if (!isset($bat['capacity_unit'])) {
$bat['capacity_unit'] = "mAh";
} elseif ($bat['capacity_unit'] != "mAh") {
$bat['capacity_unit'] = "???";
}
} elseif (preg_match('/^POWER_SUPPLY_VOLTAGE_NOW=(.*)$/', $roworig, $data)) {
if ($data[1]<100000) { // uV or mV detection
$bat['present_voltage'] = $data[1];
} else {
$bat['present_voltage'] = round($data[1]/1000);
}
 
} elseif (preg_match('/^POWER_SUPPLY_CAPACITY=(.*)$/', $roworig, $data)) {
$bat['capacity'] = $data[1];
} elseif (preg_match('/^POWER_SUPPLY_TEMP=(.*)$/', $roworig, $data)) {
$bat['battery_temperature'] = $data[1]/10;
} elseif (preg_match('/^POWER_SUPPLY_TECHNOLOGY=(.*)$/', $roworig, $data)) {
$bat['battery_type'] = $data[1];
} elseif (preg_match('/^POWER_SUPPLY_STATUS=(.*)$/', $roworig, $data)) {
$bat['charging_state'] = $data[1];
} elseif (preg_match('/^POWER_SUPPLY_HEALTH=(.*)$/', $roworig, $data)) {
$bat['battery_condition'] = $data[1];
} elseif (preg_match('/^POWER_SUPPLY_MANUFACTURER=(.*)$/', $roworig, $data)) {
$bat['manufacturer'] = $data[1];
} elseif (preg_match('/^POWER_SUPPLY_NAME=(.*)$/', $roworig, $data)) {
$bat['name'] = $data[1];
} elseif (preg_match('/^POWER_SUPPLY_MODEL_NAME=(.*)$/', $roworig, $data)) {
$bat['model'] = $data[1];
} elseif (defined('PSI_PLUGIN_BAT_SHOW_SERIAL') && PSI_PLUGIN_BAT_SHOW_SERIAL
&& preg_match('/^POWER_SUPPLY_SERIAL_NUMBER=(.*)$/', $roworig, $data)) {
$bat['serialnumber'] = $data[1];
 
/* Darwin */
} elseif (preg_match('/^"MaxCapacity"\s*=\s*(.*)$/', $roworig, $data)) {
$bat['full_capacity'] = $data[1];
} elseif (preg_match('/^"CurrentCapacity"\s*=\s*(.*)$/', $roworig, $data)) {
$bat['remaining_capacity'] = $data[1];
} elseif (preg_match('/^"Voltage"\s*=\s*(.*)$/', $roworig, $data)) {
$bat['present_voltage'] = $data[1];
} elseif (preg_match('/^"BatteryType"\s*=\s*"(.*)"$/', $roworig, $data)) {
$bat['battery_type'] = $data[1];
} elseif (preg_match('/^"Temperature"\s*=\s*(.*)$/', $roworig, $data)) {
if ($data[1]>0) $bat['battery_temperature'] = $data[1]/100;
} elseif (preg_match('/^"DesignCapacity"\s*=\s*(.*)$/', $roworig, $data)) {
$bat['design_capacity'] = $data[1];
} elseif (preg_match('/^"CycleCount"\s*=\s*(.*)$/', $roworig, $data) && ($data[1]>0)) {
$bat['cycle_count'] = $data[1];
} elseif (preg_match('/^"DeviceName"\s*=\s*\"?([^\"]*)\"?$/', $roworig, $data)) {
$bat['model'] = $data[1];
} elseif (defined('PSI_PLUGIN_BAT_SHOW_SERIAL') && PSI_PLUGIN_BAT_SHOW_SERIAL
&& preg_match('/^"BatterySerialNumber"\s*=\s*\"?([^\"]*)\"?$/', $roworig, $data)) {
$bat['serialnumber'] = $data[1];
 
/* auxiary */
} elseif (preg_match('/^"FullyCharged"\s*=\s*Yes$/', $roworig, $data)) {
$bat['charging_state_f'] = true;
} elseif (preg_match('/^"IsCharging"\s*=\s*Yes$/', $roworig, $data)) {
$bat['charging_state_i'] = true;
} elseif (preg_match('/^"ExternalConnected"\s*=\s*Yes$/', $roworig, $data)) {
$bat['charging_state_e'] = true;
 
/* FreeBSD */
} elseif (preg_match('/^Type:\s*(.*)$/', $roworig, $data)) {
$bat['battery_type'] = $data[1];
} elseif (preg_match('/^State:\s*(.*)$/', $roworig, $data)) {
$bat['charging_state'] = $data[1];
} elseif (preg_match('/^Present voltage:\s*(.*) (.*)$/', $roworig, $data)) {
if ($data[2]=="mV") { // uV or mV detection
$bat['present_voltage'] = $data[1];
} else {
$bat['present_voltage'] = round($data[1]/1000);
}
} elseif (preg_match('/^Voltage:\s*(.*) (.*)$/', $roworig, $data)) {
if ($data[2]=="mV") { // uV or mV detection
$bat['present_voltage'] = $data[1];
} else {
$bat['present_voltage'] = round($data[1]/1000);
}
} elseif (preg_match('/^Remaining capacity:\s*(.*)%$/', $roworig, $data)) {
$bat['capacity'] = $data[1];
 
/* OpenBSD */
} elseif (preg_match('/^hw.sensors.acpibat0.volt0=(.*) VDC \(voltage\)$/', $roworig, $data)) {
$bat['design_voltage'] = 1000*$data[1];
} elseif (preg_match('/^hw.sensors.acpibat0.volt1=(.*) VDC \(current voltage\)$/', $roworig, $data)) {
$bat['present_voltage'] = 1000*$data[1];
} elseif (preg_match('/^hw.sensors.acpibat0.watthour0=(.*) Wh \(last full capacity\)$/', $roworig, $data)) {
$bat['full_capacity'] = 1000*$data[1];
if (!isset($bat['capacity_unit'])) {
$bat['capacity_unit'] = "mWh";
} elseif ($bat['capacity_unit'] != "mWh") {
$bat['capacity_unit'] = "???";
}
} elseif (preg_match('/^hw.sensors.acpibat0.watthour4=(.*) Wh \(design capacity\)$/', $roworig, $data)) {
$bat['design_capacity'] = 1000*$data[1];
if (!isset($bat['capacity_unit'])) {
$bat['capacity_unit'] = "mWh";
} elseif ($bat['capacity_unit'] != "mWh") {
$bat['capacity_unit'] = "???";
}
} elseif (preg_match('/^hw.sensors.acpibat0.watthour3=(.*) Wh \(remaining capacity\)/', $roworig, $data)) {
$bat['remaining_capacity'] = 1000*$data[1];
if (!isset($bat['capacity_unit'])) {
$bat['capacity_unit'] = "mWh";
} elseif ($bat['capacity_unit'] != "mWh") {
$bat['capacity_unit'] = "???";
}
} elseif (preg_match('/^hw.sensors.acpibat0.raw0=.* \((.*)\)/', $roworig, $data)) {
$bat['charging_state'] = $data[1];
}
}
if (isset($this->_filecontent[$bi]['state'])) foreach ($this->_filecontent[$bi]['state'] as $roworig) {
$roworig = trim($roworig);
if (preg_match('/^remaining capacity:\s*(.*) (.*)$/', $roworig, $data)) {
if (!isset($bat['capacity_unit']) || ($bat['capacity_unit'] == trim($data[2]))) {
$bat['capacity_unit'] = trim($data[2]);
$bat['remaining_capacity'] = $data[1];
}
} elseif (preg_match('/^present voltage:\s*(.*) (.*)$/', $roworig, $data)) {
if ($data[2]=="mV") { // uV or mV detection
$bat['present_voltage'] = $data[1];
} else {
$bat['present_voltage'] = round($data[1]/1000);
}
} elseif (preg_match('/^charging state:\s*(.*)$/', $roworig, $data)) {
$bat['charging_state'] = $data[1];
 
} elseif (preg_match('/^POWER_SUPPLY_VOLTAGE_MIN_DESIGN=(.*)$/', $roworig, $data)) {
if ($data[1]<100000) { // uV or mV detection
$bat['design_voltage'] = $data[1];
} else {
$bat['design_voltage'] = round($data[1]/1000);
}
} elseif (preg_match('/^POWER_SUPPLY_VOLTAGE_MAX_DESIGN=(.*)$/', $roworig, $data)) {
if ($data[1]<100000) { // uV or mV detection
$bat['design_voltage_max'] = $data[1];
} else {
$bat['design_voltage_max'] = round($data[1]/1000);
}
} elseif (preg_match('/^POWER_SUPPLY_ENERGY_FULL=(.*)$/', $roworig, $data)) {
$bat['full_capacity'] = ($data[1]/1000);
if ($data[1]>=1000000000) { // µWh or nWh detection
if (!isset($bat['capacity_unit'])) {
$bat['capacity_unit'] = "µWh";
} elseif ($bat['capacity_unit'] != "µWh") {
$bat['capacity_unit'] = "???";
}
} else {
if (!isset($bat['capacity_unit'])) {
$bat['capacity_unit'] = "mWh";
} elseif ($bat['capacity_unit'] != "mWh") {
$bat['capacity_unit'] = "???";
}
}
} elseif (preg_match('/^POWER_SUPPLY_CHARGE_FULL=(.*)$/', $roworig, $data)) {
$bat['full_capacity'] = ($data[1]/1000);
if (!isset($bat['capacity_unit'])) {
$bat['capacity_unit'] = "mAh";
} elseif ($bat['capacity_unit'] != "mAh") {
$bat['capacity_unit'] = "???";
}
} elseif (preg_match('/^POWER_SUPPLY_ENERGY_NOW=(.*)$/', $roworig, $data)) {
if (!isset($bat['capacity_unit']) || ($bat['capacity_unit'] == "mWh")) {
$bat['capacity_unit'] = "mWh";
$bat['remaining_capacity'] = ($data[1]/1000);
}
} elseif (preg_match('/^POWER_SUPPLY_CHARGE_NOW=(.*)$/', $roworig, $data)) {
if (!isset($bat['capacity_unit']) || ($bat['capacity_unit'] == "mAh")) {
$bat['capacity_unit'] = "mAh";
$bat['remaining_capacity'] = ($data[1]/1000);
}
} elseif (preg_match('/^POWER_SUPPLY_VOLTAGE_NOW=(.*)$/', $roworig, $data)) {
if ($data[1]<100000) { // uV or mV detection
$bat['present_voltage'] = $data[1];
} else {
$bat['present_voltage'] = round($data[1]/1000);
}
 
} elseif (preg_match('/^POWER_SUPPLY_CAPACITY=(.*)$/', $roworig, $data)) {
$bat['capacity'] = $data[1];
} elseif (preg_match('/^POWER_SUPPLY_TEMP=(.*)$/', $roworig, $data)) {
$bat['battery_temperature'] = $data[1]/10;
} elseif (preg_match('/^POWER_SUPPLY_TECHNOLOGY=(.*)$/', $roworig, $data)) {
$bat['battery_type'] = $data[1];
} elseif (preg_match('/^POWER_SUPPLY_STATUS=(.*)$/', $roworig, $data)) {
$bat['charging_state'] = $data[1];
} elseif (preg_match('/^POWER_SUPPLY_HEALTH=(.*)$/', $roworig, $data)) {
$bat['battery_condition'] = $data[1];
} elseif (preg_match('/^POWER_SUPPLY_MANUFACTURER=(.*)$/', $roworig, $data)) {
$bat['manufacturer'] = $data[1];
} elseif (preg_match('/^POWER_SUPPLY_NAME=(.*)$/', $roworig, $data)) {
$bat['name'] = $data[1];
} elseif (preg_match('/^POWER_SUPPLY_MODEL_NAME=(.*)$/', $roworig, $data)) {
$bat['model'] = $data[1];
} elseif (defined('PSI_PLUGIN_BAT_SHOW_SERIAL') && PSI_PLUGIN_BAT_SHOW_SERIAL
&& preg_match('/^POWER_SUPPLY_SERIAL_NUMBER=(.*)$/', $roworig, $data)) {
$bat['serialnumber'] = $data[1];
}
}
 
if (sizeof($bat)>0) $this->_result[$bi] = $bat;
}
}
 
/**
* generates the XML content for the plugin
*
* @return SimpleXMLElement entire XML content for the plugin
*/
public function xml()
{
foreach ($this->_result as $bat_item) {
$xmlbat = $this->xml->addChild("Bat");
if (isset($bat_item['name'])) {
$xmlbat->addAttribute("Name", $bat_item['name']);
}
if (isset($bat_item['model']) && ($bat_item['model'] !== "1")) {
$xmlbat->addAttribute("Model", $bat_item['model']);
}
if (defined('PSI_PLUGIN_BAT_SHOW_SERIAL') && PSI_PLUGIN_BAT_SHOW_SERIAL
&& isset($bat_item['serialnumber'])
&& ($bat_item['serialnumber'] !== "")
&& ($bat_item['serialnumber'] !== "0")
&& ($bat_item['serialnumber'] !== "0000")) {
$xmlbat->addAttribute("SerialNumber", $bat_item['serialnumber']);
}
if (isset($bat_item['manufacturer'])) {
$xmlbat->addAttribute("Manufacturer", $bat_item['manufacturer']);
}
if ((!isset($bat_item['remaining_capacity']) || (isset($bat_item['full_capacity']) && ($bat_item['full_capacity'] == 0))) &&
isset($bat_item['capacity']) && ($bat_item['capacity']>=0)) {
if (isset($bat_item['capacity_unit']) && ($bat_item['capacity_unit'] !== "???")
&& (isset($bat_item['full_capacity']) && ($bat_item['full_capacity'] > 0))) {
$xmlbat->addAttribute("CapacityUnit", $bat_item['capacity_unit']);
$xmlbat->addAttribute("RemainingCapacity", round($bat_item['capacity']*$bat_item['full_capacity']/100));
$xmlbat->addAttribute("FullCapacity", $bat_item['full_capacity']);
if (isset($bat_item['design_capacity'])) {
$xmlbat->addAttribute("DesignCapacity", $bat_item['design_capacity']);
}
} else {
$xmlbat->addAttribute("FullCapacity", 100);
$xmlbat->addAttribute("RemainingCapacity", $bat_item['capacity']);
$xmlbat->addAttribute("CapacityUnit", "%");
}
} else {
if (isset($bat_item['full_capacity'])) {
if (isset($bat_item['design_capacity'])) {
$xmlbat->addAttribute("DesignCapacity", $bat_item['design_capacity']);
}
$xmlbat->addAttribute("FullCapacity", $bat_item['full_capacity']);
} elseif (isset($bat_item['design_capacity'])) {
$xmlbat->addAttribute("FullCapacity", $bat_item['design_capacity']);
}
if (isset($bat_item['remaining_capacity'])) {
$xmlbat->addAttribute("RemainingCapacity", $bat_item['remaining_capacity']);
}
if (isset($bat_item['capacity_unit'])) {
$xmlbat->addAttribute("CapacityUnit", $bat_item['capacity_unit']);
}
}
if (isset($bat_item['design_voltage']) && ($bat_item['design_voltage']>0)) {
$xmlbat->addAttribute("DesignVoltage", $bat_item['design_voltage']);
if (isset($bat_item['design_voltage_max']) && ($bat_item['design_voltage_max']>0) && ($bat_item['design_voltage_max'] != $bat_item['design_voltage'])) {
$xmlbat->addAttribute("DesignVoltageMax", $bat_item['design_voltage_max']);
}
} elseif (isset($bat_item['design_voltage_max']) && ($bat_item['design_voltage_max']>0)) {
$xmlbat->addAttribute("DesignVoltage", $bat_item['design_voltage_max']);
}
if (isset($bat_item['present_voltage'])) {
$xmlbat->addAttribute("PresentVoltage", $bat_item['present_voltage']);
}
if (isset($bat_item['charging_state'])) {
$xmlbat->addAttribute("ChargingState", $bat_item['charging_state']);
} else {
if (isset($bat_item['charging_state_i'])) {
$xmlbat->addAttribute("ChargingState", 'Charging');
} elseif (!isset($bat_item['charging_state_e'])) {
$xmlbat->addAttribute("ChargingState", 'Discharging');
} elseif (isset($bat_item['charging_state_f'])) {
$xmlbat->addAttribute("ChargingState", 'Fully Charged');
} else {
$xmlbat->addAttribute("ChargingState", 'Unknown state');
}
}
if (isset($bat_item['battery_type'])) {
$xmlbat->addAttribute("BatteryType", $bat_item['battery_type']);
}
if (isset($bat_item['battery_temperature'])) {
$xmlbat->addAttribute("BatteryTemperature", $bat_item['battery_temperature']);
}
if (isset($bat_item['battery_condition'])) {
$xmlbat->addAttribute("BatteryCondition", $bat_item['battery_condition']);
}
if (isset($bat_item['cycle_count'])) {
$xmlbat->addAttribute("CycleCount", $bat_item['cycle_count']);
}
}
 
return $this->xml->getSimpleXmlElement();
}
}
/web/acc/phpsysinfo/plugins/docker/js/docker.js
0,0 → 1,149
/***************************************************************************
* 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: docker.js 661 2014-01-08 11:26:39 aolah76 $
 
 
/*global $, jQuery, buildBlock, datetime, plugin_translate, genlang, createBar */
 
"use strict";
 
var docker_show = false, docker_table;
 
/**
* insert content into table
* @param {jQuery} xml plugin-XML
*/
 
function docker_populate(xml) {
 
var html = "";
 
docker_table.fnClearTable();
 
$("Plugins Plugin_Docker Docker Item", xml).each(function docker_getitem(id) {
var name = "", cpuu= 0, memu = 0, used = 0, limit = 0, netio = "", blockio = "", pids = 0;
name = $(this).attr("Name");
cpuu = parseInt($(this).attr("CPUUsage"), 10);
memu = parseInt($(this).attr("MemoryUsage"), 10);
used = parseInt($(this).attr("MemoryUsed"), 10);
limit = parseInt($(this).attr("MemoryLimit"), 10);
netio = $(this).attr("NetIO");
blockio = $(this).attr("BlockIO");
pids = parseInt($(this).attr("PIDs"), 10);
 
docker_table.fnAddData(["<span style=\"display:none;\">" + name + "</span>" + name, "<span style=\"display:none;\">" + cpuu + "</span>" + createBar(cpuu), "<span style=\"display:none;\">" + memu + "</span>" + createBar(memu), "<span style=\"display:none;\">" + used + "</span>" + formatBytes(used, xml), "<span style=\"display:none;\">" + limit + "</span>" + formatBytes(limit, xml), "<span style=\"display:none;\">" + netio + "</span>" + netio, "<span style=\"display:none;\">" + blockio + "</span>" + blockio, "<span style=\"display:none;\">" + pids + "</span>" + pids]);
docker_show = true;
});
}
 
function docker_buildTable() {
var html = "";
 
html += "<div style=\"overflow-x:auto;\">\n";
html += " <table id=\"Plugin_DockerTable\" class=\"stripeMe\" style=\"border-collapse:collapse;\">\n";
html += " <thead>\n";
html += " <tr>\n";
html += " <th>" + genlang(101, "docker") + "</th>\n";
html += " <th>" + genlang(102, "docker") + "</th>\n";
html += " <th>" + genlang(103, "docker") + "</th>\n";
html += " <th class=\"right\">" + genlang(104, "docker") + "</th>\n";
html += " <th class=\"right\">" + genlang(105, "docker") + "</th>\n";
html += " <th class=\"right\">" + genlang(106, "docker") + "</th>\n";
html += " <th class=\"right\">" + genlang(107, "docker") + "</th>\n";
html += " <th class=\"right\">" + genlang(108, "docker") + "</th>\n";
html += " </tr>\n";
html += " </thead>\n";
html += " <tbody id=\"Plugin_DockerTable-tbody\">\n";
html += " </tbody>\n";
html += " </table>\n";
html += "</div>\n";
$("#Plugin_Docker").append(html);
 
docker_table = $("#Plugin_DockerTable").dataTable({
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bSort": true,
"bInfo": false,
"bProcessing": true,
"bAutoWidth": false,
"bStateSave": true,
"aoColumns": [{
"sType": 'span-string'
}, {
"sType": 'span-number'
}, {
"sType": 'span-number'
}, {
"sType": 'span-number',
"sClass": "right"
}, {
"sType": 'span-number',
"sClass": "right"
}, {
"sType": 'span-string',
"sClass": "right"
}, {
"sType": 'span-string',
"sClass": "right"
}, {
"sType": 'span-number',
"sClass": "right"
}]
});
}
 
/**
* load the xml via ajax
*/
 
function docker_request() {
$("#Reload_DockerTable").attr("title", "reload");
$.ajax({
url: "xml.php?plugin=docker",
dataType: "xml",
error: function docker_error() {
$.jGrowl("Error loading XML document for Plugin docker!");
},
success: function docker_buildblock(xml) {
populateErrors(xml);
docker_populate(xml);
if (docker_show) {
plugin_translate("Docker");
$("#Plugin_Docker").show();
}
}
});
}
 
$(document).ready(function docker_buildpage() {
$("#footer").before(buildBlock("Docker", 1, true));
$("#Plugin_Docker").css("width", "915px");
 
docker_buildTable();
 
docker_request();
 
$("#Reload_DockerTable").click(function docker_reload(id) {
docker_request();
$(this).attr("title", datetime());
});
});
/web/acc/phpsysinfo/plugins/docker/js/docker_bootstrap.js
0,0 → 1,46
function renderPlugin_docker(data) {
 
var directives = {
CPUUsage: {
html: function () {
return '<div class="progress">' +
'<div class="progress-bar progress-bar-info" style="width:' + round(this.CPUUsage,2) + '%;"></div>' +
'</div><div class="percent">' + round(this.CPUUsage,2) + '%</div>';
}
},
MemoryUsage: {
html: function () {
return '<div class="progress">' +
'<div class="progress-bar progress-bar-info" style="width:' + round(this.MemoryUsage,2) + '%;"></div>' +
'</div><div class="percent">' + round(this.MemoryUsage,2) + '%</div>';
}
},
MemoryUsed: {
html: function () {
return formatBytes(this.MemoryUsed, data.Options["@attributes"].byteFormat);
}
},
MemoryLimit: {
html: function () {
return formatBytes(this.MemoryLimit, data.Options["@attributes"].byteFormat);
}
}
};
 
if ((data.Plugins.Plugin_Docker !== undefined) && (data.Plugins.Plugin_Docker.Docker !== undefined)) {
var doitems = items(data.Plugins.Plugin_Docker.Docker.Item);
if (doitems.length > 0) {
var do_memory = [];
do_memory.push_attrs(doitems);
$('#docker-data').render(do_memory, directives);
$('#docker_Name').removeClass("sorttable_sorted"); // reset sort order
sorttable.innerSortFunction.apply($('#docker_Name')[0], []);
 
$('#block_docker').show();
} else {
$('#block_docker').hide();
}
} else {
$('#block_docker').hide();
}
}
/web/acc/phpsysinfo/plugins/docker/lang/en.xml
0,0 → 1,36
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: en.xml 661 2014-01-08 11:26:39Z aolah76 $ -->
<!--
phpSysInfo language file Language: English Created by: Ambrus Sandor Olah
-->
<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_docker_001" name="docker_title">
<exp>Docker</exp>
</expression>
<expression id="plugin_docker_101" name="docker_name">
<exp>Container Name</exp>
</expression>
<expression id="plugin_docker_102" name="docker_cpuusage">
<exp>CPU Usage</exp>
</expression>
<expression id="plugin_docker_103" name="docker_memusage">
<exp>Memory Usage</exp>
</expression>
<expression id="plugin_docker_104" name="docker_memused">
<exp>Memory Used</exp>
</expression>
<expression id="plugin_docker_105" name="docker_memlimit">
<exp>Memory Limit</exp>
</expression>
<expression id="plugin_docker_106" name="docker_netio">
<exp>Net I/O</exp>
</expression>
<expression id="plugin_docker_107" name="docker_blockio">
<exp>Block I/O</exp>
</expression>
<expression id="plugin_docker_108" name="docker_pids">
<exp>PIDs</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/docker/lang/gr.xml
0,0 → 1,36
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: gr.xml 661 2014-01-08 11:26:39Z aolah76 $ -->
<!--
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_docker_001" name="docker_title">
<exp>Docker</exp>
</expression>
<expression id="plugin_docker_101" name="docker_name">
<exp>Όνομα Κοντέινερ</exp>
</expression>
<expression id="plugin_docker_102" name="docker_cpuusage">
<exp>Χρήση Επεξεργαστή</exp>
</expression>
<expression id="plugin_docker_103" name="docker_memusage">
<exp>Χρήση Μνήμης</exp>
</expression>
<expression id="plugin_docker_104" name="docker_memused">
<exp>Μνήμη σε Χρήση</exp>
</expression>
<expression id="plugin_docker_105" name="docker_memlimit">
<exp>Όριο Μνήμης</exp>
</expression>
<expression id="plugin_docker_106" name="docker_netio">
<exp>I/O Δικτύου</exp>
</expression>
<expression id="plugin_docker_107" name="docker_blockio">
<exp>I/O Μπλοκ</exp>
</expression>
<expression id="plugin_docker_108" name="docker_pids">
<exp>PIDs</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/docker/lang/pl.xml
0,0 → 1,36
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: pl.xml 661 2014-01-08 11:26:39Z aolah76 $ -->
<!--
phpSysInfo language file Language: Polish Created by: Mieczysław 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_docker_001" name="docker_title">
<exp>Docker</exp>
</expression>
<expression id="plugin_docker_101" name="docker_name">
<exp>Nazwa Kontenera</exp>
</expression>
<expression id="plugin_docker_102" name="docker_cpuusage">
<exp>Procent procesora</exp>
</expression>
<expression id="plugin_docker_103" name="docker_memusage">
<exp>Procent pamięci</exp>
</expression>
<expression id="plugin_docker_104" name="docker_memused">
<exp>Pamięć</exp>
</expression>
<expression id="plugin_docker_105" name="docker_memlimit">
<exp>Limit pamięci</exp>
</expression>
<expression id="plugin_docker_106" name="docker_netio">
<exp>I/O sieci</exp>
</expression>
<expression id="plugin_docker_107" name="docker_blockio">
<exp>I/O bloków</exp>
</expression>
<expression id="plugin_docker_108" name="docker_pids">
<exp>PIDów</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/docker/class.docker.inc.php
0,0 → 1,135
<?php
/**
* Docker plugin, which displays docker informations
*
* @category PHP
* @package PSI_Plugin_Docker
* @author Mieczyslaw Nalewaj <namiltd@users.sourceforge.net>
* @copyright 2014 phpSysInfo
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
* @version Release: 1.0
* @link http://phpsysinfo.sourceforge.net
*/
 
class Docker extends PSI_Plugin
{
private $_lines;
 
public function __construct($enc)
{
parent::__construct(__CLASS__, $enc);
 
$this->_lines = array();
}
 
/**
* get docker information
*
* @return array docker in array with label
*/
 
private function getDocker()
{
$result = array();
$i = 0;
 
foreach ($this->_lines as $line) {
if ($i > 0) {
$buffer = preg_split("/\s\s+/", $line);
$result[$i]['Name'] = $buffer[0];
$result[$i]['CPUUsage'] = str_replace(',', '.',trim($buffer[1],'%'));
preg_match('/([\d\.]+)(B|KiB|MiB|GiB|TiB|PiB)\s+\/\s+([\d\.]+)(B|KiB|MiB|GiB|TiB|PiB)/', str_replace(',', '.',trim($buffer[2])), $tmpbuf);
switch ($tmpbuf[2]) {
case 'B':
$result[$i]['MemoryUsed'] = $tmpbuf[1];
break;
case 'KiB':
$result[$i]['MemoryUsed'] = 1024*$tmpbuf[1];
break;
case 'MiB':
$result[$i]['MemoryUsed'] = 1024*1024*$tmpbuf[1];
break;
case 'GiB':
$result[$i]['MemoryUsed'] = 1024*1024*1024*$tmpbuf[1];
break;
case 'TiB':
$result[$i]['MemoryUsed'] = 1024*1024*1024*1024*$tmpbuf[1];
break;
case 'PiB':
$result[$i]['MemoryUsed'] = 1024*1024*1024*1024*1025*$tmpbuf[1];
break;
}
switch ($tmpbuf[4]) {
case 'B':
$result[$i]['MemoryLimit'] = $tmpbuf[3];
break;
case 'KiB':
$result[$i]['MemoryLimit'] = 1024*$tmpbuf[3];
break;
case 'MiB':
$result[$i]['MemoryLimit'] = 1024*1024*$tmpbuf[3];
break;
case 'GiB':
$result[$i]['MemoryLimit'] = 1024*1024*1024*$tmpbuf[3];
break;
case 'TiB':
$result[$i]['MemoryLimit'] = 1024*1024*1024*1024*$tmpbuf[3];
break;
case 'PiB':
$result[$i]['MemoryLimit'] = 1024*1024*1024*1024*1025*$tmpbuf[3];
break;
}
$result[$i]['MemoryUsage'] = str_replace(',', '.',trim($buffer[3],'%'));
$result[$i]['NetIO'] = trim($buffer[4]);
$result[$i]['BlockIO'] = trim($buffer[5]);
$result[$i]['PIDs'] = trim($buffer[6]);
}
$i++;
}
 
return $result;
}
 
public function execute()
{
$this->_lines = array();
switch (strtolower(PSI_PLUGIN_DOCKER_ACCESS)) {
case 'command':
$lines = "";
if (CommonFunctions::executeProgram('docker', 'stats --no-stream --format \'table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.MemPerc}}\t{{.NetIO}}\t{{.BlockIO}}\t{{.PIDs}}\'', $lines) && !empty($lines))
$this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
break;
case 'data':
if (CommonFunctions::rfts(PSI_APP_ROOT."/data/docker.txt", $lines) && !empty($lines))
$this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
break;
default:
$this->global_error->addConfigError("execute()", "[docker] ACCESS");
break;
}
}
 
public function xml()
{
if (empty($this->_lines))
return $this->xml->getSimpleXmlElement();
 
$arrBuff = $this->getDocker();
if (sizeof($arrBuff) > 0) {
$docker = $this->xml->addChild("Docker");
foreach ($arrBuff as $arrValue) {
$item = $docker->addChild('Item');
$item->addAttribute('Name', $arrValue['Name']);
$item->addAttribute('CPUUsage', $arrValue['CPUUsage']);
$item->addAttribute('MemoryUsage', $arrValue['MemoryUsage']);
$item->addAttribute('MemoryUsed', Round($arrValue['MemoryUsed']));
$item->addAttribute('MemoryLimit', Round($arrValue['MemoryLimit']));
$item->addAttribute('NetIO', $arrValue['NetIO']);
$item->addAttribute('BlockIO', $arrValue['BlockIO']);
$item->addAttribute('PIDs', $arrValue['PIDs']);
}
}
 
return $this->xml->getSimpleXmlElement();
}
}
/web/acc/phpsysinfo/plugins/docker/docker_bootstrap.html
0,0 → 1,37
<div class="col-lg-12" id="block_docker" style="display:none;">
<div class="card" id="panel_docker" style="display:none;">
<div class="card-header"><span class="lang_plugin_docker_001">Docker</span>
<div id="reload_docker" class="reload" title="reload"></div>
</div>
<div class="card-body">
<div class="table-responsive">
<table id="docker" class="table table-hover table-sm sortable">
<thead>
<tr>
<th id="docker_Name"><span class="lang_plugin_docker_101">Name</span></th>
<th><span class="lang_plugin_docker_102">CPU Usage</span></th>
<th><span class="lang_plugin_docker_103">Memory Usage</span></th>
<th class="rightCell sorttable_numeric"><span class="lang_plugin_docker_104">Memory Used</span></th>
<th class="rightCell sorttable_numeric"><span class="lang_plugin_docker_105">Memory Limit</span></th>
<th class="rightCell"><span class="lang_plugin_docker_106">Net I/O</span></th>
<th class="rightCell"><span class="lang_plugin_docker_107">Block I/O</span></th>
<th class="rightCell sorttable_numeric"><span class="lang_plugin_docker_108">PIDs</span></th>
</tr>
</thead>
<tbody id="docker-data">
<tr>
<th><span data-bind="Name"></span></th>
<td><span data-bind="CPUUsage"></span></td>
<td><span data-bind="MemoryUsage"></span></td>
<td class="rightCell"><span data-bind="MemoryUsed"></span></td>
<td class="rightCell"><span data-bind="MemoryLimit"></span></td>
<td class="rightCell"><span data-bind="NetIO"></span></td>
<td class="rightCell"><span data-bind="BlockIO"></span></td>
<td class="rightCell"><span data-bind="PIDs"></span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
/web/acc/phpsysinfo/plugins/hyperv/css/hyperv.css
0,0 → 1,6
/*
$Id: hyperv.css 661 2012-08-27 11:26:39Z namiltd $
*/
#Plugin_HyperVTable thead tr th {
cursor: pointer;
}
/web/acc/phpsysinfo/plugins/hyperv/gfx/offline.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/web/acc/phpsysinfo/plugins/hyperv/gfx/online.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/web/acc/phpsysinfo/plugins/hyperv/js/hyperv.js
0,0 → 1,127
/***************************************************************************
* 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: hyperv.js 679 2012-09-04 10:10:11Z namiltd $
//
 
/*global $, jQuery, buildBlock, datetime, plugin_translate, genlang */
 
"use strict";
 
var hyperv_show = false, hyperv_table;
 
//appendcss("./plugins/hyperv/css/hyperv.css");
 
/**
* insert content into table
* @param {jQuery} xml plugin-XML
*/
function hyperv_populate(xml) {
var name = "", status = 0, state = "";
 
hyperv_table.fnClearTable();
 
$("Plugins Plugin_HyperV Machine", xml).each(function hyperv_getprocess(idp) {
name = $(this).attr("Name");
status = parseInt($(this).attr("State"), 10);
if (!isNaN(status) && (status === 2)) {
state = "<span style=\"display:none;\">" + status.toString() + "</span><img src=\"./plugins/hyperv/gfx/online.gif\" alt=\"online\" title=\"\" style=\"width:18px;\" />";
}
else {
state = "<span style=\"display:none;\">" + status.toString() + "</span><img src=\"./plugins/hyperv/gfx/offline.gif\" alt=\"offline\" title=\"\" style=\"width:18px;\" />";
}
hyperv_table.fnAddData(["<span style=\"display:none;\">" + name + "</span>" + name, state]);
hyperv_show = true;
});
}
 
/**
* fill the plugin block with table structure
*/
function hyperv_buildTable() {
var html = "";
 
html += "<div style=\"overflow-x:auto;\">\n";
html += " <table id=\"Plugin_HyperVTable\" style=\"border-collapse:collapse;\">\n";
html += " <thead>\n";
html += " <tr>\n";
html += " <th>" + genlang(2, "HyperV") + "</th>\n";
html += " <th>" + genlang(3, "HyperV") + "</th>\n";
html += " </tr>\n";
html += " </thead>\n";
html += " <tbody>\n";
html += " </tbody>\n";
html += " </table>\n";
html += "</div>\n";
 
$("#Plugin_HyperV").append(html);
 
hyperv_table = $("#Plugin_HyperVTable").dataTable({
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bSort": true,
"bInfo": false,
"bProcessing": true,
"bAutoWidth": false,
"bStateSave": true,
"aoColumns": [{
"sType": 'span-string'
}, {
"sType": 'span-number'
}]
});
}
 
/**
* load the xml via ajax
*/
function hyperv_request() {
$("#Reload_HyperVTable").attr("title", "reload");
$.ajax({
url: "xml.php?plugin=HyperV",
dataType: "xml",
error: function hyperv_error() {
$.jGrowl("Error loading XML document for Plugin HyperV!");
},
success: function hyperv_buildblock(xml) {
populateErrors(xml);
hyperv_populate(xml);
if (hyperv_show) {
plugin_translate("HyperV");
$("#Plugin_HyperV").show();
}
}
});
}
 
$(document).ready(function hyperv_buildpage() {
$("#footer").before(buildBlock("HyperV", 1, true));
$("#Plugin_HyperV").css("width", "451px");
 
hyperv_buildTable();
 
hyperv_request();
 
$("#Reload_HyperVTable").click(function hyperv_reload(id) {
hyperv_request();
$(this).attr("title", datetime());
});
});
/web/acc/phpsysinfo/plugins/hyperv/js/hyperv_bootstrap.js
0,0 → 1,32
function renderPlugin_hyperv(data) {
 
var directives = {
State1: {
text: function () {
return (this.State === "2") ? "ON" : "";
}
},
State0: {
text: function () {
return (this.State === "2") ? "" : "OFF";
}
}
};
 
if (data.Plugins.Plugin_HyperV !== undefined) {
var hvitems = items(data.Plugins.Plugin_HyperV.Machine);
if (hvitems.length > 0) {
var hv_memory = [];
hv_memory.push_attrs(hvitems);
$('#hyperv-data').render(hv_memory, directives);
$('#hyperv_Name').removeClass("sorttable_sorted"); // reset sort order
sorttable.innerSortFunction.apply($('#hyperv_Name')[0], []);
 
$('#block_hyperv').show();
} else {
$('#block_hyperv').hide();
}
} else {
$('#block_hyperv').hide();
}
}
/web/acc/phpsysinfo/plugins/hyperv/lang/en.xml
0,0 → 1,18
<?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: Mieczysław 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_hyperv_001" name="hyperv_title">
<exp>Hyper-V Status</exp>
</expression>
<expression id="plugin_hyperv_002" name="hyperv_name">
<exp>Machine Name</exp>
</expression>
<expression id="plugin_hyperv_003" name="hyperv_state">
<exp>State</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/hyperv/lang/gr.xml
0,0 → 1,18
<?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_hyperv_001" name="hyperv_title">
<exp>Κατάσταση Hyper-V</exp>
</expression>
<expression id="plugin_hyperv_002" name="hyperv_name">
<exp>Όνομα Μηχανής</exp>
</expression>
<expression id="plugin_hyperv_003" name="hyperv_state">
<exp>Κατάσταση</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/hyperv/lang/pl.xml
0,0 → 1,18
<?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: Mieczysław 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_hyperv_001" name="hyperv_title">
<exp>Status Hyper-V</exp>
</expression>
<expression id="plugin_hyperv_002" name="hyperv_name">
<exp>Nazwa maszyny</exp>
</expression>
<expression id="plugin_hyperv_003" name="hyperv_state">
<exp>Stan</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/hyperv/class.hyperv.inc.php
0,0 → 1,102
<?php
/**
* HyperV Plugin, which displays Hyper-V machines state
*
* @category PHP
* @package PSI_Plugin_HyperV
* @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.hyperv.inc.php 661 2012-08-27 11:26:39Z namiltd $
* @link http://phpsysinfo.sourceforge.net
*/
class HyperV extends PSI_Plugin
{
 
/**
* variable, which holds the content of the command
* @var array
*/
private $_filecontent = array();
 
/**
* read the data into an internal array and also call the parent constructor
*
* @param String $enc target encoding
*/
public function __construct($enc)
{
parent::__construct(__CLASS__, $enc);
}
 
/**
* doing all tasks to get the required informations that the plugin needs
* result is stored in an internal array<br>the array is build like a tree,
* so that it is possible to get only a specific process with the childs
*
* @return void
*/
public function execute()
{
switch (strtolower(PSI_PLUGIN_HYPERV_ACCESS)) {
case 'command':
if (PSI_OS == 'WINNT') {
try {
$objLocator = new COM('WbemScripting.SWbemLocator');
$wmic = $objLocator->ConnectServer('', 'root\CIMv2');
$buffer = CommonFunctions::getWMI($wmic, 'Win32_OperatingSystem', array('Version'));
if ($buffer && isset($buffer[0]) && isset($buffer[0]['Version'])) {
if (version_compare($buffer[0]['Version'], "6.2", ">=")) { // minimal windows 2012 or windows 8
$wmi = $objLocator->ConnectServer('', 'root\virtualization\v2');
} elseif (version_compare($buffer[0]['Version'], "6.0", ">=")) { // minimal windows 2008
$wmi = $objLocator->ConnectServer('', 'root\virtualization');
} else {
$this->global_error->addError("HyperV plugin", "Unsupported Windows version");
break;
}
} else {
$this->global_error->addError("HyperV plugin", "Unsupported Windows version");
break;
}
$result = CommonFunctions::getWMI($wmi, 'MSVM_ComputerSystem', array('InstallDate', 'EnabledState', 'ElementName'));
if (is_array($result)) foreach ($result as $machine) {
if ($machine['InstallDate'] !== null) {
$this->_filecontent[] = array($machine['ElementName'], $machine['EnabledState']);
}
}
} catch (Exception $e) {
}
}
break;
case 'data':
CommonFunctions::rfts(PSI_APP_ROOT."/data/hyperv.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;
default:
$this->global_error->addConfigError("execute()", "[hyperv] ACCESS");
break;
}
}
 
/**
* generates the XML content for the plugin
*
* @return SimpleXMLElement entire XML content for the plugin
*/
public function xml()
{
foreach ($this->_filecontent as $machine) {
$xmlmach = $this->xml->addChild("Machine");
$xmlmach->addAttribute("Name", $machine[0]);
$xmlmach->addAttribute("State", $machine[1]);
}
 
return $this->xml->getSimpleXmlElement();
}
}
/web/acc/phpsysinfo/plugins/hyperv/hyperv_bootstrap.html
0,0 → 1,25
<div class="col-lg-6" id="block_hyperv" style="display:none;">
<div class="card" id="panel_hyperv" style="display:none;">
<div class="card-header"><span class="lang_plugin_hyperv_001">Hyper-V Status</span>
<div id="reload_hyperv" class="reload" title="reload"></div>
</div>
<div class="card-body">
<div class="table-responsive">
<table id="hyperv" class="table table-hover table-sm sortable">
<thead>
<tr>
<th id="hyperv_Name"><span class="lang_plugin_hyperv_002">Machine Name</span></th>
<th class="rightCell"><span class="lang_plugin_hyperv_003">State</span></th>
</tr>
</thead>
<tbody id="hyperv-data">
<tr>
<th><span data-bind="Name"></span></th>
<td class="rightCell"><span class="badge badge-success" data-bind="State1"></span><span class="badge badge-danger" data-bind="State0"></span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
/web/acc/phpsysinfo/plugins/iptables/js/iptables.js
0,0 → 1,104
/***************************************************************************
* 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: iptables.js 661 2016-05-03 11:26:39 erpomata $
 
 
/*global $, jQuery, buildBlock, datetime, plugin_translate, genlang, createBar */
 
"use strict";
 
var iptables_show = false;
 
/**
* insert content into table
* @param {jQuery} xml plugin-XML
*/
 
function iptables_populate(xml) {
 
var html = "";
$("Plugins Plugin_iptables iptables Item", xml).each(function iptables_getitem(idp) {
html += " <tr>\n";
html += " <td style=\"font-weight:normal\">" + $(this).attr("Rule") + "</td>\n";
html += " </tr>\n";
iptables_show = true;
});
 
$("#Plugin_iptablesTable-tbody").empty().append(html);
$('#Plugin_iptablesTable tr:nth-child(even)').addClass('even');
 
}
 
function iptables_buildTable() {
var html = "";
 
html += "<div style=\"overflow-x:auto;\">\n";
html += " <table id=\"Plugin_iptablesTable\" class=\"stripeMe\" style=\"border-collapse:collapse;\">\n";
html += " <thead>\n";
html += " <tr>\n";
html += " <th>" + genlang(101, "iptables") + "</th>\n";
html += " </tr>\n";
html += " </thead>\n";
html += " <tbody id=\"Plugin_iptablesTable-tbody\">\n";
html += " </tbody>\n";
html += " </table>\n";
html += "</div>\n";
 
$("#Plugin_iptables").append(html);
}
 
/**
* load the xml via ajax
*/
 
function iptables_request() {
$("#Reload_iptablesTable").attr("title", "reload");
$.ajax({
url: "xml.php?plugin=iptables",
dataType: "xml",
error: function iptables_error() {
$.jGrowl("Error loading XML document for Plugin iptables!");
},
success: function iptables_buildblock(xml) {
populateErrors(xml);
iptables_populate(xml);
if (iptables_show) {
plugin_translate("iptables");
$("#Plugin_iptables").show();
}
}
});
}
 
$(document).ready(function iptables_buildpage() {
$("#footer").before(buildBlock("iptables", 1, true));
$("#Plugin_iptables").css("width", "915px");
 
iptables_buildTable();
 
iptables_request();
 
$("#Reload_iptablesTable").click(function iptables_reload(id) {
iptables_request();
$(this).attr("title", datetime());
});
});
/web/acc/phpsysinfo/plugins/iptables/js/iptables_bootstrap.js
0,0 → 1,25
function renderPlugin_iptables(data) {
 
var directives = {
Rule: {
html: function () {
return this.Rule;
}
}
};
 
if ((data.Plugins.Plugin_iptables !== undefined) && (data.Plugins.Plugin_iptables.iptables !== undefined)) {
var upitems = items(data.Plugins.Plugin_iptables.iptables.Item);
if (upitems.length > 0) {
var up_memory = [];
up_memory.push_attrs(upitems);
$('#iptables-data').render(up_memory, directives);
 
$('#block_iptables').show();
} else {
$('#block_iptables').hide();
}
} else {
$('#block_iptables').hide();
}
}
/web/acc/phpsysinfo/plugins/iptables/lang/en.xml
0,0 → 1,15
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: en.xml 661 2016-05-03 11:26:39Z erpomata $ -->
<!--
phpSysInfo language file Language: English Created by: Ambrus Sandor Olah
-->
<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_iptables_001" name="iptables_hash">
<exp>Iptables</exp>
</expression>
<expression id="plugin_iptables_101" name="iptables_rule">
<exp>Rule</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/iptables/lang/gr.xml
0,0 → 1,15
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: gr.xml 661 2016-05-03 11:26:39Z erpomata $ -->
<!--
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_iptables_001" name="iptables_hash">
<exp>Iptables</exp>
</expression>
<expression id="plugin_iptables_101" name="iptables_rule">
<exp>Κανόνας</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/iptables/lang/ru.xml
0,0 → 1,14
<?xml version="1.0" encoding="utf-8"?>
<!--
phpSysInfo language file Language: Russian Created by: Gemorroj
-->
<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_iptables_001" name="iptables_hash">
<exp>Iptables</exp>
</expression>
<expression id="plugin_iptables_101" name="iptables_rule">
<exp>Правило</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/iptables/class.iptables.inc.php
0,0 → 1,79
<?php
/**
* Iptables Plugin, which displays all iptables informations available
*
* @category PHP
* @package PSI_Plugin_Iptables
* @author erpomata
* @copyright 2016 phpSysInfo
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
* @version Release: 1.0
* @link http://phpsysinfo.sourceforge.net
*/
 
class iptables extends PSI_Plugin
{
private $_lines;
 
public function __construct($enc)
{
parent::__construct(__CLASS__, $enc);
 
$this->_lines = array();
}
 
/**
* get iptables information
*
* @return array iptables in array with label
*/
 
private function getIptables()
{
$result = array();
$i = 0;
 
foreach ($this->_lines as $line) {
$result[$i]['rule'] = $line;
$i++;
}
 
return $result;
}
 
public function execute()
{
$this->_lines = array();
switch (strtolower(PSI_PLUGIN_IPTABLES_ACCESS)) {
case 'command':
$lines = "";
if (CommonFunctions::executeProgram('iptables-save', "", $lines) && !empty($lines))
$this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
break;
case 'data':
if (CommonFunctions::rfts(PSI_APP_ROOT."/data/iptables.txt", $lines) && !empty($lines))
$this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
break;
default:
$this->global_error->addConfigError("execute()", "[iptables] ACCESS");
break;
}
}
 
public function xml()
{
if (empty($this->_lines))
return $this->xml->getSimpleXmlElement();
 
$arrBuff = $this->getIptables();
if (sizeof($arrBuff) > 0) {
$iptables = $this->xml->addChild("iptables");
foreach ($arrBuff as $arrValue) {
$item = $iptables->addChild('Item');
$item->addAttribute('Rule', $arrValue['rule']);
}
}
 
return $this->xml->getSimpleXmlElement();
}
}
/web/acc/phpsysinfo/plugins/iptables/iptables_bootstrap.html
0,0 → 1,23
<div class="col-lg-12" id="block_iptables" style="display:none;">
<div class="card" id="panel_iptables" style="display:none;">
<div class="card-header"><span class="lang_plugin_iptables_001">Iptables</span>
<div id="reload_iptables" class="reload" title="reload"></div>
</div>
<div class="card-body">
<div class="table-responsive">
<table id="iptables" class="table table-hover table-sm">
<thead>
<tr>
<th><span class="lang_plugin_iptables_101">Rule</span></th>
</tr>
</thead>
<tbody id="iptables-data">
<tr>
<td><span data-bind="Rule"></span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
/web/acc/phpsysinfo/plugins/pingtest/css/pingtest.css
0,0 → 1,6
/*
$Id: pingtest.css 1 2017-09-02 10:17:22Z namiltd $
*/
#Plugin_PingTestTable thead tr th {
cursor: pointer;
}
/web/acc/phpsysinfo/plugins/pingtest/js/pingtest.js
0,0 → 1,126
/***************************************************************************
* 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: pingtest.js 1 2017-09-01 08:23:45Z namiltd $
//
 
/*global $, jQuery, buildBlock, datetime, plugin_translate, genlang */
 
"use strict";
 
var pingtest_show = false, pingtest_table;
 
 
/**
* insert content into table
* @param {jQuery} xml plugin-XML
*/
function pingtest_populate(xml) {
var address = "", pingtime = 0, state = "";
 
pingtest_table.fnClearTable();
 
$("Plugins Plugin_PingTest Ping", xml).each(function pingtest_getprocess(idp) {
address = $(this).attr("Address");
pingtime = parseInt($(this).attr("PingTime"), 10);
if (!isNaN(pingtime)) {
state = "<span style=\"display:none;\">" + pingtime.toString() + "</span>" + pingtime.toString() + "&nbsp;ms";
}
else {
state = "<span style=\"display:none;\">1000000</span>" + genlang(4, "PingTest");
}
pingtest_table.fnAddData(["<span style=\"display:none;\">" + address + "</span>" + address, state]);
pingtest_show = true;
});
}
 
/**
* fill the plugin block with table structure
*/
function pingtest_buildTable() {
var html = "";
 
html += "<div style=\"overflow-x:auto;\">\n";
html += " <table id=\"Plugin_PingTestTable\" style=\"border-collapse:collapse;\">\n";
html += " <thead>\n";
html += " <tr>\n";
html += " <th>" + genlang(2, "PingTest") + "</th>\n";
html += " <th>" + genlang(3, "PingTest") + "</th>\n";
html += " </tr>\n";
html += " </thead>\n";
html += " <tbody>\n";
html += " </tbody>\n";
html += " </table>\n";
html += "</div>\n";
 
$("#Plugin_PingTest").append(html);
 
pingtest_table = $("#Plugin_PingTestTable").dataTable({
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bSort": true,
"bInfo": false,
"bProcessing": true,
"bAutoWidth": false,
"bStateSave": true,
"aoColumns": [{
"sType": 'span-ip'
}, {
"sType": 'span-number'
}]
});
}
 
/**
* load the xml via ajax
*/
function pingtest_request() {
$("#Reload_PingTestTable").attr("title", "reload");
$.ajax({
url: "xml.php?plugin=PingTest",
dataType: "xml",
error: function pingtest_error() {
$.jGrowl("Error loading XML document for Plugin PingTest!");
},
success: function pingtest_buildblock(xml) {
populateErrors(xml);
pingtest_populate(xml);
if (pingtest_show) {
plugin_translate("PingTest");
$("#Plugin_PingTest").show();
}
}
});
}
 
$(document).ready(function pingtest_buildpage() {
$("#footer").before(buildBlock("PingTest", 1, true));
$("#Plugin_PingTest").css("width", "451px");
 
pingtest_buildTable();
 
pingtest_request();
 
$("#Reload_PingTestTable").click(function pingtest_reload(id) {
pingtest_request();
$(this).attr("title", datetime());
});
});
/web/acc/phpsysinfo/plugins/pingtest/js/pingtest_bootstrap.js
0,0 → 1,27
function renderPlugin_pingtest(data) {
 
var directives = {
PingTime: {
html: function () {
return ((this.PingTime === "lost") ? genlang(4, 'pingtest') : this.PingTime + String.fromCharCode(160) + "ms");
}
}
};
 
if (data.Plugins.Plugin_PingTest !== undefined) {
var psitems = items(data.Plugins.Plugin_PingTest.Ping);
if (psitems.length > 0) {
var pt_memory = [];
pt_memory.push_attrs(psitems);
$('#pingtest-data').render(pt_memory, directives);
$('#pingtest_Address').removeClass("sorttable_sorted"); // reset sort order
sorttable.innerSortFunction.apply($('#pingtest_Address')[0], []);
 
$('#block_pingtest').show();
} else {
$('#block_pingtest').hide();
}
} else {
$('#block_pingtest').hide();
}
}
/web/acc/phpsysinfo/plugins/pingtest/lang/de.xml
0,0 → 1,21
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: de.xml 661 2017-09-01 09:01:17Z namiltd $ -->
<!--
phpSysInfo language file Language: German Created by: Mieczyslaw Nalewaj
-->
<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_pingtest_001" name="pingtest_title">
<exp>Ping-Test</exp>
</expression>
<expression id="plugin_pingtest_002" name="pingtest_address">
<exp>Adresse</exp>
</expression>
<expression id="plugin_pingtest_003" name="pingtest_pingtime">
<exp>Pingzeit</exp>
</expression>
<expression id="plugin_pingtest_004" name="pingtest_lost">
<exp>verloren</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/pingtest/lang/en.xml
0,0 → 1,21
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: en.xml 661 2017-09-01 09:01:17Z 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_pingtest_001" name="pingtest_title">
<exp>Ping Test</exp>
</expression>
<expression id="plugin_pingtest_002" name="pingtest_address">
<exp>Address</exp>
</expression>
<expression id="plugin_pingtest_003" name="pingtest_pingtime">
<exp>Ping Time</exp>
</expression>
<expression id="plugin_pingtest_004" name="pingtest_lost">
<exp>lost</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/pingtest/lang/gr.xml
0,0 → 1,21
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: gr.xml 661 2017-09-01 09:01:17Z 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_pingtest_001" name="pingtest_title">
<exp>Δοκιμή Ping</exp>
</expression>
<expression id="plugin_pingtest_002" name="pingtest_address">
<exp>Διεύθυνση</exp>
</expression>
<expression id="plugin_pingtest_003" name="pingtest_pingtime">
<exp>Χρόνος Απόκρισης</exp>
</expression>
<expression id="plugin_pingtest_004" name="pingtest_lost">
<exp>χάθηκε</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/pingtest/lang/pl.xml
0,0 → 1,21
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: pl.xml 661 2017-09-01 09:01:17Z 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_pingtest_001" name="pingtest_title">
<exp>Test Pingu</exp>
</expression>
<expression id="plugin_pingtest_002" name="pingtest_address">
<exp>Adres</exp>
</expression>
<expression id="plugin_pingtest_003" name="pingtest_pingtime">
<exp>Czas Pingu</exp>
</expression>
<expression id="plugin_pingtest_004" name="pingtest_lost">
<exp>zagubiony</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/pingtest/class.pingtest.inc.php
0,0 → 1,144
<?php
/**
* PingTime Plugin
*
* PHP version 5
*
* @category PHP
* @package PSI_Plugin_PingTest
* @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 SVN: $Id: class.pingtest.inc.php 1 2017-09-01 09:01:15Z namiltd $
* @link http://phpsysinfo.sourceforge.net
*/
class PingTest 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 target encoding
*/
public function __construct($enc)
{
parent::__construct(__CLASS__, $enc);
if (defined('PSI_PLUGIN_PINGTEST_ADDRESSES') && is_string(PSI_PLUGIN_PINGTEST_ADDRESSES)) {
if (preg_match(ARRAY_EXP, PSI_PLUGIN_PINGTEST_ADDRESSES)) {
$addresses = eval(PSI_PLUGIN_PINGTEST_ADDRESSES);
} else {
$addresses = array(PSI_PLUGIN_PINGTEST_ADDRESSES);
}
 
switch (strtolower(PSI_PLUGIN_PINGTEST_ACCESS)) {
case 'command':
if (PSI_OS == 'WINNT') {
$params = "-n 1";
if (defined('PSI_PLUGIN_PINGTEST_TIMEOUT')) {
if (($tout = max(intval(PSI_PLUGIN_PINGTEST_TIMEOUT), 0)) > 0) {
$params .= " -w ".(1000*$tout);
}
} else {
$params .= " -w 2000";
}
 
} else {
$params = "-c 1";
if (defined('PSI_PLUGIN_PINGTEST_TIMEOUT')) {
if (($tout = max(intval(PSI_PLUGIN_PINGTEST_TIMEOUT), 0)) > 0) {
$params .= " -W ".$tout;
}
} else {
$params .= " -W 2";
}
}
foreach ($addresses as $address) {
CommonFunctions::executeProgram("ping".((strpos($address, ':') === false)?'':((PSI_OS !== 'WINNT')?'6':'')), $params." ".$address, $buffer, PSI_DEBUG);
if ((strlen($buffer) > 0) && preg_match("/[=<]([\d\.]+)\s*ms/", $buffer, $tmpout)) {
$this->_filecontent[] = array($address, $tmpout[1]);
}
}
break;
case 'data':
CommonFunctions::rfts(PSI_APP_ROOT."/data/pingtest.txt", $buffer);
$addresses = preg_split("/\n/", $buffer, -1, PREG_SPLIT_NO_EMPTY);
foreach ($addresses as $address) {
$pt = preg_split("/[\s]?\|[\s]?/", $address, -1, PREG_SPLIT_NO_EMPTY);
if (count($pt) == 2) {
$this->_filecontent[] = array(trim($pt[0]), trim($pt[1]));
}
}
break;
default:
$this->global_error->addConfigError("__construct()", "[pingtest] ACCESS");
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 (defined('PSI_PLUGIN_PINGTEST_ADDRESSES') && is_string(PSI_PLUGIN_PINGTEST_ADDRESSES)) {
if (preg_match(ARRAY_EXP, PSI_PLUGIN_PINGTEST_ADDRESSES)) {
$addresses = eval(PSI_PLUGIN_PINGTEST_ADDRESSES);
} else {
$addresses = array(PSI_PLUGIN_PINGTEST_ADDRESSES);
}
foreach ($addresses as $address) {
$this->_result[] = array($address, $this->address_inarray($address, $this->_filecontent));
}
}
}
 
/**
* generates the XML content for the plugin
*
* @return SimpleXMLElement entire XML content for the plugin
*/
public function xml()
{
foreach ($this->_result as $pt) {
$xmlps = $this->xml->addChild("Ping");
$xmlps->addAttribute("Address", $pt[0]);
$xmlps->addAttribute("PingTime", $pt[1]);
}
 
return $this->xml->getSimpleXmlElement();
}
 
/**
* checks an array if pingtest address is in
*
* @param mixed $needle what to find
* @param array $haystack where to find
*
* @return pingtime - found<br>"lost" - not found
*/
private function address_inarray($needle, $haystack)
{
foreach ($haystack as $stalk) {
if ($needle === $stalk[0]) {
return $stalk[1];
}
}
 
return "lost";
}
}
/web/acc/phpsysinfo/plugins/pingtest/pingtest_bootstrap.html
0,0 → 1,25
<div class="col-lg-6" id="block_pingtest" style="display:none;">
<div class="card" id="panel_pingtest" style="display:none;">
<div class="card-header"><span class="lang_plugin_pingtest_001">Ping Test</span>
<div id="reload_pingtest" class="reload" title="reload"></div>
</div>
<div class="card-body">
<div class="table-responsive">
<table id="pingtest" class="table table-hover table-sm sortable">
<thead>
<tr>
<th class="sorttable_ip" id="pingtest_Address"><span class="lang_plugin_pingtest_002">Address</span></th>
<th class="rightCell"><span class="lang_plugin_pingtest_003">Ping Time</span></th>
</tr>
</thead>
<tbody id="pingtest-data">
<tr>
<th><span data-bind="Address"></span></th>
<td class="rightCell"><span data-bind="PingTime"></span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
/web/acc/phpsysinfo/sample/distrotest/4MLinux/10.0-server.txt
0,0 → 1,2
----------/etc/4MLinux-version----------
10.0
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/ALT/6.0.0.txt
0,0 → 1,14
----------lsb_release -a----------
LSB Version: n/a
Distributor ID: ALT
Description: ALT Linux 6.0.0 Centaurus (Cheiron)
Release: 6.0.0
Codename: Cheiron
----------/etc/altlinux-release----------
ALT Linux 6.0.0 Centaurus (Cheiron)
----------/etc/fedora-release----------
ALT Linux 6.0.0 Centaurus (Cheiron)
----------/etc/redhat-release----------
ALT Linux 6.0.0 Centaurus (Cheiron)
----------/etc/system-release----------
ALT Linux 6.0.0 Centaurus (Cheiron)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/ALT/7.0.0-Simply.txt
0,0 → 1,18
----------/etc/altlinux-release----------
Simply Linux 7.0.0 (Dory)
----------/etc/fedora-release----------
Simply Linux 7.0.0 (Dory)
----------/etc/os-release----------
NAME="Simply Linux"
VERSION="7.0.0 (Dory)"
ID=altlinux
VERSION_ID=7.0.0
PRETTY_NAME="Simply Linux 7.0.0 (Dory)"
ANSI_COLOR="1;36"
CPE_NAME="cpe:/o:alt linux:slinux:7.0.0"
HOME_URL="http://simplylinux.ru/"
BUG_REPORT_URL="https://bugs.altlinux.org/"
----------/etc/redhat-release----------
Simply Linux 7.0.0 (Dory)
----------/etc/system-release----------
Simply Linux 7.0.0 (Dory)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/ALT/7.0.1.txt
0,0 → 1,18
----------/etc/altlinux-release----------
ALT Linux 7.0.1 Centaurus (Pholus)
----------/etc/fedora-release----------
ALT Linux 7.0.1 Centaurus (Pholus)
----------/etc/os-release----------
NAME="ALT Linux"
VERSION="7.0.1 (Pholus)"
ID=altlinux
VERSION_ID=6.9.0
PRETTY_NAME="ALT Linux 7.0.1 Centaurus (Pholus)"
ANSI_COLOR="1;33"
CPE_NAME="cpe:/o:alt linux:centaurus:7.0.1"
HOME_URL="http://altlinux.ru/"
BUG_REPORT_URL="https://bugs.altlinux.org/"
----------/etc/redhat-release----------
ALT Linux 7.0.1 Centaurus (Pholus)
----------/etc/system-release----------
ALT Linux 7.0.1 Centaurus (Pholus)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Alpine/2.6.4.txt
0,0 → 1,2
----------/etc/alpine-release----------
2.6.4
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Amazon/2013.09.txt
0,0 → 1,8
----------lsb_release -a----------
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: AmazonAMI
Description: Amazon Linux AMI release 2013.09
Release: 2013.09
Codename: n/a
----------/etc/system-release----------
Amazon Linux AMI release 2013.09
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Arch/2011.08.19-ISO.txt
0,0 → 1,2
----------/etc/arch-release----------
Arch Linux Live ISO
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Arch/2013.11.01.txt
0,0 → 1,9
----------/etc/arch-release----------
----------/etc/os-release----------
NAME="Arch Linux"
ID=arch
PRETTY_NAME="Arch Linux"
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Arch/2014.01.05.txt
0,0 → 1,21
----------lsb_release -a----------
LSB Version: 1.4
Distributor ID: Arch
Description: Arch Linux
Release: rolling
Codename: n/a
----------/etc/arch-release----------
Arch Linux release
----------/etc/lsb-release----------
LSB_VERSION=1.4
DISTRIB_ID=Arch
DISTRIB_RELEASE=rolling
DISTRIB_DESCRIPTION="Arch Linux"
----------/etc/os-release----------
NAME="Arch Linux"
ID=arch
PRETTY_NAME="Arch Linux"
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Arch/2017.03.07-ARM.txt
0,0 → 1,10
----------/etc/arch-release----------
----------/etc/os-release----------
NAME="Arch Linux ARM"
ID=archarm
ID_LIKE=arch
PRETTY_NAME="Arch Linux ARM"
ANSI_COLOR="0;36"
HOME_URL="http://archlinuxarm.org/"
SUPPORT_URL="https://archlinuxarm.org/forum"
BUG_REPORT_URL="https://github.com/archlinuxarm/PKGBUILDs/issues"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/BOSS/1.0-server.txt
0,0 → 1,10
----------lsb_release -a----------
LSB Version: core-2.0-noarch:core-3.0-noarch:core-3.1-noarch:core-2.0-ia32:core-3.0-ia32:core-3.1-ia32
Distributor ID: BOSS Server Beta
Description: BOSS Server Beta GNU/Linux anant
Release: anant
Codename: 1.0
----------/etc/boss_version----------
anant
----------/etc/debian_version----------
lenny/sid
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/BOSS/5.0.txt
0,0 → 1,19
----------lsb_release -a----------
Distributor ID: BOSS
Description: BOSS GNU/Linux 5.0 (anokha)
Release: 5.0
Codename: anokha
----------/etc/os-release----------
PRETTY_NAME="BOSS GNU/Linux 5.0 (anokha)"
NAME="BOSS GNU/Linux"
VERSION_ID="5.0"
VERSION="5.0 (anokha)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.bosslinux.in/"
SUPPORT_URL="http://www.bosslinux.in/support-centre"
BUG_REPORT_URL="http://bugzilla.bosslinux.in/"
----------/etc/boss_version----------
5.0
----------/etc/debian_version----------
7.0
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Calculate/13.11.txt
0,0 → 1,10
----------/etc/gentoo-release----------
Calculate Linux Desktop 13.11 XFCE
----------/etc/os-release----------
NAME=Gentoo
ID=gentoo
PRETTY_NAME="Gentoo/Linux"
ANSI_COLOR="1;32"
HOME_URL="http://www.gentoo.org/"
SUPPORT_URL="http://www.gentoo.org/main/en/support.xml"
BUG_REPORT_URL="https://bugs.gentoo.org/"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Canaima/4.1.txt
0,0 → 1,19
----------lsb_release -a----------
Distributor ID: Canaima
Description: Canaima GNU/Linux 4.1 (kukenan)
Release: 4.1
Codename: kukenan
----------/etc/os-release----------
PRETTY_NAME="Canaima GNU/Linux 4.1 (kukenan)"
NAME="Canaima GNU/Linux"
VERSION_ID="4.1"
VERSION="4.1 (kukenan)"
ID=canaima
ANSI_COLOR="1;31"
HOME_URL="http://http://canaima.softwarelibre.gob.ve/"
SUPPORT_URL="http://http://canaima.softwarelibre.gob.ve/Soporte"
BUG_REPORT_URL="http://http://trac.canaima.softwarelibre.gob.ve/canaima/"
----------/etc/canaima_version----------
4.1
----------/etc/debian_version----------
Canaima
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/CentOS/5.6.txt
0,0 → 1,8
----------lsb_release -a----------
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.6 (Final)
Release: 5.6
Codename: Final
----------/etc/redhat-release----------
CentOS release 5.6 (Final)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/CentOS/6.5-SF.txt
0,0 → 1,6
----------/etc/centos-release----------
CentOS release 6.5 (Final)
----------/etc/redhat-release----------
CentOS release 6.5 (Final)
----------/etc/system-release----------
CentOS release 6.5 (Final)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/CentOS/6.5.txt
0,0 → 1,14
----------lsb_release -a----------
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final
----------/etc/centos-release----------
CentOS release 6.5 (Final)
----------/etc/lsb-release----------
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
----------/etc/redhat-release----------
CentOS release 6.5 (Final)
----------/etc/system-release----------
CentOS release 6.5 (Final)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/CentOS/7.1.1503.txt
0,0 → 1,23
----------/etc/centos-release----------
CentOS Linux release 7.1.1503 (Core)
----------/etc/os-release----------
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
 
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
 
----------/etc/redhat-release----------
CentOS Linux release 7.1.1503 (Core)
----------/etc/system-release----------
CentOS Linux release 7.1.1503 (Core)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Chakra/2013.02.txt
0,0 → 1,21
----------lsb_release -a----------
LSB Version: n/a
Distributor ID: Chakra
Description: Chakra
Release: 2013.02
Codename: Benz
----------/etc/chakra-release----------
----------/etc/lsb-release----------
DISTRIB_ID="Chakra"
DISTRIB_RELEASE="2013.02"
DISTRIB_CODENAME="Benz"
DISTRIB_DESCRIPTION="Chakra"
----------/etc/os-release----------
NAME="The Chakra-Project"
VERSION="Benz"
ID=chakra
PRETTY_NAME="The Chakra-Project (Benz)"
ANSI_COLOR="0;36"
HOME_URL="http://www.chakra-linux.org/"
BUG_REPORT_URL="http://chakra-linux.org/bugs/"
 
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/ClearOS/6.4.0-Beta.txt
0,0 → 1,6
----------/etc/clearos-release----------
ClearOS Community release 6.4.0 Beta (Beta 2)
----------/etc/redhat-release----------
ClearOS Community release 6.4.0 Beta (Beta 2)
----------/etc/system-release----------
ClearOS Community release 6.4.0 Beta (Beta 2)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Cloud/5.10.txt
0,0 → 1,10
----------lsb_release -a----------
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CloudLinuxServer
Description: CloudLinux Server release 5.10 (Georgy Beregovoy)
Release: 5.10
Codename: GeorgyBeregovoy
----------/etc/CloudLinux-release----------
CloudLinux Server release 5.10 (Georgy Beregovoy)
----------/etc/redhat-release----------
CloudLinux Server release 5.10 (Georgy Beregovoy)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Cloud/6.4.txt
0,0 → 1,12
----------lsb_release -a----------
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CloudLinuxServer
Description: CloudLinux Server release 6.4
Release: 6.4
Codename: n/a
----------/etc/lsb-release----------
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
----------/etc/redhat-release----------
CloudLinux Server release 6.4
----------/etc/system-release----------
CloudLinux Server release 6.4
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Cloud/7.2.txt
0,0 → 1,24
----------lsb_release -a----------
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: n/a
Description: NAME="CloudLinux"
Release: n/a
Codename: n/a
----------/etc/cloudlinux-release----------
CloudLinux release 7.2 (Valeri Kubasov)
----------/etc/os-release----------
NAME="CloudLinux"
VERSION="7.2 (Valeri Kubasov)"
ID="cloudlinux"
ID_LIKE="rhel fedora centos"
VERSION_ID="7.2"
PRETTY_NAME="CloudLinux 7.2 (Valeri Kubasov)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:cloudlinux:cloudlinux:7"
HOME_URL="https://www.cloudlinux.com/"
BUG_REPORT_URL="https://helpdesk.cloudlinux.com/"
 
----------/etc/redhat-release----------
CloudLinux release 7.2 (Valeri Kubasov)
----------/etc/system-release----------
CloudLinux release 7.2 (Valeri Kubasov)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Container/1409.2.0.txt
0,0 → 1,16
----------/etc/lsb-release----------
DISTRIB_ID="Container Linux by CoreOS"
DISTRIB_RELEASE=1409.2.0
DISTRIB_CODENAME="Ladybug"
DISTRIB_DESCRIPTION="Container Linux by CoreOS 1409.2.0 (Ladybug)"
----------/etc/os-release----------
NAME="Container Linux by CoreOS"
ID=coreos
VERSION=1409.2.0
VERSION_ID=1409.2.0
BUILD_ID=2017-06-19-2321
PRETTY_NAME="Container Linux by CoreOS 1409.2.0 (Ladybug)"
ANSI_COLOR="38;5;75"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://issues.coreos.com"
COREOS_BOARD="amd64-usr"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/CoreOS/367.1.0.txt
0,0 → 1,15
----------/etc/lsb-release----------
DISTRIB_ID=CoreOS
DISTRIB_RELEASE=367.1.0
DISTRIB_CODENAME="Red Dog"
DISTRIB_DESCRIPTION="CoreOS 367.1.0"
----------/etc/os-release----------
NAME=CoreOS
ID=coreos
VERSION=367.1.0
VERSION_ID=367.1.0
BUILD_ID=
PRETTY_NAME="CoreOS 367.1.0"
ANSI_COLOR="1;32"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://github.com/coreos/bugs/issues"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Crux/2.8.txt
0,0 → 1,2
----------/usr/bin/crux----------
CRUX version 2.8
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Debian/5.0.3.txt
0,0 → 1,2
----------/etc/debian_version----------
5.0.3
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Debian/6.0.6.txt
0,0 → 1,7
----------lsb_release -a----------
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.6 (squeeze)
Release: 6.0.6
Codename: squeeze
----------/etc/debian_version----------
6.0.6
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Debian/8-20140106-netinstall.txt
0,0 → 1,6
----------/etc/default-release----------
jessie
----------/etc/lsb-release----------
DISTRIB_ID=Debian
DISTRIB_DESCRIPTION="Debian GNU/Linux installer"
DISTRIB_RELEASE="8 (jessie) - installer build 20140106-00:05"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Debian/8-20140106.txt
0,0 → 1,15
----------lsb_release -a----------
Distributor ID: Debian
Description: Debian GNU/Linux testing (jessie)
Release: testing
Codename: jessie
----------/etc/os-release----------
PRETTY_NAME="Debian GNU/Linux jessie/sid"
NAME="Debian GNU/Linux"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"
----------/etc/debian_version----------
jessie/sid
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Deepin/2013.txt
0,0 → 1,22
----------lsb_release -a----------
Distributor ID: LinuxDeepin
Description: LinuxDeepin 2013
Release: 2013
Codename: raring
----------/etc/lsb-release----------
DISTRIB_ID=LinuxDeepin
DISTRIB_RELEASE=2013
DISTRIB_CODENAME=raring
DISTRIB_DESCRIPTION="LinuxDeepin 2013"
----------/etc/os-release----------
NAME="Ubuntu"
VERSION="13.04, Raring Ringtail"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 13.04"
VERSION_ID="13.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
----------/etc/debian_version----------
wheezy/sid
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Devuan/1.0.txt
0,0 → 1,18
----------lsb_release -a----------
Distributor ID: Devuan
Description: Devuan GNU/Linux 1.0 (jessie)
Release: 1.0
Codename: jessie
----------/etc/os-release----------
PRETTY_NAME="Devuan GNU/Linux 1 (jessie)"
NAME="Devuan GNU/Linux"
VERSION_ID="1"
VERSION="1 (jessie)"
ID=devuan
HOME_URL="http://www.devuan.org/"
SUPPORT_URL="http://www.devuan.org/support/"
BUG_REPORT_URL="https://bugs.devuan.org/"
----------/etc/debian_version----------
7.9
----------/etc/devuan_version----------
jessie
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/EasyOS/0.6.8.txt
0,0 → 1,38
----------lsb_release -a----------
LSB Version: n/a
Distributor ID: Quirky
Description: Easy OS
Release: 0.6.8
Codename: xerus64
----------/etc/lsb-release----------
LSB_VERSION=n/a
DISTRIB_ID=Quirky
DISTRIB_RELEASE=0.6.8
DISTRIB_CODENAME=xerus64
DISTRIB_DESCRIPTION="Easy OS"
----------/etc/DISTRO_SPECS----------
#One or more words that identify this distribution:
#Note: Ubuntu 16.04 LTS is named Xenial Xerus.
DISTRO_NAME='Easy OS' #EASY
#version number of this distribution:
DISTRO_VERSION=0.6.8 #EASY
#The distro whose binary packages were used to build this distribution:
DISTRO_BINARY_COMPAT='ubuntu'
#Prefix for some filenames: exs: unicornsave.2fs, unicorn-4.99.0.sfs
DISTRO_FILE_PREFIX='xerus64'
#The version of the distro whose binary packages were used to build this distro:
DISTRO_COMPAT_VERSION='xenial'
#the kernel pet package used:
#DISTRO_KERNEL_PET='linux_kernel-4.11.12-aufs-xerus-amd64.pet'
DISTRO_KERNEL_PET='linux_kernel-4.14.11-xerus64.pet'
DISTRO_SKELETON_IMAGE='easy-skeleton-amd64-640mb.img.gz' #EASY
#read by /usr/bin/xwin to bypass Xorg Wizard at first boot:
DISTRO_XORG_AUTO='yes'
DISTRO_TARGETARCH='amd64'
#subname for online PETs dir. Ex: 'unicorn', dir 'pet_packages-unicorn', db file 'Packages-pet-unicorn-official':
#note: prior to existence of this variable, online subname was set to $DISTRO_COMPAT_VERSION or via some hack code.
DISTRO_DB_SUBNAME='xerus'
#yes here will cause /lib/x86_64-linux-gnu to be a symlink to /lib (and /usr/lib...):
DISTRO_ARCHDIR_SYMLINKS='no'
DISTRO_ARCHDIR='x86_64-linux-gnu'
DISTRO_PUPPYDATE='Jan 2018'
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/EasyOS/0.9.4.txt
0,0 → 1,37
----------lsb_release -a----------
LSB Version: n/a
Distributor ID: Quirky
Description: Easy Beaver
Release: 0.9.4
Codename: beaver64
----------/etc/lsb-release----------
LSB_VERSION=n/a
DISTRIB_ID=Quirky
DISTRIB_RELEASE=0.9.4
DISTRIB_CODENAME=beaver64
DISTRIB_DESCRIPTION="Easy Beaver"
----------/etc/DISTRO_SPECS----------
#One or more words that identify this distribution:
#Note: Ubuntu 16.04 LTS is named Xenial Xerus.
DISTRO_NAME='Easy Beaver' #EASY
#version number of this distribution:
DISTRO_VERSION=0.9.4 #EASY
#The distro whose binary packages were used to build this distribution:
DISTRO_BINARY_COMPAT='ubuntu'
#Prefix for some filenames: exs: unicornsave.2fs, unicorn-4.99.0.sfs
DISTRO_FILE_PREFIX='beaver64'
#The version of the distro whose binary packages were used to build this distro:
DISTRO_COMPAT_VERSION='bionic'
#the kernel pet package used:
DISTRO_KERNEL_PET='linux_kernel-4.18.9-beaver64.pet'
DISTRO_SKELETON_IMAGE='easy-skeleton-amd64-640mb.img.gz' #EASY
#read by /usr/bin/xwin to bypass Xorg Wizard at first boot:
DISTRO_XORG_AUTO='yes'
DISTRO_TARGETARCH='amd64'
#subname for online PETs dir. Ex: 'unicorn', dir 'pet_packages-unicorn', db file 'Packages-pet-unicorn-official':
#note: prior to existence of this variable, online subname was set to $DISTRO_COMPAT_VERSION or via some hack code.
DISTRO_DB_SUBNAME='beaver'
#yes here will cause /lib/x86_64-linux-gnu to be a symlink to /lib (and /usr/lib...):
DISTRO_ARCHDIR_SYMLINKS='no'
DISTRO_ARCHDIR='x86_64-linux-gnu'
DISTRO_PUPPYDATE='Sep 2018'
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/EasyOS/1.2.9.1.txt
0,0 → 1,40
----------lsb_release -a----------
LSB Version: n/a
Distributor ID: Quirky
Description: Easy Pyro64
Release: 1.2.9.1
Codename: pyro64
----------/etc/lsb-release----------
LSB_VERSION=n/a
DISTRIB_ID=Quirky
DISTRIB_RELEASE=1.2.9.1
DISTRIB_CODENAME=pyro64
DISTRIB_DESCRIPTION="Easy Pyro64"
----------/etc/DISTRO_SPECS----------
#One or more words that identify this distribution:
DISTRO_NAME='Easy Pyro64'
#version number of this distribution:
DISTRO_VERSION=1.2.9.1
#The distro whose binary packages were used to build this distribution:
DISTRO_BINARY_COMPAT='oe'
#Prefix for some filenames: exs: aprilsave.2fs, april-5.1.3.4.sfs
DISTRO_FILE_PREFIX='pyro64'
#The version of the distro whose binary packages were used to build this distro:
DISTRO_COMPAT_VERSION='pyro'
#the kernel pet package used: Kernel 'linux-quirky' now compiled in OE, do not specify here if use that:
DISTRO_KERNEL_PET='linux_kernel-5.4.1-pyro64.pet'
#DISTRO_KERNEL_PET='linux_kernel-4.14.157-pyro64.pet'
#DISTRO_KERNEL_PET='linux_kernel-5.2.21-pyro64.pet'
#for Easy Linux, need to specify this skeleton image...
DISTRO_SKELETON_IMAGE='easy-skeleton-amd64-1280mb.img.gz'
DISTRO_TARGETARCH='amd64'
#subname for online PETs dir. Ex: 'slacko14', dir 'pet_packages-slacko14', db file 'Packages-pet-slacko14-official':
#note: prior to existence of this variable, online subname was set to $DISTRO_COMPAT_VERSION or via some hack code.
DISTRO_DB_SUBNAME='pyro'
#this will cause all of /lib64, /usr/lib64 and /usr/X11R7/lib moved into /lib,
#/usr/lib, /usr/X11R7/lib, and the latter made into symlinks:
DISTRO_ARCHDIR_SYMLINKS='no'
#yes if want xorg to start immediately first boot (without cli dialogs):
DISTRO_XORG_AUTO='yes'
DISTRO_ARCHDIR=''
DISTRO_PUPPYDATE='Dec 2019'
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/EasyOS/2.1.11.txt
0,0 → 1,40
----------lsb_release -a----------
LSB Version: n/a
Distributor ID: Quirky
Description: Easy Buster64
Release: 2.1.11
Codename: buster64
----------/etc/lsb-release----------
LSB_VERSION=n/a
DISTRIB_ID=Quirky
DISTRIB_RELEASE=2.1.11
DISTRIB_CODENAME=buster64
DISTRIB_DESCRIPTION="Easy Buster64"
----------/etc/DISTRO_SPECS----------
#One or more words that identify this distribution:
DISTRO_NAME='Easy Buster64'
#version number of this distribution:
DISTRO_VERSION=2.1.11
#The distro whose binary packages were used to build this distribution:
DISTRO_BINARY_COMPAT='debian'
#Prefix for some filenames: exs: aprilsave.2fs, april-5.1.3.4.sfs
DISTRO_FILE_PREFIX='buster64'
#The version of the distro whose binary packages were used to build this distro:
DISTRO_COMPAT_VERSION='buster'
#the kernel pet package used: Kernel 'linux-quirky' now compiled in OE, do not specify here if use that:
DISTRO_KERNEL_PET='linux_kernel-5.4.6-buster64.pet'
#DISTRO_KERNEL_PET='linux_kernel-4.19.88-buster64.pet'
#DISTRO_KERNEL_PET='linux_kernel-5.2.21-buster64.pet'
#for Easy Linux, need to specify this skeleton image...
DISTRO_SKELETON_IMAGE='easy-skeleton-amd64-1280mb.img.gz'
DISTRO_TARGETARCH='amd64'
#subname for online PETs dir. Ex: 'slacko14', dir 'pet_packages-slacko14', db file 'Packages-pet-slacko14-official':
#note: prior to existence of this variable, online subname was set to $DISTRO_COMPAT_VERSION or via some hack code.
DISTRO_DB_SUBNAME='buster'
#this will cause all of /lib64, /usr/lib64 and /usr/X11R7/lib moved into /lib,
#/usr/lib, /usr/X11R7/lib, and the latter made into symlinks:
DISTRO_ARCHDIR_SYMLINKS='no'
#yes if want xorg to start immediately first boot (without cli dialogs):
DISTRO_XORG_AUTO='yes'
DISTRO_ARCHDIR='x86_64-linux-gnu'
DISTRO_PUPPYDATE='Dec 2019'
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Eisfair/1-2.6.5.txt
0,0 → 1,10
----------lsb_release -a----------
LSB Version: n/a
Distributor ID: eisfair project
Description: eisfair-1
Release: 2.6.5
Codename: n/a
----------/etc/version----------
2.6.5
----------/etc/eisfair-system----------
eisfair-1
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Eisfair/2-1.8.1.txt
0,0 → 1,4
----------/etc/version----------
1.8.1
----------/etc/eisfair-system----------
eisfair-2
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Endless/3.3.16.txt
0,0 → 1,21
----------lsb_release -a----------
Distributor ID: Endless
Description: Endless 3.3.16
Release: 3.3.16
Codename: endless
----------/etc/lsb-release----------
DISTRIB_ID=Endless
DISTRIB_RELEASE=3.3.16
DISTRIB_CODENAME=endless
DISTRIB_DESCRIPTION="Endless 3.3.16"
----------/etc/os-release----------
NAME="Endless"
VERSION="3.3.16"
ID="endless"
ID_LIKE="ubuntu debian"
PRETTY_NAME="Endless 3.3.16"
VERSION_ID="3.3.16"
HOME_URL="http://www.endlessm.com/"
BUILD_ID="180405-120905"
----------/etc/debian_version----------
9.0
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Exherbo/2019.09.08.txt
0,0 → 1,64
----------/etc/os-release----------
NAME="Exherbo"
PRETTY_NAME="Exherbo Linux"
ID="exherbo"
ANSI_COLOR="0;32"
HOME_URL="https://www.exherbo.org/"
SUPPORT_URL="irc://irc.freenode.net/#exherbo"
BUG_REPORT_URL="https://bugs.exherbo.org/"
----------/etc/exherbo-release----------
a.
WQa. _a/ _aw/
4WQQ, jQQf ]QQQQ.
4WF _, jWQQ[ jQQQQ; .g, _s,.
- _QL _QQQQw, ]QQQW dQ( -4QQc
<QQm jQQQQWQw,)QQQk _yQQL "$Q;
_QQQQ;mQQQQQQWQgmQQQQ}~-"9QQQQ( -?
.mQQQQcQQQQQQQQQQQQQD' "QP'
jQQQQQQWQW?^---"WWQQ' _v, ) _sss,
mWQQQQQQQ[ ]WQQ. von -gamWWWQm,
.QQQQQQQQQL -' ]WQQc -*" :QQQQQQQQm.
=QQQQQQQQQQc _mQQQQ, jQQQQQQQQQ[
)WQQQQQQQQWT' ""!??TVas_aaQQQQQQQQQQQm
:QQQQQQQD" ___i__,__. "!?$QQQQQQQQQQQ.
-QQQQQQ! .%vnnonnoonnvvvi,,. -"$QQQQQQQQ[
4QQQQ( _nvnvnvnvnvnvnnvnnnns=, "WQQQQQQf
-QQQF _nnv}` -<vnvnvnvvnvnvvnn>. 4QQQQQf
]QQ` vvnv( .nvnvnvnvnv~ .-Ins, 4QQQQ[
4W .nvnvv,._%nnvnvnvnv= =vvv. QWQW`
4c <nvnvnnnvnvvnvvnvn; :nnv; mQQf
{. {vnvnvvnvnvnvnvnvs, .%nv} _QWP
+. "{vvnnvnvnvnvnvnvnvvnvn}` yQD`
._ --^""|{IIvvnvnvnvI"~ _mQP
"nwas,,, ---- .<wQW!
-?VQQQQQmmgywwawwmQQQP`
_ -"?V$QQQQWWWQWWV!`
.QQa, --"""""` _yg,
.__. jQQQQQwaa,, _swQQQQQa 3gw,
_wmQQQQW'.jQQQWHVVWWWQQmgwwwwwyQ8?"` mQQQm, ?WWc
?HWWWWW^.jmT!` -~""!"!^` .wQQQQW#>
~"?' jP` _mQQQQQVXZa
J^ _saaawaaass,,__. _aQQQQQD' )ZZo.
.u<ayQQQWWQWWWWWWQQQQQQQQQQQQQQQ@! ]ZUZL
jQQQQV?^--"?9$QQQQQQQQQQQQQQQQV" _mXZUZ;
_QQQF` ~"!????T?TT??!` <mXZZZUL
]QQQ, _wZXZZ#ZZZ,
"?VQwwwwwwgmmwa,, ._wXm#Z#ZZZZ#Z[
.__. -?$WWWWQQWQQQQQwwwwaaaawuwZ#ZZZZZZZ#Z#e"`
_wgQP4QQQwa. ?$WQQQQQQQQQQQWWWWWBXZZZUZUZ#2!4X7` .sawyywas.
=mQQQW` $QQQWQa, "$QQQQQQQQQQQQWBZZZUZ#ZZZZ" %' -4QQWQQQWQma.
d#QQQ[ ]QQQQQQQg, "$QQQQQQQQB#ZZZZ#ZZZ2!^ _% "9QQQQQQQWm,
#ZZWP :QQQQQQQQQg, 4QQQQW#ZZZXXYY""~ _r .wmc -?$QQQQQQm
3#Z2 QQQQQQP4QQQw. -~~---- _Z yQQQQw, ~9VQQQQ
+Ze :QQQQQf ]QQQQm, <#( jQQQQWWQQw, "9Z
- jQQQQP ]WQQQQm. ._wZZ 4WQQQQQQQQQQa, .}
.adWQQQ@` ]QQQQQQL _____s_asaaomZ#ZU2 "?9WWQQQQQQQQWaaaum'
.XZXZWWP jQQQQQQQ/ ]#Z####ZZXZUXZZZZC -"9$QQWB#ZZZXZr
!SZ?^ .QQQQQQQQL )ZZ#ZZZZUZUZZ#XY!^ _c. ?SZZZZZZUX`
jQQQQQQQQf -""?Y?Y??!"~- =WW#a,, -"SZZ#2`
_dQQQQQQQQW' !XZ###qaaaaaaXZZ!
-"YHQQQQ@' -?#XZZUZZXZXZ?`
~"^ "YXZZZX?"`
-
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Fedora/20-lsb.txt
0,0 → 1,26
----------lsb_release -a----------
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 20 (Heisenbug)
Release: 20
Codename: Heisenbug
----------/etc/fedora-release----------
Fedora release 20 (Heisenbug)
----------/etc/os-release----------
NAME=Fedora
VERSION="20 (Heisenbug)"
ID=fedora
VERSION_ID=20
PRETTY_NAME="Fedora 20 (Heisenbug)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:20"
HOME_URL="https://fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=20
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=20
----------/etc/redhat-release----------
Fedora release 20 (Heisenbug)
----------/etc/system-release----------
Fedora release 20 (Heisenbug)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Fedora/20.txt
0,0 → 1,20
----------/etc/fedora-release----------
Fedora release 20 (Heisenbug)
----------/etc/os-release----------
NAME=Fedora
VERSION="20 (Heisenbug)"
ID=fedora
VERSION_ID=20
PRETTY_NAME="Fedora 20 (Heisenbug)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:20"
HOME_URL="https://fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=20
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=20
----------/etc/redhat-release----------
Fedora release 20 (Heisenbug)
----------/etc/system-release----------
Fedora release 20 (Heisenbug)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Fedora/4.txt
0,0 → 1,12
----------lsb_release -a----------
LSB Version: 1.3
Distributor ID: FedoraCore
Description: Fedora Core release 4 (Stentz)
Release: 4
Codename: Stentz
----------/etc/fedora-release----------
Fedora Core release 4 (Stentz)
----------/etc/lsb-release----------
LSB_VERSION="1.3"
----------/etc/redhat-release----------
Fedora Core release 4 (Stentz)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Foresight/2.5.3.txt
0,0 → 1,2
----------/etc/distro-release----------
Foresight
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Frugalware/1.9.txt
0,0 → 1,9
----------/etc/frugalware-release----------
Frugalware 1.9 (Arcturus)
----------/etc/os-release----------
NAME="Frugalware"
VERSION="1.9 (Arcturus)"
ID=frugalware
VERSION_ID="1.9"
PRETTY_NAME="Frugalware 1.9 (Arcturus)"
ANSI_COLOR="1;36"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Fuduntu/2013.2.txt
0,0 → 1,19
----------lsb_release -a----------
LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: Fuduntu
Description: n/a
Release: 2013.2
Codename: Punny Name Serious Distro
----------/etc/fedora-release----------
Fuduntu 2013.2 (Punny Name Serious Distro)
----------/etc/fuduntu-release----------
Fuduntu 2013.2 (Punny Name Serious Distro)
----------/etc/lsb-release----------
DISTRIB_ID=Fuduntu
DISTRIB_RELEASE=2013.2
DISTRIB_CODENAME=Fuduntu
DISTRIB_DESCRIPTION="Punny Name Serious Distro"
----------/etc/redhat-release----------
Fuduntu 2013.2 (Punny Name Serious Distro)
----------/etc/system-release----------
Fuduntu 2013.2 (Punny Name Serious Distro)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Generations/3.1.txt
0,0 → 1,22
----------lsb_release -a----------
LSB Version: core-3.1-noarch
Distributor ID: generations
Description: Generations Linux
Release: 3.1
Codename: vortex
----------/etc/lsb-release----------
DISTRIB_ID="generations"
DISTRIB_DESCRIPTION="Generations Linux"
DISTRIB_RELEASE="3.1"
DISTRIB_CODENAME="vortex"
LSB_VERSION="core-3.1-noarch"
----------/etc/os-release----------
# http://www.freedesktop.org/software/systemd/man/os-release.html
NAME="Generations Linux"
VERSION="3.1 (vortex)"
ID=generations
VERSION_ID=3.1
PRETTY_NAME="$NAME $VERSION"
HOME_URL="http://softcraft.org"
BUILD_ID="2013-05-04 1527"
ANSI_COLOR="1;34"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Gentoo/2.2-NAME.txt
0,0 → 1,18
----------lsb_release -a----------
LSB Version: n/a
Distributor ID: Gentoo
Description: NAME=Gentoo
Release: n/a
Codename: n/a
----------/etc/gentoo-release----------
Gentoo Base System release 2.2
----------/etc/lsb-release----------
DISTRIB_ID="Gentoo"
----------/etc/os-release----------
NAME=Gentoo
ID=gentoo
PRETTY_NAME="Gentoo/Linux"
ANSI_COLOR="1;32"
HOME_URL="http://www.gentoo.org/"
SUPPORT_URL="http://www.gentoo.org/main/en/support.xml"
BUG_REPORT_URL="https://bugs.gentoo.org/"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Gentoo/2.2.txt
0,0 → 1,18
----------lsb_release -a----------
LSB Version: n/a
Distributor ID: Gentoo
Description: Gentoo Base System release 2.2
Release: 2.2
Codename: n/a
----------/etc/gentoo-release----------
Gentoo Base System release 2.2
----------/etc/lsb-release----------
DISTRIB_ID="Gentoo"
----------/etc/os-release----------
NAME=Gentoo
ID=gentoo
PRETTY_NAME="Gentoo/Linux"
ANSI_COLOR="1;32"
HOME_URL="http://www.gentoo.org/"
SUPPORT_URL="http://www.gentoo.org/main/en/support.xml"
BUG_REPORT_URL="https://bugs.gentoo.org/"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Gobo/015.beta2.txt
0,0 → 1,2
----------/etc/GoboLinuxVersion----------
015.beta2
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Handy/2.0.txt
0,0 → 1,19
----------lsb_release -a----------
LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch:core-4.1-ia32:core-4.1-noarch:cxx-3.0-ia32:cxx-3.0-noarch:cxx-3.1-ia32:cxx-3.1-noarch:cxx-3.2-ia32:cxx-3.2-noarch:cxx-4.0-ia32:cxx-4.0-noarch:cxx-4.1-ia32:cxx-4.1-noarch:desktop-3.1-ia32:desktop-3.1-noarch:desktop-3.2-ia32:desktop-3.2-noarch:desktop-4.0-ia32:desktop-4.0-noarch:desktop-4.1-ia32:desktop-4.1-noarch:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch:graphics-3.1-ia32:graphics-3.1-noarch:graphics-3.2-ia32:graphics-3.2-noarch:graphics-4.0-ia32:graphics-4.0-noarch:graphics-4.1-ia32:graphics-4.1-noarch:languages-3.2-ia32:languages-3.2-noarch:languages-4.0-ia32:languages-4.0-noarch:languages-4.1-ia32:languages-4.1-noarch:multimedia-3.2-ia32:multimedia-3.2-noarch:multimedia-4.0-ia32:multimedia-4.0-noarch:multimedia-4.1-ia32:multimedia-4.1-noarch:printing-3.2-ia32:printing-3.2-noarch:printing-4.0-ia32:printing-4.0-noarch:printing-4.1-ia32:printing-4.1-noarch:qt4-3.1-ia32:qt4-3.1-noarch:security-4.0-ia32:security-4.0-noarch:security-4.1-ia32:security-4.1-noarch
Distributor ID: HandyLinux
Description: HandyLinux GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie
----------/etc/os-release----------
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="https://bugs.debian.org/"
----------/etc/debian_version----------
8.0
----------/etc/handylinux_version----------
HandyLinux-2.0
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/HipServ/2.6.txt
0,0 → 1,2
----------/etc/redhat-release----------
HipServ
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/IPFire/2.13.txt
0,0 → 1,2
----------/etc/system-release----------
IPFire 2.13 (i586) - core74
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/KaOS/2014.0301.txt
0,0 → 1,21
----------lsb_release -a----------
LSB Version: n/a
Distributor ID: KaOS
Description: KaOS
Release: 2014.0301
Codename: n/a
----------/etc/KaOS-release----------
KaOS release 2014.0301
----------/etc/lsb-release----------
DISTRIB_ID="KaOS"
DISTRIB_RELEASE="2014.0301"
DISTRIB_DESCRIPTION="KaOS"
----------/etc/os-release----------
NAME="KaOS"
VERSION="2014"
ID=kaos
PRETTY_NAME="KaOS (2014)"
ANSI_COLOR="0;36"
HOME_URL="http://kaosx.us/"
 
 
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Kali/Rolling.txt
0,0 → 1,23
----------lsb_release -a----------
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: kali-rolling
Codename: kali-rolling
----------/etc/lsb-release----------
DISTRIB_ID=Kali
DISTRIB_RELEASE=kali-rolling
DISTRIB_CODENAME=kali-rolling
DISTRIB_DESCRIPTION="Kali GNU/Linux Rolling"
----------/etc/os-release----------
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2018.1"
VERSION_ID="2018.1"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.kali.org/"
SUPPORT_URL="http://forums.kali.org/"
BUG_REPORT_URL="http://bugs.kali.org/"
----------/etc/debian_version----------
kali-rolling
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Korora/20.txt
0,0 → 1,21
----------lsb_release -a----------
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: Korora
Description: Korora release 20 (Peach)
Release: 20
Codename: Peach
----------/etc/fedora-release----------
Korora release 20 (Peach)
----------/etc/os-release----------
NAME=Korora
VERSION="20 (Peach)"
ID=korora
VERSION_ID=20
PRETTY_NAME="Korora 20 (Peach)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:kororaproject:korora:20"
HOME_URL="https://kororaproject.org/"
----------/etc/redhat-release----------
Korora release 20 (Peach)
----------/etc/system-release----------
Korora release 20 (Peach)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Lakka/2.0.txt
0,0 → 1,16
----------lsb_release -a----------
Lakka (community) - Version: 2.0
----------/etc/os-release----------
NAME="Lakka"
VERSION="2.0"
ID="openelec"
VERSION_ID="8.0"
PRETTY_NAME="Lakka (community) - Version: 2.0"
HOME_URL="https://libreelec.tv"
BUG_REPORT_URL="https://github.com/lakkatv/Lakka-LibreELEC"
BUILD_ID="a2a046c380609f2f7770bd21a362ade4dcc76f80"
OPENELEC_ARCH="Generic.x86_64"
LIBREELEC_ARCH="Generic.x86_64"
LIBREELEC_BUILD="community"
----------/etc/release----------
Generic.x86_64-2.0
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/LibreELEC/8.0.1.txt
0,0 → 1,16
----------lsb_release -a----------
LibreELEC (official) - Version: 8.0.1
----------/etc/os-release----------
NAME="LibreELEC"
VERSION="8.0.1"
ID="libreelec"
VERSION_ID="8.0"
PRETTY_NAME="LibreELEC (official) - Version: 8.0.1"
HOME_URL="https://libreelec.tv"
BUG_REPORT_URL="https://github.com/LibreELEC/LibreELEC.tv"
BUILD_ID="b23f269dbe2bd0ce3aa253d835c76c7ca836ccff"
OPENELEC_ARCH="Generic.x86_64"
LIBREELEC_ARCH="Generic.x86_64"
LIBREELEC_BUILD="official"
----------/etc/release----------
Generic.x86_64-8.0.1
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Linaro/13.12.txt
0,0 → 1,22
----------lsb_release -a----------
Distributor ID: Linaro
Description: Linaro 13.12
Release: 13.12
Codename: saucy
----------/etc/lsb-release----------
DISTRIB_ID=Linaro
DISTRIB_RELEASE=13.12
DISTRIB_CODENAME=saucy
DISTRIB_DESCRIPTION="Linaro 13.12"
----------/etc/os-release----------
NAME="Linaro"
VERSION="13.12"
ID=linaro
ID_LIKE=debian
PRETTY_NAME="Linaro 13.12"
VERSION_ID="13.12"
HOME_URL="http://www.linaro.org/"
SUPPORT_URL="http://linaro.zendesk.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/linaro-ubuntu"
----------/etc/debian_version----------
wheezy/sid
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Lunar/1.7.0-rc2.txt
0,0 → 1,13
----------/etc/lsb-release----------
DISTRIB_ID="Lunar Linux"
DISTRIB_RELEASE="1.7.0-rc2-x86_64"
DISTRIB_CODENAME="Sinus Successus"
DISTRIB_DESCRIPTION="Lunar Linux 1.7.0-rc2-x86_64 (Sinus Successus - 20140913)"
----------/etc/os-release----------
NAME="Lunar Linux"
VERSION="1.7.0-rc2-x86_64 (Sinus Successus)"
ID=lunar
VERSION_ID=1.7.0-rc2-x86_64
PRETTY_NAME="Lunar Linux 1.7.0-rc2-x86_64 (Sinus Successus - 20140913)"
ANSI_COLOR="1;34"
HOME_URL="http://lunar-linux.org/"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/MX/17.1.txt
0,0 → 1,35
----------lsb_release -a----------
Distributor ID: MX
Description: MX 17 Horizon
Release: 17
Codename: Horizon
----------/etc/initrd-release----------
NAME="MX"
VERSION="17.1 (Horizon)"
ID="mx"
VERSION_ID="17.1"
PRETTY_NAME="MX 17.1 (Horizon)"
ANSI_COLOR="0;34"
HOME_URL="https://mxlinux.org"
BUG_REPORT_URL="https://mxlinux.org"
----------/etc/lsb-release----------
PRETTY_NAME="MX 17 Horizon"
DISTRIB_ID=MX
DISTRIB_RELEASE=17
DISTRIB_CODENAME=Horizon
DISTRIB_DESCRIPTION="MX 17 Horizon"
----------/etc/os-release----------
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
----------/etc/antix-version----------
MX-17.1_x64 Horizon March 14, 2018
----------/etc/mx-version----------
MX-17.1_x64 Horizon March 14, 2018
----------/etc/debian_version----------
9.4
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Mageia/4.txt
0,0 → 1,36
----------lsb_release -a----------
LSB Version: *
Distributor ID: Mageia
Description: Mageia 4
Release: 4
Codename: thornicroft
----------/etc/lsb-release----------
LSB_VERSION=
DISTRIB_ID="Mageia"
DISTRIB_RELEASE=4
DISTRIB_CODENAME=thornicroft
DISTRIB_DESCRIPTION="Mageia 4"
----------/etc/mageia-release----------
Mageia release 4 (Cauldron) for x86_64
----------/etc/mandrake-release----------
Mageia release 4 (Cauldron) for x86_64
----------/etc/mandrakelinux-release----------
Mageia release 4 (Cauldron) for x86_64
----------/etc/mandriva-release----------
Mageia release 4 (Cauldron) for x86_64
----------/etc/os-release----------
NAME="Mageia"
VERSION="4"
ID=mageia
ID_LIKE="mandriva fedora"
PRETTY_NAME="Mageia 4"
ANSI_COLOR="1;36"
HOME_URL="http://www.mageia.org/"
SUPPORT_URL="http://www.mageia.org/support/"
BUG_REPORT_URL="https://bugs.mageia.org/"
----------/etc/redhat-release----------
Mageia release 4 (Cauldron) for x86_64
----------/etc/version----------
4 0.5 cauldron
----------/etc/release----------
Mageia release 4 (Cauldron) for x86_64
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Mandrake/2011.0.txt
0,0 → 1,24
----------lsb_release -a----------
LSB Version: *
Distributor ID: MandrivaLinux
Description: Mandriva Linux 2011.0
Release: 2011.0
Codename: turtle
----------/etc/lsb-release----------
LSB_VERSION=
DISTRIB_ID=MandrivaLinux
DISTRIB_RELEASE=2011.0
DISTRIB_CODENAME=turtle
DISTRIB_DESCRIPTION="Mandriva Linux 2011.0"
----------/etc/mandrake-release----------
Mandriva Linux release 2011.0 (Official) for x86_64
----------/etc/mandrakelinux-release----------
Mandriva Linux release 2011.0 (Official) for x86_64
----------/etc/mandriva-release----------
Mandriva Linux release 2011.0 (Official) for x86_64
----------/etc/redhat-release----------
Mandriva Linux release 2011.0 (Official) for x86_64
----------/etc/version----------
2011.0.0 2 cooker
----------/etc/release----------
Mandriva Linux release 2011.0 (Official) for x86_64
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Mandrake/9.2.txt
0,0 → 1,16
----------lsb_release -a----------
LSB Version: 1.3
Distributor ID: Mandrake
Description: Mandrake Linux
Release: 9.2
Codename: FiveStar
----------/etc/lsb-release----------
LSB_VERSION=1.3
DISTRIB_ID=Mandrake
DISTRIB_RELEASE=9.2
DISTRIB_CODENAME=FiveStar
DISTRIB_DESCRIPTION="Mandrake Linux"
----------/etc/mandrake-release----------
Mandrake Linux release 9.2 (FiveStar) for i586
----------/etc/redhat-release----------
Mandrake Linux release 9.2 (FiveStar) for i586
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Manjaro/0.8.8.txt
0,0 → 1,21
----------lsb_release -a----------
LSB Version: n/a
Distributor ID: ManjaroLinux
Description: Manjaro Linux
Release: 0.8.8
Codename: Ascella
----------/etc/lsb-release----------
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=0.8.8
DISTRIB_CODENAME=Ascella
DISTRIB_DESCRIPTION="Manjaro Linux"
----------/etc/manjaro-release----------
Manjaro Linux
----------/etc/os-release----------
NAME="Manjaro Linux"
ID=manjaro
PRETTY_NAME="Manjaro Linux"
ANSI_COLOR="1;32"
HOME_URL="http://www.manjaro.org/"
SUPPORT_URL="http://www.manjaro.org/"
BUG_REPORT_URL="http://bugs.manjaro.org/"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Mer/0.2011.txt
0,0 → 1,18
----------lsb_release -a----------
LSB Version: :core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch:desktop-3.1-ia32:desktop-3.1-noarch:desktop-3.2-ia32:desktop-3.2-noarch:desktop-4.0-ia32:desktop-4.0-noarch
Distributor ID: Mer
Description: Mer release 0.2011 (Mer)
Release: 0.2011
Codename: Mer
----------/etc/meego-release----------
Mer release 0.2011 (Mer)
BUILD: Jolla-1.0.8.19-SDK_Build_Engine-i486
----------/etc/mer-release----------
Mer release 0.2011 (Mer)
BUILD: Jolla-1.0.8.19-SDK_Build_Engine-i486
----------/etc/moblin-release----------
Mer release 0.2011 (Mer)
BUILD: Jolla-1.0.8.19-SDK_Build_Engine-i486
----------/etc/system-release----------
Mer release 0.2011 (Mer)
BUILD: Jolla-1.0.8.19-SDK_Build_Engine-i486
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Mint/13.txt
0,0 → 1,12
----------lsb_release -a----------
Distributor ID: LinuxMint
Description: Linux Mint 13 Maya
Release: 13
Codename: maya
----------/etc/lsb-release----------
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=13
DISTRIB_CODENAME=maya
DISTRIB_DESCRIPTION="Linux Mint 13 Maya"
----------/etc/debian_version----------
wheezy/sid
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Mint/14.txt
0,0 → 1,19
----------lsb_release -a----------
Distributor ID: LinuxMint
Description: Linux Mint 14 Nadia
Release: 14
Codename: nadia
----------/etc/lsb-release----------
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=14
DISTRIB_CODENAME=nadia
DISTRIB_DESCRIPTION="Linux Mint 14 Nadia"
----------/etc/os-release----------
NAME="Ubuntu"
VERSION="12.10, Quantal Quetzal"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu quantal (12.10)"
VERSION_ID="12.10"
----------/etc/debian_version----------
wheezy/sid
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Mint/15.txt
0,0 → 1,22
----------lsb_release -a----------
Distributor ID: LinuxMint
Description: Linux Mint 15 Olivia
Release: 15
Codename: olivia
----------/etc/lsb-release----------
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=15
DISTRIB_CODENAME=olivia
DISTRIB_DESCRIPTION="Linux Mint 15 Olivia"
----------/etc/os-release----------
NAME="Ubuntu"
VERSION="13.04, Raring Ringtail"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 13.04"
VERSION_ID="13.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
----------/etc/debian_version----------
wheezy/sid
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/NeoKylin/6.0.txt
0,0 → 1,22
----------lsb_release -a----------
LSB Version: :core-4.1-ia32:core-4.1-noarch:cxx-4.1-ia32:cxx-4.1-noarch:desktop-4.1-ia32:desktop-4.1-noarch:languages-4.1-ia32:languages-4.1-noarch:printing-4.1-ia32:printing-4.1-noarch
Distributor ID: NeoKylin Linux Desktop
Description: NeoKylin Linux Desktop V6.0
Release: V6.0
Codename: n/a
----------/etc/cs2c-release----------
NeoKylin Linux Desktop V6.0
----------/etc/neokylin-release----------
NeoKylin Linux Desktop V6.0
----------/etc/os-release----------
NAME="NeoKylin Linux Desktop"
VERSION="V6.0"
ID=neokylin
VERSION_ID=6.0
PRETTY_NAME="NeoKylin Linux Desktop V6.0"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:nkwinproject:NKWin:V6.0"
----------/etc/redhat-release----------
NeoKylin Linux Desktop V6.0
----------/etc/system-release----------
NeoKylin Linux Desktop V6.0
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Netrunner/13.06-SE.txt
0,0 → 1,22
----------lsb_release -a----------
Distributor ID: NetrunnerSE
Description: Netrunner 5 SE Enigma (13.06)
Release: 13.06
Codename: enigma-1306
----------/etc/lsb-release----------
DISTRIB_ID=NetrunnerSE
DISTRIB_RELEASE=13.06
DISTRIB_CODENAME=enigma-1306
DISTRIB_DESCRIPTION="Netrunner 5 SE Enigma (13.06)"
----------/etc/os-release----------
NAME="Netrunner"
VERSION="13.06, Enigma"
ID=netrunner
ID_LIKE=debian
PRETTY_NAME="Netrunner 5 Enigma (13.06)"
VERSION_ID="13.06"
HOME_URL="www.netrunner-os.com"
SUPPORT_URL="forums.netrunner-os.com"
BUG_REPORT_URL="https://github.com/netrunner/netrunner-feedback"
----------/etc/debian_version----------
wheezy/sid
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Netrunner/13.06.txt
0,0 → 1,22
----------lsb_release -a----------
Distributor ID: Netrunner
Description: Netrunner 5 Enigma (13.06)
Release: 13.06
Codename: enigma-1306
----------/etc/lsb-release----------
DISTRIB_ID=Netrunner
DISTRIB_RELEASE=13.06
DISTRIB_CODENAME=enigma-1306
DISTRIB_DESCRIPTION="Netrunner 5 Enigma (13.06)"
----------/etc/os-release----------
NAME="Netrunner"
VERSION="13.06, Enigma"
ID=netrunner
ID_LIKE=debian
PRETTY_NAME="Netrunner 5 Enigma (13.06)"
VERSION_ID="13.06"
HOME_URL="www.netrunner-os.com"
SUPPORT_URL="forums.netrunner-os.com"
BUG_REPORT_URL="https://github.com/netrunner/netrunner-feedback"
----------/etc/debian_version----------
wheezy/sid
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Netrunner/2014.04.txt
0,0 → 1,22
----------lsb_release -a----------
LSB Version: n/a
Distributor ID: Netrunner
Description: Netrunner Rolling
Release: 2014.04
Codename: Rolling
----------/etc/lsb-release----------
DISTRIB_ID=Netrunner
DISTRIB_RELEASE=2014.04
DISTRIB_CODENAME=Rolling
DISTRIB_DESCRIPTION="Netrunner Rolling"
----------/etc/manjaro-release----------
Manjaro Linux
----------/etc/os-release----------
NAME="Netrunner Rolling"
ID=netrunner
PRETTY_NAME="Netrunner Rolling"
ANSI_COLOR="1;32"
HOME_URL="www.netrunner-os.com"
SUPPORT_URL="forums.netrunner-os.com"
BUG_REPORT_URL="https://github.com/netrunner/netrunner-feedback"
 
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/NixOS/13.10.txt
0,0 → 1,7
----------/etc/os-release----------
NAME=NixOS
ID=nixos
VERSION="13.10.35686.3bcfa7b (Aardvark)"
VERSION_ID="13.10.35686.3bcfa7b"
PRETTY_NAME="NixOS 13.10.35686.3bcfa7b (Aardvark)"
HOME_URL="http://nixos.org/"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/NuTyX/10.0.txt
0,0 → 1,12
----------lsb_release -a----------
LSB Version: 1.4-1
Distributor ID: NuTyX
Description: NuTyX GNU/Linux
Release: 10.0
Codename: Houaphan
----------/etc/lsb-release----------
DISTRIB_ID="NuTyX"
DISTRIB_DESCRIPTION="NuTyX GNU/Linux"
DISTRIB_CODENAME="Houaphan"
DISTRIB_RELEASE="10.0"
LSB_VERSION="1.4-1"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/OpenELEC/8.0.3.txt
0,0 → 1,14
----------lsb_release -a----------
OpenELEC (official) - Version: 8.0.3
----------/etc/os-release----------
NAME="OpenELEC"
VERSION="8.0.3"
ID="openelec"
VERSION_ID="8.0"
PRETTY_NAME="OpenELEC (official) - Version: 8.0.3"
HOME_URL="http://www.openelec.tv"
BUG_REPORT_URL="https://github.com/OpenELEC/OpenELEC.tv"
OPENELEC_ARCH="Generic.x86_64"
OPENELEC_BUILD="official"
----------/etc/release----------
Generic.x86_64-8.0.3
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/OpenMamba/3.0.1.txt
0,0 → 1,31
----------lsb_release -a----------
LSB Version: core-4.1-noarch:core-4.1-x86-64
Distributor ID: openmamba
Description: openmamba release 3.0.1 for x86_64 (milestone3)
Release: 3.0.1
Codename: milestone3
----------/etc/lsb-release----------
DISTRIB_ID=openmamba
DISTRIB_RELEASE=2.90.0
DISTRIB_CODENAME=rolling
DISTRIB_DESCRIPTION="openmamba 2.90.0"
LSB_VERSION=core-4.1-x86-64:core-4.1-noarch
----------/etc/openmamba-release----------
openmamba release 3.0.1 for x86_64 (milestone3)
----------/etc/os-release----------
NAME=openmamba
VERSION="3.0.1 (milestone3)"
ID=openmamba
VERSION_ID="3.0.1"
PRETTY_NAME="openmamba GNU/Linux 3.0.1 for x86_64 (milestone3)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:openmamba:openmamba:3.0.1"
HOME_URL="http://www.openmamba.org/"
BUG_REPORT_URL="http://bugs.openmamba.org/"
OPENMAMBA_MILESTONE="milestone3"
OPENMAMBA_CODENAME="milestone3"
OPENMAMBA_FORUM_URL="http://forum.openmamba.org/"
OPENMAMBA_GIT_URL="http://gitlab.mambasoft.it/openmamba/"
OPENMAMBA_WEBBUILD_URL="http://www.openmamba.org/distribution/webbuild.php"
----------/etc/system-release----------
openmamba release 3.0.1 for x86_64 (milestone3)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/OpenMandriva/2013.0-RC1.txt
0,0 → 1,41
----------lsb_release -a----------
LSB Version: *
Distributor ID: OpenMandrivaLinux
Description: OpenMandriva Lx 2013.0
Release: 2013.0
Codename: oxygen
----------/etc/distro-release----------
OpenMandriva Lx release 2013.0 RC1 (Oxygen) for x86_64
----------/etc/lsb-release----------
LSB_VERSION=
DISTRIB_ID=OpenMandrivaLinux
DISTRIB_RELEASE=2013.0
DISTRIB_CODENAME=oxygen
DISTRIB_DESCRIPTION="OpenMandriva Lx 2013.0"
----------/etc/mandrake-release----------
OpenMandriva Lx release 2013.0 RC1 (Oxygen) for x86_64
----------/etc/mandrakelinux-release----------
OpenMandriva Lx release 2013.0 RC1 (Oxygen) for x86_64
----------/etc/mandriva-release----------
OpenMandriva Lx release 2013.0 RC1 (Oxygen) for x86_64
----------/etc/os-release----------
NAME="OpenMandriva Lx"
VERSION="2013.0 RC1 (Oxygen)"
ID="openmandriva_association"
VERSION_ID=2013.0
BUILD_ID=20131104.12
PRETTY_NAME="OpenMandriva Lx 2013.0 RC1 (Oxygen)"
ANSI_COLOR="1;43"
CPE_NAME="cpe:/o:openmandriva_association:openmandriva_lx:2013.0"
HOME_URL="http://openmandriva.org/"
BUG_REPORT_URL="https://issues.openmandriva.org/"
----------/etc/redhat-release----------
OpenMandriva Lx release 2013.0 RC1 (Oxygen) for x86_64
----------/etc/rosa-release----------
OpenMandriva Lx release 2013.0 RC1 (Oxygen) for x86_64
----------/etc/system-release----------
OpenMandriva Lx release 2013.0 RC1 (Oxygen) for x86_64
----------/etc/version----------
2013.0.0 4 RC1 (Oxygen)
----------/etc/release----------
OpenMandriva Lx release 2013.0 RC1 (Oxygen) for x86_64
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Oracle/5.10-el.txt
0,0 → 1,12
----------lsb_release -a----------
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: EnterpriseEnterpriseServer
Description: Enterprise Linux Enterprise Linux Server release 5.10 (Carthage)
Release: 5.10
Codename: Carthage
----------/etc/enterprise-release----------
Enterprise Linux Enterprise Linux Server release 5.10 (Carthage)
----------/etc/oracle-release----------
Oracle Linux Server release 5.10
----------/etc/redhat-release----------
Red Hat Enterprise Linux Server release 5.10 (Tikanga)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Oracle/6.3.txt
0,0 → 1,12
----------lsb_release -a----------
LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: OracleServer
Description: Oracle Linux Server release 6.3
Release: 6.3
Codename: n/a
----------/etc/oracle-release----------
Oracle Linux Server release 6.3
----------/etc/redhat-release----------
Red Hat Enterprise Linux Server release 6.3 (Santiago)
----------/etc/system-release----------
Oracle Linux Server release 6.3
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/PCLinuxOS/2012.06.txt
0,0 → 1,26
----------lsb_release -a----------
LSB Version: lsb-3.1-ia32:lsb-3.1-noarch:*
Distributor ID: PCLinuxOS
Description: PCLinuxOS
Release: 2012
Codename: PCLinuxOS
----------/etc/lsb-release----------
LSB_VERSION=lsb-3.1-ia32:lsb-3.1-noarch:*
DISTRIB_ID=PCLinuxOS
DISTRIB_RELEASE=
DISTRIB_CODENAME=
DISTRIB_DESCRIPTION="PCLinuxOS"
----------/etc/version----------
2012 1 PCLinuxOS
----------/etc/mandrake-release----------
PCLinuxOS release 2012 (PCLinuxOS) for i586
----------/etc/mandrakelinux-release----------
PCLinuxOS release 2012 (PCLinuxOS) for i586
----------/etc/mandriva-release----------
PCLinuxOS release 2012 (PCLinuxOS) for i586
----------/etc/pclinuxos-release----------
PCLinuxOS release 2012 (PCLinuxOS) for i586
----------/etc/redhat-release----------
PCLinuxOS release 2012 (PCLinuxOS) for i586
----------/etc/release----------
PCLinuxOS release 2012 (PCLinuxOS) for i586
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/PLD/2.99.txt
0,0 → 1,2
----------/etc/pld-release----------
2.99 PLD Linux (Th)
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/PLD/3.0.txt
0,0 → 1,11
----------/etc/pld-release----------
3.0 PLD Linux (Th)
----------/etc/os-release----------
NAME="PLD Linux"
ID="pld"
VERSION_ID="3.0"
PRETTY_NAME="PLD Linux 3.0 (Th)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:pld-linux:pld:3.0"
HOME_URL="http://www.pld-linux.org/"
BUG_REPORT_URL="https://bugs.pld-linux.org/"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Parsix/5.0.txt
0,0 → 1,19
----------lsb_release -a----------
Distributor ID: Parsix
Description: Parsix GNU/Linux 5.0 (lombardo)
Release: 5.0
Codename: lombardo
----------/etc/os-release----------
PRETTY_NAME="Parsix GNU/Linux 4.0 (gloria)"
NAME="Parsix GNU/Linux"
VERSION_ID="4.0"
VERSION="4.0 (gloria)"
ID=parsix
ANSI_COLOR="1;31"
HOME_URL="http://www.parsix.org/"
SUPPORT_URL="http://forums.parsix.org/"
BUG_REPORT_URL="http://bugs.parsix.org/"
----------/etc/parsix-version----------
Parsix GNU/Linux 5.0r1
----------/etc/debian_version----------
7.0
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Parsix/6.0.txt
0,0 → 1,19
----------lsb_release -a----------
Distributor ID: Parsix
Description: Parsix GNU/Linux 6.0 (trev)
Release: 6.0
Codename: trev
----------/etc/os-release----------
PRETTY_NAME="Parsix GNU/Linux 4.0 (gloria)"
NAME="Parsix GNU/Linux"
VERSION_ID="4.0"
VERSION="4.0 (gloria)"
ID=parsix
ANSI_COLOR="1;31"
HOME_URL="http://www.parsix.org/"
SUPPORT_URL="http://forums.parsix.org/"
BUG_REPORT_URL="http://bugs.parsix.org/"
----------/etc/parsix-version----------
Parsix GNU/Linux 6.0-TEST-1
----------/etc/debian_version----------
7.0
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Pear/5.00.txt
0,0 → 1,12
----------lsb_release -a----------
Distributor ID: PearLinux
Description: Pear Linux 5
Release: 5.00
Codename: sunsprite
----------/etc/lsb-release----------
DISTRIB_ID=PearLinux
DISTRIB_RELEASE=5.00
DISTRIB_CODENAME=sunsprite
DISTRIB_DESCRIPTION="Pear Linux 5"
----------/etc/debian_version----------
wheezy/sid
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Pear/6.1-LTS.txt
0,0 → 1,20
----------lsb_release -a----------
Distributor ID: PearLinux
Description: Pear Linux 6.1 LTS
Release: 6.1
Codename: Bartlett
----------/etc/lsb-release----------
DISTRIB_ID=PearLinux
DISTRIB_RELEASE=6.1
DISTRIB_CODENAME=Bartlett
DISTRIB_DESCRIPTION="Pear Linux 6.1 LTS"
DISTRIB_EDITION="32 bit PAE"
----------/etc/os-release----------
NAME="Ubuntu"
VERSION="12.04.1 LTS, Precise Pangolin"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu precise (12.04.1 LTS)"
VERSION_ID="12.04"
----------/etc/debian_version----------
wheezy/sid
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Pear/6.1.txt
0,0 → 1,19
----------lsb_release -a----------
Distributor ID: Pear Linux
Description: Pear Linux 6.1
Release: 6.1
Codename: Bartlett
----------/etc/lsb-release----------
DISTRIB_ID="Pear Linux"
DISTRIB_RELEASE="6.1"
DISTRIB_CODENAME="Bartlett"
DISTRIB_DESCRIPTION="Pear Linux 6.1"
----------/etc/os-release----------
NAME="Ubuntu"
VERSION="12.04.1 LTS, Precise Pangolin"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu precise (12.04.1 LTS)"
VERSION_ID="12.04"
----------/etc/debian_version----------
wheezy/sid
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Pear/7.0.txt
0,0 → 1,20
----------lsb_release -a----------
Distributor ID: PearOS
Description: Pear OS 7 64 bits
Release: 7.0
Codename: Corella
----------/etc/lsb-release----------
DISTRIB_ID="PearOS"
DISTRIB_RELEASE="7.0"
DISTRIB_CODENAME="Corella"
DISTRIB_DESCRIPTION="Pear OS 7 64 bits"
 
----------/etc/os-release----------
NAME="Ubuntu"
VERSION="12.10, Quantal Quetzal"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu quantal (12.10)"
VERSION_ID="12.10"
----------/etc/debian_version----------
wheezy/sid
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Peppermint/3.txt
0,0 → 1,12
----------lsb_release -a----------
Distributor ID: Peppermint
Description: Peppermint Three
Release: 3
Codename: precise
----------/etc/lsb-release----------
DISTRIB_ID=Peppermint
DISTRIB_RELEASE=3
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Peppermint Three"
----------/etc/debian_version----------
wheezy/sid
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Peppermint/4-20131113.txt
0,0 → 1,22
----------lsb_release -a----------
Distributor ID: Peppermint
Description: Peppermint Four
Release: 4
Codename: raring
----------/etc/lsb-release----------
DISTRIB_ID=Peppermint
DISTRIB_RELEASE=4
DISTRIB_CODENAME=raring
DISTRIB_DESCRIPTION="Peppermint Four"
----------/etc/os-release----------
NAME="Peppermint"
VERSION="Four"
ID=peppermint
ID_LIKE=debian
PRETTY_NAME="Peppermint Four"
VERSION_ID="4"
HOME_URL="http://peppermintos.com/"
SUPPORT_URL="http://peppermintos.net/"
BUG_REPORT_URL="http://bugs.launchpad.net/peppermint/"
----------/etc/debian_version----------
wheezy/sid
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Pisi/1.0.txt
0,0 → 1,15
----------lsb_release -a----------
LSB Version: n/a
Distributor ID: PisiLinux
Description: Pisi GNU/Linux 1.0
Release: 1.0
Codename: n/a
----------/etc/lsb-release----------
DISTRIB_ID="PisiLinux"
DISTRIB_RELEASE="1.0"
DISTRIB_DESCRIPTION="Pisi GNU/Linux 1.0"
DISTRIB_CODENAME=""
----------/etc/pisilinux-release----------
Pisi_Linux 1.0
----------/etc/system-release----------
Pisi_Linux 1.0
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Porteus/2.1.txt
0,0 → 1,15
----------/etc/os-release----------
NAME=Slackware
VERSION="14.0"
ID=slackware
VERSION_ID=14.0
PRETTY_NAME="Slackware 14.0"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:slackware:slackware_linux:14.0"
HOME_URL="http://slackware.com/"
SUPPORT_URL="http://www.linuxquestions.org/questions/slackware-14/"
BUG_REPORT_URL="http://www.linuxquestions.org/questions/slackware-14/"
----------/etc/porteus-version----------
Porteus-v2.1
----------/etc/slackware-version----------
Slackware 14.0
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Puppy/431.txt
0,0 → 1,11
----------/etc/DISTRO_SPECS----------
#One or more words that identify this distribution:
DISTRO_NAME='Puppy'
#A three-digit numeric value, version number of this distribution:
DISTRO_VERSION=431
#The distro whose binary packages were used to build this distribution:
DISTRO_BINARY_COMPAT='puppy'
#Prefix for some filenames: exs: pupsave.2fs, pup-431.sfs
DISTRO_FILE_PREFIX='pup'
#The version of the distro whose binary packages were used to build this distro:
DISTRO_COMPAT_VERSION='4'
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Puppy/5.3-wary.txt
0,0 → 1,23
----------/etc/DISTRO_SPECS----------
#One or more words that identify this distribution:
DISTRO_NAME='Wary Puppy'
#version number of this distribution:
DISTRO_VERSION=5.3
#The distro whose binary packages were used to build this distribution:
DISTRO_BINARY_COMPAT='puppy'
#Prefix for some filenames: exs: warysave.2fs, wary-5.1.3.4.sfs
DISTRO_FILE_PREFIX='wary'
#The version of the distro whose binary packages were used to build this distro:
DISTRO_COMPAT_VERSION='wary5'
#the kernel pet package used:
DISTRO_KERNEL_PET='linux_kernel-2.6.32.59-uni-i486-aufs-w5.pet'
DISTRO_TARGETARCH='x86'
#16-byte alpha-numeric ID-string appended to vmlinuz, puppy_wary_5.3.sfs, zdrv_wary_5.3.sfs and devx.sfs:
DISTRO_IDSTRING='w120404071421ZZZZ5.3XXXXXXXXXXXX'
#Puppy default filenames...
#Note, the 'SFS' files below are what the 'init' script in initrd.gz searches for,
#for the partition, path and actual files loaded, see PUPSFS and ZDRV in /etc/rc.d/PUPSTATE
DISTRO_PUPPYSFS='puppy_wary_5.3.sfs'
DISTRO_ZDRVSFS='zdrv_wary_5.3.sfs'
DISTRO_PUPPYDATE='Apr 2012'
DISTRO_XORG_AUTO='no'
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Puppy/5.3.3-slacko.txt
0,0 → 1,22
----------/etc/DISTRO_SPECS----------
#One or more words that identify this distribution:
DISTRO_NAME='Slacko Puppy'
#version number of this distribution:
DISTRO_VERSION=5.3.3
#The distro whose binary packages were used to build this distribution:
DISTRO_BINARY_COMPAT='slackware'
#Prefix for some filenames: exs: slackosave.2fs, slacko-5.3.3.sfs
DISTRO_FILE_PREFIX='slacko'
#The version of the distro whose binary packages were used to build this distro:
DISTRO_COMPAT_VERSION='13.37'
#the kernel pet package used:
DISTRO_KERNEL_PET='linux_kernel-3.1.10-patched_s_4gA.pet'
#16-byte alpha-numeric ID-string appended to vmlinuz, puppy_slacko_5.3.3.sfs, zdrv_slacko_5.3.3.sfs and devx.sfs:
DISTRO_IDSTRING='s120505091759ZZZZ5.3.3XXXXXXXXXX'
#Puppy default filenames...
#Note, the 'SFS' files below are what the 'init' script in initrd.gz searches for,
#for the partition, path and actual files loaded, see PUPSFS and ZDRV in /etc/rc.d/PUPSTATE
DISTRO_PUPPYSFS='puppy_slacko_5.3.3.sfs'
DISTRO_ZDRVSFS='zdrv_slacko_5.3.3.sfs'
DISTRO_PUPPYDATE='May 2012'
DISTRO_XORG_AUTO='yes'
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/distrotest/Puppy/528-lucid.txt
0,0 → 1,22
----------/etc/DISTRO_SPECS----------
#One or more words that identify this distribution:
DISTRO_NAME='Lucid '
#A three-digit numeric value, version number of this distribution:
DISTRO_VERSION=528
#A two-digit numeric value, minor-version number of this distribution:
DISTRO_MINOR_VERSION=00
#The distro whose binary packages were used to build this distribution:
DISTRO_BINARY_COMPAT='ubuntu'
#Prefix for some filenames: exs: lupusave.2fs, lupu-528.sfs
DISTRO_FILE_PREFIX='lupu'
#The version of the distro whose binary packages were used to build this distro:
DISTRO_COMPAT_VERSION='lucid'
#the kernel pet package used:
DISTRO_KERNEL_PET='linux_kernel-2.6.33.2-tickless_smp_patched-L3.pet'
#16-byte alpha-numeric ID-string appended to vmlinuz, lupu_528.sfs, zl528332.sfs and devx.sfs:
DISTRO_IDSTRING='l528120404231153'
#Puppy default filenames...
#Note, the 'SFS' files below are what the 'init' script in initrd.gz searches for,
#for the partition, path and actual files loaded, see PUPSFS and ZDRV in /etc/rc.d/PUPSTATE
DISTRO_PUPPYSFS='lupu_528.sfs'
DISTRO_ZDRVSFS='zl528332.sfs'
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/aix/prtconf1.txt
0,0 → 1,65
System Model: IBM,9133-55A
Machine Serial Number: 05F8123A
Processor Type: PowerPC_POWER5
Number Of Processors: 4
Processor Clock Speed: 1499 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 1 galaxy198
Memory Size: 4096 MB
Good Memory Size: 4096 MB
Platform Firmware level: Not Available
Firmware Version: IBM,SF240_338
Console Login: enable
Auto Restart: true
Full Core: false
 
Network Information
Host Name: testibm
IP Address: 192.168.1.2
Sub Netmask: 255.255.255.0
Gateway: 192.168.1.1
Name Server: 192.168.1.1
Domain Name: foo.com
 
Paging Space Information
Total Paging Space: 8192MB
Percent Used: 1%
 
Volume Groups Information
==============================================================================
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 525 383 109..24..42..99..109
==============================================================================
 
INSTALLED RESOURCE LIST
 
The following resources are installed on the machine.
+/- = Added or deleted from Resource List.
* = Diagnostic support not available.
 
Model Architecture: chrp
Model Implementation: Multiple Processor, PCI bus
 
+ sys0 System Object
+ sysplanar0 System Planar
* vio0 Virtual I/O Bus
* vsa0 U9133.55A.06F865G-V1-C0 LPAR Virtual Serial Adapter
* vty0 U9133.55A.06F865G-V1-C0-L0 Asynchronous Terminal
* pci2 U787B.001.DNWCF4C-P1 PCI Bus
* pci7 U787B.001.DNWCF4C-P1 PCI Bus
+ ent2 U787B.001.DNWCF4C-P1-T9 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
+ ent3 U787B.001.DNWCF4C-P1-T10 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
* pci8 U787B.001.DNWCF4C-P1 PCI Bus
+ usbhc0 U787B.001.DNWCF4C-P1 USB Host Controller (33103500)
+ usbhc1 U787B.001.DNWCF4C-P1 USB Host Controller (33103500)
* pci9 U787B.001.DNWCF4C-P1 PCI Bus
+ fcs2 U787B.001.DNWCF4C-P1-C1-T1 FC Adapter
* fcnet2 U787B.001.DNWCF4C-P1-C1-T1 Fibre Channel Network Protocol Device
* fscsi2 U787B.001.DNWCF4C-P1-C1-T1 FC SCSI I/O Controller Protocol Device
+ mem0 Memory
+ proc0 Processor
+ proc2 Processor
+ proc4 Processor
+ proc6 Processor
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/web/acc/phpsysinfo/sample/aix/prtconf2.txt
0,0 → 1,86
System Model: IBM,7998-61X
Machine Serial Number: 01sd123
Processor Type: PowerPC_POWER6
Processor Implementation Mode: POWER 6
Processor Version: PV_6
Number Of Processors: 4
Processor Clock Speed: 4005 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 1 06-5BD4A
Memory Size: 31616 MB
Good Memory Size: 31616 MB
Platform Firmware level: EA350_132
Firmware Version: IBM,EA350_132
Console Login: enable
Auto Restart: true
Full Core: false
 
Network Information
Host Name: SAPIBM
IP Address: 192.168.1.1
Sub Netmask: 255.255.252.0
Gateway: 192.168.1.1
Name Server:
Domain Name:
 
Paging Space Information
Total Paging Space: 512MB
Percent Used: 3%
 
Volume Groups Information
==============================================================================
==============================================================================
 
INSTALLED RESOURCE LIST
 
The following resources are installed on the machine.
+/- = Added or deleted from Resource List.
* = Diagnostic support not available.
 
Model Architecture: chrp
Model Implementation: Multiple Processor, PCI bus
 
+ sys0 System Object
+ sysplanar0 System Planar
* vio0 Virtual I/O Bus
* vsa0 U7998.61X.065BD4A-V1-C0 LPAR Virtual Serial Adapter
* vty0 U7998.61X.065BD4A-V1-C0-L0 Asynchronous Terminal
* pci3 U78A5.001.WIH4F4F-P1 PCI Bus
+ fcs0 U78A5.001.WIH4F4F-P1-C6-T1 FC Adapter
+ fscsi0 U78A5.001.WIH4F4F-P1-C6-T1 FC SCSI I/O Controller Protocol Device
* hdisk1 U78A5.001.WIH4F4F-P1-C6-T1-W5006048C52A8FD87-L25000000000000 EMC Symmetrix FCP Raid5
* hdisk2 U78A5.001.WIH4F4F-P1-C6-T1-W5006048C52A8FD87-L26000000000000 EMC Symmetrix FCP Raid5
* hdisk0 U78A5.001.WIH4F4F-P1-C6-T1-W5006048C52A8FD87-L0 EMC Symmetrix FCP Raid1
* hdisk30 U78A5.001.WIH4F4F-P1-C6-T1-W5006048C52A8FD87-L44000000000000 EMC Symmetrix FCP Raid5
* hdiskpower0 U78A5.001.WIH4F4F-P1-C6-T1-L2 PowerPath Device
* hdiskpower1 U78A5.001.WIH4F4F-P1-C6-T1-L3 PowerPath Device
* hdiskpower2 U78A5.001.WIH4F4F-P1-C6-T1-L4 PowerPath Device
* hdisk3 U78A5.001.WIH4F4F-P1-C6-T1-W5006048452A8FD86-L0 EMC Symmetrix FCP Raid1
* hdisk4 U78A5.001.WIH4F4F-P1-C6-T1-W5006048C52A8FD86-L0 EMC Symmetrix FCP Raid1
+ fcs1 U78A5.001.WIH4F4F-P1-C6-T2 FC Adapter
+ fscsi1 U78A5.001.WIH4F4F-P1-C6-T2 FC SCSI I/O Controller Protocol Device
* pci2 U78A5.001.WIH4F4F-P1 PCI Bus
+ ati0 U78A5.001.WIH4F4F-P1-C5-T1 Native Display Graphics Adapter
* pci1 U78A5.001.WIH4F4F-P1 PCI Bus
+ usbhc0 U78A5.001.WIH4F4F-P1 USB Host Controller (33103500)
+ usbhc1 U78A5.001.WIH4F4F-P1 USB Host Controller (33103500)
+ usbhc2 U78A5.001.WIH4F4F-P1 USB Enhanced Host Controller (3310e000)
* pci0 U78A5.001.WIH4F4F-P1 PCI Bus
+ sissas0 U78A5.001.WIH4F4F-P1-T5 PCI-X266 Planar 3Gb SAS Adapter
* sas0 U78A5.001.WIH4F4F-P1-T5 Controller SAS Protocol
* sfwcomm0 SAS Storage Framework Comm
+ ses0 U78A5.001.WIH4F4F-P1-Y1 SAS Enclosure Services Device
* sata0 U78A5.001.WIH4F4F-P1-T5 Controller SATA Protocol
* lhea0 U78A5.001.WIH4F4F-P1 Logical Host Ethernet Adapter (l-hea)
+ ent1 U78A5.001.WIH4F4F-P1-T7 Logical Host Ethernet Port (lp-hea)
+ ent0 U78A5.001.WIH4F4F-P1-T6 Logical Host Ethernet Port (lp-hea)
+ L2cache0 L2 Cache
+ mem0 Memory
+ proc0 Processor
+ proc2 Processor
+ proc4 Processor
+ proc6 Processor
+ cd0 U78A5.001.WIH4F4F-P1-T1-L1-L2-L3 USB DVD-ROM Drive
* kbd0 U78A5.001.WIH4F4F-P1-T2-L1 USB keyboard
* mouse0 U78A5.001.WIH4F4F-P1-T2-L1 USB mouse
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property