openConnection(); if (isset($_GET["t"])) { if (isset($_SESSION["UtenteID"])) { $tipo = $_GET["t"]; } else { header("location: login.php"); } } else { header("location: login.php"); } ?>