Code

Made theme selectable
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 May 2010 09:18:57 +0000 (09:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 May 2010 09:18:57 +0000 (09:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18545 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_configRegistry.inc
gosa-core/include/class_core.inc

index ec10966878c2ed6fac6cfd604398cc0c1c64fdbd..cc51e3ce1ed0d64d20a07b68abc22dde1ccfb613 100644 (file)
@@ -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;
index e9b8bfcf6a85cf3fc235039dba5aaf993f5c5956..d7a528bcd5a264c83056c3f61877790351e3b1a0 100644 (file)
@@ -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.",