ACIL FM
Dark
Refresh
Current DIR:
/home/fastexsh/public_html/exchange/admin
/
home
fastexsh
public_html
exchange
admin
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
add_message.php
3.76 MB
chmod
View
DL
Edit
Rename
Delete
add_new_admin.php
2.49 MB
chmod
View
DL
Edit
Rename
Delete
bot_stats.php
8.05 MB
chmod
View
DL
Edit
Rename
Delete
change_channels.php
11.69 MB
chmod
View
DL
Edit
Rename
Delete
change_price.php
10.72 MB
chmod
View
DL
Edit
Rename
Delete
change_status.php
9.01 MB
chmod
View
DL
Edit
Rename
Delete
change_text.php
5.63 MB
chmod
View
DL
Edit
Rename
Delete
last_payments.php
5.52 MB
chmod
View
DL
Edit
Rename
Delete
panel.php
3.35 MB
chmod
View
DL
Edit
Rename
Delete
search_user.php
42.2 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/fastexsh/public_html/exchange/admin/last_payments.php
<?php if (($text == '💳 آخرین پرداختها' && $currentUser->is_admin) || (isset($data) && strpos($data, 'global_payments_page-') !== false && $currentUser->is_admin)) { $page = 1; if (isset($data) && strpos($data, 'global_payments_page-') !== false) { $page = (int) explode('-', $data)[1]; } $limit = 2; $offset = ($page - 1) * $limit; // Get total count $queryCount = "SELECT COUNT(*) FROM `transactions` WHERE `status` = 1"; $stmtCount = $db->prepare($queryCount); $stmtCount->execute(); $totalRecords = $stmtCount->fetchColumn(); $totalPages = ceil($totalRecords / $limit); if ($totalRecords == 0) { if (isset($data)) { $bot->answerCallbackQuery($query_id, 'هیچ پرداختی یافت نشد.', true); } else { $bot->sendMessage($from_id, 'هیچ پرداختی صورت نگرفته است.'); } die; } if ($page > $totalPages) $page = $totalPages; $query = "SELECT * FROM `transactions` WHERE `status` = 1 ORDER BY `updated_at` DESC LIMIT $limit OFFSET $offset"; $stmt = $db->prepare($query); $stmt->execute(); $transactions = $stmt->fetchAll(); $response_text = "💳 *لیست پرداختهای موفق (صفحه $page از $totalPages)*:\n\n"; foreach ($transactions as $transaction) { $response_text .= "*🔹 شماره تراکنش:* `" . $transaction->track_id . "`\n"; $response_text .= "*💰 مبلغ:* " . $transaction->amount . " تومان\n"; $response_text .= "*📝 کد رهگیری:* `" . $transaction->support_code . "`\n"; $response_text .= "*🕒 تاریخ پرداخت:* " . jdate("H:i:s - Y/m/d", strtotime($transaction->updated_at), tr_num: 'en') . "\n"; $response_text .= "*👤 شناسه کاربر:* " . $transaction->chat_id . "\n\n"; } $response_text .= "📊 تعداد کل پرداختها: $totalRecords"; // Pagination Buttons $keyboard_buttons = []; $nav_buttons = []; if ($page > 1) { $nav_buttons[] = ['text' => '➡️ صفحه قبل', 'callback_data' => 'global_payments_page-' . ($page - 1)]; } if ($page < $totalPages) { $nav_buttons[] = ['text' => 'صفحه بعد ⬅️', 'callback_data' => 'global_payments_page-' . ($page + 1)]; } if (!empty($nav_buttons)) { $keyboard_buttons[] = $nav_buttons; } $keyboard = !empty($keyboard_buttons) ? json_encode(['inline_keyboard' => $keyboard_buttons]) : null; if (isset($data)) { $bot->editMessage($from_id, $response_text, $message_id, $keyboard); } else { $bot->sendMessage($from_id, $response_text, $keyboard); } die; } if (($text == '🛒 آخرین خریدها' && $currentUser->is_admin) || (isset($data) && strpos($data, 'global_purchases_page-') !== false && $currentUser->is_admin)) { $page = 1; if (isset($data) && strpos($data, 'global_purchases_page-') !== false) { $page = (int) explode('-', $data)[1]; } $limit = 2; $offset = ($page - 1) * $limit; // Get total count $queryCount = "SELECT COUNT(*) FROM `sold_vouchers` WHERE `status` = 'Confirm'"; $stmtCount = $db->prepare($queryCount); $stmtCount->execute(); $totalRecords = $stmtCount->fetchColumn(); $totalPages = ceil($totalRecords / $limit); if ($totalRecords == 0) { if (isset($data)) { $bot->answerCallbackQuery($query_id, 'هیچ خریدی یافت نشد.', true); } else { $bot->sendMessage($from_id, 'هیچ خریدی صورت نگرفته است.'); } die; } if ($page > $totalPages) $page = $totalPages; $query = "SELECT * FROM `sold_vouchers` WHERE `status` = 'Confirm' ORDER BY `created_at` DESC LIMIT $limit OFFSET $offset"; $stmt = $db->prepare($query); $stmt->execute(); $transactions = $stmt->fetchAll(); $response_text = "🛍 *لیست خریدهای موفق (صفحه $page از $totalPages)*:\n\n"; foreach ($transactions as $transaction) { $response_text .= "*🔹 شماره تراکنش:* `" . $transaction->track_id . "`\n"; $response_text .= "*💰 مبلغ:* " . $transaction->amount . " تومان\n"; $response_text .= "*📝 کد رهگیری:* `" . $transaction->support_code . "`\n"; $response_text .= "*🕒 تاریخ خرید:* " . jdate("H:i:s - Y/m/d", strtotime($transaction->created_at), tr_num: 'en') . "\n"; $response_text .= "*👤 شناسه کاربر:* " . $transaction->chat_id . "\n\n"; } $response_text .= "📊 تعداد کل خریدها: $totalRecords"; // Pagination Buttons $keyboard_buttons = []; $nav_buttons = []; if ($page > 1) { $nav_buttons[] = ['text' => '➡️ صفحه قبل', 'callback_data' => 'global_purchases_page-' . ($page - 1)]; } if ($page < $totalPages) { $nav_buttons[] = ['text' => 'صفحه بعد ⬅️', 'callback_data' => 'global_purchases_page-' . ($page + 1)]; } if (!empty($nav_buttons)) { $keyboard_buttons[] = $nav_buttons; } $keyboard = !empty($keyboard_buttons) ? json_encode(['inline_keyboard' => $keyboard_buttons]) : null; if (isset($data)) { $bot->editMessage($from_id, $response_text, $message_id, $keyboard); } else { $bot->sendMessage($from_id, $response_text, $keyboard); } 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