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 Exception; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Http; use Twilio\Rest\Client; trait SmsTrait { protected function sendSms($phone, $message) { if (config('sms.default') == 'Nexmo') { $this->nexmo($phone, $message); } elseif (config('sms.default') == 'Twilio') { $this->twilio($phone, $message); } } protected function nexmo($phone, $message) { try { $gatewayCredentials = config('sms.connections.nexmo'); $params = [ 'api_key' => $gatewayCredentials['api_key'], 'api_secret' => $gatewayCredentials['api_secret'], 'from' => $gatewayCredentials['nexmo_from'], 'to' => $phone, 'text' => $message['message_body'], ]; $response = Http::post('https://rest.nexmo.com/sms/json', $params); $json = $response->json(); } catch (Exception $e) { notify()->error('Connection failed', 'Error'); return false; } } protected function twilio($phone, $message) { $gatewayCredentials = Config::get('sms.connections.twilio'); $twilioAccountSid = $gatewayCredentials['twilio_sid']; $twilioAuthToken = $gatewayCredentials['twilio_auth_token']; $twilioPhoneNumber = $gatewayCredentials['twilio_phone']; $twilio = new Client($twilioAccountSid, $twilioAuthToken); $twilio->messages->create( $phone, [ 'from' => $twilioPhoneNumber, 'body' => $message['message_body'], ] ); } }