Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 3.147.6.122
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
ifk /
web /
prado4.3.2 /
I18N /
[ HOME SHELL ]
Name
Size
Permission
Action
core
[ DIR ]
drwxr-xr-x
schema
[ DIR ]
drwxr-xr-x
TChoiceFormat.php
3.49
KB
-rw-r--r--
TDateFormat.php
7.16
KB
-rw-r--r--
TGlobalization.php
9.13
KB
-rw-r--r--
TGlobalizationAutoDetect.php
4.16
KB
-rw-r--r--
TI18NControl.php
2.22
KB
-rw-r--r--
TNumberFormat.php
6.4
KB
-rw-r--r--
TTranslate.php
6.49
KB
-rw-r--r--
TTranslateParameter.php
2.68
KB
-rw-r--r--
Translation.php
2.66
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : TGlobalizationAutoDetect.php
<?php /** * TMultiView and TView class file. * * @author Wei Zhuo<weizhuo[at]gmail[dot]com> * @link https://github.com/pradosoft/prado * @license https://github.com/pradosoft/prado/blob/master/LICENSE */ namespace Prado\I18N; /** * TGlobalizationAutoDetect class will automatically try to resolve the default * culture using the user browser language settings. * * You can specify the list of available cultures on the website by setting the {@link setAvailableLanguages AvailableLanguages} property, eg: * <code> * <module id="globalization" class="TGlobalizationAutoDetect" charset="UTF-8" DefaultCulture="it" TranslateDefaultCulture="false" AvailableLanguages="it, en"> * </code> * @author Wei Zhuo<weizhuo[at]gmail[dot]com> */ class TGlobalizationAutoDetect extends TGlobalization { /** * A list of languages accepted by the browser. * @var array */ protected $languages; /** * A list of charsets accepted by the browser * @var array */ protected $charsets; /** * First language accepted by the browser * @var string */ private $detectedLanguage; /** * A list of languages accepted by the website. * If empty or not defined, any language is accepted. * @var array */ protected $validLanguages; public function init($xml) { parent::init($xml); //set the culture according to browser language settings $languages = $this->getLanguages(); foreach ($languages as $lang) { $mainLang = $lang; // strstr($lang, '_', true); if ($this->validLanguages !== null && count($this->validLanguages) > 0 && !in_array($mainLang, $this->validLanguages)) { continue; } $this->detectedLanguage = $mainLang; $this->setCulture($mainLang); return; } } public function getDetectedLanguage() { return $this->detectedLanguage; } /** * Checks wether the specified locale is valid and available * @param mixed $locale * @return bool */ protected function getIsValidLocale($locale) { static $allLocales; if ($allLocales === null) { $allLocales = \ResourceBundle::getLocales(''); } return in_array($locale, $allLocales); } /** * Get a list of languages acceptable by the client browser * @return array languages ordered in the user browser preferences. */ protected function getLanguages() { if ($this->languages !== null) { return $this->languages; } $this->languages = []; if (!isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { return $this->languages; } foreach (explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']) as $lang) { // Cut off any q-value that might come after a semi-colon if ($pos = strpos($lang, ';')) { $lang = trim(substr($lang, 0, $pos)); } if (strstr($lang, '-')) { $codes = explode('-', $lang); if ($codes[0] == 'i') { // Language not listed in ISO 639 that are not variants // of any listed language, which can be registerd with the // i-prefix, such as i-cherokee if (count($codes) > 1) { $lang = $codes[1]; } } else { for ($i = 0, $k = count($codes); $i < $k; ++$i) { if ($i == 0) { $lang = strtolower($codes[0]); } else { $lang .= '_' . strtoupper($codes[$i]); } } } } if ($this->getIsValidLocale($lang)) { $this->languages[] = $lang; } } return $this->languages; } /** * Get a list of charsets acceptable by the client browser. * @return array list of charsets in preferable order. */ protected function getCharsets() { if ($this->charsets !== null) { return $this->charsets; } $this->charsets = []; if (!isset($_SERVER['HTTP_ACCEPT_CHARSET'])) { return $this->charsets; } foreach (explode(',', $_SERVER['HTTP_ACCEPT_CHARSET']) as $charset) { if (!empty($charset)) { $this->charsets[] = preg_replace('/;.*/', '', $charset); } } return $this->charsets; } /** * Get the available languages. * @return array of languages */ public function getAvailableLanguages() { return $this->validLanguages; } /** * Set the available languages. * @param mixed $langs Comma separated string of available languages. */ public function setAvailableLanguages($langs) { $this->validLanguages = array_map('trim', explode(',', $langs)); } }
Close