Code

Updated ldifExport for plugin ldapManager
[gosa.git] / gosa-plugins / ldapmanager / addons / ldapmanager / class_csvimport.inc
index 63c0c90e35f0bc52424786214fd9bc49aa90491d..52d9e6a8f231f9ac1ecd25047a565c06ba97ebd3 100644 (file)
@@ -17,10 +17,14 @@ class csvimport extends plugin
 
   function csvimport (&$config, $dn= NULL)
   {
+    $this->initTime = microtime(TRUE);
     /* Include config object */
     $this->config= &$config;
 
     $this->ui = get_userinfo();
+    stats::log('plugin', $class = get_class($this), $category = array($this->acl_category),  $action = 'open',
+            $amount = 1, $duration = (microtime(TRUE) - $this->initTime));
+
   }
 
   function execute()
@@ -214,7 +218,7 @@ class csvimport extends plugin
               $failing = $i+1;
               break;
             } else {
-              $this->csvinfo['sorteddata'][$i]['status']=_("ok");
+              $this->csvinfo['sorteddata'][$i]['status']=_("OK");
               $this->usertab->save();
               change_password($this->usertab->dn,$password); 
             }