summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 10b7a59)
raw | patch | inline | side by side (parent: 10b7a59)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 25 Sep 2007 09:13:53 +0000 (09:13 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 25 Sep 2007 09:13:53 +0000 (09:13 +0000) |
config->search()s weren't used for correct type of category 'menu' instead of 'tabs'
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7398 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7398 594d385d-05f5-0310-b6e9-bd551577e9d8
17 files changed:
diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc
index be1a6c6327e6b32ba7ab6ad1e83e8e5fe9873d2e..88f199974e261ae8c5f87125076ce35196c02b4b 100644 (file)
{
plugin::plugin ($config, $dn, $parent);
- $tmp = $this->config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
if(!empty($tmp)) {
if(!preg_match("/^ou=apps,/",$_SESSION['appfilter']['release'])){
$this->isReleaseApplikation = true;
$ldap= $this->config->get_ldap_link();
$ldap->cd($this->config->current["BASE"]);
- $tmp = $this->config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','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 95d05a84d7b3d1564fdd4ac78f250a01e6fa89cd..45914bd4ed62768a3e405ae39da5fdd8215f84ae 100644 (file)
function IsReleaseManagementActivated()
{
/* Check if we should enable the release selection */
- $tmp = $this->config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
if(!empty($tmp)){
return(true);
}
diff --git a/plugins/admin/applications/tabs_application.inc b/plugins/admin/applications/tabs_application.inc
index aa9600808dd87643369e500dd5051437ac6bb655..059e68335a8d0589f8c087390810fcb3010cfa8c 100644 (file)
/* Check for new 'dn', in order to propagate the
'dn' to all plugins */
- $tmp = $this->config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
if((!empty($tmp)) && (isset($_SESSION['appfilter']['release']))){
if(!$baseobject->isReleaseApplikation){
$new_dn= "cn=".$baseobject->cn.",ou=apps,".$baseobject->base;
index 020dac80ae31186ed84ce059333839165c30be1a..1406ae99d026cec0f52300f371db158fa5316270 100644 (file)
/* 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",array('tabs'));
- $c = $this->config->search("faiManagement", "POSTCREATE",array('tabs'));
+ $r = $this->config->search("faiManagement", "POSTREMOVE",array('menu','tabs'));
+ $c = $this->config->search("faiManagement", "POSTCREATE",array('menu','tabs'));
$smarty = get_smarty();
$smarty->assign("allow_create", $c);
index 61e9c5241045898d74787c4db84630936b1ee616..0473df36ab6cf77b5d9a5ea08882edb3690ce887 100644 (file)
/* Check if we have a post remove method configured
* else skip this operation. (Skip:Button in the ui should be disabled in this case too)
*/
- if("" != $this->config->search("faiManagement", "POSTREMOVE",array('tabs'))){
+ if("" != $this->config->search("faiManagement", "POSTREMOVE",array('menu','tabs'))){
/* Load permissions for selected 'dn' and check if
we're allowed to remove this 'dn' */
/* Check if we have a post remove method configured
* else skip this operation. (Skip:Button in the ui should be disabled in this case too)
*/
- if("" != $this->config->search("faiManagement", "POSTREMOVE",array('tabs'))){
+ if("" != $this->config->search("faiManagement", "POSTREMOVE",array('menu','tabs'))){
$bb = $this->DivListFai->selectedBranch;
if(!isset($ldap)){
/* Check if we have a post create method configured
* else skip this operation. (Skip:Button in the ui should be disabled in this case too)
*/
- if("" != $this->config->search("faiManagement", "POSTCREATE",array('tabs'))){
+ if("" != $this->config->search("faiManagement", "POSTCREATE",array('menu','tabs'))){
if(($s_action == "branch_branch")||($this->dispNewBranch)){
$this->dispNewBranch=true;
$smarty->assign("iframe",false);
/* Check if we have a post create method configured
* else skip this operation. (Skip:Button in the ui should be disabled in this case too)
*/
- if("" != $this->config->search("faiManagement", "POSTCREATE",array('tabs'))){
+ if("" != $this->config->search("faiManagement", "POSTCREATE",array('menu','tabs'))){
if(($s_action == "freeze_branch")||($this->dispNewFreeze)){
$this->dispNewFreeze = true;
$smarty->assign("iframe",false);
index 91c5ec346fde6050f8b3990e8edf6455c33c9f35..38b170841ef9d6059cfd9c91382ea3535aa2126b 100644 (file)
{
/* Skip this if fai is deactivated */
- $tmp = $this->config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
if(empty($tmp)){
$str = "<h2>"._("You can't use this plugin until FAI is activated.")."</h2>";
return $str;
diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc
index 18a5a0dc5b15e725412d2f18d3ea2cc80cccbccc..fcc9d391c504be205c2699e4a6a0fc774720434f 100644 (file)
{
/* Check if we have relase mangement enabled and prepare group application for release management */
- $tmp = $config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp = $config->search("faiManagement", "CLASS",array('menu','tabs'));
if(!empty($tmp)){
$this->enableReleaseManagement = true;
$this->objectclasses [] = "FAIreleaseTag";
$ldap= $this->config->get_ldap_link();
/* Check if we have release management enabled */
- $tmp = $this->config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
if(!empty($tmp)){
/* Get application parameter from ldap */
$this->apps= array();
/* Special handling for release managed apps */
- $tmp = $this->config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
if(!empty($tmp) && count($this->Releases)){
$this->enableReleaseManagement = true;
/* Get all apps ... */
$res = get_list("objectClass=gosaApplication","application",$this->config->current['BASE'],array("gosaApplicationParameter","cn"),GL_SUBSEARCH);
- $tmp = $this->config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','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 0b0030bbb67a6596ef79151fc93f7c43aa3c1c9f..ddadcf6a27fc4e65a88f70b875c72995116373ea 100644 (file)
$attrs = array("cn", "description", "gidNumber", "objectClass");
/* If subsearch is activated search for subobjects too */
- $tmp = $this->config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
if(!empty($tmp)){
$attrs [] = "FAIrelease";
}
diff --git a/plugins/admin/mimetypes/class_mimetypeGeneric.inc b/plugins/admin/mimetypes/class_mimetypeGeneric.inc
index bac08e9cd915e64acf308cbf6e1a52bafe22baa2..e70c21a029332bd44f0cbbb40c4f73bfaeec481c 100644 (file)
}
/* Check if release Management is enabled */
- $tmp = $this->config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
if(!empty($tmp)) {
$this->isReleaseMimeType= true;
}
diff --git a/plugins/admin/mimetypes/class_mimetypeManagement.inc b/plugins/admin/mimetypes/class_mimetypeManagement.inc
index eda0cf23ca2d0e3a8c13479f2607b4a175a2e2cf..f192eb21d96c892b1c514070bf68c81aa43f077e 100755 (executable)
function IsReleaseManagementActivated()
{
/* Check if we should enable the release selection */
- $tmp = $this->config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
if(!empty($tmp)){
return(true);
}
diff --git a/plugins/admin/mimetypes/tabs_mimetypes.inc b/plugins/admin/mimetypes/tabs_mimetypes.inc
index 0aae1f43bef15af9a407f53c7da787d950afdd2b..6c1cd34c4d6615b418d87bed3e2336fd7ca0de02 100755 (executable)
/* Check for new 'dn', in order to propagate the
'dn' to all plugins */
- $tmp = $this->config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
if((!empty($tmp)) && (isset($_SESSION['mimefilter']['release']))){
if(!$baseobject->isReleaseMimeType){
diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc
index 54df43945a524167170c02e3564d46bac1b1843d..375169693551a08813c0e5d8a5514a085ea5146c 100644 (file)
function servgeneric (&$config, $dn= NULL, $parent= NULL)
{
/* Check if FAI is activated */
- $tmp = $config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp = $config->search("faiManagement", "CLASS",array('menu','tabs'));
if(!empty($tmp)){
$this->fai_activated = TRUE;
diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc
index efb4bd8f89dcad787fddf9dfc0dc57a26dd84fec..41c84d330c7b1e458965d57be3bce6dd9b3a587b 100644 (file)
{
plugin::plugin ($config, $dn, $parent);
+ $this->DisplayName = _("Repository service");
+
/* Skip this if fai is deactivated */
- $tmp= $this->config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp= $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
if(!empty($tmp)){
$this->fai_activated = TRUE;
}else{
return;
}
- $this->DisplayName = _("Repository service");
-
$this->repositories = array();
if(isset($this->attrs['FAIrepository'])){
for($i = 0; $i < $this->attrs['FAIrepository']['count']; $i++){
Repository setup dialog handling /END
*/
- $divlist = new divList("repositories");
+ $divlist = new divlist("repositories");
$divlist->SetEntriesPerPage(0);
$divlist->setHeight(400);
$divlist->SetPluginMode();
diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc
index b7bdc36e95702487a3374ec5b532e8bfd37a7ca8..3b2813f8cb88df3ecd35030e43e14a7bc4df4718 100644 (file)
$sys_categories = array("terminal", "workstation", "server", "phone" ,"printer");
/* Add FAIstate to attributes if FAI is activated */
- $tmp = $this->config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
if(!empty($tmp)){
$sys_attrs[] = "FAIstate";
}
diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc
index 72d81633dad2746dc01789a34f6f2b04ed2335fb..64e37b81f668805b110c5242a2d74d99e3eb9d0f 100644 (file)
function termgeneric (&$config, $dn= NULL, $parent= NULL)
{
/* Check if FAI is activated */
- $tmp= $config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp= $config->search("faiManagement", "CLASS",array('menu','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 5144b16888d6845f0ce0365992d831b02ade0c6b..db73b29f69093fc5e7965f889a0c91f32a70838d 100644 (file)
function workgeneric (&$config, $dn= NULL, $parent= NULL)
{
- $tmp= $config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp= $config->search("faiManagement", "CLASS",array('menu','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 eaecb0187e89af333c0dddea2901c8c2feaf59b9..dfee10ace42f4b0fe7a29172b5205d193054cb9c 100644 (file)
function workstartup (&$config, $dn= NULL, $parent= NULL)
{
/* Check if FAI is active */
- $tmp= $config->search("faiManagement", "CLASS",array('tabs'));
+ $tmp= $config->search("faiManagement", "CLASS",array('menu','tabs'));
if(!empty($tmp)){
$this->fai_activated = TRUE;
}else{