include '../../lib/api.php'; //echo "ci entro"; // //Utils::print_array($LoggedAccount); //Utils::print_array($_POST); // ini_set('display_errors', 1); // ini_set('display_startup_errors', 1); // error_reporting(E_ALL); if (!$bando_setup->ControllaPeriodoPreparazione()) { Utils::RedirectTo(BASE_HTTP . 'dashboard.php'); exit(); } define('WS_MODULE', 'info_camere'); if ($_POST['cod_fis_impresa'] == "" || $LoggedAccount->CODICE_FISCALE == "" || strlen($_POST['cod_fis_impresa']) < 9) { exit(); } // CONTROLLO LA PRESENZA DELL'IMPRESA NEL CLUSTER DB $ricevo = ClusterDb::getIdFromCodiceFiscale(trim($_POST['cod_fis_impresa'])); if (intval($ricevo) == 0) { Utils::RedirectTo(BASE_HTTP . 'dashboard.php'); exit(); } $domanda = Domanda::selectIdFromCodiceF($LoggedAccount->CODICE_FISCALE, trim($_POST['cod_fis_impresa'])); if (intval($domanda->VERSIONE) <> 1 && intval($domanda->ID) > 0) { Utils::RedirectTo(BASE_HTTP . 'dashboard.php'); exit(); } $collegata = $domanda->IsCollegata(); $impCollegate = $domanda->getCollegate(); $domanda_json = stream_get_contents($domanda->DOMANDA_JSON); $domanda_array = json_decode($domanda_json, true); $conferma_tab = $_POST['conferma_tab']; //$ricevo = ClusterDb::getIdFromCodiceFiscale(trim($_POST['cod_fis_impresa'])); //$cluster_db = new ClusterDb($ricevo); $SchedaPersona = $LoggedAccount->SchedaPersona; $domanda_adesione = new Domanda_Adesione($domanda->ID); //Utils::print_array($domanda); //exit(); ?> include_once ROOT . 'layout/head.php'; ?>
include_once ROOT . 'layout/header.php'; ?>