header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); //error_reporting(error_reporting()&~E_NOTICE); error_reporting(0); session_name('sito'); session_start(); ob_start(); setcookie('cheddite', "", time() - 3600); $Cookie=''; if(!empty($_COOKIE['cookie'])){ $Cookie=$_COOKIE['cookie']; } if(isset($_COOKIE['cheddite2020'])) { $_SESSION['ID_Cliente']=$_COOKIE['cheddite2020']; } include('utility/config.php'); if(!empty($_GET['p'])){$p=$_GET['p'];} if(!empty($_POST['p'])){$p=$_POST['p'];} if((empty($_GET['p']))&&(empty($_POST['p']))){ $p=''; } if(!empty($_GET['a'])){$a=$_GET['a'];} if(!empty($_POST['a'])){$a=$_POST['a'];} if((empty($_GET['a']))&&(empty($_POST['a']))){ $a=''; } if(!empty($_SESSION['ID_Cliente'])){ $resultUserLogged=mysqli_query($db,"SELECT * FROM 2020_Utenti WHERE ID_Cliente='".$_SESSION['ID_Cliente']."'"); $rowUserLogged=mysqli_fetch_array($resultUserLogged); } if(($a!='reg')||(!empty($_GET['a']))){ unset($_SESSION['Errore']); } if(($p!='profilo')||(!empty($_GET['p']))){ unset($_SESSION['ErroreConfermaPassword1']); unset($_SESSION['ErroreEmail1']); unset($_SESSION['ErroreTesseraFitav1']); unset($_SESSION['ErrorePortoArmi1']); unset($_SESSION['ErroreCellulare1']); } setcookie('cookie','si',time() + (86400 * 365)); $DataAttuale=strtotime(date('Y-m-d H:i:s')); $FineIscrizioni=strtotime(date('2020-03-30 23:59:58')); ?>