Code

Updated configViewer
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 May 2010 10:41:38 +0000 (10:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 May 2010 10:41:38 +0000 (10:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18037 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/addons/configViewer/class_configViewer.inc

index 04977ec3b3f9cd5182314e581245bdbe782ac103..489b4f7af5087ec6b8b769cf579e867c4b024562 100644 (file)
@@ -24,7 +24,7 @@ class configViewer extends plugin
         $this->propertyList->setDeleteable(false);
         $this->propertyList->setEditable(false);
         $this->propertyList->setWidth("100%");
-        $this->propertyList->setHeight("600px");
+        $this->propertyList->setHeight("500px");
         $this->propertyList->setHeader(array(_("Group"),_("Class"),_("Name"),_("Value"), _("Status")));
         $this->propertyList->setDefaultSortColumn(0);
         $this->propertyList->setAcl('rwcdm');
@@ -35,12 +35,14 @@ class configViewer extends plugin
         $all = $this->configRegistry->getAllProperties();
         $data = $lData = array();
         foreach($all as $id => $p){
+
+            $value = htmlentities($p->getValue(), ENT_COMPAT, 'UTF-8');
             $data[$id] = $p;
             $lData[$id] = array('data' => array(
                         $p->getGroup(),
                         $this->configRegistry->classToName[$p->getClass()],
                         $p->getName(),
-                        $p->getValue(),
+                        "<input type='text' value=\"{$value}\" name='{$p->getClass()}:{$p->getName()}'>",
                         $p->getStatus()
                         ));
         }