num_rows < 1) { dashboard\primary\error("Order ID not found. Should be from shoppy, sellapp, sellix, or orders.keyauth.cc. NOT PayPal etc. Contact us https://chatting.page/gjqkqirygnfslvce2m5eycuo7tfxrhxl"); return; } $username = mysqli_fetch_array($query->result)['username']; $query = misc\mysql\query("SELECT `username` FROM `accounts` WHERE `email` = SHA(?)", [$newEmail]); if ($query->num_rows < 1) { $query = misc\mysql\query("UPDATE `accounts` SET `email` = SHA1(?) WHERE `username` = ?", [$newEmail, $username]); if ($query->affected_rows > 0) { dashboard\primary\success("Successfully changed email."); return; } else { dashboard\primary\error("Failed to change email. Perhaps the user changed their username after purchasing. Contact us https://chatting.page/gjqkqirygnfslvce2m5eycuo7tfxrhxl"); return; } } else { dashboard\primary\error("Email already used by username " . mysqli_fetch_array($query->result)['username'] . ""); return; } } $query = misc\mysql\query("SELECT 1 FROM `accounts` WHERE `email` = SHA1(?)", [$newEmail]); if ($query->num_rows > 0) { dashboard\primary\error("Email already used! You must specify another email"); return; } } if (isset($_POST['checkExistence'])){ $username = misc\etc\sanitize($_POST['username']); $query = misc\mysql\query("SELECT `username` FROM `accounts` WHERE `username` = ?",[$username]); if ($query->num_rows > 0){ dashboard\primary\success("User exists"); } else{ dashboard\primary\error("User does not exist!"); } } ?>

Staff Panel

Welcome Staff! If you need help, or don't understand something, please contact an Admin. Thank You!