UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_a0b9623cd445
/
app
/
Providers
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
AppServiceProvider.php
<?php namespace EstudioLMS\Providers; use Blade; use EstudioLMS\Exceptions\Handler; use EstudioLMS\Repositories\Config\BoletoRepository; use EstudioLMS\Repositories\Config\ConfigRepository; use EstudioLMS\Repositories\Config\PagarmeRecipientInterface; use EstudioLMS\Repositories\Config\TemplateRepository; use EstudioLMS\Repositories\Config\ThemeInterface; use EstudioLMS\Services\GitVersionSevice; use EstudioLMS\System\PlanValidator; use Illuminate\Support\Facades\Session; use Illuminate\Support\ServiceProvider; use SEO; class AppServiceProvider extends ServiceProvider { public function boot( ConfigRepository $configRepository, TemplateRepository $templateRepository, BoletoRepository $boletoRepository, ThemeInterface $themeRepository, PlanValidator $planValidator, PagarmeRecipientInterface $pagarmeRecipient ) { $title = 'Sem Configuração'; $template = []; $config = null; $boleto = null; $recipient = null; $theme = 'layouts.site'; try { $config = $configRepository->firstRecord(); $template = $templateRepository->firstRecord(); $boleto = $boletoRepository->firstRecord(); $recipient = $pagarmeRecipient->firstRecord(); if (isset($config->site_name)) { $title = $config->site_name; } if (isset($template->theme_id)) { $themeResult = $themeRepository->find($template->theme_id); if ($themeResult && isset($themeResult->view)) { $theme = $themeResult->view; } } $projectSlug = Session::get('planLimite.project_slug', 'backup_project'); \Config::set('laravel-backup.backup.name', $projectSlug); \Config::set('laravel-backup.monitorBackups.0.name', $projectSlug); $planValidator->getPlanLimits(); } catch (\Exception $e) { app(Handler::class)->report($e); $title = 'Site não configurado'; } SEO::setTitle($title); SEO::setDescription($title); SEO::opengraph()->setTitle($title); SEO::opengraph()->setDescription($title); SEO::opengraph()->addProperty('type', 'blog'); SEO::opengraph()->addProperty('locale', 'pt-br'); SEO::opengraph()->addProperty('locale:alternate', ['pt-pt', 'en-us']); SEO::opengraph()->addImage(url('/assets/images/site/logotipo.png')); $gt = new GitVersionSevice(); $version = $gt->short(); $arrYears = []; $currYear = (int)date('Y'); $lastYear = $currYear + 30; for ($i = $currYear; $i <= $lastYear; $i++) { $arrYears[$i] = $i; } view()->share([ 'config' => $config, 'template' => $template, 'boleto' => $boleto, 'version' => $version, 'theme' => $theme, 'recipient' => $recipient, 'arrYears' => $arrYears, ]); Blade::extend(function ($value, $compiler) { $value = preg_replace('/(\s*)@switch\s*\((.*)\)(?=\s)/', '$1<?php switch($2):', $value); $value = preg_replace('/(\s*)@endswitch(?=\s)/', '$1endswitch; ?>', $value); $value = preg_replace('/(\s*)@case\s*\((.*)\)(?=\s)/', '$1case $2: ?>', $value); $value = preg_replace('/(?<=\s)@default(?=\s)/', 'default: ?>', $value); $value = preg_replace('/(?<=\s)@break(?=\s)/', '<?php break;', $value); return $value; }); } public function register() { // } }
Copyright © 2026 - UnknownSec