UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_8700bb36ca7a
/
app
/
Providers
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
AppServiceProvider.php
<?php namespace EstudioLMS\Providers; use EstudioLMS\Repositories\Config\BoletoRepository; use EstudioLMS\Repositories\Config\ConfigRepository; use EstudioLMS\Repositories\Config\TemplateRepository; use EstudioLMS\Repositories\Config\ThemeInterface; use EstudioLMS\Services\GitVersionSevice; use EstudioLMS\System\PlanValidator; use Illuminate\Support\ServiceProvider; use SEO; use Blade; /** * Class AppServiceProvider * @package EstudioLMS\Providers */ class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @param ConfigRepository $configRepository * @param TemplateRepository $templateRepository * @param BoletoRepository $boletoRepository * @param ThemeInterface $themeRepository * @param PlanValidator $planValidator */ public function boot( ConfigRepository $configRepository, TemplateRepository $templateRepository, BoletoRepository $boletoRepository, ThemeInterface $themeRepository, PlanValidator $planValidator ) { $title = 'Sem Configuração'; $template = []; try { $config = $configRepository->firstRecord(); $template = $templateRepository->firstRecord(); $boleto = $boletoRepository->firstRecord(); $theme = $themeRepository->find($template->theme_id)->view; if ($config->count() > 0) { $title = $config->site_name; } $planValidator->getPlanLimits(); } catch (\Exception $e) { $title = 'Site não configurado'; $theme = 'layouts.site'; } 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(); view()->share(compact('config', 'template', 'boleto', 'version', 'theme')); Blade::extend(function($value, $compiler){ $value = preg_replace('/(\s*)@switch[ ]*\((.*)\)(?=\s)/', '$1<?php switch($2):', $value); $value = preg_replace('/(\s*)@endswitch(?=\s)/', '$1endswitch; ?>', $value); $value = preg_replace('/(\s*)@case[ ]*\((.*)\)(?=\s)/', '$1case $2: ?>', $value); $value = preg_replace('/(?<=\s)@default(?=\s)/', 'default: ?>', $value); $value = preg_replace('/(?<=\s)@break(?=\s)/', '<?php break;', $value); return $value; }); } /** * Register any application services. * * @return void */ public function register() { } }
Copyright © 2026 - UnknownSec