Account settings

O hi ".$_SESSION["username"].".

"; // Join code if ($_SESSION["id"] == 1) { echo "

Invite Codes

"; $token_request = mysqli_query($conn, "SELECT * FROM tokens WHERE used = 0"); while ($token = mysqli_fetch_array($token_request)) { echo "

".$token['code']."

"; } } echo "

Danger ahead

"; // Reset password echo "

Resetting your password regularly is a good way of keeping your account safe

"; echo "Reset Password"; // Logout echo "

Don't leave! I'm with the science team!

"; echo "Logout"; } else { echo "

You must be logged in to change your account settings!

"; echo "Login!"; } ?>