diff --git a/lam/help/help.inc b/lam/help/help.inc
index 8cea647e..a9832709 100644
--- a/lam/help/help.inc
+++ b/lam/help/help.inc
@@ -206,30 +206,6 @@ $helpArray = array (
"variables" => array('user', 'group')),
"438" => array ("ext" => "FALSE", "Headline" => _("Domain"),
"Text" => _("Windows-Domain of user."). ' '. _("Can be left empty.")),
- "439" => array ("ext" => "FALSE", "Headline" => _("Mountpoint"),
- "Text" => _("Mountpoint of device with enabled quotas.")),
- "440" => array ("ext" => "FALSE", "Headline" => _("Used blocks"),
- "Text" => _("Used blocks. 1000 blocks are usually 1MB")),
- "441" => array ("ext" => "FALSE", "Headline" => _("Soft block limit"),
- "Text" => _("Soft block limit."), "SeeAlso" => ''.
- 'Quota How-To'),
- "442" => array ("ext" => "FALSE", "Headline" => _("Hard block limit"),
- "Text" => _("Hard block limit").'.', "SeeAlso" => ''.
- 'Quota How-To'),
- "443" => array ("ext" => "FALSE", "Headline" => _("Grace block period"),
- "Text" => _("Grace block period. Most filesystems use a fixed maximum value of 7 days."), "SeeAlso" => ''.
- 'Quota How-To'),
- "444" => array ("ext" => "FALSE", "Headline" => _("Used inodes"),
- "Text" => _("Used inodes (files)").'.'),
- "445" => array ("ext" => "FALSE", "Headline" => _("Soft inode limit"),
- "Text" => _("Soft inode (files) limit."), "SeeAlso" => ''.
- 'Quota How-To'),
- "446" => array ("ext" => "FALSE", "Headline" => _("Hard inode limit"),
- "Text" => _("Hard inode (files) limit").'.', "SeeAlso" => ''.
- 'Quota How-To'),
- "447" => array ("ext" => "FALSE", "Headline" => _("Grace inode period"),
- "Text" => _("Grace inode (files) period. Most filesystems use a fixed maximum value of 7 days."), "SeeAlso" => ''.
- 'Quota How-To'),
"448" => array ("ext" => "FALSE", "Headline" => _("Title"),
"Text" => _("Title of user, Mr., Ms., ...")),
"449" => array ("ext" => "FALSE", "Headline" => _("Employee type"),
diff --git a/lam/lib/modules/quota.inc b/lam/lib/modules/quota.inc
index 7cfcb985..189a5052 100644
--- a/lam/lib/modules/quota.inc
+++ b/lam/lib/modules/quota.inc
@@ -23,14 +23,6 @@ $Id$
class quota extends baseModule {
- /**
- * Creates a new quota object.
- */
- function quota($scope) {
- // call parent constructor
- parent::baseModule($scope);
- }
-
/** this functin fills the error message array with messages
**/
function load_Messages() {
@@ -64,6 +56,51 @@ class quota extends baseModule {
}
// available PDF fields
$return['PDF_fields'] = array( 'quotas');
+ // help entries
+ $return['help'] = array(
+ "Mountpoint" => array(
+ "ext" => "FALSE",
+ "Headline" => _("Mountpoint"),
+ "Text" => _("Mountpoint of device with enabled quotas.")),
+ "UsedBlocks" => array(
+ "ext" => "FALSE",
+ "Headline" => _("Used blocks"),
+ "Text" => _("Used blocks. 1000 blocks are usually 1MB")),
+ "SoftBlockLimit" => array(
+ "ext" => "FALSE",
+ "Headline" => _("Soft block limit"),
+ "Text" => _("Soft block limit."), "SeeAlso" => ''.
+ 'Quota How-To'),
+ "HardBlockLimit" => array(
+ "ext" => "FALSE",
+ "Headline" => _("Hard block limit"),
+ "Text" => _("Hard block limit").'.', "SeeAlso" => ''.
+ 'Quota How-To'),
+ "GraceBlockPeriod" => array(
+ "ext" => "FALSE",
+ "Headline" => _("Grace block period"),
+ "Text" => _("Grace block period. Most filesystems use a fixed maximum value of 7 days."), "SeeAlso" => ''.
+ 'Quota How-To'),
+ "UsedInodes" => array(
+ "ext" => "FALSE",
+ "Headline" => _("Used inodes"),
+ "Text" => _("Used inodes (files)").'.'),
+ "SoftInodeLimit" => array(
+ "ext" => "FALSE",
+ "Headline" => _("Soft inode limit"),
+ "Text" => _("Soft inode (files) limit."), "SeeAlso" => ''.
+ 'Quota How-To'),
+ "HardInodeLimit" => array(
+ "ext" => "FALSE",
+ "Headline" => _("Hard inode limit"),
+ "Text" => _("Hard inode (files) limit").'.', "SeeAlso" => ''.
+ 'Quota How-To'),
+ "GraceInodePeriod" => array(
+ "ext" => "FALSE",
+ "Headline" => _("Grace inode period"),
+ "Text" => _("Grace inode (files) period. Most filesystems use a fixed maximum value of 7 days."), "SeeAlso" => ''.
+ 'Quota How-To'),
+ );
return $return;
}
@@ -125,18 +162,6 @@ class quota extends baseModule {
return array('attributes');
}
- /*
- */
- function get_help($id,$scope) {
- switch ($id) {
- case "description":
- return array ("ext" => "FALSE", "Headline" => _("Description"),
- "Text" => _("Host Description."));
- break;
- }
- return false;
- }
-
/* This function returns all ldap attributes
* which are part of quota and returns
* also their values.
@@ -329,11 +354,11 @@ class quota extends baseModule {
4 => array('kind' => 'text', 'text' => '' . _('Hard inode limit') . ' ', 'align' => 'center'),
);
$return[] = array (
- 0 => array('kind' => 'help', 'value' => 'TODO', 'align' => 'center'),
- 1 => array('kind' => 'help', 'value' => 'TODO', 'align' => 'center'),
- 2 => array('kind' => 'help', 'value' => 'TODO', 'align' => 'center'),
- 3 => array('kind' => 'help', 'value' => 'TODO', 'align' => 'center'),
- 4 => array('kind' => 'help', 'value' => 'TODO', 'align' => 'center'),
+ 0 => array('kind' => 'help', 'value' => 'Mountpoint', 'align' => 'center'),
+ 1 => array('kind' => 'help', 'value' => 'SoftBlockLimit', 'align' => 'center'),
+ 2 => array('kind' => 'help', 'value' => 'HardBlockLimit', 'align' => 'center'),
+ 3 => array('kind' => 'help', 'value' => 'SoftInodeLimit', 'align' => 'center'),
+ 4 => array('kind' => 'help', 'value' => 'HardInodeLimit', 'align' => 'center'),
);
for ($i = 0; $i < sizeof($dirs); $i++) {
$return[] = array(