explnum_data)||($ligne->explnum_path)) { if ($ligne->explnum_path) { $up = new upload_folder($ligne->repertoire_id); $path = str_replace("//","/",$ligne->path); $path=$up->encoder_chaine($path); $fo = fopen($path,'rb'); //$ligne->explnum_data=fread($fo,filesize($path)); //fclose($fo); } create_tableau_mimetype() ; $name=$_mimetypes_bymimetype_[$ligne->explnum_mimetype]["plugin"] ; if ($name) { // width='700' height='525' $name = " name='$name' "; } $type="type='$ligne->explnum_mimetype'" ; if ($_mimetypes_bymimetype_[$ligne->explnum_mimetype]["embeded"]=="yes") { print "" ; if ($fo) fclose($fo); exit ; } $nomfichier=""; if ($ligne->explnum_nomfichier) { $nomfichier=$ligne->explnum_nomfichier; } elseif ($ligne->explnum_extfichier) $nomfichier="pmb".$ligne->explnum_id.".".$ligne->explnum_extfichier; if ($nomfichier) header("Content-Disposition: inline; filename=".$nomfichier); header("Content-Type: ".$ligne->explnum_mimetype); if ($ligne->explnum_path) { fpassthru($fo); fclose($fo); } else print $ligne->explnum_data; exit ; } if ($ligne->explnum_mimetype=="URL") { if ($ligne->explnum_url) header("Location: $ligne->explnum_url"); exit ; } //if($ligne->explnum_path){ // $up = new upload_folder($ligne->repertoire_id); // $path = str_replace("//","/",$ligne->path); // $path=$up->encoder_chaine($path); // $fo = fopen($path,'rb'); // header("Content-Type: ".$ligne->explnum_mimetype); // fpassthru($fo); // exit; //}