true, //]); require_once "app.config.php"; require_once ROOT . "lib/constants.php"; require_once ROOT . "lib/classes/Utils.php"; $statoSportello = Utils::GetStatoSportello(); if ($statoSportello == SPORTELLO_MANUTENZIONE) { Utils::RedirectTo(BASE_HTTP . 'info.php'); exit; } if ($statoSportello == SPORTELLO_PREPARAZIONE_PRE && stripos($_SERVER['PHP_SELF'], "index.php") === FALSE && stripos($_SERVER['PHP_SELF'], "faq.php") === FALSE) { Utils::RedirectTo(BASE_HTTP . 'index.php'); exit; } if (isset($_SESSION['ID']) && intval($_SESSION['ID']) > 0 && (stripos($_SERVER['PHP_SELF'], "index.php") !== FALSE || stripos($_SERVER['PHP_SELF'], "loginspid.php") !== FALSE || stripos($_SERVER['PHP_SELF'], "login_spid.php") !== FALSE)) { if ($statoSportello == SPORTELLO_PREPARAZIONE) { Utils::RedirectTo(BASE_HTTP . 'dashboard.php'); exit; } } global $statoSportello;