Remove unused endpoint and set default marketplaceicons.state to 0

This commit is contained in:
2025-08-24 22:02:38 -07:00
parent 42490aaf37
commit 7ad4525b0e
2 changed files with 2 additions and 26 deletions

View File

@@ -1,24 +0,0 @@
<?php
require __DIR__ . '/../incl/util.php';
setPlainHeader();
checkClientDatabaseVersion();
$post = getPostData();
$birdicon = $post['birdicon'] ?? '';
$conn = newConnection();
$stmt = $conn->prepare("SELECT data FROM marketplaceicons WHERE birdicon = ?");
$stmt->bind_param("s", $birdicon);
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
echo encrypt(json_encode(["success" => true, "data" => $row['data']]));
} else {
echo encrypt(json_encode(["success" => false, "message" => "Icon not found"]));
}
$stmt->close();
$conn->close();