Bonjour,
A quel niveau ?
sinon, voici le code présent dans le fichier :
if ( $GLOBALS['BILDO_FULL_SIZE_IMG_ACCESS'] != 'prohibited' )
{
____// todo: use album id and photo number instead of direct path
____$imagePath = $_GET['imagePath'] ;
____@list($width,$height,$type) = bildo_getimagesize($imagePath) ;
[^] # Re: téléchargement
Posté par André Rodier . En réponse au journal Bildo continue son chemin. Évalué à 2.
A quel niveau ?
sinon, voici le code présent dans le fichier :
if ( $GLOBALS['BILDO_FULL_SIZE_IMG_ACCESS'] != 'prohibited' )
{
____// todo: use album id and photo number instead of direct path
____$imagePath = $_GET['imagePath'] ;
____@list($width,$height,$type) = bildo_getimagesize($imagePath) ;
____// prevent download anything...
____if ( $width && $height )
____{
________$type = image_type_to_mime_type($type) ;
________$fileName = substr($imagePath, 1+strrpos($imagePath, DIRECTORY_SEPARATOR)) ;
________$filesize = bildo_filesize($imagePath) ;
________header("Content-Length: $filesize") ;
________header("Content-Type: $type") ;
________header("Content-disposition: attachment; filename=\"$fileName\"") ;
________readfile($imagePath) ;
____}