correcion en visualizacion de imagenes

This commit is contained in:
humano 2020-03-17 16:36:44 -05:00
parent cb830a0f7c
commit 0dec640d08

View File

@ -21,9 +21,11 @@ if ((!$file=realpath($dir.$_GET['file']))
$ref=@$_SERVER['HTTP_REFERER'];
if (strpos($ref,'https://')===0 || strpos($ref,'https')!==0){
$mime=array(
'PEG'=>'image/jpeg',
'JPEG'=>'image/jpeg',
'JPG'=>'image/jpeg',
'jpg'=>'image/jpeg',
'peg'=>'image/jpeg',
'jpeg'=>'image/jpeg',
'png'=>'image/png',
'PNG'=>'image/png',