$protocol =
strtolower(substr($params['file'
], 0,
$protocol));
} if (isset($template->smarty->security_policy
)) { if ($protocol) { // remote resource (or php stream, …)
if(!
$template->smarty->security_policy->
isTrustedUri($params['file'
])) { return;
} } else { // local file
if(!
$template->smarty->security_policy->
isTrustedResourceDir($params['file'
])) { return;
} } } if (!
isset($params['width'
]) || !
isset($params['height'
])) { // FIXME: (rodneyrehm) getimagesize() loads the complete file off a remote resource, use custom [jpg,png,gif]header reader!
if (!
$_image_data = @
getimagesize($_image_path)) { if (!
file_exists($_image_path)) { trigger_error("html_image: unable to find '
$_image_path'", E_USER_NOTICE
);
return;
}