decoder_chaine($upload_repertoire->repertoire_path))){ $report['error'][]=$this->msg['get_doc_num_upload_repertoire_do_not_exist']; //On efface l'entrée $query='DELETE FROM explnum WHERE explnum_id='.$explnum['explnum_id']; pmb_mysql_query($query,$dbh); } if(!rename($upload_folder.$explnum['explnum_nomfichier'],$upload_repertoire->decoder_chaine($upload_repertoire->repertoire_path).$explnum['explnum_nomfichier'])){ $report['error'][]=$this->msg['get_doc_num_rename_error']; //On efface l'entrée $query='DELETE FROM explnum WHERE explnum_id='.$explnum['explnum_id']; pmb_mysql_query($query,$dbh); }else{ //Réussi ici, on réindex et on incrémente le résultat $obj_explnum=new explnum($explnum['explnum_id']); $index = new indexation_docnum($explnum['explnum_id']); $index->indexer(); $report['info']=1; } }else{ //erreur de déplacement ou de création $report['error'][]=$this->msg['get_doc_num_cant_create_explnum']; } }else{ $report['error'][]=$this->msg['get_doc_num_file_not_found']; //On efface l'entrée $query='DELETE FROM explnum WHERE explnum_id='.$explnum['explnum_id']; pmb_mysql_query($query,$dbh); } }else{ //doc num sans id notice ou bulletin $report['error'][]=$this->msg['get_doc_num_missing_link']; } }else{ //il manque un param $report['error'][]=$this->msg['get_doc_num_missing_param']; } } return $report; } } ?>