Code

Updated workstation - Startup
[gosa.git] / plugins / admin / systems / class_goGlpiServer.inc
index 152ed03d33d051f1d641fdbc9df79dea669461c9..3ab952904f96b368458cb829d39cd8c843d52145 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 
-require_once("class_goService.inc");
-
 class goGlpiServer extends goService {
        
   var $cli_summary      = "This pluign is used within the ServerService Pluign \nand indicates that this server supports asterisk management.";
@@ -25,9 +23,10 @@ class goGlpiServer extends goService {
   var $goGlpiAdmin        ="";
   var $goGlpiDatabase     ="";
   var $goGlpiPassword     ="";
+  var $view_logged  =FALSE;
  
  
-  function goGlpiServer($config,$dn)
+  function goGlpiServer(&$config,$dn)
   {
     goService::goService($config,$dn);
     $this->DisplayName = _("Inventory database");
@@ -36,6 +35,11 @@ class goGlpiServer extends goService {
 
   function execute()
   { 
+    if($this->is_account && !$this->view_logged){
+      $this->view_logged = TRUE;
+      new log("view","server/".get_class($this),$this->dn);
+    }
+
     $smarty = get_smarty(); 
     foreach($this->attributes as $attr){
       $smarty->assign($attr,$this->$attr);