From 9c8fa2269fe6bbb8fdf18c7d3180a4576ef9a2ad Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Tue, 26 Aug 2025 18:43:10 -0700 Subject: [PATCH] Make icons 100m if they're being approved or denied (when I want to see it but don't have the discord bot yet) --- database/getMarketplaceIcons.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database/getMarketplaceIcons.php b/database/getMarketplaceIcons.php index ef15361..10d5bfa 100644 --- a/database/getMarketplaceIcons.php +++ b/database/getMarketplaceIcons.php @@ -5,15 +5,15 @@ checkClientDatabaseVersion(); $conn = newConnection(); $stmt = $conn->prepare(" - SELECT c.data, u.username, u.id, c.price, c.name, c.uuid + SELECT c.data, u.username, u.id, c.price, c.name, c.uuid, c.state FROM marketplaceicons c JOIN users u ON c.userId = u.id - WHERE u.banned = 0 AND c.state = 1 + WHERE u.banned = 0 AND c.state = 1 OR c.state = 2 ORDER BY c.id ASC "); $stmt->execute(); $result = $stmt->get_result(); -echo encrypt(json_encode(array_map(fn($row) => ['username' => $row['username'], 'userid' => $row['id'], 'data' => $row['data'], 'uuid' => $row['uuid'], 'price' => $row['price'], 'name' => base64_decode($row['name'])], $result->fetch_all(MYSQLI_ASSOC)))); +echo encrypt(json_encode(array_map(fn($row) => ['username' => $row['username'], 'userid' => $row['id'], 'data' => $row['data'], 'uuid' => $row['uuid'], 'price' => (int)$row['state'] == 2 ? 100000000 : $row['price'], 'name' => base64_decode($row['name'])], $result->fetch_all(MYSQLI_ASSOC)))); $conn->close(); \ No newline at end of file