The emulation for the exif function is now much more sleaker
This commit is contained in:
parent
d6f3de09e8
commit
5b6e16d193
20
boot.php
20
boot.php
|
@ -2178,24 +2178,6 @@ function set_template_engine(&$a, $engine = 'internal') {
|
||||||
if(!function_exists('exif_imagetype')) {
|
if(!function_exists('exif_imagetype')) {
|
||||||
function exif_imagetype($file) {
|
function exif_imagetype($file) {
|
||||||
$size = getimagesize($file);
|
$size = getimagesize($file);
|
||||||
|
return($size[2]);
|
||||||
switch ($size["mime"]) {
|
|
||||||
case "image/jpeg":
|
|
||||||
$imagetype = IMAGETYPE_JPEG;
|
|
||||||
break;
|
|
||||||
case "image/gif":
|
|
||||||
$imagetype = IMAGETYPE_GIF;
|
|
||||||
break;
|
|
||||||
case "image/png":
|
|
||||||
$imagetype = IMAGETYPE_PNG;
|
|
||||||
break;
|
|
||||||
case "":
|
|
||||||
$imagetype = "";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
$imagetype = 99;
|
|
||||||
}
|
|
||||||
|
|
||||||
return($imagetype);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user