⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
whatxap.com
/
src
/
app
/
Jobs
/
View File Name :
ProcessSms.php
to = $to; $this->datacoding = $datacoding; $this->message = $message; $this->credential = $credential; $this->gatewayCode = $gatewayCode; $this->smsId = $smsId; } /** * Execute the job. * * @return void */ public function handle() { if($this->gatewayCode == "101NEX"){ return SendSMS::nexmo($this->to,$this->datacoding,$this->message,$this->credential,$this->smsId); } elseif($this->gatewayCode == "102TWI"){ SendSMS::twilio($this->to,$this->datacoding,$this->message,$this->credential,$this->smsId); } elseif($this->gatewayCode == "103BIRD"){ SendSMS::messageBird($this->to,$this->datacoding,$this->message,$this->credential,$this->smsId); } elseif($this->gatewayCode == "104MAG"){ SendSMS::textMagic($this->to,$this->datacoding,$this->message,$this->credential,$this->smsId); } elseif($this->gatewayCode == "105CLICKATELL"){ SendSMS::clickaTell($this->to,$this->datacoding,$this->message,$this->credential,$this->smsId); } elseif($this->gatewayCode == "106INFOBIP"){ SendSMS::infoBip($this->to,$this->datacoding,$this->message,$this->credential,$this->smsId); } elseif($this->gatewayCode == "107SMSBROADCAST"){ SendSMS::smsBroadcast($this->to,$this->datacoding,$this->message,$this->credential,$this->smsId); } elseif($this->gatewayCode == "108MIMSMS"){ SendSMS::mimSMS($this->to,$this->datacoding,$this->message,$this->credential,$this->smsId); } elseif($this->gatewayCode == "109AJURA"){ SendSMS::ajuraSMS($this->to,$this->datacoding,$this->message,$this->credential,$this->smsId); } elseif($this->gatewayCode == "110MSG91"){ SendSMS::msg91($this->to,$this->datacoding,$this->message,$this->credential,$this->smsId); } } public function failed($exception) { $log = SMSlog::find($this->smsId); if ($log->status==SMSlog::PENDING) { $log->status = SMSlog::FAILED; $log->response_gateway = $exception->getMessage(); $log->save(); $user = User::find($log->user_id); if($user){ $messages = str_split($log->message,160); $totalcredit = count($messages); $user->credit += $totalcredit; $user->save(); $creditInfo = new CreditLog(); $creditInfo->user_id = $log->user_id; $creditInfo->credit_type = "+"; $creditInfo->credit = $totalcredit; $creditInfo->trx_number = trxNumber(); $creditInfo->post_credit = $user->credit; $creditInfo->details = $totalcredit." Credit Return ".$log->to." is Falied"; $creditInfo->save(); } } } }