Linux spg1.cloudpowerdns.com 5.14.0-611.34.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 18 05:51:10 EST 2026 x86_64
LiteSpeed
Server IP : 176.9.63.151 & Your IP : 216.73.217.60
Domains :
Cant Read [ /etc/named.conf ]
User : fastear1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fastear1 /
dailyprofit.return /
app /
Traits /
Delete
Unzip
Name
Size
Permission
Date
Action
ImageUpload.php
1.14
KB
-rw-r--r--
2023-07-25 23:21
NotifyTrait.php
4.67
KB
-rw-r--r--
2023-07-25 23:21
Payment.php
8.02
KB
-rw-r--r--
2023-07-31 00:09
SmsTrait.php
1.74
KB
-rw-r--r--
2023-07-25 23:21
Save
Rename
<?php namespace App\Traits; use App\Enums\InvestStatus; use App\Enums\TxnStatus; use App\Enums\TxnType; use App\Models\DepositMethod; use App\Models\Invest; use App\Models\LevelReferral; use App\Models\Transaction; use Payment\Btcpayserver\BtcpayserverTxn; use Payment\Coinbase\CoinbaseTxn; use Payment\Coinbase\PaystackTxn; use Payment\Coingate\CoingateTxn; use Payment\Coinpayments\CoinpaymentsTxn; use Payment\Coinremitter\CoinremitterTxn; use Payment\Cryptomus\CryptomusTxn; use Payment\Flutterwave\FlutterwaveTxn; use Payment\Mollie\MollieTxn; use Payment\Monnify\MonnifyTxn; use Payment\Nowpayments\NowpaymentsTxn; use Payment\Paymongo\PaymongoTxn; use Payment\Paypal\PaypalTxn; use Payment\Perfectmoney\PerfectmoneyTxn; use Payment\Securionpay\SecurionpayTxn; use Payment\Stripe\StripeTxn; use Payment\Voguepay\VoguepayTxn; use Session; use Txn; use URL; trait Payment { //automatic deposit gateway snippet protected function depositAutoGateway($gateway, $txnInfo) { $txn = $txnInfo->tnx; Session::put('deposit_tnx', $txn); $gateway = DepositMethod::code($gateway)->first()->gateway->gateway_code ?? 'none'; $gatewayTxn = self::gatewayMap($gateway, $txnInfo); if ($gatewayTxn) { return $gatewayTxn->deposit(); } return self::paymentNotify($txn, 'pending'); } //automatic withdraw gateway snippet protected function withdrawAutoGateway($gatewayCode, $txnInfo) { $gatewayTxn = self::gatewayMap($gatewayCode, $txnInfo); if ($gatewayTxn) { $gatewayTxn->withdraw(); } $symbol = setting('currency_symbol', 'global'); $notify = [ 'card-header' => 'Withdraw Money', 'title' => $symbol.$txnInfo->amount.' Withdraw Request Successful', 'p' => 'The Withdraw Request has been successfully sent', 'strong' => 'Transaction ID: '.$txnInfo->tnx, 'action' => route('user.withdraw.view'), 'a' => 'WITHDRAW REQUEST AGAIN', 'view_name' => 'withdraw', ]; Session::put('user_notify', $notify); return redirect()->route('user.notify'); } //automatic payment notify snippet protected function paymentNotify($tnx, $status) { $tnxInfo = Transaction::tnx($tnx); $title = ''; $investNotifyTitle = ''; switch ($status) { case 'success': $title = 'Successfully'; $investNotifyTitle = 'Successfully Investment'; break; case 'pending': $title = 'Pending'; $investNotifyTitle = 'Successfully Investment Apply'; break; } $status = ucfirst($status); if ($tnxInfo->type == TxnType::Investment) { $shortcodes = [ '[[full_name]]' => $tnxInfo->user->full_name, '[[txn]]' => $tnxInfo->tnx, '[[plan_name]]' => $tnxInfo->invest->schema->name, '[[invest_amount]]' => $tnxInfo->amount.setting('site_currency', 'global'), '[[site_title]]' => setting('site_title', 'global'), '[[site_url]]' => route('home'), ]; $this->mailNotify($tnxInfo->user->email, 'user_investment', $shortcodes); $this->pushNotify('user_investment', $shortcodes, route('user.invest-logs'), $tnxInfo->user->id); $this->smsNotify('user_investment', $shortcodes, $tnxInfo->user->phone); notify()->success($investNotifyTitle, $status); return redirect()->route('user.invest-logs'); } $symbol = setting('currency_symbol', 'global'); $notify = [ 'card-header' => "$status Your Deposit Process", 'title' => "$symbol $tnxInfo->amount Deposit $title", 'p' => "The amount has been $title added into your account", 'strong' => 'Transaction ID: '.$tnx, 'action' => route('user.deposit.amount'), 'a' => 'Deposit again', ]; if ($status == 'Pending') { $shortcodes = [ '[[full_name]]' => $tnxInfo->user->full_name, '[[txn]]' => $tnxInfo->tnx, '[[gateway_name]]' => $tnxInfo->method, '[[deposit_amount]]' => $tnxInfo->amount, '[[site_title]]' => setting('site_title', 'global'), '[[site_url]]' => route('home'), '[[message]]' => '', '[[status]]' => $status, ]; $this->mailNotify(setting('site_email', 'global'), 'manual_deposit_request', $shortcodes); $this->pushNotify('manual_deposit_request', $shortcodes, route('admin.deposit.manual.pending'), $tnxInfo->user->id); $this->smsNotify('manual_deposit_request', $shortcodes, $tnxInfo->user->phone); } $isStepOne = 'current'; $isStepTwo = 'current'; return view('frontend::deposit.success', compact('isStepOne', 'isStepTwo', 'notify')); } //automatic payment success snippet protected function paymentSuccess($ref, $isRedirect = true) { $txnInfo = Transaction::tnx($ref); if ($txnInfo->status == TxnStatus::Success) { return false; } if ($txnInfo->type == TxnType::Investment) { $investmentInfo = Invest::where('transaction_id', $txnInfo->id)->first(); $investmentInfo->update([ 'status' => InvestStatus::Ongoing, 'created_at' => now(), ]); $txnInfo->update([ 'status' => TxnStatus::Success, ]); if (setting('site_referral', 'global') == 'level' && setting('investment_level')) { $level = LevelReferral::where('type', 'investment')->max('the_order') + 1; creditReferralBonus($txnInfo->user, 'investment', $txnInfo->amount, $level); } if ($isRedirect) { notify()->success('Successfully Investment', 'success'); return redirect()->route('user.invest-logs'); } } else { $txnInfo->update([ 'status' => TxnStatus::Success, ]); Txn::update($ref, 'success', $txnInfo->user_id); if (setting('site_referral', 'global') == 'level' && setting('deposit_level')) { $level = LevelReferral::where('type', 'deposit')->max('the_order') + 1; creditReferralBonus($txnInfo->user, 'deposit', $txnInfo->amount, $level); } if ($isRedirect) { return redirect(URL::temporarySignedRoute( 'status.success', now()->addMinutes(2) )); } } } //automatic gateway map snippet private function gatewayMap($gateway, $txnInfo) { $gatewayMap = [ 'paypal' => PaypalTxn::class, 'stripe' => StripeTxn::class, 'mollie' => MollieTxn::class, 'perfectmoney' => PerfectmoneyTxn::class, 'coinbase' => CoinbaseTxn::class, 'paystack' => PaystackTxn::class, 'voguepay' => VoguepayTxn::class, 'flutterwave' => FlutterwaveTxn::class, 'cryptomus' => CryptomusTxn::class, 'nowpayments' => NowpaymentsTxn::class, 'securionpay' => SecurionpayTxn::class, 'coingate' => CoingateTxn::class, 'monnify' => MonnifyTxn::class, 'coinpayments' => CoinpaymentsTxn::class, 'paymongo' => PaymongoTxn::class, 'coinremitter' => CoinremitterTxn::class, 'btcpayserver' => BtcpayserverTxn::class, ]; if (array_key_exists($gateway, $gatewayMap)) { return app($gatewayMap[$gateway], ['txnInfo' => $txnInfo]); } return false; } }