addSpecialTabs(); } function check($ignore_account= FALSE) { return (tabs::check(TRUE)); } function save($ignore_account= FALSE) { $baseobject= $this->by_object['faiHook']; $new_dn ='cn='.$baseobject->cn.",".get_ou('faihookou').$this->parent->fai_release; if ($this->dn != $new_dn && $this->dn != "new"){ /* if( new_dn is subtree of this->dn ) */ $cnt1 = count(split(",",$this->dn)); $cnt2 = count(split(",",$new_dn)); if((strstr($new_dn,$this->dn))&&($cnt1<$cnt2)){ msg_dialog::display(_("Error"), _("Moving the tree failed. Destination tree is subtree of source tree."), ERROR_DIALOG); }else{ // $baseobject->recursive_move($this->dn, $new_dn); } } $this->dn= $new_dn; tabs::save(TRUE); } } ?>