uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
.
/
facebook.codeskitter.site
/
xhr
/
coinpayments_callback.php
/
/
<?php if ($f == 'coinpayments_callback') { global $sqlConnect, $wo; $data = array(); $error = ""; if (!isset($_POST['user_id']) || empty($_POST['user_id']) || !is_numeric($_POST['user_id']) || !isset($_POST['amount1']) || !is_numeric($_POST['amount1']) || $_POST['amount1'] < 1) { $error = $error_icon . $wo['lang']['please_check_details']; } if (empty($error)) { if ($wo['config']['coinpayments_secret'] !== "" && $wo['config']['coinpayments_id'] !== "") { try { include_once('assets/libraries/coinpayments.php'); $CP = new \MineSQL\CoinPayments(); $CP->setMerchantId($wo['config']['coinpayments_id']); $CP->setSecretKey($wo['config']['coinpayments_secret']); if ($CP->listen($_POST, $_SERVER)) { // The payment is successful and passed all security measures $user_id = $_POST['user_id']; $txn_id = $_POST['txn_id']; $item_name = $_POST['item_name']; $amount1 = floatval($_POST['amount1']); // The total amount of the payment in your original currency/coin. $amount2 = floatval($_POST['amount2']); // The total amount of the payment in the buyer's selected coin. $status = intval($_POST['status']); //encrease wallet value with posted amount $result = mysqli_query($sqlConnect, "UPDATE " . T_USERS . " SET `wallet` = `wallet` + " . $amount1 . " WHERE `user_id` = '$user_id'"); if ($result) { cache($user_id, 'users', 'delete'); $create_payment_log = mysqli_query($sqlConnect, "INSERT INTO " . T_PAYMENT_TRANSACTIONS . " (`userid`, `kind`, `amount`, `notes`) VALUES ({$user_id}, 'WALLET', {$amount1}, 'coinpayments')"); if (!empty($_COOKIE['redirect_page'])) { $redirect_page = preg_replace('/on[^<>=]+=[^<>]*/m', '', $_COOKIE['redirect_page']); $redirect_page = preg_replace('/\((.*?)\)/m', '', $redirect_page); header("Location: " . $redirect_page); } else{ header("Location: " . Wo_SeoLink('index.php?link1=wallet')); } exit(); } $data = array( 'status' => 200, 'message' => $result ); } else { // the payment is pending. an exception is thrown for all other payment errors. $data = array( 'status' => 400, 'error' => 'the payment is pending.' ); } } catch (Exception $e) { $data = array( 'status' => 400, 'error' => $e->getMessage() ); } } else { $data = array( 'status' => 400, 'error' => 'bitcoin not set' ); } } else { $data = array( 'status' => 500, 'error' => $error ); } if ($data['status'] !== 200) { header("Location: " . Wo_SeoLink('index.php?link1=oops')); exit(); } else { header("Content-type: application/json"); echo json_encode($data); exit(); } }
/home/users/unlimited/www/./facebook.codeskitter.site/xhr/coinpayments_callback.php