From 9ad4044e719214d8fec1b7049d6261c7ba6994ec Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 19 May 2010 09:18:57 +0000 Subject: [PATCH] Made theme selectable git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18545 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_configRegistry.inc | 1 + gosa-core/include/class_core.inc | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_configRegistry.inc b/gosa-core/include/class_configRegistry.inc index ec1096687..cc51e3ce1 100644 --- a/gosa-core/include/class_configRegistry.inc +++ b/gosa-core/include/class_configRegistry.inc @@ -81,6 +81,7 @@ class configRegistry{ // Skip searching for LDAP defined properties if 'ignoreLdapProperties' is set to 'true' // in the config. + $this->ignoreLdapProperties = FALSE; if(isset($this->fileStoredProperties['core'][strtolower('ignoreLdapProperties')]) && preg_match("/(true|on)/i", $this->fileStoredProperties['core'][strtolower('ignoreLdapProperties')])){ $this->ignoreLdapProperties = TRUE; diff --git a/gosa-core/include/class_core.inc b/gosa-core/include/class_core.inc index e9b8bfcf6..d7a528bcd 100644 --- a/gosa-core/include/class_core.inc +++ b/gosa-core/include/class_core.inc @@ -33,6 +33,13 @@ class core extends plugin { $list[$method] = $desc; } break; + case 'theme': + $cmd = "cd ../ihtml/themes; find . -name 'img.styles' | sed s/'^[^\/]*\/\([^\/]*\).*'/'\\1'/g"; + $res = `$cmd`; + foreach(preg_split("/\n/",$res) as $entry){ + $list[$entry] = $entry; + } + break; case 'accountPrimaryAttribute': $list = array('uid' => 'uid', 'cn' => 'cn'); break; @@ -361,7 +368,7 @@ class core extends plugin { array( "name" => "theme", - "type" => "string", + "type" => "switch", "default" => "default", "defaults" => "core::getPropertyValues", "description" => "The 'theme' statement defines what theme is used to display GOsa pages. You can install some corporate identity like theme and/or modify certain templates to fit your needs within themes. Take a look at the GOsa FAQ for more information.", -- 2.30.2