connect_error) { $success=0; die("Connection failed: " . $conn->connect_error); } $user_hex_id=bin2hex($username_new); $stmt = $conn->prepare("UPDATE users set email = ?, username = ?, telegram_id = ?, allow_pw_login = ?, user_hex_id = ?, send_login_message = ?, use_2fa = ? where username = ?"); $stmt->bind_param("sssisiis", $email, $username_new,$telegram_id, $pw_login,$user_hex_id, $send_login_message, $use_2fa, $username); $email=htmlspecialchars($_POST["email"]); $username_new=htmlspecialchars($_POST["username"]); $telegram_id=htmlspecialchars($_POST["telegram_id"]); $stmt->execute(); $stmt->close(); $conn->close(); $username=$username_new; $_SESSION["username"]=$username; $_SESSION["email"]=$email; $_SESSION["telegram_id"]=$telegram_id; $_SESSION["allow_pw_login"]=$pw_login; $_SESSION["send_login_message"]=$send_login_message; $_SESSION["use_2fa"]=$use_2fa; } ?> Profile

Your Profile ()

"); }else{ echo(""); } ?>

"); }else{ echo(""); } ?>

"); }else{ echo(""); } ?>

'; } ?>