uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
admin.priyotama.com
/
app
/
Utils
/
language.php
/
/
<?php use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\Session; if (!function_exists('translate')) { function translate($key): string { $local = getDefaultLanguage(); App::setLocale($local); try { $lang_array = include(base_path('resources/lang/' . $local . '/messages.php')); $processed_key = ucfirst(str_replace('_', ' ', removeSpecialCharacters($key))); $key = removeSpecialCharacters($key); if (!array_key_exists($key, $lang_array)) { $lang_array[$key] = $processed_key; $str = "<?php return " . var_export($lang_array, true) . ";"; file_put_contents(base_path('resources/lang/' . $local . '/messages.php'), $str); $result = $processed_key; } else { $result = __('messages.' . $key); } } catch (\Exception $exception) { $result = __('messages.' . $key); } return $result; } } if (!function_exists('removeSpecialCharacters')) { function removeSpecialCharacters(string $text): string { return str_ireplace(['\'', '"', ',', ';', '<', '>', '?'], ' ', preg_replace('/\s\s+/', ' ', $text)); } } if (!function_exists('getDefaultLanguage')) { function getDefaultLanguage(): string { if (strpos(url()->current(), '/api')) { $lang = App::getLocale(); } elseif (session()->has('local')) { $lang = session('local'); } else { $data = getWebConfig('language'); $code = 'en'; $direction = 'ltr'; foreach ($data as $ln) { if (array_key_exists('default', $ln) && $ln['default']) { $code = $ln['code']; if (array_key_exists('direction', $ln)) { $direction = $ln['direction']; } } } session()->put('local', $code); Session::put('direction', $direction); $lang = $code; } return $lang; } }
/home/users/unlimited/www/admin.priyotama.com/app/Utils/language.php