Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
lms-api-8 /
app /
Helpers /
[ HOME SHELL ]
Name
Size
Permission
Action
Helpers.php
13.43
KB
-rw-r--r--
NotificationHelper.php
4.75
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : NotificationHelper.php
<?php namespace App\Helpers; use App\Modules\Nucleus\Repositories\NotificationInterface; use App\Modules\Tender\Repositories\TenderInterface; use App\Modules\User\Repositories\AccountUserInterface; use App\Events\NotificationMessage; use Auth; use Carbon\Carbon; class NotificationHelper { protected $notification; protected $account_user; protected $tender; public function __construct(NotificationInterface $notification,AccountUserInterface $account_user,TenderInterface $tender){ $this->notification = $notification; $this->account_user = $account_user; $this->tender = $tender; $this->date = Carbon::now()->format('Y-m-d H:i:s'); } public function newsNotify($data) { $json_data=array( 'title'=>$data['title'], 'excerpt'=>$data['excerpt'], 'image'=>$data['image'], 'url'=>$data['url'] ); $item = array( 'user_id' => Auth::user()->id, 'account_id' =>Auth::user()->account_ids[0], 'notify_type' => 'NEWS', 'json_data'=>json_encode($json_data), 'created_at'=>date('Y-m-d H:i:s'), 'is_seen'=>0 ); $this->notification->save($item); event(new NotificationMessage($item)); } public function tenderNotes($data,$type = 'add') { $accountUser=$this->account_user->findAll(['account_id'=>Auth::user()->account_ids[0]]); $tenderData=$this->tender->find(['id'=>$data['tender_id']]); $json_data=array( 'title'=>$tenderData->title, 'note'=>$data['note'], 'tender_id'=>$data['tender_id'], 'action'=>$type ); foreach($accountUser as $key=>$account){ $item = array( 'user_id' => $account->user_id, 'account_id' =>Auth::user()->account_ids[0], 'notify_type' => 'TENDER-NOTE', 'json_data'=>json_encode($json_data), 'created_at'=>date('Y-m-d H:i:s'), 'is_seen'=>0 ); $this->notification->save($item); event(new NotificationMessage($item)); } } public function tenderBookmark($data,$type = 'bookmark') { $accountUser=$this->account_user->findAll(['account_id'=>Auth::user()->account_ids[0]]); $tenderData=$this->tender->find(['id'=>$data['tender_id']]); $json_data=array( 'title'=>$tenderData->title, 'tender_id'=>$data['tender_id'], 'action'=>$type ); foreach($accountUser as $key=>$account){ $item = array( 'user_id' => $account->user_id, 'account_id' =>Auth::user()->account_ids[0], 'notify_type' => 'TENDER-BOOKMARK', 'json_data'=>json_encode($json_data), 'created_at'=>$this->date, 'is_seen'=>0 ); $this->notification->save($item); event(new NotificationMessage($item)); } } public function tenderAssign($data,$type = 'assign') { $accountUser=$this->account_user->findAll(['account_id'=>Auth::user()->account_ids[0]]); $tenderData=$this->tender->find(['id'=>$data['tender_id']]); $json_data=array( 'title'=>$tenderData->title, 'tender_id'=>$data['tender_id'], 'action'=>$type ); foreach($accountUser as $key=>$account){ $item = array( 'user_id' => $account->user_id, 'account_id' =>Auth::user()->account_ids[0], 'notify_type' => 'TENDER-ASSIGN', 'json_data'=>json_encode($json_data), 'created_at'=>$this->date, 'is_seen'=>0 ); $this->notification->save($item); event(new NotificationMessage($item)); } } public function tenderFollower($data,$type = 'follow') { $accountUser=$this->account_user->findAll(['account_id'=>Auth::user()->account_ids[0]]); $tenderData=$this->tender->find(['id'=>$data['tender_id']]); $json_data=array( 'title'=>$tenderData->title, 'tender_id'=>$data['tender_id'], 'action'=>$type ); foreach($accountUser as $key=>$account){ $item = array( 'user_id' => $account->user_id, 'account_id' =>Auth::user()->account_ids[0], 'notify_type' => 'TENDER-FOLLOWER', 'json_data'=>json_encode($json_data), 'created_at'=>$this->date, 'is_seen'=>0 ); $this->notification->save($item); event(new NotificationMessage($item)); } } }
Close