uawdijnntqw1x1x1
IP : 3.129.22.34
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
jackpotjunglegam
/
public_html
/
80d3f
/
.
/
..
/
.
/
.
/
core
/
app
/
.
/
Notify
/
.
/
Sms.php
/
/
<?php namespace App\Notify; use App\Notify\NotifyProcess; use App\Notify\SmsGateway; class Sms extends NotifyProcess { /** * Mobile number of receiver * * @var string */ public $mobile; /** * Assign value to properties * * @return void */ public function __construct() { $this->statusField = 'sms_status'; $this->body = 'sms_body'; $this->globalTemplate = 'sms_body'; $this->notifyConfig = 'sms_config'; } /** * Send notification * * @return void|bool */ public function send() { //get message from parent $message = $this->getMessage(); if ($this->setting->sn && $message) { try { $gateway = $this->setting->sms_config->name; if ($this->mobile) { $sendSms = new SmsGateway(); $sendSms->to = $this->mobile; $sendSms->from = $this->setting->sms_from; $sendSms->message = strip_tags($message); $sendSms->config = $this->setting->sms_config; $sendSms->$gateway(); $this->createLog('sms'); } } catch (\Exception$e) { $this->createErrorLog('SMS Error: ' . $e->getMessage()); session()->flash('sms_error', 'API Error: ' . $e->getMessage()); } } } /** * Configure some properties * * @return void */ protected function prevConfiguration() { //Check If User if ($this->user) { $this->mobile = $this->user->mobile; $this->receiverName = $this->user->fullname; } $this->toAddress = $this->mobile; } }
/home/jackpotjunglegam/public_html/80d3f/./../././core/app/./Notify/./Sms.php