permission($radice,$_POST["sourceID"],"changelogs") && tokenVerify()) { $sourceId = empty($_POST["sourceID"]) ? "-1" : $_POST["sourceID"]; $saved = filesManager::saveFile( $_POST["filename"], $sourceId, "changelogs", "", "A", "" ); echo json_encode([ "url" => url(filesManager::getAttachURL(["codice" => $saved, "name" => $fileName],$sourceId,"changelogs", empty($_SESSION["ente"]) ? 0 : 1)) ]); die(); } http_response_code(403);