From b2b53c45c316391c67d6e2c0c1c7a2f3d00b5ddb Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 24 Sep 2007 09:00:27 +0000 Subject: [PATCH] Updated config->search calls. Don't search whole in config, just search in tabs or menu .. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7383 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/applications/class_applicationGeneric.inc | 4 ++-- .../admin/applications/class_applicationManagement.inc | 2 +- plugins/admin/applications/tabs_application.inc | 2 +- plugins/admin/fai/class_divListFai.inc | 4 ++-- plugins/admin/fai/class_faiSummaryTab.inc | 2 +- plugins/admin/groups/class_groupApplication.inc | 8 ++++---- plugins/admin/groups/class_groupManagement.inc | 2 +- plugins/admin/mimetypes/class_mimetypeGeneric.inc | 2 +- plugins/admin/mimetypes/class_mimetypeManagement.inc | 2 +- plugins/admin/mimetypes/tabs_mimetypes.inc | 2 +- plugins/admin/systems/class_servRepository.inc | 2 +- plugins/admin/systems/class_systemManagement.inc | 2 +- plugins/admin/systems/class_terminalGeneric.inc | 2 +- plugins/admin/systems/class_workstationGeneric.inc | 2 +- plugins/admin/systems/class_workstationStartup.inc | 2 +- plugins/personal/connectivity/class_opengwAccount.inc | 2 +- plugins/personal/environment/class_environment.inc | 2 +- .../personal/environment/class_kioskManagementDialog.inc | 2 +- 18 files changed, 23 insertions(+), 23 deletions(-) diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc index 0421166d2..be1a6c632 100644 --- a/plugins/admin/applications/class_applicationGeneric.inc +++ b/plugins/admin/applications/class_applicationGeneric.inc @@ -33,7 +33,7 @@ class application extends plugin { plugin::plugin ($config, $dn, $parent); - $tmp = $this->config->search("faiManagement", "CLASS"); + $tmp = $this->config->search("faiManagement", "CLASS",array('tabs')); if(!empty($tmp)) { if(!preg_match("/^ou=apps,/",$_SESSION['appfilter']['release'])){ $this->isReleaseApplikation = true; @@ -410,7 +410,7 @@ class application extends plugin $ldap= $this->config->get_ldap_link(); $ldap->cd($this->config->current["BASE"]); - $tmp = $this->config->search("faiManagement", "CLASS"); + $tmp = $this->config->search("faiManagement", "CLASS",array('tabs')); if((!empty($tmp)) && (isset($_SESSION['appfilter']['release']))){ $baseDn = str_replace($this->config->current['BASE'],$this->base,$_SESSION['appfilter']['release']); $baseDn = preg_replace("/ou=apps,.*/","ou=apps,".$this->base,$_SESSION['appfilter']['release']); diff --git a/plugins/admin/applications/class_applicationManagement.inc b/plugins/admin/applications/class_applicationManagement.inc index aa71fcc6e..95d05a84d 100644 --- a/plugins/admin/applications/class_applicationManagement.inc +++ b/plugins/admin/applications/class_applicationManagement.inc @@ -36,7 +36,7 @@ class applicationManagement extends plugin function IsReleaseManagementActivated() { /* Check if we should enable the release selection */ - $tmp = $this->config->search("faiManagement", "CLASS"); + $tmp = $this->config->search("faiManagement", "CLASS",array('tabs')); if(!empty($tmp)){ return(true); } diff --git a/plugins/admin/applications/tabs_application.inc b/plugins/admin/applications/tabs_application.inc index 60b209ae7..aa9600808 100644 --- a/plugins/admin/applications/tabs_application.inc +++ b/plugins/admin/applications/tabs_application.inc @@ -26,7 +26,7 @@ class apptabs extends tabs /* Check for new 'dn', in order to propagate the 'dn' to all plugins */ - $tmp = $this->config->search("faiManagement", "CLASS"); + $tmp = $this->config->search("faiManagement", "CLASS",array('tabs')); if((!empty($tmp)) && (isset($_SESSION['appfilter']['release']))){ if(!$baseobject->isReleaseApplikation){ $new_dn= "cn=".$baseobject->cn.",ou=apps,".$baseobject->base; diff --git a/plugins/admin/fai/class_divListFai.inc b/plugins/admin/fai/class_divListFai.inc index 7b66f47b8..020dac80a 100644 --- a/plugins/admin/fai/class_divListFai.inc +++ b/plugins/admin/fai/class_divListFai.inc @@ -94,8 +94,8 @@ class divListFai extends MultiSelectWindow /* Check if there are post commands available for fai management. * If not, grey out freeze/branch and release remove buttons. */ - $r = $this->config->search("faiManagement", "POSTREMOVE"); - $c = $this->config->search("faiManagement", "POSTCREATE"); + $r = $this->config->search("faiManagement", "POSTREMOVE",array('tabs')); + $c = $this->config->search("faiManagement", "POSTCREATE",array('tabs')); $smarty = get_smarty(); $smarty->assign("allow_create", $c); diff --git a/plugins/admin/fai/class_faiSummaryTab.inc b/plugins/admin/fai/class_faiSummaryTab.inc index 0ba1257a6..91c5ec346 100644 --- a/plugins/admin/fai/class_faiSummaryTab.inc +++ b/plugins/admin/fai/class_faiSummaryTab.inc @@ -170,7 +170,7 @@ class faiSummaryTab extends plugin{ { /* Skip this if fai is deactivated */ - $tmp = $this->config->search("faiManagement", "CLASS"); + $tmp = $this->config->search("faiManagement", "CLASS",array('tabs')); if(empty($tmp)){ $str = "

"._("You can't use this plugin until FAI is activated.")."

"; return $str; diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index faabcfcb4..28c683586 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -45,7 +45,7 @@ class appgroup extends plugin { /* Check if we have relase mangement enabled and prepare group application for release management */ - $tmp = $config->search("faiManagement", "CLASS"); + $tmp = $config->search("faiManagement", "CLASS",array('tabs')); if(!empty($tmp)){ $this->enableReleaseManagement = true; $this->objectclasses [] = "FAIreleaseTag"; @@ -539,7 +539,7 @@ class appgroup extends plugin $ldap= $this->config->get_ldap_link(); /* Check if we have release management enabled */ - $tmp = $this->config->search("faiManagement", "CLASS"); + $tmp = $this->config->search("faiManagement", "CLASS",array('tabs')); if(!empty($tmp)){ /* Get application parameter from ldap */ @@ -1015,7 +1015,7 @@ class appgroup extends plugin $this->apps= array(); /* Special handling for release managed apps */ - $tmp = $this->config->search("faiManagement", "CLASS"); + $tmp = $this->config->search("faiManagement", "CLASS",array('tabs')); if(!empty($tmp) && count($this->Releases)){ $this->enableReleaseManagement = true; @@ -1071,7 +1071,7 @@ class appgroup extends plugin /* Get all apps ... */ $res = get_list("objectClass=gosaApplication","application",$this->config->current['BASE'],array("gosaApplicationParameter","cn"),GL_SUBSEARCH); - $tmp = $this->config->search("faiManagement", "CLASS"); + $tmp = $this->config->search("faiManagement", "CLASS",array('tabs')); $this->AllAppsForRelease = array(); if(!empty($tmp)){ $tmp = array_flip($this->Releases); diff --git a/plugins/admin/groups/class_groupManagement.inc b/plugins/admin/groups/class_groupManagement.inc index 59d189c6a..0b0030bbb 100644 --- a/plugins/admin/groups/class_groupManagement.inc +++ b/plugins/admin/groups/class_groupManagement.inc @@ -561,7 +561,7 @@ class groupManagement extends plugin $attrs = array("cn", "description", "gidNumber", "objectClass"); /* If subsearch is activated search for subobjects too */ - $tmp = $this->config->search("faiManagement", "CLASS"); + $tmp = $this->config->search("faiManagement", "CLASS",array('tabs')); if(!empty($tmp)){ $attrs [] = "FAIrelease"; } diff --git a/plugins/admin/mimetypes/class_mimetypeGeneric.inc b/plugins/admin/mimetypes/class_mimetypeGeneric.inc index dd8806ff2..bac08e9cd 100644 --- a/plugins/admin/mimetypes/class_mimetypeGeneric.inc +++ b/plugins/admin/mimetypes/class_mimetypeGeneric.inc @@ -115,7 +115,7 @@ class mimetype extends plugin } /* Check if release Management is enabled */ - $tmp = $this->config->search("faiManagement", "CLASS"); + $tmp = $this->config->search("faiManagement", "CLASS",array('tabs')); if(!empty($tmp)) { $this->isReleaseMimeType= true; } diff --git a/plugins/admin/mimetypes/class_mimetypeManagement.inc b/plugins/admin/mimetypes/class_mimetypeManagement.inc index 7b62408d4..eda0cf23c 100755 --- a/plugins/admin/mimetypes/class_mimetypeManagement.inc +++ b/plugins/admin/mimetypes/class_mimetypeManagement.inc @@ -592,7 +592,7 @@ class mimetypeManagement extends plugin function IsReleaseManagementActivated() { /* Check if we should enable the release selection */ - $tmp = $this->config->search("faiManagement", "CLASS"); + $tmp = $this->config->search("faiManagement", "CLASS",array('tabs')); if(!empty($tmp)){ return(true); } diff --git a/plugins/admin/mimetypes/tabs_mimetypes.inc b/plugins/admin/mimetypes/tabs_mimetypes.inc index 379ae57fd..0aae1f43b 100755 --- a/plugins/admin/mimetypes/tabs_mimetypes.inc +++ b/plugins/admin/mimetypes/tabs_mimetypes.inc @@ -26,7 +26,7 @@ class mimetabs extends tabs /* Check for new 'dn', in order to propagate the 'dn' to all plugins */ - $tmp = $this->config->search("faiManagement", "CLASS"); + $tmp = $this->config->search("faiManagement", "CLASS",array('tabs')); if((!empty($tmp)) && (isset($_SESSION['mimefilter']['release']))){ if(!$baseobject->isReleaseMimeType){ diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc index ce5aeb07d..efb4bd8f8 100644 --- a/plugins/admin/systems/class_servRepository.inc +++ b/plugins/admin/systems/class_servRepository.inc @@ -33,7 +33,7 @@ class servrepository extends goService plugin::plugin ($config, $dn, $parent); /* Skip this if fai is deactivated */ - $tmp= $this->config->search("faiManagement", "CLASS"); + $tmp= $this->config->search("faiManagement", "CLASS",array('tabs')); if(!empty($tmp)){ $this->fai_activated = TRUE; }else{ diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc index 8c4c5c3cc..b7bdc36e9 100644 --- a/plugins/admin/systems/class_systemManagement.inc +++ b/plugins/admin/systems/class_systemManagement.inc @@ -957,7 +957,7 @@ class systems extends plugin $sys_categories = array("terminal", "workstation", "server", "phone" ,"printer"); /* Add FAIstate to attributes if FAI is activated */ - $tmp = $this->config->search("faiManagement", "CLASS"); + $tmp = $this->config->search("faiManagement", "CLASS",array('tabs')); if(!empty($tmp)){ $sys_attrs[] = "FAIstate"; } diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc index e0f05f862..72d81633d 100644 --- a/plugins/admin/systems/class_terminalGeneric.inc +++ b/plugins/admin/systems/class_terminalGeneric.inc @@ -63,7 +63,7 @@ class termgeneric extends plugin function termgeneric (&$config, $dn= NULL, $parent= NULL) { /* Check if FAI is activated */ - $tmp= $config->search("faiManagement", "CLASS"); + $tmp= $config->search("faiManagement", "CLASS",array('tabs')); if(!empty($tmp)){ $this->fai_activated = TRUE; } diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc index ae31c93c0..5144b1688 100644 --- a/plugins/admin/systems/class_workstationGeneric.inc +++ b/plugins/admin/systems/class_workstationGeneric.inc @@ -68,7 +68,7 @@ class workgeneric extends plugin function workgeneric (&$config, $dn= NULL, $parent= NULL) { - $tmp= $config->search("faiManagement", "CLASS"); + $tmp= $config->search("faiManagement", "CLASS",array('tabs')); if(!empty($tmp)){ $this->fai_activated = TRUE; } diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index 3f6c1c1c7..eaecb0187 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -61,7 +61,7 @@ class workstartup extends plugin function workstartup (&$config, $dn= NULL, $parent= NULL) { /* Check if FAI is active */ - $tmp= $config->search("faiManagement", "CLASS"); + $tmp= $config->search("faiManagement", "CLASS",array('tabs')); if(!empty($tmp)){ $this->fai_activated = TRUE; }else{ diff --git a/plugins/personal/connectivity/class_opengwAccount.inc b/plugins/personal/connectivity/class_opengwAccount.inc index ee27afe83..4c7dee76b 100644 --- a/plugins/personal/connectivity/class_opengwAccount.inc +++ b/plugins/personal/connectivity/class_opengwAccount.inc @@ -51,7 +51,7 @@ class opengwAccount extends plugin $this->is_account = false; /* Get configurations */ - if($this->config->search("opengwAccount", 'USERNAME',array('data'))){ + if($this->config->search("opengwAccount", 'USERNAME',array('tabs'))){ $atr = array(); $atr['LOGIN'] = $this->config->search("opengwAccount", 'USERNAME',array('tabs')); $atr['PASSWORD']= $this->config->search("opengwAccount", 'PASSWORD',array('tabs')); diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index d7050e187..a4d59a4b3 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -239,7 +239,7 @@ class environment extends plugin $this->gotoAvailableShares= $config->getShareList(false); - if($this->config->search('environment', 'kioskpath') != ""){ + if($this->config->search('environment', 'kioskpath',array('tabs')) != ""){ $tmp = new kioskManagementDialog($this->config,$this->dn); $list = $tmp->getKioskProfiles($this->newKioskProfiles); $list['none']=_("None"); diff --git a/plugins/personal/environment/class_kioskManagementDialog.inc b/plugins/personal/environment/class_kioskManagementDialog.inc index 384306e21..ba4fa9ffc 100644 --- a/plugins/personal/environment/class_kioskManagementDialog.inc +++ b/plugins/personal/environment/class_kioskManagementDialog.inc @@ -24,7 +24,7 @@ class kioskManagementDialog extends plugin if($attach){ $this->filesToAttach = $attach; } - $this->baseDir = $this->config->search('environment', 'kioskpath'); + $this->baseDir = $this->config->search('environment', 'kioskpath',array('tabs')); } function execute() -- 2.30.2