* Mon May 12 2025 Brian Read <brianr@koozali.org> 11.0.0-1.sme
- Adding SM2 panel [SME: 13004] - Upgrade to phpsysinfo 3.4.4 - Add code to delete inline styles and add css to make it look better. - version saved / built uses the static version, which means no drops downs and choices.
This commit is contained in:
@@ -1,18 +1,5 @@
|
||||
<?php
|
||||
/**
|
||||
* Quotas Plugin
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category PHP
|
||||
* @package PSI_Plugin_Quotas
|
||||
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
|
||||
* @copyright 2009 phpSysInfo
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
|
||||
* @version SVN: $Id: class.quotas.inc.php 661 2012-08-27 11:26:39Z namiltd $
|
||||
* @link http://phpsysinfo.sourceforge.net
|
||||
*/
|
||||
/**
|
||||
* Quotas Plugin, which displays all quotas on the machine
|
||||
* display all quotas in a sortable table with the current values which are determined by
|
||||
* calling the "repquota" command line utility, another way is to provide
|
||||
@@ -24,7 +11,7 @@
|
||||
* @package PSI_Plugin_Quotas
|
||||
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
|
||||
* @copyright 2009 phpSysInfo
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
|
||||
* @version Release: 3.0
|
||||
* @link http://phpsysinfo.sourceforge.net
|
||||
*/
|
||||
@@ -50,16 +37,18 @@ class Quotas extends PSI_Plugin
|
||||
public function __construct($enc)
|
||||
{
|
||||
parent::__construct(__CLASS__, $enc);
|
||||
switch (strtolower(PSI_PLUGIN_QUOTAS_ACCESS)) {
|
||||
$buffer = "";
|
||||
if ((PSI_OS != 'WINNT') && (!defined('PSI_EMU_HOSTNAME') || defined('PSI_EMU_PORT'))) switch (strtolower(PSI_PLUGIN_QUOTAS_ACCESS)) {
|
||||
case 'command':
|
||||
CommonFunctions::executeProgram("repquota", "-au", $buffer, PSI_DEBUG);
|
||||
break;
|
||||
case 'data':
|
||||
CommonFunctions::rfts(APP_ROOT."/data/quotas.txt", $buffer);
|
||||
if (!defined('PSI_EMU_HOSTNAME')) {
|
||||
CommonFunctions::rftsdata("quotas.tmp", $buffer);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$this->global_error->addConfigError("__construct()", "PSI_PLUGIN_QUOTAS_ACCESS");
|
||||
break;
|
||||
$this->global_error->addConfigError("__construct()", "[quotas] ACCESS");
|
||||
}
|
||||
if (trim($buffer) != "") {
|
||||
$this->_filecontent = preg_split("/\n/", $buffer, -1, PREG_SPLIT_NO_EMPTY);
|
||||
@@ -81,22 +70,26 @@ class Quotas extends PSI_Plugin
|
||||
$i = 0;
|
||||
$quotas = array();
|
||||
foreach ($this->_filecontent as $thisline) {
|
||||
$thisline = preg_replace("/([\s]--)/", "", $thisline);
|
||||
$thisline = preg_split("/(\s)/e", $thisline, -1, PREG_SPLIT_NO_EMPTY);
|
||||
if (count($thisline) == 7) {
|
||||
$quotas[$i]['user'] = str_replace("--", "", $thisline[0]);
|
||||
$quotas[$i]['byte_used'] = $thisline[1] * 1024;
|
||||
$quotas[$i]['byte_soft'] = $thisline[2] * 1024;
|
||||
$quotas[$i]['byte_hard'] = $thisline[3] * 1024;
|
||||
if ($thisline[3] != 0) {
|
||||
$thisline = preg_replace("/([\s][-+][-+])/", "", $thisline);
|
||||
$thisline = preg_split("/(\s)/", $thisline, -1, PREG_SPLIT_NO_EMPTY);
|
||||
$params = array();
|
||||
foreach ($thisline as $param) if (is_numeric($param)) {
|
||||
$params[] = $param;
|
||||
}
|
||||
if (($paramscount = count($params)) == 6) {
|
||||
$quotas[$i]['user'] = trim($thisline[0], " \t+-");
|
||||
$quotas[$i]['byte_used'] = $params[0] * 1024;
|
||||
$quotas[$i]['byte_soft'] = $params[1] * 1024;
|
||||
$quotas[$i]['byte_hard'] = $params[2] * 1024;
|
||||
if ($quotas[$i]['byte_hard'] != 0) {
|
||||
$quotas[$i]['byte_percent_used'] = round((($quotas[$i]['byte_used'] / $quotas[$i]['byte_hard']) * 100), 1);
|
||||
} else {
|
||||
$quotas[$i]['byte_percent_used'] = 0;
|
||||
}
|
||||
$quotas[$i]['file_used'] = $thisline[4];
|
||||
$quotas[$i]['file_soft'] = $thisline[5];
|
||||
$quotas[$i]['file_hard'] = $thisline[6];
|
||||
if ($thisline[6] != 0) {
|
||||
$quotas[$i]['file_used'] = $params[3];
|
||||
$quotas[$i]['file_soft'] = $params[4];
|
||||
$quotas[$i]['file_hard'] = $params[5];
|
||||
if ($quotas[$i]['file_hard'] != 0) {
|
||||
$quotas[$i]['file_percent_used'] = round((($quotas[$i]['file_used'] / $quotas[$i]['file_hard']) * 100), 1);
|
||||
} else {
|
||||
$quotas[$i]['file_percent_used'] = 0;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
$Id: quotas.css 661 2012-08-27 11:26:39Z namiltd $
|
||||
*/
|
||||
#plugin_quotasTable thead tr .header {
|
||||
#Plugin_QuotasTable thead tr th {
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
}
|
||||
|
@@ -34,8 +34,15 @@ var quotas_show = false, quotas_table;
|
||||
* @param {jQuery} xml plugin-XML
|
||||
*/
|
||||
function quotas_populate(xml) {
|
||||
var hostname = "";
|
||||
|
||||
quotas_table.fnClearTable();
|
||||
|
||||
hostname = $("Plugins Plugin_Quotas", xml).attr('Hostname');
|
||||
if (hostname !== undefined) {
|
||||
$('span[class=Hostname_Quotas]').html(hostname);
|
||||
}
|
||||
|
||||
$("Plugins Plugin_Quotas Quota", xml).each(function quotas_getquota(id) {
|
||||
var user = "", bused = 0, bsoft = 0, bhard = 0, bpuse = 0, fpuse = 0, fused = 0, fsoft = 0, fhard = 0;
|
||||
user = $(this).attr("User");
|
||||
@@ -59,23 +66,25 @@ function quotas_populate(xml) {
|
||||
function quotas_buildTable() {
|
||||
var html = "";
|
||||
|
||||
html += "<table id=\"Plugin_QuotasTable\" style=\"border-spacing:0;\">\n";
|
||||
html += " <thead>\n";
|
||||
html += " <tr>\n";
|
||||
html += " <th>" + genlang(3, false, "Quotas") + "</th>\n";
|
||||
html += " <th class=\"right\">" + genlang(4, false, "Quotas") + "</th>\n";
|
||||
html += " <th class=\"right\">" + genlang(5, false, "Quotas") + "</th>\n";
|
||||
html += " <th class=\"right\">" + genlang(6, false, "Quotas") + "</th>\n";
|
||||
html += " <th>" + genlang(7, false, "Quotas") + "</th>\n";
|
||||
html += " <th class=\"right\">" + genlang(8, false, "Quotas") + "</th>\n";
|
||||
html += " <th class=\"right\">" + genlang(9, false, "Quotas") + "</th>\n";
|
||||
html += " <th class=\"right\">" + genlang(10, false, "Quotas") + "</th>\n";
|
||||
html += " <th>" + genlang(11, false, "Quotas") + "</th>\n";
|
||||
html += " </tr>\n";
|
||||
html += " </thead>\n";
|
||||
html += " <tbody>\n";
|
||||
html += " </tbody>\n";
|
||||
html += "</table>\n";
|
||||
html += "<div style=\"overflow-x:auto;\">\n";
|
||||
html += " <table id=\"Plugin_QuotasTable\" style=\"border-collapse:collapse;\">\n";
|
||||
html += " <thead>\n";
|
||||
html += " <tr>\n";
|
||||
html += " <th>" + genlang(2, "Quotas") + "</th>\n";
|
||||
html += " <th class=\"right\">" + genlang(3, "Quotas") + "</th>\n";
|
||||
html += " <th class=\"right\">" + genlang(4, "Quotas") + "</th>\n";
|
||||
html += " <th class=\"right\">" + genlang(5, "Quotas") + "</th>\n";
|
||||
html += " <th>" + genlang(6, "Quotas") + "</th>\n";
|
||||
html += " <th class=\"right\">" + genlang(7, "Quotas") + "</th>\n";
|
||||
html += " <th class=\"right\">" + genlang(8, "Quotas") + "</th>\n";
|
||||
html += " <th class=\"right\">" + genlang(9, "Quotas") + "</th>\n";
|
||||
html += " <th>" + genlang(10, "Quotas") + "</th>\n";
|
||||
html += " </tr>\n";
|
||||
html += " </thead>\n";
|
||||
html += " <tbody>\n";
|
||||
html += " </tbody>\n";
|
||||
html += " </table>\n";
|
||||
html += "</div>\n";
|
||||
|
||||
$("#Plugin_Quotas").append(html);
|
||||
|
||||
@@ -114,6 +123,7 @@ function quotas_buildTable() {
|
||||
* load the xml via ajax
|
||||
*/
|
||||
function quotas_request() {
|
||||
$("#Reload_QuotasTable").attr("title", "reload");
|
||||
$.ajax({
|
||||
url: "xml.php?plugin=Quotas",
|
||||
dataType: "xml",
|
||||
@@ -133,7 +143,7 @@ function quotas_request() {
|
||||
|
||||
$(document).ready(function quotas_buildpage() {
|
||||
$("#footer").before(buildBlock("Quotas", 1, true));
|
||||
$("#Plugin_Quotas").css("width", "915px");
|
||||
$("#Plugin_Quotas").addClass("fullsize");
|
||||
|
||||
quotas_buildTable();
|
||||
|
||||
@@ -141,6 +151,6 @@ $(document).ready(function quotas_buildpage() {
|
||||
|
||||
$("#Reload_QuotasTable").click(function quotas_reload(id) {
|
||||
quotas_request();
|
||||
$("#Reload_QuotasTable").attr("title",datetime());
|
||||
$(this).attr("title", datetime());
|
||||
});
|
||||
});
|
||||
|
@@ -3,36 +3,36 @@ function renderPlugin_quotas(data) {
|
||||
var directives = {
|
||||
|
||||
ByteUsed: {
|
||||
text: function () {
|
||||
return formatBytes(this["ByteUsed"], data["Options"]["@attributes"]["byteFormat"]);
|
||||
html: function () {
|
||||
return formatBytes(this.ByteUsed, data.Options["@attributes"].byteFormat);
|
||||
}
|
||||
},
|
||||
ByteSoft: {
|
||||
text: function () {
|
||||
return formatBytes(this["ByteSoft"], data["Options"]["@attributes"]["byteFormat"]);
|
||||
html: function () {
|
||||
return formatBytes(this.ByteSoft, data.Options["@attributes"].byteFormat);
|
||||
}
|
||||
},
|
||||
ByteHard: {
|
||||
text: function () {
|
||||
return formatBytes(this["ByteHard"], data["Options"]["@attributes"]["byteFormat"]);
|
||||
html: function () {
|
||||
return formatBytes(this.ByteHard, data.Options["@attributes"].byteFormat);
|
||||
}
|
||||
},
|
||||
BytePercentUsed: {
|
||||
html: function () {
|
||||
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width: ' + this["BytePercentUsed"] + '%;"></div>' +
|
||||
'</div><div class="percent">' + this["BytePercentUsed"] + '%</div>';
|
||||
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + this.BytePercentUsed + '%;"></div>' +
|
||||
'</div><div class="percent">' + this.BytePercentUsed + '%</div>';
|
||||
}
|
||||
},
|
||||
FilePercentUsed: {
|
||||
html: function () {
|
||||
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width: ' + this["FilePercentUsed"] + '%;"></div>' +
|
||||
'</div><div class="percent">' + this["FilePercentUsed"] + '%</div>';
|
||||
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + this.FilePercentUsed + '%;"></div>' +
|
||||
'</div><div class="percent">' + this.FilePercentUsed + '%</div>';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
if (data['Plugins']['Plugin_Quotas'] !== undefined) {
|
||||
var qtitems = items(data['Plugins']['Plugin_Quotas']['Quota']);
|
||||
if (data.Plugins.Plugin_Quotas !== undefined) {
|
||||
var qtitems = items(data.Plugins.Plugin_Quotas.Quota);
|
||||
if (qtitems.length > 0) {
|
||||
var qt_memory = [];
|
||||
qt_memory.push_attrs(qtitems);
|
||||
|
@@ -6,37 +6,34 @@
|
||||
<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_quotas_001" name="ps_title">
|
||||
<expression id="plugin_quotas_001" name="quotas_title">
|
||||
<exp>Stav kvót</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_002" name="quotas_date">
|
||||
<exp>aktualizováno</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_003" name="quotas_user">
|
||||
<expression id="plugin_quotas_002" name="quotas_user">
|
||||
<exp>Uživatel</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bused">
|
||||
<expression id="plugin_quotas_003" name="quotas_bused">
|
||||
<exp>Využité místo</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bsoft">
|
||||
<expression id="plugin_quotas_004" name="quotas_bsoft">
|
||||
<exp>Měkký limit</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bhard">
|
||||
<expression id="plugin_quotas_005" name="quotas_bhard">
|
||||
<exp>Tvrdý limit</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_bpuse">
|
||||
<expression id="plugin_quotas_006" name="quotas_bpuse">
|
||||
<exp>Procento využití</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fused">
|
||||
<expression id="plugin_quotas_007" name="quotas_fused">
|
||||
<exp>Počet soouborů</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fsoft">
|
||||
<expression id="plugin_quotas_008" name="quotas_fsoft">
|
||||
<exp>Měkký souborový limit</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fhard">
|
||||
<expression id="plugin_quotas_009" name="quotas_fhard">
|
||||
<exp>Tvrdý souborový limit</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_011" name="quotas_fpuse">
|
||||
<expression id="plugin_quotas_010" name="quotas_fpuse">
|
||||
<exp>Procento využití souborů</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
||||
|
@@ -6,37 +6,34 @@
|
||||
<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_quotas_001" name="ps_title">
|
||||
<expression id="plugin_quotas_001" name="quotas_title">
|
||||
<exp>Quota Status</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_002" name="quotas_date">
|
||||
<exp>Letze Aktualisierung</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_003" name="quotas_user">
|
||||
<expression id="plugin_quotas_002" name="quotas_user">
|
||||
<exp>Benutzer</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bused">
|
||||
<expression id="plugin_quotas_003" name="quotas_bused">
|
||||
<exp>Bytes (Belegt)</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bsoft">
|
||||
<expression id="plugin_quotas_004" name="quotas_bsoft">
|
||||
<exp>Bytes (Soft Limit)</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bhard">
|
||||
<expression id="plugin_quotas_005" name="quotas_bhard">
|
||||
<exp>Bytes (Hard Limit)</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_bpuse">
|
||||
<expression id="plugin_quotas_006" name="quotas_bpuse">
|
||||
<exp>Bytes (Belegt Prozent)</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fused">
|
||||
<expression id="plugin_quotas_007" name="quotas_fused">
|
||||
<exp>Dateien (Benutzt)</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fsoft">
|
||||
<expression id="plugin_quotas_008" name="quotas_fsoft">
|
||||
<exp>Dateien (Soft Limit)</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fhard">
|
||||
<expression id="plugin_quotas_009" name="quotas_fhard">
|
||||
<exp>Dateien (Hard Limit)</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_011" name="quotas_fpuse">
|
||||
<expression id="plugin_quotas_010" name="quotas_fpuse">
|
||||
<exp>Dateien (Benutzt Prozent)</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
||||
|
@@ -6,37 +6,34 @@
|
||||
<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_quotas_001" name="ps_title">
|
||||
<expression id="plugin_quotas_001" name="quotas_title">
|
||||
<exp>Quota Status</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_002" name="quotas_date">
|
||||
<exp>Last Refresh</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_003" name="quotas_user">
|
||||
<expression id="plugin_quotas_002" name="quotas_user">
|
||||
<exp>User</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bused">
|
||||
<expression id="plugin_quotas_003" name="quotas_bused">
|
||||
<exp>Bytes Used</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bsoft">
|
||||
<expression id="plugin_quotas_004" name="quotas_bsoft">
|
||||
<exp>Bytes Soft</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bhard">
|
||||
<expression id="plugin_quotas_005" name="quotas_bhard">
|
||||
<exp>Bytes Hard</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_bpuse">
|
||||
<expression id="plugin_quotas_006" name="quotas_bpuse">
|
||||
<exp>Bytes Used Percent</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fused">
|
||||
<expression id="plugin_quotas_007" name="quotas_fused">
|
||||
<exp>Files Used</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fsoft">
|
||||
<expression id="plugin_quotas_008" name="quotas_fsoft">
|
||||
<exp>Files Soft</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fhard">
|
||||
<expression id="plugin_quotas_009" name="quotas_fhard">
|
||||
<exp>Files Hard</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_011" name="quotas_fpuse">
|
||||
<expression id="plugin_quotas_010" name="quotas_fpuse">
|
||||
<exp>Files Used Percent</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
||||
|
@@ -6,37 +6,34 @@
|
||||
<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_quotas_001" name="ps_title">
|
||||
<expression id="plugin_quotas_001" name="quotas_title">
|
||||
<exp>Etat des quotas</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_002" name="quotas_date">
|
||||
<exp>Dernière actualisation</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_003" name="quotas_user">
|
||||
<expression id="plugin_quotas_002" name="quotas_user">
|
||||
<exp>Utilisateurs</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bused">
|
||||
<expression id="plugin_quotas_003" name="quotas_bused">
|
||||
<exp>Espace utilisés</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bsoft">
|
||||
<expression id="plugin_quotas_004" name="quotas_bsoft">
|
||||
<exp>Espace limite souple</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bhard">
|
||||
<expression id="plugin_quotas_005" name="quotas_bhard">
|
||||
<exp>Espace limite stricte</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_bpuse">
|
||||
<expression id="plugin_quotas_006" name="quotas_bpuse">
|
||||
<exp>Pourcentage espace utilisés</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fused">
|
||||
<expression id="plugin_quotas_007" name="quotas_fused">
|
||||
<exp>Inodes utilisés</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fsoft">
|
||||
<expression id="plugin_quotas_008" name="quotas_fsoft">
|
||||
<exp>Inodes limite souple</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fhard">
|
||||
<expression id="plugin_quotas_009" name="quotas_fhard">
|
||||
<exp>Inodes limite stricte</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_011" name="quotas_fpuse">
|
||||
<expression id="plugin_quotas_010" name="quotas_fpuse">
|
||||
<exp>Pourcentage inodes utilisés</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
||||
|
39
root/opt/phpsysinfo/plugins/quotas/lang/gr.xml
Normal file
39
root/opt/phpsysinfo/plugins/quotas/lang/gr.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<?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_quotas_001" name="quotas_title">
|
||||
<exp>Κατάσταση Quota</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_002" name="quotas_user">
|
||||
<exp>Χρήστης</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_003" name="quotas_bused">
|
||||
<exp>Bytes σε Χρήση</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bsoft">
|
||||
<exp>Bytes Soft</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bhard">
|
||||
<exp>Bytes Hard</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bpuse">
|
||||
<exp>Ποσοστό Χρήσης Bytes</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_fused">
|
||||
<exp>Αρχεία σε χρήση</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fsoft">
|
||||
<exp>Αρχεία Soft</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fhard">
|
||||
<exp>Αρχεία Hard</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fpuse">
|
||||
<exp>Ποσοστό Χρήσης Αρχείων</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
@@ -6,37 +6,34 @@
|
||||
<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_quotas_001" name="ps_title">
|
||||
<expression id="plugin_quotas_001" name="quotas_title">
|
||||
<exp>Status Quoty</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_002" name="quotas_date">
|
||||
<exp>Ostatnie odświeżenie</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_003" name="quotas_user">
|
||||
<expression id="plugin_quotas_002" name="quotas_user">
|
||||
<exp>Użytkownik</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bused">
|
||||
<expression id="plugin_quotas_003" name="quotas_bused">
|
||||
<exp>Bajtów wykorzystanych</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bsoft">
|
||||
<expression id="plugin_quotas_004" name="quotas_bsoft">
|
||||
<exp>Miękki limit bajtów</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bhard">
|
||||
<expression id="plugin_quotas_005" name="quotas_bhard">
|
||||
<exp>Twardy limit bajtów</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_bpuse">
|
||||
<expression id="plugin_quotas_006" name="quotas_bpuse">
|
||||
<exp>Procentowo bajtów</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fused">
|
||||
<expression id="plugin_quotas_007" name="quotas_fused">
|
||||
<exp>Plików wykorzystanych</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fsoft">
|
||||
<expression id="plugin_quotas_008" name="quotas_fsoft">
|
||||
<exp>Miękki limit plików</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fhard">
|
||||
<expression id="plugin_quotas_009" name="quotas_fhard">
|
||||
<exp>Twardy limit plików</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_011" name="quotas_fpuse">
|
||||
<expression id="plugin_quotas_010" name="quotas_fpuse">
|
||||
<exp>Procentowo plików</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
||||
|
@@ -6,37 +6,34 @@
|
||||
<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_quotas_001" name="ps_title">
|
||||
<expression id="plugin_quotas_001" name="quotas_title">
|
||||
<exp>Stare Quota</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_002" name="quotas_date">
|
||||
<exp>Ultimul refresh</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_003" name="quotas_user">
|
||||
<expression id="plugin_quotas_002" name="quotas_user">
|
||||
<exp>Utilizator</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bused">
|
||||
<expression id="plugin_quotas_003" name="quotas_bused">
|
||||
<exp>Bytes Folositi</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bsoft">
|
||||
<expression id="plugin_quotas_004" name="quotas_bsoft">
|
||||
<exp>Bytes Soft</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bhard">
|
||||
<expression id="plugin_quotas_005" name="quotas_bhard">
|
||||
<exp>Bytes Hard</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_bpuse">
|
||||
<expression id="plugin_quotas_006" name="quotas_bpuse">
|
||||
<exp>Bytes Percent Folosiți</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fused">
|
||||
<expression id="plugin_quotas_007" name="quotas_fused">
|
||||
<exp>Fișiere Folosite</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fsoft">
|
||||
<expression id="plugin_quotas_008" name="quotas_fsoft">
|
||||
<exp>Fișiere Soft</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fhard">
|
||||
<expression id="plugin_quotas_009" name="quotas_fhard">
|
||||
<exp>Fișiere Hard</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_011" name="quotas_fpuse">
|
||||
<expression id="plugin_quotas_010" name="quotas_fpuse">
|
||||
<exp>Fișiere Percent Folosite</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
||||
|
@@ -1,42 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Id: en.xml 661 2012-08-27 11:26:39Z namiltd $ -->
|
||||
<!-- $Id: ru.xml 661 2012-08-27 11:26:39Z namiltd $ -->
|
||||
<!--
|
||||
phpSysInfo language file Language: Russian Created by: Denis Sevostyanov (den007)
|
||||
-->
|
||||
<tns:translationPlugin language="russian" charset="utf-8"
|
||||
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
|
||||
<expression id="plugin_quotas_001" name="ps_title">
|
||||
<expression id="plugin_quotas_001" name="quotas_title">
|
||||
<exp>Состояние Квоты</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_002" name="quotas_date">
|
||||
<exp>Последнее обновление</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_003" name="quotas_user">
|
||||
<expression id="plugin_quotas_002" name="quotas_user">
|
||||
<exp>Пользователь</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bused">
|
||||
<expression id="plugin_quotas_003" name="quotas_bused">
|
||||
<exp>Используется</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bsoft">
|
||||
<expression id="plugin_quotas_004" name="quotas_bsoft">
|
||||
<exp>Программы</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bhard">
|
||||
<expression id="plugin_quotas_005" name="quotas_bhard">
|
||||
<exp>Жесткий диск</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_bpuse">
|
||||
<expression id="plugin_quotas_006" name="quotas_bpuse">
|
||||
<exp>Процентов</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fused">
|
||||
<expression id="plugin_quotas_007" name="quotas_fused">
|
||||
<exp>Файлы Используется</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fsoft">
|
||||
<expression id="plugin_quotas_008" name="quotas_fsoft">
|
||||
<exp>Файлов программ</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fhard">
|
||||
<expression id="plugin_quotas_009" name="quotas_fhard">
|
||||
<exp>Файлы на жестком диске</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_011" name="quotas_fpuse">
|
||||
<expression id="plugin_quotas_010" name="quotas_fpuse">
|
||||
<exp>Проценты файлов</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
||||
|
@@ -1,35 +1,40 @@
|
||||
<div class="col-lg-12" id="block_quotas" style="display:none">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">Quota Status</div>
|
||||
<div class="panel-body">
|
||||
<table id="quotas" class="table table-hover table-condensed sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="quotas_User">User</th>
|
||||
<th class="rightCell sorttable_numeric">Bytes Used</th>
|
||||
<th class="rightCell sorttable_numeric">Bytes Soft</th>
|
||||
<th class="rightCell sorttable_numeric">Bytes Hard</th>
|
||||
<th class="rightCell sorttable_numeric">Bytes Used Percent</th>
|
||||
<th class="rightCell sorttable_numeric">Files Used</th>
|
||||
<th class="rightCell sorttable_numeric">Files Soft</th>
|
||||
<th class="rightCell sorttable_numeric">Files Hard</th>
|
||||
<th class="rightCell sorttable_numeric">Files Used Percent</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="quotas-data">
|
||||
<tr>
|
||||
<th><span data-bind="User"></span></th>
|
||||
<td class="rightCell"><span data-bind="ByteUsed"></span></td>
|
||||
<td class="rightCell"><span data-bind="ByteSoft"></span></td>
|
||||
<td class="rightCell"><span data-bind="ByteHard"></span></td>
|
||||
<td class="rightCell"><span data-bind="BytePercentUsed"></span></td>
|
||||
<td class="rightCell"><span data-bind="FileUsed"></span></td>
|
||||
<td class="rightCell"><span data-bind="FileSoft"></span></td>
|
||||
<td class="rightCell"><span data-bind="FileHard"></span></td>
|
||||
<td class="rightCell"><span data-bind="FilePercentUsed"></span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="col-lg-12" id="block_quotas" style="display:none;">
|
||||
<div class="card" id="panel_quotas" style="display:none;">
|
||||
<div class="card-header"><span class="lang_plugin_quotas_001">Quota Status</span>
|
||||
<span class="hostname_quotas"></span>
|
||||
<div id="reload_quotas" class="reload" title="reload"></div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table id="quotas" class="table table-hover table-sm sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="quotas_User"><span class="lang_plugin_quotas_002">User</span></th>
|
||||
<th class="rightCell sorttable_numeric"><span class="lang_plugin_quotas_003">Bytes Used</span></th>
|
||||
<th class="rightCell sorttable_numeric"><span class="lang_plugin_quotas_004">Bytes Soft</span></th>
|
||||
<th class="rightCell sorttable_numeric"><span class="lang_plugin_quotas_005">Bytes Hard</span></th>
|
||||
<th class="rightCell sorttable_numeric"><span class="lang_plugin_quotas_006">Bytes Used Percent</span></th>
|
||||
<th class="rightCell sorttable_numeric"><span class="lang_plugin_quotas_007">Files Used</span></th>
|
||||
<th class="rightCell sorttable_numeric"><span class="lang_plugin_quotas_008">Files Soft</span></th>
|
||||
<th class="rightCell sorttable_numeric"><span class="lang_plugin_quotas_009">Files Hard</span></th>
|
||||
<th class="rightCell sorttable_numeric"><span class="lang_plugin_quotas_010">Files Used Percent</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="quotas-data">
|
||||
<tr>
|
||||
<th><span data-bind="User"></span></th>
|
||||
<td class="rightCell"><span data-bind="ByteUsed"></span></td>
|
||||
<td class="rightCell"><span data-bind="ByteSoft"></span></td>
|
||||
<td class="rightCell"><span data-bind="ByteHard"></span></td>
|
||||
<td class="rightCell"><span data-bind="BytePercentUsed"></span></td>
|
||||
<td class="rightCell"><span data-bind="FileUsed"></span></td>
|
||||
<td class="rightCell"><span data-bind="FileSoft"></span></td>
|
||||
<td class="rightCell"><span data-bind="FileHard"></span></td>
|
||||
<td class="rightCell"><span data-bind="FilePercentUsed"></span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user