$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; include_once($configPath); if (!empty($_SESSION["utente"]) && isset($_GET["codice"]) && ($_SESSION["utente"]->permission("utenti",$_GET["codice"]))) { $bind = array(); $bind[":codice"] = $_GET["codice"]; $sql = "SELECT b_utenti.* FROM b_utenti WHERE b_utenti.codice = :codice "; $ris_utenti = $pdo->go($sql,$bind); if (isset($ris_utenti) && $ris_utenti->rowCount() === 1) { $record = $ris_utenti->fetch(PDO::FETCH_ASSOC); if (!empty($record["twoFactor_token"])) { ?>
die(); } } } header('HTTP/1.0 403 Forbidden'); die(); ?>