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.
 
 
 

31 righe
1.0 KiB

<?php
ob_start();
session_name('SICILIAPEIFE_BONUSICILIA');
session_start();
//session_start([
// 'read_and_close' => 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;