0 ) { $oSql = new Devcore_Sql($_CONFIG['DEVCORE']['BD']['hostname'], $_CONFIG['DEVCORE']['BD']['username'], $_CONFIG['DEVCORE']['BD']['password'], $_CONFIG['DEVCORE']['BD']['databaseName']); $oSql->db_connection(); $oSql->select('*','dossier'," id = ".$_GET['id']); $aListe = $oSql->db_result_ToArray(); $file = $aListe[0]['pdfName']; $taille = $aListe[0]['fileSize']; if(trim( $aListe[0]['securite'] ) != '0'){ // print "SECURE"; $uploaddir = $_CONFIG['DEVCORE']['sPathPDFprivate']; $uploadfile = $uploaddir . basename($file); }else{ // PUBLIC $uploaddir = 'public/pdf/'; $uploadfile = $uploaddir . basename($file); } //print ($uploadfile); force_download($uploadfile); } ?>