true, ]); require_once "app.config.php"; require_once ROOT . "lib/classes/Menu.php"; /* CLASSI DI UTILITA' */ require_once ROOT . "lib/import/common.php"; if (!Utils::checkPreLoginPage()) { /* APPLICATIVO */ require_once ROOT . "lib/classes/Database.php"; require_once ROOT . "lib/classes/Application.php"; // require_once ROOT . "lib/classes/Bando.php"; require_once ROOT . "lib/classes/ApplicationVersion.php"; require_once ROOT . "lib/classes/ModuloPdf.php"; //require_once ROOT . "lib/classes/Domanda.php"; require_once ROOT . "lib/classes/Faq.php"; // require_once ROOT . "lib/classes/Allegati.php"; require_once ROOT . "lib/classes/AccessLog.php"; //require_once ROOT . "lib/classes/SPID.php"; require_once ROOT . "lib/classes/Anagrafiche.php"; require_once ROOT . "lib/classes/Graduatoria.php"; require_once ROOT . "lib/import/custom.php"; /* FIREBASE */ if ($config['FIREBASE'] == true) { require_once ROOT . "lib/classes/UID_FIREBASE.php"; } if ($config['EMAIL'] == true) { require_once ROOT . "lib/import/mailer.php"; } if ($config['FILE_UPLOAD'] == true) { require_once ROOT . "lib/import/upload.php"; } $statoSportello = Utils::getStatoSportello(); $app = new Application(); switch ($app->lastEsito) { case Application::SUCCESS: $LoggedAccount = $app->getAccount(); $con = $app->getCon(); $conSpid = $app->getConSpid(); break; case Application::ACCESS_ERR: exit(json_encode(Utils::initDefaultResponseDataTable(-999, $app->lastMessageError))); // exit(json_encode(Utils::initDefaultResponse(-999, $app->lastMessageError))); break; case Application::ACCESS_WS_ERR: exit(0); break; } } global $LoggedAccount, $con, $conSpid, $MENUITEMS, $NAVITEMS, $statoSportello, $PROVINCE_SICILIA, $STATI_DOMANDA, $LEGENDA_STATI_DOMANDA, $LEGENDA_STATI_SPORTELLO, $CODICI_ERRORE_UPLOAD_P7M, $codiciErroreNoControll, $RAPPORTI_PARENTELA, $REGIONI_ITALIANE, $TIPO_RICHIESTA;