From dc98d04b8a2bb37a755222f99a131bdedaef70ad Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Thu, 28 Jul 2022 15:09:03 +0100 Subject: [PATCH] Can now see invite code from user settings --- account/account.php | 18 +++++++++++++++++- css/master.css | 14 ++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/account/account.php b/account/account.php index e576395..33c3ac8 100644 --- a/account/account.php +++ b/account/account.php @@ -10,15 +10,31 @@ - +

Account settings

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

"; + + // Reset password echo "Reset Password"; + + // Logout echo "Logout"; + + // Join code + if ($_SESSION["id"] == 1) { + echo "

Invite Code

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

".$token['code']."

"; + } + } } else { echo "

You must be logged in to change your account settings!

"; echo "Login!"; diff --git a/css/master.css b/css/master.css index 8a76a01..aff9dd1 100644 --- a/css/master.css +++ b/css/master.css @@ -274,6 +274,20 @@ body { display: inline; } +.text-box { + padding: 0.5rem; + + display: block; + + font-size: 16px; + + text-decoration: none; + + background-color: var(--black); + border: none; + border-radius: var(--rad); +} + /* -=-=-= ALERT =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */