ACIL FM
Dark
Refresh
Current DIR:
/home/fastexsh/public_html/soodino/commands
/
home
fastexsh
public_html
soodino
commands
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
cards.php
19.18 MB
chmod
View
DL
Edit
Rename
Delete
error_log
836 B
chmod
View
DL
Edit
Rename
Delete
history.php
11.61 MB
chmod
View
DL
Edit
Rename
Delete
start_bot.php
8.48 MB
chmod
View
DL
Edit
Rename
Delete
user_area.php
7.62 MB
chmod
View
DL
Edit
Rename
Delete
user_extra_features.php
5.98 MB
chmod
View
DL
Edit
Rename
Delete
user_features.php
12.01 MB
chmod
View
DL
Edit
Rename
Delete
wallet.php
1.86 MB
chmod
View
DL
Edit
Rename
Delete
withdraw.php
16.17 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/fastexsh/public_html/soodino/commands/history.php
<?php if (($text == "📜 تاریخچه تراکنشها" || $text == "📜 تاریخچه") && $user->logged_in == 1) { $stmt = $pdo->prepare("SELECT * FROM `accounts` WHERE `username` = ?"); $stmt->execute([$user->login_username]); $account = $stmt->fetch(); if (!$account) { $pdo->prepare("UPDATE `users` SET `logged_in` = 0, `login_username` = NULL WHERE `telegram_id` = ?") ->execute([$from_id]); setStep($from_id, "home"); $responseText = "⚠️ *خطا در دسترسی به حساب کاربری*\n\n" . "متأسفانه اطلاعات حساب کاربری شما در سیستم یافت نشد یا ممکن است توسط مدیریت حذف شده باشد.\n\n" . "🔐 لطفاً برای ادامه کار، مجدداً وارد حساب کاربری خود شوید.\n\n" . "📞 در صورت بروز مشکل، با پشتیبانی تماس حاصل فرمایید."; sendMessage($from_id, $responseText, $enterUserKeyboard); die; } setStep($from_id, "history"); $responseText = "📜 *تاریخچه تراکنشها*\n\n" . "لطفاً نوع تاریخچه مورد نظر خود را انتخاب نمایید:\n\n" . "💰 تاریخچه مبالغ واریز شده\n" . "📈 تاریخچه سودهای دریافت شده"; sendMessage($from_id, $responseText, $historyKeyboard); die; } if (($text == "💰 مبالغ واریز شده" || $text == "💰 تاریخچه مبالغ واریز شده") && $user->logged_in == 1) { $stmt = $pdo->prepare("SELECT * FROM `accounts` WHERE `username` = ?"); $stmt->execute([$user->login_username]); $account = $stmt->fetch(); if (!$account) { $pdo->prepare("UPDATE `users` SET `logged_in` = 0, `login_username` = NULL WHERE `telegram_id` = ?") ->execute([$from_id]); setStep($from_id, "home"); $responseText = "⚠️ *خطا در دسترسی به حساب کاربری*\n\n" . "متأسفانه اطلاعات حساب کاربری شما در سیستم یافت نشد.\n\n" . "🔐 لطفاً برای ادامه کار، مجدداً وارد حساب کاربری خود شوید."; sendMessage($from_id, $responseText, $enterUserKeyboard); die; } $page = 1; $limit = 5; $offset = ($page - 1) * $limit; $username = $user->login_username; $queryCount = "SELECT COUNT(*) AS total FROM `base_investment_transactions` WHERE `username` = ?"; $stmt = $pdo->prepare($queryCount); $stmt->execute([$username]); $total = (int) $stmt->fetch()->total; if ($total == 0) { sendMessage($from_id, "❌ *هیچ تراکنش واریز مبلغ پایهای یافت نشد*\n\n💡 تاکنون هیچ مبلغ پایهای به حساب شما واریز نشده است.", $historyKeyboard); die; } $totalPages = max(1, ceil($total / $limit)); $queryRows = "SELECT * FROM `base_investment_transactions` WHERE `username` = ? ORDER BY `id` DESC LIMIT $limit OFFSET $offset"; $stmt = $pdo->prepare($queryRows); $stmt->execute([$username]); $transactions = $stmt->fetchAll(); $textMsg = "💰 *تاریخچه مبالغ واریز شده*\n\n"; foreach ($transactions as $r) { $timestamp = strtotime($r->created_at); $rTime = jdate("H:i:s - Y/m/d", $timestamp, tr_num: 'en'); $textMsg .= "🆔 کد: `{$r->tracking_code}`\n" . "💰 مبلغ: `" . number_format($r->amount) . "` تومان\n" . "📅 زمان: {$rTime}\n" . "———————————————\n"; } $textMsg .= "\nصفحه {$page} از {$totalPages}"; $nav = ["inline_keyboard" => []]; $row = []; if ($page < $totalPages) $row[] = ["text" => "بعدی ➡️", "callback_data" => "base_tx_" . ($page + 1)]; if ($row) $nav["inline_keyboard"][] = $row; setStep($from_id, "base_tx_page_$page"); sendMessage($from_id, $textMsg, json_encode($nav)); die; } if (($text == "📈 سودهای دریافت شده" || $text == "📈 تاریخچه سودهای دریافت شده") && $user->logged_in == 1) { $stmt = $pdo->prepare("SELECT * FROM `accounts` WHERE `username` = ?"); $stmt->execute([$user->login_username]); $account = $stmt->fetch(); if (!$account) { $pdo->prepare("UPDATE `users` SET `logged_in` = 0, `login_username` = NULL WHERE `telegram_id` = ?") ->execute([$from_id]); setStep($from_id, "home"); $responseText = "⚠️ *خطا در دسترسی به حساب کاربری*\n\n" . "متأسفانه اطلاعات حساب کاربری شما در سیستم یافت نشد.\n\n" . "🔐 لطفاً برای ادامه کار، مجدداً وارد حساب کاربری خود شوید."; sendMessage($from_id, $responseText, $enterUserKeyboard); die; } $page = 1; $limit = 5; $offset = ($page - 1) * $limit; $username = $user->login_username; $queryCount = "SELECT COUNT(*) AS total FROM `profit_transactions` WHERE `username` = ?"; $stmt = $pdo->prepare($queryCount); $stmt->execute([$username]); $total = (int) $stmt->fetch()->total; if ($total == 0) { sendMessage($from_id, "❌ *هیچ تراکنش سودی یافت نشد*\n\n💡 تاکنون هیچ سودی به حساب شما واریز نشده است.", $historyKeyboard); die; } $totalPages = max(1, ceil($total / $limit)); $queryRows = "SELECT * FROM `profit_transactions` WHERE `username` = ? ORDER BY `id` DESC LIMIT $limit OFFSET $offset"; $stmt = $pdo->prepare($queryRows); $stmt->execute([$username]); $transactions = $stmt->fetchAll(); $textMsg = "📈 *تاریخچه سودهای دریافت شده*\n\n"; foreach ($transactions as $r) { $timestamp = strtotime($r->created_at); $rTime = jdate("H:i:s - Y/m/d", $timestamp, tr_num: 'en'); $textMsg .= "🆔 کد: `{$r->tracking_code}`\n" . "💰 مبلغ: `" . number_format($r->amount) . "` تومان\n" . "📅 زمان: {$rTime}\n" . "———————————————\n"; } $textMsg .= "\nصفحه {$page} از {$totalPages}"; $nav = ["inline_keyboard" => []]; $row = []; if ($page < $totalPages) $row[] = ["text" => "بعدی ➡️", "callback_data" => "profit_tx_" . ($page + 1)]; if ($row) $nav["inline_keyboard"][] = $row; setStep($from_id, "profit_tx_page_$page"); sendMessage($from_id, $textMsg, json_encode($nav)); die; } // مدیریت pagination callbacks برای تاریخچه if (isset($callback_query) && isset($data)) { // تاریخچه مبالغ پایه if (strpos($data, "base_tx_") === 0) { $page = (int) str_replace("base_tx_", "", $data); $limit = 5; $offset = ($page - 1) * $limit; $checkUser = $pdo->prepare("SELECT * FROM `users` WHERE `telegram_id` = ?"); $checkUser->execute([$from_id]); $user = $checkUser->fetch(); if (!$user || $user->logged_in != 1) { answerCallback($callback_query->id, "⚠️ لطفاً مجدداً وارد حساب کاربری شوید.", true); die; } $username = $user->login_username; $queryCount = "SELECT COUNT(*) AS total FROM `base_investment_transactions` WHERE `username` = ?"; $stmt = $pdo->prepare($queryCount); $stmt->execute([$username]); $total = (int) $stmt->fetch()->total; $totalPages = max(1, ceil($total / $limit)); $queryRows = "SELECT * FROM `base_investment_transactions` WHERE `username` = ? ORDER BY `id` DESC LIMIT $limit OFFSET $offset"; $stmt = $pdo->prepare($queryRows); $stmt->execute([$username]); $transactions = $stmt->fetchAll(); $textMsg = "💰 *تاریخچه مبالغ واریز شده*\n\n"; foreach ($transactions as $r) { $timestamp = strtotime($r->created_at); $rTime = jdate("H:i:s - Y/m/d", $timestamp, tr_num: 'en'); $textMsg .= "🆔 کد: `{$r->tracking_code}`\n" . "💰 مبلغ: `" . number_format($r->amount) . "` تومان\n" . "📅 زمان: {$rTime}\n" . "———————————————\n"; } $textMsg .= "\nصفحه {$page} از {$totalPages}"; $nav = ["inline_keyboard" => []]; $row = []; if ($page > 1) $row[] = ["text" => "⬅️ قبلی", "callback_data" => "base_tx_" . ($page - 1)]; if ($page < $totalPages) $row[] = ["text" => "بعدی ➡️", "callback_data" => "base_tx_" . ($page + 1)]; if ($row) $nav["inline_keyboard"][] = $row; setStep($from_id, "base_tx_page_$page"); editMessage($chat_id, $message_id, $textMsg, json_encode($nav)); die; } // تاریخچه سودها if (strpos($data, "profit_tx_") === 0) { $page = (int) str_replace("profit_tx_", "", $data); $limit = 5; $offset = ($page - 1) * $limit; $checkUser = $pdo->prepare("SELECT * FROM `users` WHERE `telegram_id` = ?"); $checkUser->execute([$from_id]); $user = $checkUser->fetch(); if (!$user || $user->logged_in != 1) { answerCallback($callback_query->id, "⚠️ لطفاً مجدداً وارد حساب کاربری شوید.", true); die; } $username = $user->login_username; $queryCount = "SELECT COUNT(*) AS total FROM `profit_transactions` WHERE `username` = ?"; $stmt = $pdo->prepare($queryCount); $stmt->execute([$username]); $total = (int) $stmt->fetch()->total; $totalPages = max(1, ceil($total / $limit)); $queryRows = "SELECT * FROM `profit_transactions` WHERE `username` = ? ORDER BY `id` DESC LIMIT $limit OFFSET $offset"; $stmt = $pdo->prepare($queryRows); $stmt->execute([$username]); $transactions = $stmt->fetchAll(); $textMsg = "📈 *تاریخچه سودهای دریافت شده*\n\n"; foreach ($transactions as $r) { $timestamp = strtotime($r->created_at); $rTime = jdate("H:i:s - Y/m/d", $timestamp, tr_num: 'en'); $textMsg .= "🆔 کد: `{$r->tracking_code}`\n" . "💰 مبلغ: `" . number_format($r->amount) . "` تومان\n" . "📅 زمان: {$rTime}\n" . "———————————————\n"; } $textMsg .= "\nصفحه {$page} از {$totalPages}"; $nav = ["inline_keyboard" => []]; $row = []; if ($page > 1) $row[] = ["text" => "⬅️ قبلی", "callback_data" => "profit_tx_" . ($page - 1)]; if ($page < $totalPages) $row[] = ["text" => "بعدی ➡️", "callback_data" => "profit_tx_" . ($page + 1)]; if ($row) $nav["inline_keyboard"][] = $row; setStep($from_id, "profit_tx_page_$page"); editMessage($chat_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