gestione gare pubbliche
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

20 righe
684 B

<?
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->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');
}
?>