1) { unset($f[count($f) - 1]); } $file_out = implode(".", $f).".".$suffix."~"; //Téléchargement if (!file_exists("$base_path/temp/$file_out")) { header("Content-type: text/html; charset=".$charset); print $std_header; print ""; error_message_history($msg['admin_convert_erreur_destination'],$msg['admin_convert_fichier_existe'],0); exit; } if ($deliver==3) { if (!$mimetype) { header("Content-Type: application/download"); } else { header("Content-Type: ".$mimetype); } header("Content-Length: ".filesize("$base_path/temp/$file_out")); header('Content-Disposition: attachment; filename="'.implode(".", $f).'.'.$suffix.'"'); @readfile("$base_path/temp/$file_out"); @unlink("$base_path/temp/$file_out"); } else { //@copy("$base_path/temp/$file_out","$base_path/admin/import/unimarc.fic"); // ------------------------------------- LLIUREX 21/02/2018-------------------------------------- // Cambiando la ruta de escritura del fichero temporal // Es necesario modificar iiimport.php preload para cargar de esta nueva ruta //@copy("$base_path/temp/$file_out","$base_path/admin/import/unimarc".(defined("LOCATION")?"_".constant("LOCATION"):"").".fic"); @copy("$base_path/temp/$file_out","$base_path/temp/unimarc".(defined("LOCATION")?"_".constant("LOCATION"):"").".fic"); // -------------------- FIN LLIUREX 21/02/2018-------------------------------------------------- @unlink("$base_path/temp/$file_out"); if ($deliver==1) $sub="import"; else $sub="import_expl"; echo ""; } ?>