Commit a97cb4a4 authored by Benoit Mortier's avatar Benoit Mortier
Browse files

Fixes: #651 the plinfo fonction should always be the latest function in the .inc files

parent da4737d7
......@@ -478,25 +478,6 @@ class faiProfile extends plugin
}
/* Return plugin informations for acl handling */
static function plInfo()
{
return (array(
"plShortName" => _("Profile"),
"plDescription" => _("FAI profile"),
"plSelfModify" => FALSE,
"plDepends" => array(),
"plPriority" => 30,
"plSection" => array("administration"),
"plCategory" => array("fai"),
"plProvidedAcls" => array(
"cn" => _("Name"),
"description" => _("Description"),
"FAIclass" => _("FAI classes"))
));
}
/*! \brief Used for copy & paste.
Returns a HTML input mask, which allows to change the cn of this entry.
@param Array Array containing current status && a HTML template.
......@@ -523,6 +504,25 @@ class faiProfile extends plugin
$this->cn = get_post('cn');
}
}
/* Return plugin informations for acl handling */
static function plInfo()
{
return (array(
"plShortName" => _("Profile"),
"plDescription" => _("FAI profile"),
"plSelfModify" => FALSE,
"plDepends" => array(),
"plPriority" => 30,
"plSection" => array("administration"),
"plCategory" => array("fai"),
"plProvidedAcls" => array(
"cn" => _("Name"),
"description" => _("Description"),
"FAIclass" => _("FAI classes"))
));
}
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
......
......@@ -549,24 +549,6 @@ class faiTemplate extends plugin
}
/* Return plugin informations for acl handling */
static function plInfo()
{
return (array(
"plShortName" => _("Template"),
"plDescription" => _("FAI template"),
"plSelfModify" => FALSE,
"plDepends" => array(),
"plPriority" => 24,
"plSection" => array("administration"),
"plCategory" => array("fai"),
"plProvidedAcls" => array(
"cn" => _("Name")." ("._("Readonly").")",
"description" => _("Description"))
));
}
/*! \brief Used for copy & paste.
Returns a HTML input mask, which allows to change the cn of this entry.
@param Array Array containing current status && a HTML template.
......@@ -593,6 +575,24 @@ class faiTemplate extends plugin
$this->cn = get_post('cn');
}
}
/* Return plugin informations for acl handling */
static function plInfo()
{
return (array(
"plShortName" => _("Template"),
"plDescription" => _("FAI template"),
"plSelfModify" => FALSE,
"plDepends" => array(),
"plPriority" => 24,
"plSection" => array("administration"),
"plCategory" => array("fai"),
"plProvidedAcls" => array(
"cn" => _("Name")." ("._("Readonly").")",
"description" => _("Description"))
));
}
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
......
......@@ -401,24 +401,6 @@ class faiVariable extends plugin
}
}
/* Return plugin informations for acl handling */
static function plInfo()
{
return (array(
"plShortName" => _("Variable"),
"plDescription" => _("FAI variable"),
"plSelfModify" => FALSE,
"plDepends" => array(),
"plPriority" => 22,
"plSection" => array("administration"),
"plCategory" => array("fai"),
"plProvidedAcls" => array(
"cn" => _("Name")." ("._("Read only").")",
"description" => _("Description"))
));
}
/*! \brief Used for copy & paste.
Returns a HTML input mask, which allows to change the cn of this entry.
......@@ -477,6 +459,23 @@ class faiVariable extends plugin
return($object);
}
/* Return plugin informations for acl handling */
static function plInfo()
{
return (array(
"plShortName" => _("Variable"),
"plDescription" => _("FAI variable"),
"plSelfModify" => FALSE,
"plDepends" => array(),
"plPriority" => 22,
"plSection" => array("administration"),
"plCategory" => array("fai"),
"plProvidedAcls" => array(
"cn" => _("Name")." ("._("Read only").")",
"description" => _("Description"))
));
}
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
......
......@@ -399,6 +399,15 @@ class servrepository extends goService
goService::remove_from_parent();
}
/*! \brief Returns the list of of services, active services.
* Used in the filter class for services.
* class_filterServerService.inc
*/
static function getRepositoryList()
{
return(session::get('RepositoryList'));
}
/* Return plugin informations for acl handling */
static function plInfo()
{
......@@ -424,14 +433,6 @@ class servrepository extends goService
));
}
/*! \brief Returns the list of of services, active services.
* Used in the filter class for services.
* class_filterServerService.inc
*/
static function getRepositoryList()
{
return(session::get('RepositoryList'));
}
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>
......@@ -533,29 +533,6 @@ class kolabAccount extends plugin
}
/* Return plugin informations for acl handling */
static function plInfo()
{
return (array(
"plShortName" => _("Kolab"),
"plDescription" => _("Kolab account settings")." ("._("Connectivity addon").")",
"plSelfModify" => TRUE,
"plDepends" => array("user"),
"plPriority" => 20, // Position in tabs
"plSection" => array("personal" => _("My account")),
"plCategory" => array("users"),
"plOptions" => array(),
"plProvidedAcls" => array(
"kolabFreeBusyFuture" => _("Free busy future"),
"unrestrictedMailSize" => _("Mail size restriction"),
"calFBURL" => _("Free busy information"),
"kolabDelegate" => _("Delegations"),
"kolabInvitationPolicy" => _("Invitation policy"))
));
}
/*! \brief Enable multiple edit support. \
Also sets $this->mail_account to TRUE, which simulates \
a valid mail extension.
......@@ -697,6 +674,30 @@ class kolabAccount extends plugin
$this->is_account = TRUE;
}
}
/* Return plugin informations for acl handling */
static function plInfo()
{
return (array(
"plShortName" => _("Kolab"),
"plDescription" => _("Kolab account settings")." ("._("Connectivity addon").")",
"plSelfModify" => TRUE,
"plDepends" => array("user"),
"plPriority" => 20, // Position in tabs
"plSection" => array("personal" => _("My account")),
"plCategory" => array("users"),
"plOptions" => array(),
"plProvidedAcls" => array(
"kolabFreeBusyFuture" => _("Free busy future"),
"unrestrictedMailSize" => _("Mail size restriction"),
"calFBURL" => _("Free busy information"),
"kolabDelegate" => _("Delegations"),
"kolabInvitationPolicy" => _("Invitation policy"))
));
}
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
......
......@@ -333,6 +333,15 @@ class gospamserver extends goService{
}
/* For newer service management dialogs */
function getListEntry()
{
$fields = goService::getListEntry();
$fields['Message'] = _("Spamassassin");
#$fields['AllowEdit'] = true;
return($fields);
}
/* Return plugin informations for acl handling */
static function plInfo()
{
......@@ -359,15 +368,6 @@ class gospamserver extends goService{
"saFlagP" => _("Enable use of Pyzor"))
));
}
/* For newer service management dialogs */
function getListEntry()
{
$fields = goService::getListEntry();
$fields['Message'] = _("Spamassassin");
#$fields['AllowEdit'] = true;
return($fields);
}
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>
......@@ -364,24 +364,6 @@ class netatalk extends plugin {
}
/* Return plugin informations for acl handling*/
static function plInfo()
{
return (array(
"plDescription" => _("Netatalk"),
"plSelfModify" => TRUE,
"plDepends" => array("user"),
"plPriority" => 6,
"plSection" => array("personal" => _("My account")),
"plCategory" => array("users"),
"plOptions" => array(),
"plProvidedAcls" => array(
"netatalkUserHomepath" => _("User home path"),
"netatalkShare" => _("Share"))
));
}
function adapt_from_template($dn, $skip= array())
{
/* As the 'apple-user-homeDirectory' LDAP attribute is stored as
......@@ -409,7 +391,26 @@ class netatalk extends plugin {
$this->selectedshare = $share;
}
}
}
/* Return plugin informations for acl handling*/
static function plInfo()
{
return (array(
"plDescription" => _("Netatalk"),
"plSelfModify" => TRUE,
"plDepends" => array("user"),
"plPriority" => 6,
"plSection" => array("personal" => _("My account")),
"plCategory" => array("users"),
"plOptions" => array(),
"plProvidedAcls" => array(
"netatalkUserHomepath" => _("User home path"),
"netatalkShare" => _("Share"))
));
}
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
......
......@@ -267,31 +267,6 @@ class pureftpdAccount extends plugin
}
/* Return plugin informations for acl handling
#FIME There possibly some attributes that can be combined to one acl. */
static function plInfo()
{
return (array(
"plShortName" => _("Ftp"),
"plDescription" => _("Pure ftp account")." ("._("Connectivity addon").")",
"plSelfModify" => TRUE,
"plDepends" => array("user"),
"plPriority" => 22, // Position in tabs
"plSection" => array("personal" => _("My account")),
"plCategory" => array("users"),
"plOptions" => array(),
"plProvidedAcls" => array(
"FTPQuotaFiles" => _("Quota files"),
"FTPUploadRatio" => _("Upload ratio"),
"FTPQuotaMBytes" => _("Quota MBytes"),
"FTPDownloadRatio" => _("Download ratio"),
"FTPUploadBandwidth" => _("Upload bandwith"),
"FTPDownloadBandwidth" => _("Download bandwith"),
"FTPStatus" => _("Status"))
));
}
function multiple_save_object()
{
if (isset($_POST['connectivityTab'])){
......@@ -335,6 +310,31 @@ class pureftpdAccount extends plugin
$this->is_account = $values['is_account'];
}
}
/* Return plugin informations for acl handling
#FIME There possibly some attributes that can be combined to one acl. */
static function plInfo()
{
return (array(
"plShortName" => _("Ftp"),
"plDescription" => _("Pure ftp account")." ("._("Connectivity addon").")",
"plSelfModify" => TRUE,
"plDepends" => array("user"),
"plPriority" => 22, // Position in tabs
"plSection" => array("personal" => _("My account")),
"plCategory" => array("users"),
"plOptions" => array(),
"plProvidedAcls" => array(
"FTPQuotaFiles" => _("Quota files"),
"FTPUploadRatio" => _("Upload ratio"),
"FTPQuotaMBytes" => _("Quota MBytes"),
"FTPDownloadRatio" => _("Download ratio"),
"FTPUploadBandwidth" => _("Upload bandwith"),
"FTPDownloadBandwidth" => _("Download bandwith"),
"FTPStatus" => _("Status"))
));
}
}
......
......@@ -472,35 +472,6 @@ class scalixAccount extends plugin
}
static function plInfo()
{
return (array(
"plDescription" => _("Scalix account"),
"plSelfModify" => TRUE,
"plDepends" => array("user"),
"plPriority" => 2,
"plSection" => array("personal" => _("My account")),
"plCategory" => array("users"),
"plOptions" => array(),
"plProvidedAcls" => array(
"scalixMailnode" => _("Scalix Mail node"),
"scalixMailboxClass" => _("Mailbox class"),
"scalixServerLanguage" => _("Server language"),
"scalixAdministrator" => _("Administrator"),
"scalixMailboxAdministrator"=> _("Mailbox administrator"),
"scalixHideUserEntry" => _("Hide user entry in Scalix"),
"scalixLimitMailboxSize" => _("Mailbox size limitations"),
"scalixLimitOutboundMail" => _("Limit outbound"),
"scalixLimitInboundMail" => _("Limit inbound"),
"scalixLimitNotifyUser" => _("Notify user"),
"scalixEmailAddress" => _("Scalix email addresses"))
));
}
function saveCopyDialog()
{
if (isset($_POST['scalixTab'])){
......@@ -574,6 +545,35 @@ class scalixAccount extends plugin
return($ret);
}
static function plInfo()
{
return (array(
"plDescription" => _("Scalix account"),
"plSelfModify" => TRUE,
"plDepends" => array("user"),
"plPriority" => 2,
"plSection" => array("personal" => _("My account")),
"plCategory" => array("users"),
"plOptions" => array(),
"plProvidedAcls" => array(
"scalixMailnode" => _("Scalix Mail node"),
"scalixMailboxClass" => _("Mailbox class"),
"scalixServerLanguage" => _("Server language"),
"scalixAdministrator" => _("Administrator"),
"scalixMailboxAdministrator"=> _("Mailbox administrator"),
"scalixHideUserEntry" => _("Hide user entry in Scalix"),
"scalixLimitMailboxSize" => _("Mailbox size limitations"),
"scalixLimitOutboundMail" => _("Limit outbound"),
"scalixLimitInboundMail" => _("Limit inbound"),
"scalixLimitNotifyUser" => _("Notify user"),
"scalixEmailAddress" => _("Scalix email addresses"))
));
}
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler
......
......@@ -341,29 +341,6 @@ class proxyAccount extends plugin
}
/*! \brief Static Function returning an ACL information array.
@return Array Returns an ACL array
*/
static function plInfo()
{
return (array(
"plShortName" => _("Proxy"),
"plDescription" => _("Proxy account")." ("._("Connectivity addon").")",
"plSelfModify" => TRUE,
"plDepends" => array("user"),
"plPriority" => 21, // Position in tabs
"plSection" => array("personal" => _("My account")),
"plCategory" => array("users"),
"plOptions" => array(),
"plProvidedAcls" => array(
"gosaProxyFlagF" => _("Filter unwanted content"),
"gosaProxyFlagT" => _("Limit proxy access"),
"gosaProxyFlagB" => _("Restrict proxy usage by quota"))
));
}
/*! \brief Save html POSTs in multiple edit.
*/
......@@ -452,6 +429,29 @@ class proxyAccount extends plugin
$this->is_account = TRUE;
}
}
/*! \brief Static Function returning an ACL information array.
*
* \return Array Returns an ACL array
*/
static function plInfo()
{
return (array(
"plShortName" => _("Proxy"),
"plDescription" => _("Proxy account")." ("._("Connectivity addon").")",
"plSelfModify" => TRUE,
"plDepends" => array("user"),
"plPriority" => 21, // Position in tabs
"plSection" => array("personal" => _("My account")),
"plCategory" => array("users"),
"plOptions" => array(),
"plProvidedAcls" => array(
"gosaProxyFlagF" => _("Filter unwanted content"),
"gosaProxyFlagT" => _("Limit proxy access"),
"gosaProxyFlagB" => _("Restrict proxy usage by quota"))
));
}
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
......
......@@ -621,32 +621,6 @@ class sudo extends plugin
}
/*! \brief Add ACL object
@return Returns the ACL object.
*/
static function plInfo()
{
return (array(
"plShortName" => _("Sudo"),
"plDescription" => _("Sudo role"),
"plSelfModify" => FALSE,
"plDepends" => array(),
"plPriority" => 0,
"plSection" => array("administration"),
"plCategory" => array("sudo" => array("objectClass" => "sudoRole", "description" => _("Sudo role"))),
"plProvidedAcls" => array(
"cn" => _("Name"),
"description" => _("Description"),
"sudoUser" => _("Users"),
"sudoHost" => _("Host"),
"sudoCommand" => _("Command"),
"sudoRunAs" => _("Run as user"),
"trustModel" => _("Access control list"))
));
}
/*! \brief This function will be called if an object gets copied.
This function adapts attributes from the source object.
@param Array The source object.
......@@ -716,6 +690,34 @@ class sudo extends plugin
$this->cn = get_post('cn');
}
}
/*! \brief Add ACL object
*
* \return Returns the ACL object.
*/
static function plInfo()
{
return (array(
"plShortName" => _("Sudo"),
"plDescription" => _("Sudo role"),
"plSelfModify" => FALSE,
"plDepends" => array(),
"plPriority" => 0,
"plSection" => array("administration"),
"plCategory" => array("sudo" => array("objectClass" => "sudoRole", "description" => _("Sudo role"))),
"plProvidedAcls" => array(
"cn" => _("Name"),
"description" => _("Description"),
"sudoUser" => _("Users"),
"sudoHost" => _("Host"),
"sudoCommand" => _("Command"),
"sudoRunAs" => _("Run as user"),
"trustModel" => _("Access control list"))
));
}
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>
......@@ -539,20 +539,6 @@ class gotomasses extends management
function save(){}
static function plInfo()
{
return (array(
"plShortName" => _("System deployment"),
"plDescription" => _("Provide a mechanism to automatically activate systems"),