Code

Added 'noLdap' properties type.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Jun 2010 07:16:22 +0000 (07:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Jun 2010 07:16:22 +0000 (07:16 +0000)
-This is for properties which cannot be stored in ldap

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18857 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_core.inc
gosa-core/plugins/addons/propertyEditor/class_propertyEditor.inc

index dc55acf27c162d0012d9e760dbf0b9823d4e5ac8..35614e6e8a9a35194ef8879392d5923486f28246 100644 (file)
@@ -328,7 +328,7 @@ class core extends plugin {
 
                         array(
                                 "name"          => "forceGlobals",
-                                "type"          => "bool",
+                                "type"          => "noLdap",
                                 "default"       => "false",
                                 "description"   => _("The 'forceGlobals' statement enables PHP security checks to force register_global settings to be switched off."),
                                 "check"         => "gosaProperty::isBool",
@@ -338,7 +338,7 @@ class core extends plugin {
 
                         array(
                                 "name"          => "forceSSL",
-                                "type"          => "bool",
+                                "type"          => "noLdap",
                                 "default"       => "false",
                                 "description"   => _("The 'forceSSL' statement enables PHP security checks to force encrypted access to the web interface. GOsa will try to redirect to the same URL - just with https://"),
                                 "check"         => "gosaProperty::isBool",
@@ -398,7 +398,7 @@ class core extends plugin {
 
                         array(
                                 "name"          => "warnSSL",
-                                "type"          => "bool",
+                                "type"          => "noLdap",
                                 "default"       => "true",
                                 "description"   => _("The 'warnSSL' statement enables PHP security checks to detect non encrypted access to the web interface. GOsa will display a warning in this case."),
                                 "check"         => "gosaProperty::isBool",
index 93b605ab15f4721536cfb03646e1a1697c606125..7f1960f59173a03498d18e99ca5de6feca5f42ad 100644 (file)
@@ -223,6 +223,9 @@ class propertyEditor extends management
         $value = addslashes($value);
 
         switch($type[0]){
+            case 'noLdap':
+                $res = $value." &nbsp;<i>(".CONFIG_DIR.'/'.CONFIG_FILE.")</i>";
+                break;
             case 'bool':
                 $res = "<select size=1 name=\"{$name}\" style='width:{$ssize}'>";
                 $false = (preg_match('/true/i', $value)) ? '' : "selected";