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 /
siba91 /
core /
app /
Notify /
Delete
Unzip
Name
Size
Permission
Date
Action
Email.php
4.41
KB
-rw-r--r--
2023-11-03 02:38
Notifiable.php
127
B
-rw-r--r--
2023-11-03 02:38
Notify.php
2.73
KB
-rw-r--r--
2023-11-03 02:38
NotifyProcess.php
6.07
KB
-rw-r--r--
2023-11-03 02:38
Push.php
3.07
KB
-rw-r--r--
2023-11-03 02:38
Sms.php
1.59
KB
-rw-r--r--
2023-11-03 02:38
SmsGateway.php
3.51
KB
-rw-r--r--
2023-11-03 02:38
Save
Rename
<?php namespace App\Notify; class Notify { /* |-------------------------------------------------------------------------- | Send Notification |-------------------------------------------------------------------------- | | The notification will go via some methods which were implemented. Different | classes are available for a particular method. But we need a central position | to serve a notification via every method which is selected. This is | the class that is serving this perspective. | */ /** * Template name, which contain the short codes and messages * * @var string */ public $templateName; /** * Short Codes, which will be replaced * * @var array */ public $shortCodes; /** * Send via email,sms etc * * @var array|null */ public $sendVia; /** * Instance of user, who will get the notification * * @var object */ public $user; /** * Notification log will be created or not * * @var bool */ public $createLog; /** * System general setting's instances * * @var object */ public $setting; /** * The relational field name like user_id, agent_id * * @var string */ public $userColumn; public $redirectUrl; /** * Assign value to sendVia and setting property * * @param null $sendVia * @return void */ public function __construct($sendVia = null) { $this->sendVia = $sendVia; $this->setting = gs(); } /** * Send notification via methods. * * This method is creating instances of notifications to send the notification. * * @return void */ public function send(){ $methods = []; //get the notification method classes which are selected if($this->sendVia){ foreach ($this->sendVia as $sendVia) { $methods[$sendVia] = $this->notifyMethods($sendVia); } }else{ $methods = $this->notifyMethods(); } //send the notification via methods one by one foreach($methods as $method){ $notify = new $method; $notify->templateName = $this->templateName; $notify->shortCodes = $this->shortCodes; $notify->user = $this->user; $notify->setting = $this->setting; $notify->createLog = $this->createLog; $notify->userColumn = $this->userColumn; $notify->redirectUrl = $this->redirectUrl; $notify->send(); } } /** * Get the notification method classes. * * @param array|null $sendVia * @return array|string */ protected function notifyMethods($sendVia = null){ $methods = [ 'email'=>Email::class, 'sms'=>Sms::class, 'push'=>Push::class, ]; if ($sendVia) { return $methods[$sendVia]; } return $methods; } }