From 23ce9c4446715e1d34a2e4e9bb893775a0de7a1d Mon Sep 17 00:00:00 2001
From: Flatlogic Bot
Date: Sat, 14 Feb 2026 05:11:30 +0000
Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E6=96=B0=E5=AE=8C=E7=BE=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
admin/chat.php | 46 +++--
admin/chat_iframe.php | 132 ++++++++++----
api/get_messages.php | 51 ++----
api/upload_chat_image.php | 47 ++---
assets/css/custom.css | 53 ++++--
assets/pasted-20260214-025356-727c5b4a.png | Bin 0 -> 88450 bytes
chat.php | 81 +++++----
chat_iframe.php | 166 +++++++++++++++---
db/config.php | 3 +
db/install.sql | 10 +-
deposit.php | 102 ++++++++---
futures.php | 127 ++++++++++++--
header.php | 71 +++++++-
includes/i18n.php | 76 +++++++-
login.php | 26 ++-
matching.php | 48 ++++-
options.php | 127 ++++++++++++--
profile.php | 81 +++++----
register.php | 37 ++--
spot.php | 131 ++++++++++++--
...k_7a8fdb2c-fb1b-4742-92c4-b7af8e3de227.png | Bin 0 -> 1194490 bytes
...t_7a8fdb2c-fb1b-4742-92c4-b7af8e3de227.png | Bin 0 -> 1194490 bytes
...d_7a8fdb2c-fb1b-4742-92c4-b7af8e3de227.png | Bin 0 -> 1194490 bytes
withdraw.php | 96 ++++++++--
24 files changed, 1153 insertions(+), 358 deletions(-)
create mode 100644 assets/pasted-20260214-025356-727c5b4a.png
create mode 100644 uploads/kyc/1771045502_back_7a8fdb2c-fb1b-4742-92c4-b7af8e3de227.png
create mode 100644 uploads/kyc/1771045502_front_7a8fdb2c-fb1b-4742-92c4-b7af8e3de227.png
create mode 100644 uploads/kyc/1771045502_handheld_7a8fdb2c-fb1b-4742-92c4-b7af8e3de227.png
diff --git a/admin/chat.php b/admin/chat.php
index eb9195c..bfebb6c 100644
--- a/admin/chat.php
+++ b/admin/chat.php
@@ -6,9 +6,7 @@ $pdo = db();
// Handle deletion of chat
if (isset($_GET['action']) && $_GET['action'] === 'delete' && isset($_GET['delete_user_id'])) {
$del_id = $_GET['delete_user_id'];
- // Delete messages
$pdo->prepare("DELETE FROM messages WHERE user_id = ?")->execute([$del_id]);
- // Optionally update orders to not show in chat
$pdo->prepare("UPDATE fiat_orders SET status = 'rejected' WHERE user_id = ? AND status IN ('matching', 'submitting')")->execute([$del_id]);
header("Location: chat.php");
exit;
@@ -70,7 +68,6 @@ $chat_users = $pdo->query("
.back-btn { color: #848E9C; text-decoration: none; font-size: 0.9rem; padding: 15px; border-bottom: 1px solid #2B3139; display: block; }
.back-btn:hover { color: white; background: #2B3139; }
- /* Custom alert */
#custom-alert { display: none; position: fixed; top: 20px; right: 20px; background: #f0b90b; color: black; padding: 20px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 10000; animation: slideIn 0.5s; width: 300px; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@@ -82,7 +79,7 @@ $chat_users = $pdo->query("
新通知 / NEW NOTIFICATION
您有新的充值申请或用户消息。
-
+
@@ -93,7 +90,7 @@ $chat_users = $pdo->query("
@@ -107,21 +104,23 @@ $chat_users = $pdo->query("
返回
最近联系人 / 充值申请
-
-
-
-
-
- 充值申请
-
-
- 0 || $u['recharge_status'] == 'matching'): ?>
-
+
+
+
+
+
+
+ 充值申请
+
+
+ 0 || $u['recharge_status'] == 'matching'): ?>
+
+
+
-
-
-
+
+
@@ -149,11 +148,20 @@ function checkNotifications() {
document.getElementById('notif-sound').play().catch(e => {});
document.getElementById('custom-alert').style.display = 'block';
document.getElementById('alert-msg').innerText = "您有新的充值申请或用户消息 (当前未读: " + data.total + ")";
+
+ const badge = document.getElementById('total-badge');
+ if (badge) badge.innerText = data.total;
+ } else if (data.total < lastTotal) {
+ const badge = document.getElementById('total-badge');
+ if (badge) {
+ if (data.total === 0) badge.remove();
+ else badge.innerText = data.total;
+ }
}
lastTotal = data.total;
});
}
-setInterval(checkNotifications, 5000);
+setInterval(checkNotifications, 2000);
@@ -137,22 +148,11 @@ $pending_orders = $orders->fetchAll();
待处理申请 (ACTIVE REQUESTS)
@@ -206,19 +206,28 @@ $pending_orders = $orders->fetchAll();
-
+