Code

Fixed logging
[gosa.git] / plugins / admin / systems / class_terminalInfo.inc
index 984c456ad6454676d7a5fb77f1024d506c1ecf85..ae731aec9caa3fee035a0df5911d0820ba65d03d 100644 (file)
@@ -25,6 +25,7 @@ class terminfo extends plugin
   /* Needed values and lists */
   var $base= "";
   var $cn= "";
+  var $view_logged = FALSE;
 
   /* attribute list for save action */
   var $ignore_account= TRUE;
@@ -61,6 +62,11 @@ class terminfo extends plugin
     /* Call parent execute */
     plugin::execute();
 
+    if($this->is_account && !$this->view_logged){
+      $this->view_logged = TRUE;
+      @log::log("view","terminal/".get_class($this),$this->dn);
+    }
+
     /* Do we represent a valid terminal? */
     if (!$this->is_account && $this->parent == NULL){
       echo "<img alt=\"\" src=\"images/stop.png\" align=middle>&nbsp;<b>".