createSecret(); misc\mysql\query("UPDATE `accounts` SET `googleAuthCode` = ? WHERE `username` = ?", [$code_2factor, $_SESSION['username']]); } else { $code_2factor = $row["googleAuthCode"]; } $google_QR_Code = $gauth->getQRCodeGoogleUrl($_SESSION['username'], $code_2factor, 'KeyAuth'); $query = misc\mysql\query("SELECT * FROM `accounts` WHERE `username` = ?", [$_SESSION['username']]); if ($query->num_rows > 0) { while ($row = mysqli_fetch_array($query->result)) { $acclogs = $row['acclogs']; $expiry = $row["expires"]; $emailVerify = $row["emailVerify"]; } } if (isset($_POST['updatesettings'])) { $pfp = misc\etc\sanitize($_POST['pfp']); $acclogs = misc\etc\sanitize($_POST['acclogs']); $emailVerify = misc\etc\sanitize($_POST['emailVerify']); misc\mysql\query("UPDATE `accounts` SET `acclogs` = ? WHERE `username` = ?", [$acclogs, $_SESSION['username']]); if ($acclogs == 0) { misc\mysql\query("DELETE FROM `acclogs` WHERE `username` = ?", [$_SESSION['username']]); // delete all account logs } misc\mysql\query("UPDATE `accounts` SET `emailVerify` = ? WHERE `username` = ?", [$emailVerify, $_SESSION['username']]); if (isset($_POST['pfp']) && trim($_POST['pfp']) != '') { if (!filter_var($pfp, FILTER_VALIDATE_URL)) { dashboard\primary\error("Invalid Url For Profile Image!"); echo ""; return; } if (strpos($pfp, "file:///") !== false) { dashboard\primary\error("Url must start with https://"); echo ""; return; } $_SESSION['img'] = $pfp; misc\mysql\query("UPDATE `accounts` SET `img` = ? WHERE `username` = ?", [$pfp, $_SESSION['username']]); } dashboard\primary\success("Updated Account Settings!"); } if (isset($_POST['dlacc'])) { echo ""; } if (isset($_POST['submit_code'])) { if($_SESSION['discordLogin']) { echo ""; dashboard\primary\error("You can't use 2FA when you sign-in with different website! Use 2FA on that website instead"); return; } $code = misc\etc\sanitize($_POST['scan_code1'] . ($_POST['scan_code2']) . ($_POST['scan_code3']) . ($_POST['scan_code4']) . ($_POST['scan_code5']) . ($_POST['scan_code6'])); $query = misc\mysql\query("SELECT `googleAuthCode` from `accounts` WHERE `username` = ?", [$_SESSION['username']]); while ($row = mysqli_fetch_array($query->result)) { $secret_code = $row['googleAuthCode']; } $checkResult = $gauth->verifyCode($secret_code, $code, 2); if ($checkResult) { $query = misc\mysql\query("UPDATE `accounts` SET `twofactor` = '1' WHERE `username` = ?", [$_SESSION['username']]); if ($query->affected_rows > 0) { echo ""; dashboard\primary\success("Two-factor security has been successfully activated on your account!"); dashboard\primary\wh_log($logwebhook, "{$username} has enabled 2FA", $webhookun, "3586ee", "No ping"); } else { echo ""; dashboard\primary\wh_log($logwebhook, "{$username} has disabled 2FA", $webhookun, "3586ee", "No ping");; dashboard\primary\success("Two-factor security has been successfully disabled on your account!"); } } else { dashboard\primary\error("Invalid 2FA code! Make sure your device time settings are synced."); } } if (isset($_POST['downloadSecWords'])){ if ($secwords == NULL){ function getRandomWords($count = 10) { $url = "https://random-word-api.herokuapp.com/word?number={$count}"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); if ($response) { return json_decode($response); } else { return false; } } // Get 10 random words $randomWords = getRandomWords(10); if ($randomWords) { // Format the words into a comma-separated string $wordString = implode(', ', $randomWords); $query = misc\mysql\query("UPDATE `accounts` SET `secwords` =? WHERE `username` = ?", [$wordString, $_SESSION['username']]); if ($query->affected_rows > 0){ dashboard\primary\success("Successfully generated new security words!"); } else { dashboard\primary\error("Failed to generate new security words!"); } } } else { dashboard\primary\error("Security words already generated. Contact staff if you need to reset them."); } } if (isset($_POST['submit_code_disable'])) { $code = misc\etc\sanitize($_POST['scan_code']); $query = misc\mysql\query("SELECT `googleAuthCode` from `accounts` WHERE `username` = ?", [$_SESSION['username']]); while ($row = mysqli_fetch_array($query->result)) { $secret_code = $row['googleAuthCode']; } $checkResult = $gauth->verifyCode($secret_code, $code, 2); if ($checkResult) { $query = misc\mysql\query("UPDATE `accounts` SET `twofactor` = '0', `googleAuthCode` = NULL WHERE `username` = ?", [$_SESSION['username']]); if ($query->affected_rows > 0) { dashboard\primary\success("Successfully disabled 2FA!"); } else { dashboard\primary\error("Failed to disable 2FA!"); } } else { dashboard\primary\error("Invalid 2FA code! Make sure your device time settings are synced."); } } if (isset($_POST['deleteWebauthn'])) { $name = misc\etc\sanitize($_POST['deleteWebauthn']); $query = misc\mysql\query("DELETE FROM `securityKeys` WHERE `name` = ? AND `username` = ?", [$name, $_SESSION['username']]); if ($query->affected_rows > 0) { $query = misc\mysql\query("SELECT 1 FROM `securityKeys` WHERE `username` = ?", [$_SESSION['username']]); if ($query->num_rows == 0) { misc\mysql\query("UPDATE `accounts` SET `securityKey` = 0 WHERE `username` = ?", [$_SESSION['username']]); } dashboard\primary\success("Successfully deleted security key"); } else { dashboard\primary\error("Failed to delete security key!"); } } ?>

Account Settings

Manage your account. Tip: You can press Ctrl + S to save settings!

" readonly>
Never " autocomplete="on" readonly>

Security Words

Security Words: 10 random words that you can use to regain access to your account if you forget your order ID, email, password, and have no other way to verify the account belongs to you!


  • Can only be generated 1 TIME! (unless you get a new list from an admin)
  • Should be stored in 2 locations! (USB and PC for example)
  • Should NOT be called something obvious like "KeyAuthSecurityWords.txt". Prevent theft! Be smart!
  • Should never be shared!
  • Only admins can give you new words
  • Remember, your words will appear below once generated. Once you refresh the page, the words will disappear.

You already generated your security words. Please contact support if you forgot them.

Enable 2FA'; } else { echo 'Disable 2FA'; } ?> Change Password Change Email Change Username Delete Account