Code

More speed optimizations
[gosa.git] / plugins / admin / systems / class_glpiAccount.inc
index a9b3aff43b5c5f1ed492ce3c2d739b58a746e5c3..9ff5019138a6059b2d135fd975a33db5767d911d 100644 (file)
@@ -64,9 +64,9 @@ class glpiAccount extends plugin
   /* Contructor 
      Sets default values and checks if we already have an existing glpi account
    */
-  function glpiAccount ($config, $dn= NULL)
+  function glpiAccount ($config, $dn= NULL, $parent= NULL)
   {
-    plugin::plugin ($config, $dn);
+    plugin::plugin ($config, $dn, $parent);
     $this->ui= get_userinfo();
 
     /* Abort class construction, if no db is defined */
@@ -693,7 +693,7 @@ class glpiAccount extends plugin
     plugin::save_object();
     foreach($this->attributes as $attrs){
       if(isset($_POST[$attrs])){
-        $this->$attrs = $_POST[$attrs];
+        $this->$attrs = stripslashes ($_POST[$attrs]);
       }
     }
   }
@@ -725,8 +725,6 @@ class glpiAccount extends plugin
       unset($attrs['ID']);
       $this->handle = new glpiDB($this->data['SERVER'],$this->data['LOGIN'],$this->data['PASSWORD'],$this->data['DB']);
 
-      print_a($attrs);
-
       /* check if we have to update, add */
       if($this->initialy_was_account&&$this->is_account){
         $this->handle->updateComputerInformations($attrs,$this->orig_dn);