Code

Fixed logging for open groupware account
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 May 2007 08:09:15 +0000 (08:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 May 2007 08:09:15 +0000 (08:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6411 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/connectivity/class_opengwAccount.inc

index 9be419d929064e03aef707348a0c530387a97600..f404536053004ba2b7c0a905072e96e8d6d2d0ad 100644 (file)
@@ -32,7 +32,7 @@ class opengwAccount extends plugin
        var $initialy_was_account = false;
   var $OGWPassword          = "";
   var $ReadOnly = false;
-  
+  var $view_logged = FALSE;  
   var $uid = "";
 
        function opengwAccount ($config, $dn= NULL)
@@ -118,20 +118,32 @@ class opengwAccount extends plugin
                        /* Transmit data back to ogw handle */
                        $this->handle->SetInfos($this->info);
                }
+       }
 
+       function execute()
+       {
     /* Log view */
-    if($this->is_account){
+    if($this->is_account && !$this->view_logged){
+      $this->view_logged = TRUE;
       @log::log("view","users/".get_class($this),$this->dn);
     }
 
-       }
-
-       function execute()
-       {
                /* Show tab dialog headers */
                $display= "";
                $smarty= get_smarty();
 
+    $smarty->assign("validTeams","");
+    $smarty->assign("is_account", " ");
+    $smarty->assign("OGWstate"," disabled ");
+    $smarty->assign("validLocationTeam",array("&nbsp;"));
+    $smarty->assign("validLocationTeams",array("&nbsp;"));
+    $smarty->assign("LocationTeam",0);
+    $smarty->assign("validTemplateUser",array("&nbsp;"));
+    $smarty->assign("validTemplateUsers",array("&nbsp;"));
+    $smarty->assign("TemplateUser",0);
+    $smarty->assign("is_lockedCHK", "  ");
+    $smarty->assign("is_locked", "  ");
                /* set default values */
     $tmp = $this->plInfo();
     foreach($tmp['plProvidedAcls'] as $acl => $desc){