/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/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/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> |