summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 615bd4d)
raw | patch | inline | side by side (parent: 615bd4d)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 18 Sep 2006 11:24:26 +0000 (11:24 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 18 Sep 2006 11:24:26 +0000 (11:24 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4712 594d385d-05f5-0310-b6e9-bd551577e9d8
56 files changed:
index d1af40e8564fe97326ecaabf22e21edd56b1906f..8be727a5b31de73ebad4b90d92969e18beae44eb 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
\param dn Distinguished name to initialize plugin from
\sa plugin()
*/
- function plugin ($config, $dn= NULL)
+ function plugin ($config, $dn= NULL, $parent= NULL)
{
/* Configuration is fine, allways */
$this->config= $config;
if ($dn != NULL){
/* Load data to 'attrs' and save 'dn' */
- $ldap->cat ($dn);
- $this->attrs= $ldap->fetch();
+ if ($parent != NULL){
+ $this->attrs= $parent->attrs;
+ } else {
+ $ldap->cat ($dn);
+ $this->attrs= $ldap->fetch();
+ }
/* Copy needed attributes */
foreach ($this->attributes as $val){
diff --git a/include/class_tabs.inc b/include/class_tabs.inc
index 5c3204571425c628e8d6118e679ca81ea6d55fa3..caadc2c578c60c067b5b9422f76df0503cd645f5 100644 (file)
--- a/include/class_tabs.inc
+++ b/include/class_tabs.inc
var $by_object= array();
var $SubDialog = false;
- function tabs($config, $data, $dn, $gui= true)
+ function tabs($config, $data, $dn)
{
/* Save dn */
$this->dn= $dn;
$this->config= $config;
+ $baseobject= NULL;
foreach ($data as $tab){
$this->by_name[$tab['CLASS']]= $tab['NAME'];
- if ($gui){
- $this->by_object[$tab['CLASS']]= new $tab['CLASS']($this->config, $this->dn);
+ if ($baseobject == NULL){
+ $baseobject= new $tab['CLASS']($this->config, $this->dn);
+ $this->by_object[$tab['CLASS']]= $baseobject;
} else {
- $this->by_object[$tab['CLASS']]= new $tab['CLASS']($this->config, $this->dn, false);
+ $this->by_object[$tab['CLASS']]= new $tab['CLASS']($this->config, $this->dn, $baseobject);
}
$this->by_object[$tab['CLASS']]->parent= &$this;
diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc
index 42626b91e1cf43ec63c5e14d7c2fdaf64d3d33de..a2f7acccfc6a21ce6b793e687033cbded32fdc88 100644 (file)
var $isReleaseApplikation = false;
- function application ($config, $dn= NULL)
+ function application ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$tmp = search_config($this->config->data,"faiManagement","CLASS");
if(!empty($tmp)) {
diff --git a/plugins/admin/applications/class_applicationParameters.inc b/plugins/admin/applications/class_applicationParameters.inc
index 426bbf190dbc186b959cff38298291b332907d54..07bb051e172f03cb90cffeae84f925ba16dde4e6 100644 (file)
var $attributes= array("gosaApplicationParameter");
var $objectclasses= array();
- function applicationParameters ($config, $dn= NULL)
+ function applicationParameters ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$this->gosaApplicationParameter = array();
index 01e05a0de99502f9486a25b280585a181a79d4fe..233e59b69a592b3c6c85568802711801f938cf81 100644 (file)
var $attributes= array("gosaSubtreeACL");
var $objectclasses= array("gosaObject");
- function acl ($config, $dn= NULL)
+ function acl ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin($config, $dn);
+ plugin::plugin($config, $dn, $parent);
/* WorkAround */
include "acl_definition.inc";
diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc
index 80839ce16b81f0a2df4529fb66be18e9966f0a56..4a4fde162c069a21fe595b08f4b95b940961ac92 100644 (file)
var $gosaApplicationParameter ;
- function appgroup ($config, $dn= NULL)
+ function appgroup ($config, $dn= NULL, $parent= NULL)
{
/* prepare group app for release management */
$this->attributes[] = "FAIrelease";
}
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* In some case of old applikations with old release tag saving, we
must reassign is_account state.
diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc
index e1a3ca488d8372fc77b2e5511bc386fbef70c19b..f25a036f113d683530f88d3b50aa3349dc4d83cf 100644 (file)
var $attributes= array("cn", "description", "gidNumber","memberUid","sambaGroupType","sambaSID");
var $objectclasses= array("top", "posixGroup");
- function group ($config, $dn= NULL)
+ function group ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Load attributes depending on the samba version */
$this->samba3= ($config->current['SAMBAVERSION'] == 3);
index d42c233e8cd2292c55c2209def3b6a0600d23230..31557a6c4c12aa858266cacd3f4ca4826feddfa5 100644 (file)
var $objectclasses= array("gosaMailAccount");
- function mailgroup ($config, $dn= NULL, $ui= NULL)
+ function mailgroup ($config, $dn= NULL, $parent= NULL)
{
/* Initialise all available attributes ... if possible
*/
- plugin::plugin($config, $dn);
+ plugin::plugin($config, $dn, $parent);
/* Set mailMethod to the one defined in gosa.conf
*/
index 8357a0e4235685016690ac7b6306ffdd443ed25d..a4d0279dbd444368a4ab094b919d4a982f394eea 100644 (file)
class grouptabs extends tabs
{
- function grouptabs($config, $data, $dn, $gui= true)
+ function grouptabs($config, $data, $dn)
{
- tabs::tabs($config, $data, $dn, $gui);
+ tabs::tabs($config, $data, $dn);
$baseobject= $this->by_object['group'];
foreach ($this->by_object as $name => $obj){
if(isset($obj->parent)){
diff --git a/plugins/admin/ogroups/class_mailogroup.inc b/plugins/admin/ogroups/class_mailogroup.inc
index b13799aaed8f37c836f2239197ba8e6156dd6de9..ed9d9ed6d3aed3bb6c9e494cb5be2084c5b48b08 100644 (file)
var $members= array();
- function mailogroup ($config, $dn= NULL)
+ function mailogroup ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin($config, $dn);
+ plugin::plugin($config, $dn, $parent);
/* Include config object */
$this->config= $config;
index 0a173556e68dac16a3b03a154f4cd0de56b8f4d2..eb0db5799733d951059a01721163ba1c3e258283 100644 (file)
"sysinfo" => "sysinfo");
- function termgroup ($config, $dn= NULL)
+ function termgroup ($config, $dn= NULL, $parent= NULL)
{
/***************
Some initialisations
***************/
- plugin::plugin($config, $dn);
+ plugin::plugin($config, $dn, $parent);
$ldap= $config->get_ldap_link();
diff --git a/plugins/admin/systems/class_componentGeneric.inc b/plugins/admin/systems/class_componentGeneric.inc
index 7d1e3fe86572a3603b9c44076cf66c70a631bfc3..46821aa95044e6709bc290495296cde06db62f4c 100644 (file)
var $objectclasses= array("top", "device", "ipHost", "ieee802Device");
var $netConfigDNS;
- function componentgeneric ($config, $dn= NULL)
+ function componentgeneric ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Set base */
if ($this->dn == "new"){
diff --git a/plugins/admin/systems/class_glpiAccount.inc b/plugins/admin/systems/class_glpiAccount.inc
index 2c909c6906a3eed17372c221a69577e24c180957..9ff5019138a6059b2d135fd975a33db5767d911d 100644 (file)
/* Contructor
Sets default values and checks if we already have an existing glpi account
*/
- function glpiAccount ($config, $dn= NULL)
+ function glpiAccount ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$this->ui= get_userinfo();
/* Abort class construction, if no db is defined */
diff --git a/plugins/admin/systems/class_glpiManufacturer.inc b/plugins/admin/systems/class_glpiManufacturer.inc
index 120818a5ddc7839b1b52c753c21d7da1ec59d8de..9ae1ea8003b2c5214d303c747443f7c15d41a05b 100644 (file)
var $email ="";
var $ID =-1;
- function glpiManufacturer($config, $dn= NULL)
+ function glpiManufacturer($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$this->ui = get_userinfo();
}
diff --git a/plugins/admin/systems/class_glpiPrinterAccount.inc b/plugins/admin/systems/class_glpiPrinterAccount.inc
index ea5a02ef6dad8c7279181bdcf4351a09dda00e71..e44e000bdcb35166616d6cbd5edb83ed6ebf0c9e 100644 (file)
/* Contructor
Sets default values and checks if we already have an existing glpi account
*/
- function glpiPrinterAccount ($config, $dn= NULL)
+ function glpiPrinterAccount ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$this->ui= get_userinfo();
$this->is_account = false;
diff --git a/plugins/admin/systems/class_goSpamServer.inc b/plugins/admin/systems/class_goSpamServer.inc
index a9762a5b7f8c71e0eea51998942bb4916bb5f411..1d47712203a724b0c2a3380daa0d805a23dc0923 100644 (file)
var $ui = NULL;
var $acl = NULL;
- function gospamserver($config,$dn)
+ function gospamserver($config,$dn, $parent= NULL)
{
/* Init class */
- plugin::plugin($config,$dn);
+ plugin::plugin($config,$dn, $parent);
$this->DisplayName = _("Spamassassin");
/* Get userinfo & acls */
diff --git a/plugins/admin/systems/class_goVirusServer.inc b/plugins/admin/systems/class_goVirusServer.inc
index ad549c62f2714b05ccc04dc951d9d745817160eb..6335956b77b66de5c1cf303d6658c38a8f3b28e2 100644 (file)
var $avHttpProxyURL = "";
var $avDatabaseMirror = "";
- function govirusserver($config,$dn)
+ function govirusserver($config,$dn, $parent= NULL)
{
/* Init class */
- plugin::plugin($config,$dn);
+ plugin::plugin($config,$dn, $parent);
$this->DisplayName = _("Anti virus");
/* Get userinfo & acls */
index be90e46e18e9c544f3b8b3281298630c3ec8bc71..f3f1b3f46b6ac59fd80e66618891172fb9de1e1e 100644 (file)
var $attributes= array();
var $objectclasses= array("whatever");
- function inventory ($config, $dn= NULL)
+ function inventory ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
}
function execute()
diff --git a/plugins/admin/systems/class_phoneGeneric.inc b/plugins/admin/systems/class_phoneGeneric.inc
index 24566d9f2ed296f5eb2ff12a1084b616e493bd68..76718175b7e3a42f7933ce8ac1d0bf54b27b05e3 100644 (file)
var $objectclasses= array("top", "goFonHardware");
- function phonegeneric ($config, $dn= NULL)
+ function phonegeneric ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$this->netConfigDNS = new termDNS($this->config,$this->dn,$this->objectclasses, true);
/* Set base */
index cd716eaf154f6fa6c5743d3fb60c9c8b83dd83f4..1275580057ad572b3f278fbbe740a87c4e8fa361 100644 (file)
"goFonServer" => array("goFonAdmin", "goFonPassword",
"goFonAreaCode", "goFonCountryCode"));
- function servdb ($config, $dn= NULL)
+ function servdb ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Make dynamic list of objectClasses */
foreach ($this->additionaloc as $oc => $dummy){
index 8d468f948641e4c4d327ef79e33f9df9ae7019c2..f9d6fe1d626facd3b66d351a4d6b85c0b02d9bd2 100644 (file)
var $attributes= array();
var $objectclasses= array("whatever");
- function servdhcp ($config, $dn= NULL)
+ function servdhcp ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
}
function execute()
index 9bc83feefef694fd3c61785f44908bce96815539..c109d44a6fa2d4fbf5d92be5a5ce1a1c69f74223 100644 (file)
var $DNSinitially_was_account;
- function servdns ($config, $dn= NULL)
+ function servdns ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$this->orig_dn = $dn;
diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc
index 9c0f48cd1f442c63d0434f2fffc556b7810f816f..d9e946a14cbf8b60c4fe7c1fcf8a35114b8371e4 100644 (file)
"memcheck" => "memcheck",
"sysinfo" => "sysinfo");
- function servgeneric ($config, $dn= NULL)
+ function servgeneric ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$this->modes["active"]= _("Activated");
$this->modes["locked"]= _("Locked");
index 9d0d752c11fb40cc5e355181ab1f0e05eb6909a4..086bbd58339b0cecab4826bc1297cfdc3077b1ee 100644 (file)
"cyrus_quotawarn");
var $objectclasses = array("top", "kolab");
- function servkolab($config, $dn = NULL)
+ function servkolab($config, $dn = NULL, $parent= NULL)
{
/* Setting the hostname and tell this Plugin that we are the kolab extension*/
$this->hostname = preg_replace('/^cn=([^,]+),.*$/', '\1', $dn);
$this->dn = "k=kolab,".$config->current['BASE'];
/* Load variables, if given*/
- plugin::plugin($config, $this->dn);
+ plugin::plugin($config, $this->dn, $parent);
/* Copy needed attributes */
foreach($this->attributes as $val) {
diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc
index 9a3114e80a317c724535f7b809264afb504bc60e..98c8bcb928e214ce7e102fcee965466e8f120876 100644 (file)
var $repositories = array();
var $FAIrepository = array();
- function servrepository ($config, $dn= NULL)
+ function servrepository ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$this->repositories = array();
if(isset($this->attrs['FAIrepository'])){
diff --git a/plugins/admin/systems/class_servService.inc b/plugins/admin/systems/class_servService.inc
index c624e5e0b54d311c72175bdd182fd693c6308b35..091e98717f25c66dc67810b112fb7bb8945d3f6d 100644 (file)
var $mounts_to_remove = array();
var $oldone = NULL; //temp dave for old mount entry
- function servservice ($config, $dn= NULL)
+ function servservice ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$ldap = $this->config->get_ldap_link();
$avl_objectclasses = $ldap->get_objectclasses();
diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc
index b3b38ac5f1b4b392f4c5d16559c093b8f7c0c31b..f87becda7cafe67d1d273170c7e29d0ac8ee9bc7 100644 (file)
"sysinfo" => "sysinfo");
- function termgeneric ($config, $dn= NULL)
+ function termgeneric ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$this->netConfigDNS = new termDNS($this->config,$this->dn,$this->objectclasses);
/* Read arrays */
foreach (array("ghNetNic", "ghIdeDev", "ghScsiDev") as $val){
diff --git a/plugins/admin/systems/class_terminalInfo.inc b/plugins/admin/systems/class_terminalInfo.inc
index 97a3ef362ed2f3ee9ff2fda54e92750d2baafb0b..c51b7846fb5d29864952169debd246e815cf2175 100644 (file)
"ghGfxAdapter", "ghSoundAdapter", "gotoLastUser");
var $objectclasses= array("GOhard");
- function terminfo ($config, $dn= NULL)
+ function terminfo ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Read arrays */
foreach (array("ghNetNic", "ghIdeDev", "ghScsiDev") as $val){
diff --git a/plugins/admin/systems/class_terminalService.inc b/plugins/admin/systems/class_terminalService.inc
index c84058364d15ee3add066d836fa61f17074076e9..bd3ee4652e7e298531bdd814ef213d9868a208d3 100644 (file)
var $objectclasses= array("GOhard");
- function termservice ($config, $dn= NULL)
+ function termservice ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
array_unshift($this->XDrivers, "["._("unknown")."]");
diff --git a/plugins/admin/systems/class_terminalStartup.inc b/plugins/admin/systems/class_terminalStartup.inc
index 77e45245d91a8524ddaf1555328b34d33fe54899..596cf2bafe009d239bcc8429f4c0a6ca0ea5b3b1 100644 (file)
var $orig_dn= "";
var $ignore_account= TRUE;
- function termstartup ($config, $dn= NULL)
+ function termstartup ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Get arrays */
foreach (array("gotoModules") as $val){
diff --git a/plugins/admin/systems/class_winGeneric.inc b/plugins/admin/systems/class_winGeneric.inc
index ffd87eb9c02448ecf32d5be4a65bd7f2bd62ba3b..fc0191a72fd502cea2a2735a87e62dd6f55f9571 100644 (file)
var $objectclasses= array("posixAccount","person","organizationalPerson","inetOrgPerson","gosaAccount","shadowAccount","sambaSamAccount","top");
- function wingeneric ($config, $dn= NULL)
+ function wingeneric ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$this->netConfigDNS = new termDNS($this->config,$this->dn,$this->objectclasses);
/* Set base */
if ($this->dn == "new"){
diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc
index 6f0828838f3a17cd66364bc06c899e0f865e1dc0..9620d0592f5656b9a5097b73f002b05f42541d4b 100644 (file)
- function workgeneric ($config, $dn= NULL)
+ function workgeneric ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$this->netConfigDNS = new termDNS($this->config,$this->dn,$this->objectclasses);
/* Read arrays */
diff --git a/plugins/admin/systems/class_workstationService.inc b/plugins/admin/systems/class_workstationService.inc
index 7ba6be5e186e0a50b2220c793c5cfc1c11af48d8..b8dbddd00100bd4cbbd267921cd93eebab24d785 100644 (file)
var $XKbLayouts =array();
var $XKbVariants =array();
- function workservice ($config, $dn= NULL)
+ function workservice ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$this->XResolutions= array(
"640x480" => "640x480",
diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc
index 1b5be31a7078c28e63eb26fe85af06efbbfdc21d..812a48982592ef4df973562f09cbee2308fc918d 100644 (file)
/* Contains all possible server/release/class settings */
var $FAIServRepConfig = array();
- function workstartup ($config, $dn= NULL)
+ function workstartup ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Creating a list of valid Mirrors
* none will not be saved to ldap.
diff --git a/plugins/gofax/faxaccount/class_gofaxAccount.inc b/plugins/gofax/faxaccount/class_gofaxAccount.inc
index c4cdf2a230edda6b01d83aab78a08680297b4d42..5232ca844cf3e1bbf225a8dbc182abd4ba791583 100644 (file)
var $uid= "";
- function gofaxAccount ($config, $dn= NULL)
+ function gofaxAccount ($config, $dn= NULL, $parent)
{
/* General initialization */
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Get user id */
if(isset($this->attrs['uid'])){
diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc
index 49f08c236214318632b87065bb6395b4d9d94704..cd62cf5c5d54f99be6d58a4c6289d588dc2bbedd 100644 (file)
var $objectclasses= array("top", "goFonConference");
- function conference ($config, $dn)
+ function conference ($config, $dn, $plugin= NULL)
{
- plugin::plugin($config, $dn);
+ plugin::plugin($config, $dn, $plugin);
$this->is_account = TRUE;
$this->ui = get_userinfo();
$this->dn = $dn;
index cabcb9a8b03b787d559f1cadefa28ecf7bf06a84..bb2f3f2c06fa9187c5d6a9943c95fbd9d094c8d6 100755 (executable)
//! The Konstructor
/*! Konstructor, load class with attributes of the given dn*/
- function macro ($config, $dn= NULL)
+ function macro ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$ldap= $config->get_ldap_link();
diff --git a/plugins/gofon/macro/class_gofonMacroParameters.inc b/plugins/gofon/macro/class_gofonMacroParameters.inc
index d9d91bef6d3148004616bd492f5dffe361a73529..803784026c8a09dbc5446df117d09d704bccbc27 100755 (executable)
- Set attributes from openldap (edit)
- Set attributes from default (new)
*/
- function macroParameter ($config, $dn= NULL)
+ function macroParameter ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
$tmp = array(); // temporary Var
$tmp2 = array(); // temporary Var ...
diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc
index 44029b490f49f7897fc2512a8c8aeff9ae84d7db..b5a5e22b3b438679f92fccaae5244b9bd49706f1 100644 (file)
var $uid;
- function phoneAccount ($config, $dn= NULL)
+ function phoneAccount ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Set phone hardware */
if (!isset($this->attrs['goFonHardware'])){
diff --git a/plugins/personal/connectivity/class_connectivity.inc b/plugins/personal/connectivity/class_connectivity.inc
index bb705259c9f4bc593d2962e1d31d18eb4c8533f6..74154e65fd959718fe36962621f39455c6dccf77 100644 (file)
var $CopyPasteVars = array("plugin","plugin_name");
- function connectivity ($config, $dn= NULL)
+ function connectivity ($config, $dn= NULL, $parent= NULL)
{
/* Preseed permissions */
$this->dn= $dn;
foreach ($config->data['TABS']['CONNECTIVITY'] as $plug){
$name= $plug['CLASS'];
$this->plugin_name[]= $name;
- $this->plugin[$name]= new $name($config, $dn);
+ $this->plugin[$name]= new $name($config, $dn, $parent);
$this->plugin[$name]->acl= get_module_permission($acl, "$name", $ui->dn);
}
}
diff --git a/plugins/personal/connectivity/class_intranetAccount.inc b/plugins/personal/connectivity/class_intranetAccount.inc
index 325894392a159e9fa238a4c4f3e0db8f9cc9548e..1f475bf2578b022e78771964ef8bddd448cb9a92 100644 (file)
\version 1.00
\date 1.07.2005
*/
- function intranetAccount ($config, $dn= NULL)
+ function intranetAccount ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Setting uid to default */
if(isset($this->attrs['uid'][0])){
diff --git a/plugins/personal/connectivity/class_kolabAccount.inc b/plugins/personal/connectivity/class_kolabAccount.inc
index 34a8fd56c1affcf043b3d51f9129faaff82ac3a0..080a498b248b7754164f8b57d62c6fe3c41d6635 100644 (file)
var $uid ="";
- function kolabAccount ($config, $dn= NULL)
+ function kolabAccount ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Setting uid to default */
if(isset($this->attrs['uid'][0])){
diff --git a/plugins/personal/connectivity/class_opengwAccount.inc b/plugins/personal/connectivity/class_opengwAccount.inc
index a4b817d190e502609647562665853dff6abc32ac..e33682c3ec7fced4b29e5f0b230281751fd59dea 100644 (file)
var $OGWPassword = "";
var $uid ="";
- function opengwAccount ($config, $dn= NULL)
+ function opengwAccount ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Setting uid to default */
if(isset($this->attrs['uid'][0])){
diff --git a/plugins/personal/connectivity/class_oxchangeAccount.inc b/plugins/personal/connectivity/class_oxchangeAccount.inc
index 482a28c5df8b709189ef0f493ebe47b5d272935a..d88b3801db7417353a97ed6c4457f5508c5a0b16 100644 (file)
var $dnmode= "";
- function oxchangeAccount ($config, $dn= NULL)
+ function oxchangeAccount ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
for ($i=0;$i<count($this->config->data['TABS']['CONNECTIVITY']);$i++){
if($this->config->data['TABS']['CONNECTIVITY'][$i]['CLASS']=='oxchangeAccount') {
$this->oxconf=$this->config->data['TABS']['CONNECTIVITY'][$i];
diff --git a/plugins/personal/connectivity/class_phpgwAccount.inc b/plugins/personal/connectivity/class_phpgwAccount.inc
index d9d52b38890db75010fb710c40c9c22618715b00..6dd83674cc9baf3b9a7794327bc396863126a291 100644 (file)
var $uid = "";
- function phpgwAccount ($config, $dn= NULL)
+ function phpgwAccount ($config, $dn= NULL, $parent=NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Setting uid to default */
if(isset($this->attrs['uid'][0])){
diff --git a/plugins/personal/connectivity/class_phpscheduleitAccount.inc b/plugins/personal/connectivity/class_phpscheduleitAccount.inc
index 8a3868a8557de64f2f9bd38fd62dc5676668c993..073da05ca75e3d12179cb87eeb73c3c9d40a40f9 100644 (file)
var $attributes= array();
var $objectclasses= array("phpscheduleitAccount");
- function phpscheduleitAccount ($config, $dn= NULL)
+ function phpscheduleitAccount ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
}
function execute()
diff --git a/plugins/personal/connectivity/class_pptpAccount.inc b/plugins/personal/connectivity/class_pptpAccount.inc
index 85b1e6f6c2fd2050d13f0d89f9575ff5fee7cef0..ba416e37c3e040e1bbcd935877a3d7d8f5a53070 100644 (file)
var $uid ="";
- function pptpAccount ($config, $dn= NULL)
+ function pptpAccount ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Setting uid to default */
if(isset($this->attrs['uid'][0])){
diff --git a/plugins/personal/connectivity/class_proxyAccount.inc b/plugins/personal/connectivity/class_proxyAccount.inc
index 1f6fefff75a1b99647743920709528b6c2f204bd..bf40e92e809bb18b90cc9524599f892ebaac0ee5 100644 (file)
var $uid = "";
- function proxyAccount ($config, $dn= NULL)
+ function proxyAccount ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Setting uid to default */
if(isset($this->attrs['uid'][0])){
diff --git a/plugins/personal/connectivity/class_pureftpdAccount.inc b/plugins/personal/connectivity/class_pureftpdAccount.inc
index 549bbf56cbc8fc06c68c6faf2e291c45ec6756e9..ecb2e412530a65b181e7f339fc2a8c15a6ea05b5 100644 (file)
"FTPUploadBandwidth","FTPDownloadBandwidth","FTPStatus","FTPuid","FTPgid");
var $objectclasses= array("PureFTPdUser");
- function pureftpdAccount ($config, $dn= NULL)
+ function pureftpdAccount ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Setting uid to default */
if(isset($this->attrs['uid'][0])){
diff --git a/plugins/personal/connectivity/class_webdavAccount.inc b/plugins/personal/connectivity/class_webdavAccount.inc
index c87b4d9de641c9a1c6c8363574e8c8c237759688..0edecd3bddd1c8d046a07ea9b96c1e1541d94144 100644 (file)
var $uid ="";
- function webdavAccount ($config, $dn= NULL)
+ function webdavAccount ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Setting uid to default */
if(isset($this->attrs['uid'][0])){
diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc
index 6bc6cbd6ee3112b507d3870896d9ebf63c1fdee8..8b06f7af11dd07dcb8707ca18dbcaf64652c1220 100644 (file)
var $cn;
var $OrigCn;
- function environment ($config, $dn= NULL)
+ function environment ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Check : Are we currently editing a group or user dialog */
if((isset($this->attrs['cn'][0]))&&(!isset($this->attrs['uid'][0]))){
diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc
index 77c7b489baa85bd41bb5790d6b32682b2e920a56..9f89c679eecc42c7b508a82d521164c537fa154c 100644 (file)
/* constructor, if 'dn' is set, the node loads the given
'dn' from LDAP */
- function mailAccount ($config, $dn= NULL)
+ function mailAccount ($config, $dn= NULL, $parent= NULL)
{
/* Load bases attributes */
- plugin::plugin($config, $dn);
+ plugin::plugin($config, $dn, $parent);
if(isset($this->attrs['uid'])){
$this->uid = $this->attrs['uid'][0];
diff --git a/plugins/personal/nagios/class_nagiosAccount.inc b/plugins/personal/nagios/class_nagiosAccount.inc
index a95f64aaf7a790f1cf2b38922e892854a3d1ca6f..ac489538ac5815cb274511262e390508b276ba8b 100644 (file)
/* constructor, if 'dn' is set, the node loads the given
'dn' from LDAP */
- function nagiosAccount ($config, $dn= NULL)
+ function nagiosAccount ($config, $dn= NULL, $parent= NULL)
{
/* Configuration is fine, allways */
$this->config= $config;
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Set uid */
if(isset($this->attrs['uid'])){
diff --git a/plugins/personal/netatalk/class_netatalk.inc b/plugins/personal/netatalk/class_netatalk.inc
index 73343859a4cf0f2664adeaf0322498c99ed9c721..9af5e13f1d482128be93356f067b67784de57036 100644 (file)
var $uid ="";
/* The constructor just saves a copy of the config. You may add what ever you need. */
- function netatalk($config, $dn = NULL) {
+ function netatalk($config, $dn = NULL, $parent= NULL) {
/* Include config object */
$this->config = $config;
- plugin :: plugin($config, $dn);
+ plugin::plugin($config, $dn, $parent);
/* set user id */
if(isset($this->attrs['uid'])){
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index a79ba689cf9f5ac23e89ada71ebd96a02e65be4a..ff4cef179f9686697893cbb95e4e9647fc77d2a4 100644 (file)
/* constructor, if 'dn' is set, the node loads the given
'dn' from LDAP */
- function posixAccount ($config, $dn= NULL)
+ function posixAccount ($config, $dn= NULL, $parent= NULL)
{
/* Configuration is fine, allways */
$this->config= $config;
/* Load bases attributes */
- plugin::plugin($config, $dn);
+ plugin::plugin($config, $dn, $parent);
/* set user id */
if(isset($this->attrs['uid'])){
diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc
index 883005925aa8051cc8d222d9806d133c0060edc1..8a7f5ab8808efb015f70cd881be772f1c3e003dc 100644 (file)
var $CopyPasteVars = array("kickoff_time_set","logoff_time_set","logon_time_set","mungedObject","orig_sambaDomainName");
- function sambaAccount ($config, $dn= NULL)
+ function sambaAccount ($config, $dn= NULL, $parent= NULL)
{
/* Load attributes depending on the samba version */
$this->samba3= ($config->current['SAMBAVERSION'] == 3);
$this->objectclasses= array ("sambaAccount");
}
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* set user id */
if(isset($this->attrs['uid'])){