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.
 
 
 
 
 

38 righe
963 B

<?php
$_cdir = __DIR__;
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
include_once __DIR__ . "/class/TedEsender.class.php";
$settings = file_get_contents("{$_cdir}/config/settings.json");
$settings = json_decode($settings, TRUE);
$error = true;
if (! empty($_GET) && ! empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice, $_GET["codice"])) {
$ted = new TedEsender($_GET["form"], $_GET["codice"], $settings, "{$_cdir}/config/xml");
$ted->setMode("download");
$ted->debug = $config["developEnv"];
$s = TedEsender::getStati();
$stati = array_flip(array_column($s, 'title'));
$stato = $s[$stati[$ted->info["stato"]]];
if( $stato["status"] >= 20 ) {
$error = false;
$send = $ted->info["version"] === "eForms" ? $ted->pdf() : $ted->pdf_legacy();
}
}
if($error) {
header('Location: /backend/guue');
die();
}
?>