UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_fc9b9b93c3b2
/
app
/
Services
/
Admin
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
OwnerNotificationService.php
<?php namespace EstudioLMS\Services\Admin; use Carbon\Carbon; use Illuminate\Support\Facades\Session; /** * Class OwnerNotificationService * @package EstudioLMS\Services\Admin */ class OwnerNotificationService { /** * OwnerNotificationService constructor. */ public function __construct() { } /** * @return string[] */ public function getNotifications() { $today = Carbon::now()->format('Y-m-d H:s:i'); $notifications = \DB::connection('adm') ->table('customer_notifications') ->where('published_at', '<=', $today) ->where('unpublished_at', '>=', $today) ->get(); $instancePaid = Session::get('planLimite.is_free'); $instancePlan = Session::get('planLimite.plan_plan_id'); $result = false; $notificationTitle = ''; $notificationBody = ''; $notificationStart = ''; $notificationEnd =''; foreach ($notifications as $key => $value) { if ($value->paid_only && !$instancePaid) { if (!is_null($value->plan_receiver)) { $array = explode(',', $value->plan_receiver); if (in_array($instancePlan, $array)) { $result = true; $notificationTitle = $value->title; $notificationBody = $value->body; $notificationStart = $value->published_at; $notificationEnd = $value->unpublished_at; break; } } else { $result = true; $notificationTitle = $value->title; $notificationBody = $value->body; $notificationStart = $value->published_at; $notificationEnd = $value->unpublished_at; break; } } else { if (!is_null($value->plan_receiver)) { $array = explode(',', $value->plan_receiver); if (in_array($instancePlan, $array)) { $result = true; $notificationTitle = $value->title; $notificationBody = $value->body; $notificationStart = $value->published_at; $notificationEnd = $value->unpublished_at; break; } } else { $result = $value->paid_only == false && is_null($value->plan_receiver); $notificationTitle = $value->title; $notificationBody = $value->body; $notificationStart = $value->published_at; $notificationEnd = $value->unpublished_at; break; } } } return $notification = [ 'has_notification' => !empty($notificationTitle), 'title' => $notificationTitle, 'body' => $notificationBody, 'start' => $notificationStart, 'end' => $notificationEnd ]; } }
Copyright © 2026 - UnknownSec