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.
 
 
 
 
 

29 righe
969 B

<?
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
$error = true;
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->gerarchia <= 10 && !empty($_GET["ente"]) &&
($_SESSION["utente"]->isSupportoOrRoot() || $_GET["ente"] != $_SESSION["utente"]->codice_ente)) {
$codice = (int) $_GET["ente"];
$ente = Ente::getInfoFromID($codice)[0] ?? null;
if (!empty($ente)) {
set_time_limit(500);
ini_set("max_execution_time",500);
$size = Ente::getSize($codice);
session_write_close();
$error = false;
?>
<h1><?= $ente["denominazione"] ?></h1>
<div class="text-center">
<span class="fa-5x"><?= human_filesize($size) ?></span>
</div>
<?
}
}
if ($error) {
header('HTTP/1.0 403 Forbidden');
die();
}
?>