diff --git a/gosa-core/plugins/generic/references/class_reference.inc b/gosa-core/plugins/generic/references/class_reference.inc
index 3bb9c1ed7b5df57bfd3605cd4c3777e566bef33a..11a5383b94cebb18883783eacadd22604ce50b4b 100644 (file)
// 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();
// Convert the modifyTimestamp to a human readable value
$tz = timezone::get_default_timezone();
- $smarty->assign('modifyTimestamp', date('d.m.Y H:i:s', strtotime($this->modifyTimestamp)));
+ $smarty->assign('modifyTimestamp', set_post(date('d.m.Y H:i:s', strtotime($this->modifyTimestamp))));
$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__))));
}