Code

Added command verifier
[gosa.git] / gosa-core / plugins / generic / references / class_reference.inc
index 3bb9c1ed7b5df57bfd3605cd4c3777e566bef33a..ad390a4c0103f70118c57479fa93a220f1395f9f 100644 (file)
@@ -132,10 +132,14 @@ class reference extends plugin
         // Mark plugin as viewed
         plugin::execute();
 
+        // Show ldif viewer
         if(isset($_POST['viewLdif'])){
-            echo "ding!";
+            $this->dialog = new ldifViewer($this->config, $this->dn);
+        }
+        if(isset($_POST['cancelLdifViewer'])) $this->dialog = NULL;
+        if($this->dialog instanceOf ldifViewer){
+            return($this->dialog->execute());
         }
-
 
         $smarty = get_smarty();        
 
@@ -154,7 +158,7 @@ class reference extends plugin
 
         $smarty->assign('objectList', $this->objectList);
         $smarty->assign("acls",$this->aclResolver->getReadableACL());
-        $smarty->assign("usePrototype", "true");
+
         session::set('autocomplete', $this->aclResolver);
         return ($smarty->fetch (get_template_path('contents.tpl', TRUE, dirname(__FILE__))));
     }