Commit 79aab43e authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes: #2129 ldapmanager tabs

parent 973ec986
dev 6104-mail-methods-refactor 6231-give-the-ability-to-the-webservice-to-notice-if-an-attribute-is-monovalued-or-multivalued 6237-add-requiredattrs-array-to-the-webservice-informations 6245-adapt-the-ci-to-the-reorganisation-of-the-dev-tools-and-fixing-the-trigger-downstream-pipelines 6250-supann-configuration-backend-requires-account-life-cycle-section 6280-plugins-update-plugins-to-take-into-consideration-the-new-directory-of-core-structure 6310-tasks-reminder-error-in-the-schema-duplicate-attribute-id 6311-put-the-version-1-5-in-all-yaml-for-fusiondirectory-1-5 6322-template-issue-when-creating-a-template-with-empty-password-error-message-should-not-be-seen-2 6332-zimbra-allows-update-of-data-for-unknown-domain-name-for-specific-individual-aliases 6337-webservice-issue-with-archiving-post-request-not-responding-but-successfully-archiving-user 6341-supann-extract-resources-states-sub-states-from-backend-configuration-to-their-own-objects master fusiondirectory-1.5 fusiondirectory-1.4 fusiondirectory-1.3.1 fusiondirectory-1.3 fusiondirectory-1.2.3 fusiondirectory-1.2.2 fusiondirectory-1.2.1 fusiondirectory-1.2 fusiondirectory-1.1.1 fusiondirectory-1.1 fusiondirectory-1.0.20 fusiondirectory-1.0.19 fusiondirectory-1.0.18 fusiondirectory-1.0.17 fusiondirectory-1.0.16 fusiondirectory-1.0.15 fusiondirectory-1.0.14 fusiondirectory-1.0.13 fusiondirectory-1.0.12 fusiondirectory-1.0.11 fusiondirectory-1.0.10 fusiondirectory-1.0.9.3 fusiondirectory-1.0.9.2 fusiondirectory-1.0.9.1 fusiondirectory-1.0.9 fusiondirectory-1.0.8.9 fusiondirectory-1.0.8.8 fusiondirectory-1.0.8.7 fusiondirectory-1.0.8.6 fusiondirectory-1.0.8.5 fusiondirectory-1.0.8.4 fusiondirectory-1.0.8.3 fusiondirectory-1.0.8.2 fusiondirectory-1.0.8.1 fusiondirectory-1.0.8 fusiondirectory-1.0.7.5 fusiondirectory-1.0.7.4 fusiondirectory-1.0.7.3 fusiondirectory-1.0.7.2 fusiondirectory-1.0.7.1 fusiondirectory-1.0.7 fusiondirectory-1.0.6 fusiondirectory-1.0.5
No related merge requests found
Showing with 16 additions and 102 deletions
+16 -102
<?php
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Copyright (C) 2003-2010 Cajus Pollmeier
Copyright (C) 2011 FusionDirectory
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
class ldif extends plugin
{
/* attribute list for save action */
var $attributes = array();
var $objectclasses = array();
var $ldif;
function __construct (&$config)
{
/* Include config object */
$this->ldif = new ldiftab($config, $config->data['TABS']['LDAPMANAGERTABS'], "");
}
function execute()
{
/* Call parent execute */
plugin::execute();
/* Show main page */
return $this->ldif->execute();
}
/* Return plugin informations for acl handling */
static function plInfo()
{
return array(
"plShortName" => _("LDAP manager"),
"plDescription" => _("Allows the management of the ldap tree"),
"plIcon" => "plugins/ldapmanager/images/ldif.png",
"plSelfModify" => FALSE,
"plSection" => "addons",
"plPriority" => 20,
"plCategory" => array("ldapmanager" => array("objectClass" => "none", "description" => _("Ldap manager"))),
"plProvidedAcls" => array()
);
}
}
?>
<?php <?php
/* /*
This code is part of FusionDirectory (http://www.fusiondirectory.org/) This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Copyright (C) 2003-2010 Cajus Pollmeier Copyright (C) 2013 FusionDirectory
Copyright (C) 2011 FusionDirectory
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
...@@ -20,39 +18,5 @@ ...@@ -20,39 +18,5 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
/* Remove locks created by this plugin */ simplePlugin::mainInc('ldifexport', '', 'ldiftab', FALSE);
if ($remove_lock){
if(session::is_set('ldif')){
// Nothing to unlock here
}
}
/* Remove this plugin from session */
if ( $cleanup ){
session::un_set('ldif');
}else{
/* Reset requested? */
if (isset($_GET['reset']) && $_GET['reset'] == 1){
session::un_set ('ldif');
}
/* Create phonelist object on demand */
if (!session::is_set('ldif')){
$ldif= new ldif ($config);
$ldif->set_acl_category("logview");
session::set('ldif',$ldif);
}
$ldif = session::get('ldif');
/* Execute formular */
$display= $ldif->execute ();
$display.= "<input type=\"hidden\" name=\"ignore\">\n";
/* Page header*/
$display= print_header(get_template_path('plugins/ldapmanager/images/ldif.png'), _("LDAP manager")).$display;
/* Store changes in session */
session::set('ldif',$ldif);
}
?> ?>
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
class ldiftab extends tabs class ldiftab extends tabs
{ {
function ldiftab($config, $data, $dn, $cat = '', $copied_object = NULL) function ldiftab($config, $data, $dn, $cat = '', $copied_object = NULL)
{ {
parent::tabs($config, $data, $dn, '', $copied_object); parent::tabs($config, $data, $dn, '', $copied_object);
...@@ -32,5 +31,19 @@ class ldiftab extends tabs ...@@ -32,5 +31,19 @@ class ldiftab extends tabs
{ {
} }
/* Return plugin informations for acl handling */
static function plInfo()
{
return array(
"plShortName" => _("LDAP manager"),
"plDescription" => _("Allows the management of the ldap tree"),
"plIcon" => "plugins/ldapmanager/images/ldif.png",
"plSection" => "addons",
"plPriority" => 20,
"plCategory" => array("ldapmanager" => array("objectClass" => "none", "description" => _("Ldap manager"))),
"plProvidedAcls" => array()
);
}
} }
?> ?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment