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.
 
 
 
 
 

66 righe
2.6 KiB

<?
if (!empty($this) && !empty($partecipante) && !empty($busta)) {
$infoOE = oeManager::getOE($partecipante["codice_operatore"]);
?>
<h2><a href="#" onclick="showCompany(<?= $infoOE["codice"] ?>)"><?= $infoOE["ragione_sociale"] ?></a></h2>
<div class="card">
<div class="card-body">
<h1>Hash</h1>
MD5: <strong><?= $busta["md5"] ?></strong><br>
SHA1: <strong><?= $busta["sha1"] ?></strong><br>
SHA256: <strong><?= $busta["sha256"] ?></strong><br>
</div>
</div>
<?
global $config;
$file_content = $busta["content"];
$path = $config["chunk_folder"] . "/" . $_SESSION["utente"]->codice;
if (!is_dir($path)) { mkdir($path); }
$path .= "/" . $busta["nomeFile"];
file_put_contents($path, $file_content);
if (file_exists($path)) {
$p7m = new P7Manager($path);
if (!empty($p7m)) {
$firme = $p7m->extractSignatures();
if (is_array($firme)) {
$firme = array_filter($firme);
if (!empty($firme)) {
$col = "col-12";
if (count($firme) > 1) { $col .= " col-sm-6"; }
?>
<div class="row">
<?
foreach ($firme AS $esito) {
?>
<div class="<?= $col ?>">
<div class="card">
<div class="card-body">
<?
$data = $esito;
$validFrom = date('d-m-Y H:i:s', $data['validFrom_time_t']);
$validTo = date('d-m-Y H:i:s', $data['validTo_time_t']);
if (isset($data["subject"]["commonName"])) { echo "<h1><span class='fa fa-user'></span> " . $data["subject"]["commonName"] . "</h1>"; }
if (isset($data["subject"]["organizationName"])) { echo "<strong>" . $data["subject"]["organizationName"] . "</strong><br>"; }
if (isset($data["subject"]["title"])) { echo $data["subject"]["title"] . "<br>"; }
if (isset($data["issuer"]["organizationName"])) { echo "<span class='fa fa-university'></span><strong> " . $data["issuer"]["organizationName"] . "</strong>"; }
echo "<br><span class='fa fa-calendar-alt'></span><strong> " . $validFrom . "</strong><br><span class='fa fa-calendar-alt'></span><strong>" . $validTo . "</strong>";
?>
</div>
</div>
</div>
<?
}
?>
</div>
<?
}
}
}
$error = false;
?>
</div>
<?
unlink($path);
}
}
?>