ACIL FM
Dark
Refresh
Current DIR:
/home/fastexsh/public_html/tether/commands
/
home
fastexsh
public_html
tether
commands
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
error_log
18.24 MB
chmod
View
DL
Edit
Rename
Delete
get_price.php
1.37 MB
chmod
View
DL
Edit
Rename
Delete
join_checker.php
2.68 MB
chmod
View
DL
Edit
Rename
Delete
new_transaction.php
3.87 MB
chmod
View
DL
Edit
Rename
Delete
other_commands.php
371 B
chmod
View
DL
Edit
Rename
Delete
start_bot.php
1.89 MB
chmod
View
DL
Edit
Rename
Delete
user_account.php
9.03 MB
chmod
View
DL
Edit
Rename
Delete
user_auth.php
8.41 MB
chmod
View
DL
Edit
Rename
Delete
user_transactions.php
9.19 MB
chmod
View
DL
Edit
Rename
Delete
user_wallet.php
2 MB
chmod
View
DL
Edit
Rename
Delete
withdrawals.php
13.28 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/fastexsh/public_html/tether/commands/user_transactions.php
<?php if ($text == "📜 تراکنشها" && $user->logged_in == 1) { sendMessage($from_id, "لطفاً نوع تراکنش را انتخاب کنید:", $transactionsMenuKeyboard); die; } if ($text == "💸 تراکنشهای فروش" && $user->logged_in == 1) { $page = 1; $limit = 2; $offset = ($page - 1) * $limit; $username = $user->login_username; $queryCount = " SELECT COUNT(*) AS total FROM `transactions` WHERE `username` = ? "; $stmt = $pdo->prepare($queryCount); $stmt->execute([$username]); $total = (int) $stmt->fetch()->total; if ($total == 0) { sendMessage($from_id, "❗ هیچ تراکنش فروشی برای شما ثبت نشده است."); die; } $totalPages = max(1, ceil($total / $limit)); $queryRows = " SELECT * FROM `transactions` WHERE `username` = ? ORDER BY `id` DESC LIMIT $limit OFFSET $offset "; $stmt = $pdo->prepare($queryRows); $stmt->execute([$username]); $rows = $stmt->fetchAll(); $textMsg = "📄 *تراکنشهای فروش*\n\n"; foreach ($rows as $r) { $statusText = $r->status == "done" ? "تایید شده" : ($r->status == "pending" ? "در انتظار" : "رد شده"); $rTime = jdate("H:i:s - Y/m/d", strtotime(date($r->created_at)), tr_num: 'en'); $textMsg .= "🆔 شناسه سفارش: `{$r->order_id}`\n" . "💰 مقدار: `{$r->amount_usdt}` USDT\n" . "💵 مبلغ: `" . number_format($r->amount_irt) . "` تومان\n" . "📌 وضعیت: `{$statusText}`\n" . "📅 زمان درخواست: {$rTime}\n" . "———————————————\n"; } $textMsg .= "\nصفحه {$page} از {$totalPages}"; $nav = ["inline_keyboard" => []]; $row = []; if ($page < $totalPages) $row[] = ["text" => "بعدی ➡️", "callback_data" => "selltx_" . ($page + 1)]; if ($row) $nav["inline_keyboard"][] = $row; setStep($from_id, "selltx_page_$page"); sendMessage($from_id, $textMsg, json_encode($nav)); die; } if (isset($data) && strpos($data, "selltx_") === 0) { $page = (int) str_replace("selltx_", "", $data); $limit = 2; $offset = ($page - 1) * $limit; $username = $user->login_username; $queryCount = " SELECT COUNT(*) AS total FROM `transactions` WHERE `username` = ? "; $stmt = $pdo->prepare($queryCount); $stmt->execute([$username]); $total = (int) $stmt->fetch()->total; $totalPages = max(1, ceil($total / $limit)); $queryRows = " SELECT * FROM `transactions` WHERE `username` = ? ORDER BY `id` DESC LIMIT $limit OFFSET $offset "; $stmt = $pdo->prepare($queryRows); $stmt->execute([$username]); $rows = $stmt->fetchAll(); $textMsg = "📄 *تراکنشهای فروش*\n\n"; foreach ($rows as $r) { $statusText = $r->status == "done" ? "تایید شده" : ($r->status == "pending" ? "در انتظار" : "رد شده"); $rTime = jdate("H:i:s - Y/m/d", strtotime(date($r->created_at)), tr_num: 'en'); $textMsg .= "🆔 شناسه سفارش: `{$r->order_id}`\n" . "💰 مقدار: `{$r->amount_usdt}` USDT\n" . "💵 مبلغ: `" . number_format($r->amount_irt) . "` تومان\n" . "📌 وضعیت: `{$statusText}`\n" . "📅 زمان درخواست: {$rTime}\n" . "———————————————\n"; } $textMsg .= "\nصفحه {$page} از {$totalPages}"; $nav = ["inline_keyboard" => []]; $row = []; if ($page > 1) $row[] = ["text" => "⬅️ قبلی", "callback_data" => "selltx_" . ($page - 1)]; if ($page < $totalPages) $row[] = ["text" => "بعدی ➡️", "callback_data" => "selltx_" . ($page + 1)]; if ($row) $nav["inline_keyboard"][] = $row; setStep($from_id, "selltx_page_$page"); editMessage($from_id, $message_id, $textMsg, json_encode($nav)); die; } if ($text == "💳 تراکنشهای برداشت" && $user->logged_in == 1) { $username = $user->login_username; $page = 1; $limit = 2; $offset = ($page - 1) * $limit; $queryCount = " SELECT COUNT(*) AS total FROM `withdrawals` WHERE `username` = ? "; $stmt = $pdo->prepare($queryCount); $stmt->execute([$username]); $total = (int) $stmt->fetch()->total; if ($total == 0) { sendMessage($from_id, "❗ هیچ تراکنش برداشتی برای شما ثبت نشده است."); die; } $totalPages = max(1, ceil($total / $limit)); $queryRows = " SELECT * FROM `withdrawals` WHERE `username` = ? ORDER BY `id` DESC LIMIT {$limit} OFFSET {$offset} "; $stmt = $pdo->prepare($queryRows); $stmt->execute([$username]); $rows = $stmt->fetchAll(); $textMsg = "📄 *تراکنشهای برداشت*\n\n"; foreach ($rows as $r) { if ($r->status == "pending") $statusText = "🔄 در صف انتظار"; elseif ($r->status == "sent") $statusText = "🚚 درحال واریز"; elseif ($r->status == "done") $statusText = "✅ تسویه شده"; elseif ($r->status == "rejected") $statusText = "❌ رد شده"; else $statusText = "نامشخص"; // زمان درخواست $rTime = jdate("H:i:s - Y/m/d", strtotime(date($r->created_at)), tr_num: 'en'); $textMsg .= "🔖 شناسه برداشت: `{$r->withdraw_id}`\n" . "🆔 شناسه پیگیری: `{$r->tracking_id}`\n" . "💳 کارت مقصد: `{$r->card_number}`\n" . "💵 مبلغ: `" . number_format($r->amount_irt) . "` تومان\n" . "📌 وضعیت: {$statusText}\n" . "📅 زمان درخواست: {$rTime}\n" . "———————————————\n"; } $textMsg .= "\nصفحه {$page} از {$totalPages}"; $nav = ["inline_keyboard" => []]; $row = []; if ($page < $totalPages) $row[] = ["text" => "بعدی ➡️", "callback_data" => "wdtx_" . ($page + 1)]; if ($row) $nav["inline_keyboard"][] = $row; setStep($from_id, "wdtx_page_{$page}"); sendMessage($from_id, $textMsg, json_encode($nav)); die; } if (isset($data) && strpos($data, "wdtx_") === 0) { $page = (int) str_replace("wdtx_", "", $data); $limit = 2; $offset = ($page - 1) * $limit; $username = $user->login_username; $queryCount = " SELECT COUNT(*) AS total FROM `withdrawals` WHERE `username` = ? "; $stmt = $pdo->prepare($queryCount); $stmt->execute([$username]); $total = (int) $stmt->fetch()->total; $totalPages = max(1, ceil($total / $limit)); $queryRows = " SELECT * FROM `withdrawals` WHERE `username` = ? ORDER BY `id` DESC LIMIT {$limit} OFFSET {$offset} "; $stmt = $pdo->prepare($queryRows); $stmt->execute([$username]); $rows = $stmt->fetchAll(); $textMsg = "📄 *تراکنشهای برداشت*\n\n"; foreach ($rows as $r) { if ($r->status == "pending") $statusText = "🔄 در صف انتظار"; elseif ($r->status == "sent") $statusText = "🚚 درحال واریز"; elseif ($r->status == "done") $statusText = "✅ تسویه شده"; elseif ($r->status == "rejected") $statusText = "❌ رد شده"; else $statusText = "نامشخص"; // زمان درخواست $rTime = jdate("H:i:s - Y/m/d", strtotime(date($r->created_at)), tr_num: 'en'); $textMsg .= "🔖 شناسه برداشت: `{$r->withdraw_id}`\n" . "🆔 شناسه پیگیری: `{$r->tracking_id}`\n" . "💳 کارت مقصد: `{$r->card_number}`\n" . "💵 مبلغ: `" . number_format($r->amount_irt) . "` تومان\n" . "📌 وضعیت: {$statusText}\n" . "📅 زمان درخواست: {$rTime}\n" . "———————————————\n"; } $textMsg .= "\nصفحه {$page} از {$totalPages}"; $nav = ["inline_keyboard" => []]; $row = []; if ($page > 1) $row[] = ["text" => "⬅️ قبلی", "callback_data" => "wdtx_" . ($page - 1)]; if ($page < $totalPages) $row[] = ["text" => "بعدی ➡️", "callback_data" => "wdtx_" . ($page + 1)]; if ($row) $nav["inline_keyboard"][] = $row; setStep($from_id, "wdtx_page_{$page}"); editMessage($from_id, $message_id, $textMsg, json_encode($nav)); die; }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply