initial commit of file from CVS for smeserver-phpsysinfo on Sat Sep 7 20:53:46 AEST 2024
This commit is contained in:
132
root/opt/phpsysinfo/plugins/quotas/class.quotas.inc.php
Normal file
132
root/opt/phpsysinfo/plugins/quotas/class.quotas.inc.php
Normal file
@@ -0,0 +1,132 @@
|
||||
<?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
|
||||
* a file with the output of the repquota utility, so there is no need to run a execute by the
|
||||
* webserver, the format of the command is written down in the phpsysinfo.ini file, where also
|
||||
* the method of getting the information is configured
|
||||
*
|
||||
* @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 Release: 3.0
|
||||
* @link http://phpsysinfo.sourceforge.net
|
||||
*/
|
||||
class Quotas 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);
|
||||
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);
|
||||
break;
|
||||
default:
|
||||
$this->global_error->addConfigError("__construct()", "PSI_PLUGIN_QUOTAS_ACCESS");
|
||||
break;
|
||||
}
|
||||
if (trim($buffer) != "") {
|
||||
$this->_filecontent = preg_split("/\n/", $buffer, -1, PREG_SPLIT_NO_EMPTY);
|
||||
unset($this->_filecontent[0]);
|
||||
} else {
|
||||
$this->_filecontent = array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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()
|
||||
{
|
||||
$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) {
|
||||
$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_percent_used'] = round((($quotas[$i]['file_used'] / $quotas[$i]['file_hard']) * 100), 1);
|
||||
} else {
|
||||
$quotas[$i]['file_percent_used'] = 0;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
$this->_result = $quotas;
|
||||
}
|
||||
|
||||
/**
|
||||
* generates the XML content for the plugin
|
||||
*
|
||||
* @return SimpleXMLElement entire XML content for the plugin
|
||||
*/
|
||||
public function xml()
|
||||
{
|
||||
foreach ($this->_result as $quota) {
|
||||
$quotaChild = $this->xml->addChild("Quota");
|
||||
$quotaChild->addAttribute("User", $quota['user']);
|
||||
$quotaChild->addAttribute("ByteUsed", $quota['byte_used']);
|
||||
$quotaChild->addAttribute("ByteSoft", $quota['byte_soft']);
|
||||
$quotaChild->addAttribute("ByteHard", $quota['byte_hard']);
|
||||
$quotaChild->addAttribute("BytePercentUsed", $quota['byte_percent_used']);
|
||||
$quotaChild->addAttribute("FileUsed", $quota['file_used']);
|
||||
$quotaChild->addAttribute("FileSoft", $quota['file_soft']);
|
||||
$quotaChild->addAttribute("FileHard", $quota['file_hard']);
|
||||
$quotaChild->addAttribute("FilePercentUsed", $quota['file_percent_used']);
|
||||
}
|
||||
|
||||
return $this->xml->getSimpleXmlElement();
|
||||
}
|
||||
}
|
7
root/opt/phpsysinfo/plugins/quotas/css/quotas.css
Normal file
7
root/opt/phpsysinfo/plugins/quotas/css/quotas.css
Normal file
@@ -0,0 +1,7 @@
|
||||
/*
|
||||
$Id: quotas.css 661 2012-08-27 11:26:39Z namiltd $
|
||||
*/
|
||||
#plugin_quotasTable thead tr .header {
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
}
|
146
root/opt/phpsysinfo/plugins/quotas/js/quotas.js
Normal file
146
root/opt/phpsysinfo/plugins/quotas/js/quotas.js
Normal file
@@ -0,0 +1,146 @@
|
||||
/***************************************************************************
|
||||
* 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: quotas.js 661 2012-08-27 11:26:39Z namiltd $
|
||||
//
|
||||
|
||||
/*global $, jQuery, buildBlock, datetime, plugin_translate, genlang, formatBytes, createBar */
|
||||
|
||||
"use strict";
|
||||
|
||||
var quotas_show = false, quotas_table;
|
||||
|
||||
//appendcss("./plugins/Quotas/css/Quotas.css");
|
||||
|
||||
/**
|
||||
* insert content into table
|
||||
* @param {jQuery} xml plugin-XML
|
||||
*/
|
||||
function quotas_populate(xml) {
|
||||
quotas_table.fnClearTable();
|
||||
|
||||
$("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");
|
||||
bused = parseInt($(this).attr("ByteUsed"), 10);
|
||||
bsoft = parseInt($(this).attr("ByteSoft"), 10);
|
||||
bhard = parseInt($(this).attr("ByteHard"), 10);
|
||||
bpuse = parseInt($(this).attr("BytePercentUsed"), 10);
|
||||
fused = parseInt($(this).attr("FileUsed"), 10);
|
||||
fsoft = parseInt($(this).attr("FileSoft"), 10);
|
||||
fhard = parseInt($(this).attr("FileHard"), 10);
|
||||
fpuse = parseInt($(this).attr("FilePercentUsed"), 10);
|
||||
|
||||
quotas_table.fnAddData(["<span style=\"display:none;\">" + user + "</span>" + user, "<span style=\"display:none;\">" + bused + "</span>" + formatBytes(bused, xml), "<span style=\"display:none;\">" + bsoft + "</span>" + formatBytes(bsoft, xml), "<span style=\"display:none;\">" + bhard + "</span>" + formatBytes(bhard, xml), "<span style=\"display:none;\">" + bpuse + "</span>" + createBar(bpuse), "<span style=\"display:none;\">" + fused + "</span>" + fused, "<span style=\"display:none;\">" + fsoft + "</span>" + fsoft, "<span style=\"display:none;\">" + fhard + "</span>" + fhard, "<span style=\"display:none;\">" + fpuse + "</span>" + createBar(fpuse)]);
|
||||
quotas_show = true;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* fill the plugin block with table structure
|
||||
*/
|
||||
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";
|
||||
|
||||
$("#Plugin_Quotas").append(html);
|
||||
|
||||
quotas_table = $("#Plugin_QuotasTable").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'
|
||||
}, {
|
||||
"sType": 'span-number'
|
||||
}, {
|
||||
"sType": 'span-number'
|
||||
}, {
|
||||
"sType": 'span-number'
|
||||
}, {
|
||||
"sType": 'span-number'
|
||||
}, {
|
||||
"sType": 'span-number'
|
||||
}]
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* load the xml via ajax
|
||||
*/
|
||||
function quotas_request() {
|
||||
$.ajax({
|
||||
url: "xml.php?plugin=Quotas",
|
||||
dataType: "xml",
|
||||
error: function quotas_error() {
|
||||
$.jGrowl("Error loading XML document for Plugin quotas!");
|
||||
},
|
||||
success: function quotas_buildblock(xml) {
|
||||
populateErrors(xml);
|
||||
quotas_populate(xml);
|
||||
if (quotas_show) {
|
||||
plugin_translate("Quotas");
|
||||
$("#Plugin_Quotas").show();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function quotas_buildpage() {
|
||||
$("#footer").before(buildBlock("Quotas", 1, true));
|
||||
$("#Plugin_Quotas").css("width", "915px");
|
||||
|
||||
quotas_buildTable();
|
||||
|
||||
quotas_request();
|
||||
|
||||
$("#Reload_QuotasTable").click(function quotas_reload(id) {
|
||||
quotas_request();
|
||||
$("#Reload_QuotasTable").attr("title",datetime());
|
||||
});
|
||||
});
|
50
root/opt/phpsysinfo/plugins/quotas/js/quotas_bootstrap.js
Normal file
50
root/opt/phpsysinfo/plugins/quotas/js/quotas_bootstrap.js
Normal file
@@ -0,0 +1,50 @@
|
||||
function renderPlugin_quotas(data) {
|
||||
|
||||
var directives = {
|
||||
|
||||
ByteUsed: {
|
||||
text: function () {
|
||||
return formatBytes(this["ByteUsed"], data["Options"]["@attributes"]["byteFormat"]);
|
||||
}
|
||||
},
|
||||
ByteSoft: {
|
||||
text: function () {
|
||||
return formatBytes(this["ByteSoft"], data["Options"]["@attributes"]["byteFormat"]);
|
||||
}
|
||||
},
|
||||
ByteHard: {
|
||||
text: 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>';
|
||||
}
|
||||
},
|
||||
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>';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
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);
|
||||
$('#quotas-data').render(qt_memory, directives);
|
||||
$('#quotas_User').removeClass("sorttable_sorted"); // reset sort order
|
||||
sorttable.innerSortFunction.apply($('#quotas_User')[0], []);
|
||||
|
||||
$('#block_quotas').show();
|
||||
} else {
|
||||
$('#block_quotas').hide();
|
||||
}
|
||||
} else {
|
||||
$('#block_quotas').hide();
|
||||
}
|
||||
}
|
42
root/opt/phpsysinfo/plugins/quotas/lang/cz.xml
Normal file
42
root/opt/phpsysinfo/plugins/quotas/lang/cz.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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_quotas_001" name="ps_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">
|
||||
<exp>Uživatel</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bused">
|
||||
<exp>Využité místo</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bsoft">
|
||||
<exp>Měkký limit</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bhard">
|
||||
<exp>Tvrdý limit</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_bpuse">
|
||||
<exp>Procento využití</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fused">
|
||||
<exp>Počet soouborů</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fsoft">
|
||||
<exp>Měkký souborový limit</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fhard">
|
||||
<exp>Tvrdý souborový limit</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_011" name="quotas_fpuse">
|
||||
<exp>Procento využití souborů</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
42
root/opt/phpsysinfo/plugins/quotas/lang/de.xml
Normal file
42
root/opt/phpsysinfo/plugins/quotas/lang/de.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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_quotas_001" name="ps_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">
|
||||
<exp>Benutzer</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bused">
|
||||
<exp>Bytes (Belegt)</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bsoft">
|
||||
<exp>Bytes (Soft Limit)</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bhard">
|
||||
<exp>Bytes (Hard Limit)</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_bpuse">
|
||||
<exp>Bytes (Belegt Prozent)</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fused">
|
||||
<exp>Dateien (Benutzt)</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fsoft">
|
||||
<exp>Dateien (Soft Limit)</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fhard">
|
||||
<exp>Dateien (Hard Limit)</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_011" name="quotas_fpuse">
|
||||
<exp>Dateien (Benutzt Prozent)</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
42
root/opt/phpsysinfo/plugins/quotas/lang/en.xml
Normal file
42
root/opt/phpsysinfo/plugins/quotas/lang/en.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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: Michael Cramer
|
||||
-->
|
||||
<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">
|
||||
<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">
|
||||
<exp>User</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bused">
|
||||
<exp>Bytes Used</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bsoft">
|
||||
<exp>Bytes Soft</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bhard">
|
||||
<exp>Bytes Hard</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_bpuse">
|
||||
<exp>Bytes Used Percent</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fused">
|
||||
<exp>Files Used</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fsoft">
|
||||
<exp>Files Soft</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fhard">
|
||||
<exp>Files Hard</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_011" name="quotas_fpuse">
|
||||
<exp>Files Used Percent</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
42
root/opt/phpsysinfo/plugins/quotas/lang/fr.xml
Normal file
42
root/opt/phpsysinfo/plugins/quotas/lang/fr.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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_quotas_001" name="ps_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">
|
||||
<exp>Utilisateurs</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bused">
|
||||
<exp>Espace utilisés</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bsoft">
|
||||
<exp>Espace limite souple</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bhard">
|
||||
<exp>Espace limite stricte</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_bpuse">
|
||||
<exp>Pourcentage espace utilisés</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fused">
|
||||
<exp>Inodes utilisés</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fsoft">
|
||||
<exp>Inodes limite souple</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fhard">
|
||||
<exp>Inodes limite stricte</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_011" name="quotas_fpuse">
|
||||
<exp>Pourcentage inodes utilisés</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
42
root/opt/phpsysinfo/plugins/quotas/lang/pl.xml
Normal file
42
root/opt/phpsysinfo/plugins/quotas/lang/pl.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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_quotas_001" name="ps_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">
|
||||
<exp>Użytkownik</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bused">
|
||||
<exp>Bajtów wykorzystanych</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bsoft">
|
||||
<exp>Miękki limit bajtów</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bhard">
|
||||
<exp>Twardy limit bajtów</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_bpuse">
|
||||
<exp>Procentowo bajtów</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fused">
|
||||
<exp>Plików wykorzystanych</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fsoft">
|
||||
<exp>Miękki limit plików</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fhard">
|
||||
<exp>Twardy limit plików</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_011" name="quotas_fpuse">
|
||||
<exp>Procentowo plików</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
42
root/opt/phpsysinfo/plugins/quotas/lang/ro.xml
Normal file
42
root/opt/phpsysinfo/plugins/quotas/lang/ro.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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_quotas_001" name="ps_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">
|
||||
<exp>Utilizator</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bused">
|
||||
<exp>Bytes Folositi</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bsoft">
|
||||
<exp>Bytes Soft</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bhard">
|
||||
<exp>Bytes Hard</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_bpuse">
|
||||
<exp>Bytes Percent Folosiți</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fused">
|
||||
<exp>Fișiere Folosite</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fsoft">
|
||||
<exp>Fișiere Soft</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fhard">
|
||||
<exp>Fișiere Hard</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_011" name="quotas_fpuse">
|
||||
<exp>Fișiere Percent Folosite</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
42
root/opt/phpsysinfo/plugins/quotas/lang/ru.xml
Normal file
42
root/opt/phpsysinfo/plugins/quotas/lang/ru.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Id: en.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">
|
||||
<exp>Состояние Квоты</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_002" name="quotas_date">
|
||||
<exp>Последнее обновление</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_003" name="quotas_user">
|
||||
<exp>Пользователь</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bused">
|
||||
<exp>Используется</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bsoft">
|
||||
<exp>Программы</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bhard">
|
||||
<exp>Жесткий диск</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_bpuse">
|
||||
<exp>Процентов</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fused">
|
||||
<exp>Файлы Используется</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fsoft">
|
||||
<exp>Файлов программ</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fhard">
|
||||
<exp>Файлы на жестком диске</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_011" name="quotas_fpuse">
|
||||
<exp>Проценты файлов</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
35
root/opt/phpsysinfo/plugins/quotas/quotas_bootstrap.html
Normal file
35
root/opt/phpsysinfo/plugins/quotas/quotas_bootstrap.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user