fromgplus: Initial working version

This commit is contained in:
Michael Vogel 2012-12-09 21:59:11 +01:00
parent ccac72ee0b
commit c8b2b1ca85
3 changed files with 265 additions and 76 deletions

View file

@ -100,7 +100,7 @@ function privacy_image_cache_init() {
$img_str = fetch_url($_REQUEST['url'],true);
$tempfile = tempnam("", "cache");
$tempfile = tempnam(get_config("system","temppath"), "cache");
file_put_contents($tempfile, $img_str);
$mime = image_type_to_mime_type(exif_imagetype($tempfile));
unlink($tempfile);