permission("enti") && !empty($_GET["chunk"])) { $fileName=$_GET["chunk"]; $path = $config["chunk_folder"]."/".$_SESSION["utente"]->codice."/".$fileName; if (file_exists($path)) { $size = 500; $image = new \claviska\SimpleImage($path); $image->autoOrient(); $image->resize($size,null); $_SESSION["ente-new-img"] = $image->toString(); $image->toScreen(); } else { header('HTTP/1.0 403 Forbidden'); } } else { header('HTTP/1.0 403 Forbidden'); } ?>